Coder Social home page Coder Social logo

psx-pi-smbshare's Introduction

psx-pi-smbshare

psx-pi-smbshare began with the intent of allowing SMB sharing to Multiman and Open Playstation Loader from a Raspberry Pi. It has evolved into a Pi-based swiss army knife for enhancing classic game consoles.

You can see it in action in this video from @versatileninja which walks through the setup process and demonstrates how to use it:

Play PS2 Games Over SMB Using Raspberry Pi 3b+ and psx-pi-smbshare (2019)

Upgrading an existing install

The following commands can be used to upgrade an existing psx-pi-smbshare device. These instructions can also be used to convert an unsupported device into a psx-pi-smbshare (for example Raspberry Pi4 and potentially other devices running a debian based OS with an accessible ethernet port).

cd ~
wget -O setup.sh https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup.sh
chmod 755 setup.sh
./setup.sh

How it works

psx-pi-smbshare is a preconfigured Raspbian based image for Raspberry Pi 1, 2, 3 and 4. It runs a Samba share, a pi-compatible build of ps3netsrv, and reconfigures the ethernet port to act as a router. This gives low-latency, direct access to the Samba service through an ethernet cable connection between a PS2/PS3 and Raspberry Pi. This configuration is achieved by running setup.sh. A pre-supplied image can be applied directly to a Micro-SD card using something like etcher.io. The image allows you to use the full available space on the SD card after the OS is first booted.

An XLink Kai client is also included and accessible on the device at http://smbshare:34522/. This allows for multi-player gaming over extended LAN. The service is possible to use on a variety of devices including PS2, PS3, PS4, Xbox, Xbox 360, Xbox One, Gamecube, Switch, Wii, Wii U (and PSP). Just connect an ethernet cable to your game console and access the XLink Kai Service over Wi-Fi with a smart phone, tablet, or computer.

image

What you can do with it

psx-pi-smbshare works out of the box on PS3 with MultiMAN. This functionality allows you to stream and backup up various games and media to the Samba share service running on the Raspberry Pi.

psx-pi-smbshare also works out of the box on PS2 with Open Playstation Loader and supports streaming of PS2 backups located on the Samba share service. It can also work with POPStarter for SMB to allow streaming of PS1 games from Open Playstation Loader.

psx-pi-smbshare supports an ability to route traffic from the ethernet port through a wireless network connection to the outside world. With this configuration, the XLink Kai Service can be used on pretty much any device with an ethernet port. This includes Xbox, Xbox 360, PS2, PS3, and Gamecube. There is also support for Ad-Hoc multiplayer on PSP using XLink Kai.

Quickstart

Prerequisites

  • Raspberry Pi 1, 2, or 3
  • Micro-SD Card (8GB+ suggested)

A detailed video guide is provided by Project Phoenix Media which walks through the processes described below.

Flash the image

Download the latest psx-pi-smbshare release image and burn it to a Micro-SD card with etcher.io

Configuring Wireless Network

If you wish to configure the wireless network on a Raspberry Pi 2 or 3, you need to add a file to /boot on the Micro-SD card.

Create a file on /boot named wpa_supplicant.conf and supply the following (change country to a valid 2 letter code):

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
        ssid="<SSID>"
        psk="<PASSWORD>"
}

When the pi is next booted, it will attempt to connect to the wireless network in this configuration. You are then able to access the raspberry pi on the network and allow for outbound connections from a PS2/PS3 over the wireless network.
The raspberry pi is configured to have a hostname smbshare with a user pi and a password of raspberry.

Disable DHCP server on Raspberry Pi

The default behavior of psx-pi-smbshare is to enable a console-to-pi connection by means of the high speed ethernet port available on many video game consoles. This connection is used to provide a direct access from the console to the services on the pi (WiFi, XLinkKai, SMB, ps3netsrv etc), and by default, a DHCP server runs on the ethernet interface (eth0) to facilitate this. The following steps will describe how to disable this mechanism and is not recommended for typical users. Please be aware that disabling the DHCP server will produce a side-effect of no longer being able to directly connect your video game console to the pi via the ethernet interface.

In some use cases, the user may wish to connect the Raspberry Pi via ethernet to an external router (for example: to have psx-pi-smbshare act as an XLinkKai server for primarily PSP games). To disable the DHCP server that would usually run automatically on this interface, ssh into your device and execute the following command to modify the startup scripts that run at boot time:

crontab -e

Next, find and comment the line containing @reboot sudo bash /home/pi/wifi-to-eth-route.sh by adding a '#' as shown below:

#@reboot sudo bash /home/pi/wifi-to-eth-route.sh

Accessing the XLink Kai Service

Visit http://smbshare:34522/ or http://<YOUR_PSX_PI_SMBSHARE_DEVICE_IP>:34522/

Accessing the SMB Share

With a wireless network configured, you should be able to access the SMB share by visiting \\SMBSHARE\share on windows or smb://smbshare/share on Mac / Linux.

Accessing SMB

The share is preconfigured with a folder structure to accomodate ps3netsrv and Open Playstation Loader expected file paths.

Accessing USB drive(s) on the SMB Share

Plug and play auto-sharing of USB storage devices over SMB is supported:

  • USB Drives are automounted to the /media/ directory

  • When a USB drive is plugged in, the USB Drive becomes available on the SMB Share @ \\SMBSHARE\share

  • When a USB drive is removed, the device falls back to sharing the Micro-SD card @ \\SMBSHARE\share

  • Note that some USB drives (particularly larger enclosure types) may require use of a powered USB Hub to supply adequate current to the device

Forwarding Active FTP session to a connected device

Assuming your console / device has an ip of 192.168.2.2, you may run the following script to forward an Active FTP session:

    sudo iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to-destination 192.168.2.2:21
    sudo modprobe ip_nat_ftp ports=21

If you wish to permanently enable FTP forwarding, it is suggested to set a static ip of 192.168.2.2 on your console(s) when used with psx-pi-smbshare and modify "wifi-to-eth-route.sh" in the home directory of the pi to run the commands above by adding them directly before:

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"

This will ensure that Active FTP sessions are forwarded automatically at startup.

After you enable forwarding of Active FTP sessions to your console, it is suggested to use Filezilla to connect to your console via "File => Site Manager => New Site" and connecting with the following settings:

Accessing SMB

Accessing SMB

This configuration will forward all ftp requests made to the host ip of the psx-pi-smbshare device to the internal ip assigned to the connected console. If using another FTP client, it is very important that it is configured to connect using an Active FTP transfer mode.

Configuring for use with MultiMAN on PS3

Prerequisites

Steps

  1. Connect the pi ethernet port into the ethernet port of the PS3 and power the pi using the PS3 usb or an external power supply

  2. In the PS3 XMB select "Settings" => "Network Settings" => "Internet Connection Settings" and configure to connect using the ethernet connection as follows:

    "Internet Connection Settings" => "Custom" => "Wired" => "Auto-Detect" => "Manual"

         IP Address = 192.168.2.2
         Subnet Mask = 255.255.255.0
         Default Router = 192.168.2.1
         Primary DNS = 1.1.1.1
         Secondary DNS = <leave blank or use your home router ip address>
    

    "Automatic" => "Do Not Use" => "Enable"

  3. Launch MultiMAN

  4. Select "Settings" => "Network Servers"

  5. Configure using the Ip Address '192.168.2.1' (ip to the smbshare assigned by dhcp server running on the Pi) and Port '38008' (default)

  6. You should see new section for the network server under 'Photos' / 'Music' / 'Video' / 'Retro' and a new location to copy games to when using copy ISO in the 'Games' menu.

PS3 Games backed up to the network server can be found and loaded from the "Games" menu in MultiMAN. PS1, PS2, and PSP games can be found and loaded from "Retro" => "PSONE" "PS2" OR "PSP"
PS2 backups must be loaded from the HDD but can be copied directly to the SMB server.

Configuring for use with Open Playstation Loader

Prerequisites

Steps

  1. Connect the pi ethernet port into the ethernet port of the PS2 and power the pi using the PS2 usb or an external power supply

  2. Boot Open Playstation Loader and select "Settings" => "Network Config".
    Ensure that the following options are set:

     Ethernet Link Mode = Auto
     PS2 
         IP address type = Static
         IP address = 192.168.2.2
         Mask = 255.255.255.0
         Gateway = 192.168.2.1
         DNS Server = 1.1.1.1
     SMB Server
         Address Type = IP
         Address = 192.168.2.1
         Port = 445
         Share = share
         Password = <not set>
    

    PS2 OPL Settings

Don't forget to select "Save Config" when you return to "Settings"

  1. Reconnect or restart Open Playstation Loader
  2. PS2 Games will be listed under "ETH Games". To add PS2 games, copy valid .iso backups to \\SMBSHARE\share\DVD or \\SMBSHARE\share\CD

Configuring for use with POPSLoader on Open Playstation Loader

Prerequisites

  • Ensure that you have successfully followed the steps above for "Configuring for use with Open Playstation Loader"

Steps

  1. Download the ps2 network modules

  2. Extract the POPSTARTER folder

  3. Modify IPCONFIG.DAT to:

     192.168.2.2 255.255.255.0 192.168.2.1
    
  4. Modify SMBCONFIG.DATA to:

     192.168.2.1 share
    
  5. Copy the POPSTARTER folder to your memory card

  6. Hop on the internet and look for a copy of a file named "POPS_IOX.PAK" with md5sum "a625d0b3036823cdbf04a3c0e1648901" and copy it to \\SMBSHARE\share\POPS. This file is not included for "reasons".

  7. PS1 backups must be converted to .VCD and run through a special renaming program in order to show up in OPL.

    To convert .bin + .cue backups, you can use the included "CUE2POP_2_3.EXE" located in \\SMBSHARE\share\POPS\CUE2POPS v2.3 Copy your .VCD backups to \\SMBSHARE\share\POPS then run \\SMBSHARE\share\POPS\OPLM\OPL_Manager.exe to rename your files appropriately.

    Once converted and properly renamed, your games will show up under the "PS1 Games" section of OPL

    A detailed guide is available @ http://www.ps2-home.com/forum/viewtopic.php?f=64&t=5002

Playing LAN enabled Nintendo Switch games online with XLink Kai on Nintendo Switch

Prerequisites

Steps

  1. Burn the latest psx-pi-smbshare image to a Micro-SD card
  2. Configure Wi-fi per the steps above in "Configuring the Wireless Network"
  3. Add a second Wi-fi dongle to the pi as described in Using a second wifi interface as an access point to XLink Kai
  4. Configure your Switch to connect to the "XLinkKai" access point and set the DNS Settings to manual and set the Primary DNS to 10.254.0.1 and ensure that Autoconnect is set to "on" as described in the XLinkKai Nintendo Switch Tutorial.
  5. Vist the XLink Kai service running on the pi @ http://smbshare:34522 or http://<YOUR_PSX_PI_SMBSHARE_DEVICE_IP>:34522/ and login with your XLink Kai account
  6. In the XLink Kai portal, select Configuration and ensure that Network Adapter is set to to wlan1 to ensure that XLinkKai captures packets from the proper wireless interface.
  7. In the XLink Kai portal , select Game Arenas and navigate to the room for the game that you wish to play
  8. Launch the game on your Switch and start up LAN mode and create a LAN game (Do not confuse with Local Wireless, many games involve a special keypress combination to enable LAN mode, please research accordingly). If asked to connect to a network during this process, select the "XLinkKai" SSID that is being served from the raspberry pi.
  9. Wait for players to join and have fun!

Playing Halo 2 online with XLink Kai on Xbox

Video Demonstration

Halo 2 XLink Kai Raspberry Pi Wireless Gameplay

Prerequisites

  • An original Xbox or Xbox 360 with backwards compatibility support
  • A copy of Halo 2
  • An XLink Kai account from http://www.teamxlink.co.uk/

Steps

  1. Burn the latest psx-pi-smbshare image to a Micro-SD card
  2. Configure Wi-fi per the steps above in "Configuring the Wireless Network"
  3. Plug the pi into the Xbox ethernet port and verify that you are able to obtain an ip automatically in Network Settings
  4. Vist the XLink Kai service running on the pi @ http://smbshare:34522 or http://<YOUR_PSX_PI_SMBSHARE_DEVICE_IP>:34522/ and login with your XLink Kai account
  5. Select an available Halo game from the XLink Kai portal (there are usually a few running in South America)
  6. Launch Halo 2 and select "System Link"
  7. Join a game and have fun!

Playing SOCOM 2 online with XLink Kai on PS2

Prerequisites

Steps

  1. Burn the latest psx-pi-smbshare image to a Micro-SD card

  2. Configure Wi-fi per the steps above in "Configuring the Wireless Network"

  3. Plug the pi into the PS2 ethernet port

  4. The following setup needs to be performed one time: Boot your PS2 up with SOCOM 2 and select "Online" at the title screen. Once you hit the first blue screen hit edit network configuration to be sent to the network setup. Now delete any old network settings and create a new one. Using Automatic settings is fine but you may wish to set the following manual settings if you have issues:

     Console IP: 192.168.2.2
     Subnet Mask: 255.255.255.0
     Router IP/Gateway: 192.168.2.1
    
  5. Vist the XLink Kai service running on the pi @ http://smbshare:34522 or http://<YOUR_PSX_PI_SMBSHARE_DEVICE_IP>:34522/ and login with your XLink Kai account

  6. Select an available SOCOM 2 game from the XLink Kai portal (there is usually one running at all times)

  7. Head back to the SOCOM 2 title screen and select "LAN"

  8. Join a game and have fun!

Using a Second WiFi interface as an Access Point to XLink Kai

Prerequisites

  • 1 external wifi dongle for RPi 2/3 or 2 external wifi dongles for RPi 1

Steps

  1. Burn the latest psx-pi-smbshare image to a Micro-SD card
  2. Plug in the external wifi dongle(s)
  3. Configure Wi-fi per the steps above in "Configuring the Wireless Network"
  4. Configure the device to connect to "XLinkKai" SSID when the pi has booted using Password XLinkKai

Note: XLinkKai will only work on one network interface (wifi or ethernet) at a time and will lock onto the first interface connected to from a compatible device until reboot

Playing PSP games online with XLink Kai on PSP

Prerequisites

  • A wifi capable PSP
  • 1 external wifi dongle for RPi 2/3 or 2 external wifi dongles for RPi 1 (tested with an Edimax-EW-7811Un wifi dongle)
  • A Multiplayer game which supports Ad-Hoc
  • An XLink Kai account from http://www.teamxlink.co.uk/

Steps

  1. Burn the latest psx-pi-smbshare image to a Micro-SD card

  2. Configure Wi-fi per the steps above in "Configuring the Wireless Network"

  3. SSH to you psx-pi-smbshare instance using the default username pi and default password raspberry

  4. Ensure that your PSP is set to Automatic in Network Settings under Ad Hoc Mode

  5. Run the following commands to disable the hostapd access point and enable Ad-Hoc Wifi:

     sudo service hostapd stop
     sudo iw wlan1 set type ibss
    
  6. Start an Ad-Hoc multiplayer session from a game on the PSP

  7. Run the follwoing command

     sudo iw wlan1 scan | grep PSP_ -B 5
    

    You will receive an output similar to:

     freq: 2462
     beacon interval: 100 TUs
     capability: IBSS ShortPreamble (0x0022)
     signal: -42.00 dBm
     last seen: 0 ms ago
     SSID: PSP_S000000001_L_GameShar
    

    Take note of the frequency and SSID

  8. Using the information in the previous step, execute the following while the multiplayer session is waiting:

     sudo iw wlan1 ibss join <SSID> <frequency> 
    

    Ex: sudo iw wlan1 ibss join PSP_S000000001_L_GameShar 2462

    If you receive "Operation not supported (-95)" then your wifi adapter may not be compatible

    Once you know this command, you can re-use the following script at any time to enable PSP Ad-Hoc mode:

     sudo service hostapd stop
     sudo iw wlan1 set type ibss
     sudo iw wlan1 ibss join <SSID> <frequency>
    

    Note: You must run this script after starting an Ad-Hoc multiplayer session on the PSP

  9. Exit the Ad-Hoc multiplayer session and start a new one

  10. Vist the XLink Kai service running @ http://smbshare:34522 or http://<YOUR_PSX_PI_SMBSHARE_DEVICE_IP>:34522/ and login with your XLink Kai account

  11. Select "Metrics" and scroll down to "Found Consoles" and you should see your PSP device

  12. Select an available PSP game from the XLink Kai portal

  13. Join a game and have fun!

Playing Mario Kart Double Dash online with XLink Kai on Gamecube

Video Demonstration

GameCube online with psx-pi-smbshare

See this article on the NintendoDuo Tumblr page or the XLink Kai GameCube Guide for a detailed guide on "How to Take Your GameCube Online With a Raspberry Pi and psx-pi-smbshare".

Demos

Credits

Thx to the following:

psx-pi-smbshare's People

Contributors

georgewoodall82 avatar hedwiggggg avatar masont8198 avatar robcmo avatar teamxlink-dev avatar toolboc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

psx-pi-smbshare's Issues

[question] Is it possible to play games hosted on the Pi via OPL through XLink Kai?

I've converted all my PS2 games to ISOs for OPL, but in order to play over SMB, my PS2 (192.168.0.10) has to be on the same network as my samba server (192.168.0.8). With your image, can the Pi serve the games via SMB AND host the xlink server? I'm thinking it could work by hooking the PS2 ethernet directly to the Pi, and having the Pi on wifi. If that's the whole point of this, I apologize for the silly question. I'd just like to confirm it's possible before making a big change to my setup. Thanks!

Raspberry pi 4 update?

Can you update the image to be compatible with raspberry pi 4? I have the 2Gb model and it just black screens with the current image.

Feature? Read-Only filesystem

I've heard that the pi needs to be powered down propery. Could this be avoided if the pi mounts itself as read-only, and runs what it needs just in RAM?

how to change game for psp online with xlink kai?

when i change the game, the only way i mange to connect my pi with my vita is rebooting the whole rpi, is there a command that im missing to shutdown connection between vita and the pi?

also wanted to let you know that asus n13 usb adapter also works with this, THANK YOU VERY MUCH!

Error trying to save game configs (like Modes)

Ok, final issue, I swear.
Trying to save game configurations (triangle menu in OPL) produces an error "Error writing settings!", potentially because there's only reading permissions set?

Not working on multiple pi devices

I have tried your image on my my pi model b and it boots fine. After the first boot where it expands the file system and finalizes the setup it reboots and waits at the login prompt. When I connect to ps2 opl and setup my network settings from that side it continuously gives error 300 or 301. I have checked the network settings over and over. I have tried 3 different cat5 cables plus a crossover cable all cables checked using a network lead tester. I just finished crimping a new lead that I've made myself to be short about 10cm (checked working with cable tester) and that makes zero difference. I have tried this on 2 x PS2 FAT devices and a PS2 Slim and it still errors. Also tried writing the image to multiple SD cards with the same resuts on all PS2 devices. I then tried the image on my Raspberry Pi 400 and Zero 2 and they wont even boot the image no matter the SD card (Both devices work absolutely fine with other os images). I am pulling my hair out trying to work out what is going wrong or what I have done wrong but I've been through the tutorial serveral times and it always end the same way. The tutorial gets it working but it does not work from my end.

Can you please offer any advice? Is there a prebuilt image for the pi 4/400/zero/zero2 I can try just to make sure smb share is working ?

Blackscreen when installing flashing to Pi4

I'm following the Readme.md and the YouTube video linked therein, and after flashing the latest Release Image to my 64gb microsd card, I install it in the my Pi4 and all I get is a blackscreen on boot. I even tried turning on safeHDMI setting in config. Not sure what's wrong. Does this just not work with Pi4?

psx-pi-smbshare on lakka

Hi,

Can you make this work on top of lakka on rpi3? I don't want to waste a pi 3 just to use smbshare. Thanks!

KP

POPStarter LOGON FAILED

I'm not sure it's POPS fault or configuration but checking other SMB compatible ways they work. OPL lists and loads games just fine (even better than my nano router). And this is RPi 1 B+. My config:

IPCONFIG.DAT:
192.168.2.2 255.255.255.0 192.168.2.1
SMBCONFIG.DAT:
192.168.2.1 share

With or without space at the beginning makes no difference.
IMG_20221014_174617

Edit: I fixed it removing :445 from 192.168.2.2:445 255.255.255.0 192.168.2.1.

Add Raspberry Pi 4 Support/image

First, thank you so much for this tool!

Now is it possible to add support to Pi4? I'm having a hard time setting it up. I saw the link stating some of the commands but on the latest version of linux it doesn't seem to boot the smb share.

Please let me know if I can help testing things out, I recently got a Pi4 2gb of ram just to do this. I'm using multiple PS3 and the gigabit ethernet + USB3 would go a long way.

[not a issue] ps3netsrv++ doesn't work properly and doesn't start at boot

Hi,

I've noticed that ps3netsrv doesn't work properly with webMAN-mod. The fix it's to compile it again in the RPi and to replace the 'ps3netsrv++' file with the new, but it only compiles in 64-bit system and this distro is a 32-bit. So here is my solution.

  1. Install the latest Raspberry Pi OS Lite 64bit with ssh and wifi configuration. You can do it with the official raspberry tool.
  2. Download the latest ps3netsrv from aldostools webMAN-MOD github. We're interested in the "ps3netsrv" folder inside the zip.
  3. Create a text file, write "ps3netsrv++ /media/sda1/" (in the case you want to share your USB). Rename this text file to "ps3.sh"
  4. Turn on the RPi. With FTP, copy the "ps3netsrv" and "ps3.sh" folder to /home/pi/
  5. ssh the rpi and execute

sudo apt-get install iptables
sudo apt-get install build-essential

  1. Execute setup.sh as said in the README
  2. ssh the pi again, cd to the "ps3netsrv" folder and execute

sudo make
If everything goes okay, now you will see a "ps3netsrv" file if you execute "ls -a"
sudo pkill ps3netsrv++
sudo cp ps3netsrv ps3netsrv++
sudo cp ps3netsrv++ /usr/local/bin
crontab - e
add at the end of the file "@reboot sudo bash /home/pi/ps3.sh"
CTRL+O, CTRL+X
sudo reboot

And that's all. Please, if there are any errors or there's anything that can be improved, tell me. I just want to help. Maybe this fix is obvious to everyone, but I have 0 knowledge on linux and compilation.

I hope this helps anyone, specially the noob people who want a easy fix.

Thanks for your work,

Kevin S. D'Ambrosio

External HD Power Issue

Setup is great however please add in the readme that if attempting this with an external hard drive to use a powered USB Hub to accommodate the adequate power needed to function properly with the Raspberry Pi. Thank you :)

SMB Error 300 after reboot

I've setup SMB server on Rpi 4, by using psx-rpi-smbshare and when i first connect to shared folder it worked fine, but when i save config and relaunch OPL i got error 300 no matter what i did. The only way to fix it is to delete network config file and always manually adjust settings for SMB. I've tested this on latest stable and prerelease version, also on both ps2-home beta builds.

Question: Direct way to access second partition?

Not sure if this is an issue on my end, or intended behavior, but I haven't been able to access the leftover partition from an sd card reader to transfer files. i see its there in disk management, and i can connect to it through network, but i cant access or mount it in any way directly. since over wifi, I'm not getting more than 1mb/s in transfer speeds, would it work to just connect the pi to my pc directly through ethernet?

Asking since I'd need to order an adapter first to try myself

Found a fix to make psx-pi-smbshare work with pi4 and latest 64-bit raspberry pi os

Recently, I installed the 64-bit version of raspberry pi os (with desktop interface) to my pi 4, 4GB model.

I ran the below script:

cd ~

wget -O setup.sh https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup.sh

chmod 755 setup.sh

sudo ./setup.sh

Followed the main page to setup the PS2 OPL network settings, and it wouldn't connect to the pi 4! I knew it did in the past.

After some more research on google and trying things out hit or miss, I found the solution.

Do the following:

sudo nano /etc/samba/smb.conf

After that, add the following code under [GLOBAL] section:
min protocol = NT1

Save the file, and then restart samba service by:
sudo systemctl restart smbd

Now go back to your OPL and it should work! Hopefully toolboc sees this and implements into the master!

Pi 4 memory size?

Hello,

How many gigs of memory is best for Raspberry Pi 4 Model B to use with psx-pi-smbshare
There are next options: 1GB, 2GB, 4GB, 8GB.

What I have to choose?

OPL can see the share, but won't list files.

I've tried using the latest OP: 1.0.0, as well as the latest nightly.
I'm using the provided image, on a raspberry pi 3, and the only thing I've done is update the installed packages.

I've double-checked my network settings, and everything seems fine,
The pi has wifi access, and is connected via Ethernet to the ps2 (slim)

If I delete the share name, and re-connect, OPL can see that there's a share called 'share' and allows me to open it.
Once I open it, there are no games listed.

I've double-checked via putty, and connected to the share in windows, the USB drive has been mounted properly.
(I see the files in \192.168.0.225\share\DVD Both the ISO and Games.bin)

I've even tried unmounting the Drive, and placing ISO's directly in /share/DVD on the rpi.

Same result, (I removed the files from /share/dvd afterwards)
I tried adjusting the samba settings, thinking OPL's version was too new, and added:
max protocol = NT1
min protocol = CORE
ntlm auth = yes

Then restarted samba, No change,
It also looks like samba resets my settings on reboot.

I've also tried using the exact same USB drive, plugged directly into the PS2, and it was able to read the files just fine.
So I don't think it's a directory/ file name issue.

I've also tried manually entering the username/password for the pi in OPL network settings.
No luck

Any ideas?

Add Interface for Downloading ISOs from Archive.Org

Archive.org has a convenient cache of PS2 ISOs available here and here. It would be nice to surface a web server that allows you to retrieve selections from these repos and dump them into /share/DVD. Allowing for an online service of sorts if you will, that you can interact with over port 80.

This is totally possible using a combination of:

  • ia (obtain backup ISOs / bins)
  • p7zip-full (extract above ISOs /bins)
  • ccd2iso (convert bin formatted CD images to iso format)

From there, just make sure CD images are moved to the CD directory and DVDs are moved to the DVD directory at /share

I will not develop this feature due to reasons, but this would be a gamechanger. Anyone up for the task?

P.S. We might as well allow for configuration of everything else (WiFi, share permssions, FTP forwarding) through a web portal.

Spiked CPU usage from Kaiengine on Pi Zero W

When I look at htop I see that the kaiengine process is using nearly 100% CPU.
image

I've has similar issues in the past (not using psx-pi-smbshare) and it was due to the way I had launched the process to run in the background. When I ran the process in the foreground in my shell session, CPU usage was closer to 11%. I was also able to start kaiengine in a screen session and detach, and usage stayed low.

I realize this may be low on the priority list, but just wanted to share my findings and see if I can assist in coming up with any solutions. I imagine running at 100% CPU over time won't be good for the Pi Zero's longevity.

not an issue just a question related with xlink kai and EW-7811Un

i see that on the psp guide for xlink kai have been tested with a usb wifi adapter model EW-7811Un, i wanted to ask if this same adapter could work for linking psp to the pc with the pc version of xlink kai, im asking here cuz i dont know where else to ask it. thanks for your time

something seems to be broken with last update maybe, with psp and xlink kai online

just updated to your latest version and it takes me a few reboots of my rpi to connect with wifi signal, has been hapening since i updated it.

also, when i finally connect to my wifi i do all the steps to try play online with xlink but for some reason doesnt show that im broadcasting output, when i boot the game it broadcast cast signal for 1 or 2 seconds, but after that it doesnt broadscast signal anymore and for that reason i cannot find matches nor host with xlink kai.

dont know if this is a software or hardware related but it started happening after i update it.

Flash drive won't mount?

I'm trying to get this software to work properly with my Pi 3 Model B+ and a PNY 64 GB USB 3.0 flash drive so I can play games off the flash drive using OPL (ver. 1815) on my slim PS2. However, for whatever reason, the flash drive doesn't appear to get mounted. I found this out after browsing the share folder through SMB and then browsing the same folder directly on the Pi's microSD card plugged into my laptop. In both those cases, the DVD and CD folders were empty while the ART folder contained files for Tobal 2 and X - Unmei No Sentaku. On my flash drive, the DVD and CD folders contain 20 ISOs and 1 ISO respectively, while the ART folder contains the art for all those games. My Pi detects the flash drive as a USB device, as lsusb returns Bus 001 Device 006: ID 154b:00d2 PNY, but for some reason, the microSD card's share folder is shared instead. Why is this happening? I've tried all 3 formats compatible with Windows so far for my flash drive: FAT32, NTFS, and exFAT. Thanks.

How to connect to web interface of game managers?

Hi,
usually I just have to enter the IP of the PS3 to connect to the web interface of the game managers (webman Mod or Sman). Now, the PS3 is behind the router and seem to be not accessible.
What do I have to do to reach the web interface of the game managers mentioned above?

Prevent override of smb.conf on start

Hey there, thanks for this project, it's been very useful for me!

As I learnt more about the Raspberry Pi ecosystem, I started to tweak the configuration files, including the /etc/samba/smb.conf to add more shared folders. However, upon restart, the config is overwritten by the automount-usb.sh or samba-init.sh scripts (depending on the setup running). I was able to "workaround" this by modifying these files on my own Pi.

I was wondering if it'd be safe not to override the /etc/samba/smb.conf file if it exists and log about it as the default behaviour.

If you're interested, I can try to contribute to the change as an opportunity to learn and for the Hacktoberfest event.

Is exfat usb automatic mount supported?

I was going to do a quick usb test with my pi4 and I had a game on a external 256gb usb 3.0 thumb drive, formatted as exfat.

In OPL, the SMB share error was 303.

I used a usb flash drive 2.0 that was 8gb, formatted as fat32, and all games were detected fine, no smb share error.

How do I use a exfat usb thumb drive for ps2 use and smb share?

Likewise, is NTFS supported? The readme file on main github doesn't go over these exact details.

UPDATE:

NTFS drive works fine just not exfat.

Disabling DHCP server

Is there instructions on how to disable the DHCP server and have the pi get an address from my router? I would be nice to access the pi from my local network and not have it dedicated to just my PS2. Or perhaps have an 2nd image with the DHCP server disabled for local network use as well without causing issues making a random second subnet that just knocks out many devices on a LAN.

VMC saves take too long without "strict sync = 0" where is smb.conf?

any way to disable "strict sync" in this smb share?
I have plenty of games, only own one ps2 memory card (the one with freemcboot).
I'd love to save my games directly into the SMB thumbdrive connected to the raspberry. The thing is it takes a LOT of time to save using VMC.
I've read that people set "strict sync = 0" in their SMB configuration and that makes saving really fast. The thing is there is no SMB.config in the SD card used by the raspberry. Where could I possibly insert the line "strict sync = 0" in this setup?

ansible-playbook version for more Linux installs & greater library mounts

First off. THANK YOU. This is a so so helpful. I've been in fear of my kid's friends stealing my PS2 MC2SDIO card. Now I can have it safely away on my Office's PS2 instead of the game room's.

I mentioned on Tito's YT I might try my hand at converting these shell scripts to ansible-playbooks so non-debian Linux PCs & SBCs can easily install it too (Fedora, Arch/Manjaro/SteamOS - from my Steam Deck, Alpine, etc.). But Life tends to eat my hobby plans.

I think the big challenge for making it a playbook will be a XLink Kai portions.

If converted to a playbook, it would also make multiple mount management much easier (sorry for the alliteration). It would then a simple script to 1. ensure ansible-core is installed; 2. run the psx-samba.yml

Cheers. M.

exfat compability?

In order to avoid having to split backups over 4gb in fat32 and prevent too many unneeded writes in ntfs, I reformated my thumbdrive to exfat, resulting in an error 303: cannot open smb share in OPL. It also can't be accessed through network.

Is exfat simply not supported, or should I try to reformat again/use a special formatter to make it work?

Drive is a sandisk ultra flair with 128gb

edit: having tried another stick, it seems to be exfat not being supported.

Importing to Raspberry Pi Zero (NOT W)

I want to use SPI-LAN W5500(W5100) module on Raspberry Pi Zero. (NOT W)

I think v1.9 release has no W5100 module, making it is difficult to me implement SPI-LAN on Zero.
Please distribute the image without removing the W5100 module.

ps1 games not showing in opl

i had to go to setting in opl then goto Eth path prefix and type "share". after that i can see my ps1 games. my problem is solved....
i havent tried adding any ps2 game yet maybe they will not show in opl now
and i have a suggestion instead of naming samba share "share" use "ps2smb" instead it will be better maybe.... thanks....

Request For Help For Making Sure Game Cover Art Displays Properly On OPL Using 'psx-pi-smbshare'

I am using OPL Version 1.0.0. This came with the FreeMcBoot enabled memory card I bought on Amazon.

My console is the Slim PS2 model (not sure of the model number). FreeMcBoot is on version 1.966, and this is loaded via the memory card.

I am using a Seagate Portable Drive 1TB via SAMBA with Raspberry Pi via this GitHub project and related YouTube video:

I just finished setting up 'psx-pi-smbshare' with an old Raspberry Pi 3B+ and it works awesome to share games directly over ethernet. This solved my previous workflow issue of having to have an old Dell Optiplex I've used as a file server to host the games over SAMBA share.

Anyway, I'm using the same exact HDD drive and it works just fine in terms of loading games.

However, the icing on the cake that I'm trying to work on is to get the cover art to work.

I'm using Fedora Linux on my various machines (specifically Fedora Server), so I basically did the following tasks to get some cover art:

  • I found this particular Internet Archive dump page of all the PS2 cover art from one user:
  • https://archive.org/download/ps2-opl-cover-art-set
  • I then proceeded to download this zip onto my Fedora Server laptop
  • I then plugged in the same external HDD mentioned before into my Dell Optiplex file server
  • I then mounted the HDD via 'sshfs' to remotely mount the drive as a regular user onto my current Fedora laptop
  • I pasted the contents of the 'ART' folder DIRECTLY into the corresponding 'ART' folder on the HDD.
  • I then examined the file permissions and noticed that most files in other directories have the following permission:
  • -rw-r--r-- (Aka, this means '0644' file permissions in terms of Linux file permissions)
  • With this in mind, I assumed that this had to be the case for the contents of the 'ART' folder as well to make sure that the file permissions were '0644'.
  • I also noted that the 'ps2player' user and 'sambashare' group member had access to the other folders and files on the same drive as well
  • With this in mind, I used the following two commands to make sure that the cover art images within the "ART" folder had the correct permissions and ownership so that OPL can do its thing to load the cover art images properly (NOTE: The reason I made sure I also had a user called 'ps2player' have access to this is that I also want it to STILL work for my Dell Optiplex SAMBA share in case I still ever want to host PS2 games via SAMBA from that machine. Also, I used this completely separate guide to do that process initially, sharing here for anyone else in case they're interested as its a good guide: "https://www.vikaskumar.org/2020/10/02/ps2-freemcboot-smb.html")

While in the correct directory

chown ps2player *
chown :sambashare *

  • I then proceeded to turn the Raspberry Pi on and the PS2 on
  • I then opened OPL, and then went into the settings and enabled cover art, automatic refresh for the images, and kept the default theme.
  • I then saved my settings accordingly.
  • I then restarted the PS2 completely, but still receive no cover art.

How to revert changes?

I installed psx-pi-smbshare with this commands:

cd ~
wget -O setup.sh https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup.sh
chmod 755 setup.sh
sudo ./setup.sh

... on a raspberry pi 4 running Twister OS (practically Raspberry OS with preinstalled stuff). I'm an amateur with linux operating systems, but I'm not sure how I should go about reverting the changes psx-pi-smshare made without carefully revising what setup.sh does.
Is there no easy way to revert back or to uninstall psx-pi-smshare from my system? I couldn't find anything so far.
It would be useful if I encounter a problem later on, or if there are conflicts with something else on my system.

GSM Settings - "Error writing settings!"

Hey, i just installed your awesome tool on my RPI4. I've attached a NTSF-USB-HDD. It works with my PS2 so i can see my games :). Is there any chance to write the "per game gsm settings" to the hdd?
Cheers

./setup.sh stuck at Launching Xlink Kai

Hi.

My Pi has been set up with psx-pi-smbshare but whenever I try to update it and enter:

cd ~ wget -O setup.sh https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup.sh chmod 755 setup.sh sudo ./setup.sh

It gets stuck after:
Job for hostapd.service failed because the control process exited with error code. See "systemctl status hostapd.service" and "journalctl -xe" for details. Checking for XLink Kai updates Reading package lists... Done Building dependency tree Reading state information... Done xlinkkai is already the newest version (7.4.43-606669993). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Launching XLink Kai

(no an issue) is posible to add an automatic port forward for mobile carrier to use with xlink kai?

i dont know if this is even posible but the thing is, most of the time my isp is just plain bad and cant play online, however my mobile carrier (movistar) its better for online than my isp. the thing is that when i use mobile carrier to play online with xlink kai im not reachable which is normal since you cant open ports with mobile carriers. BUT someone said that i can bypass this using a vpn? if this can be added to your OS this can be a "portable"/self contained solution for xlink kai with almost everything automated for that part atleast, or maybe im overthinking, thanks for your time and awesome work. i use this for my xbox, ps2 and ps vita so far without problems.

Maybe this is something i should be asking on xlink kai now that i think of it

transfer from usb on rpi to xbox not working

today i tried transfer a game to og xbox and it didnt work, it said something about couldnt find name of smb or something among those lines, however if i disconnect the usb it shows what it is on the sd card of the rpi. tried putting usb on ntfs and fat32 and neither worked

ps3netsrv++ does not serve USB drives

Currently, ps3netsrv++ will only ever serve the share path hosted on the Micro-SD card at /share/. We should always serve the last mounted drive, i.e. if a USB drive is hot-plugged, ps3netsrv++ should serve the newly mounted drive. If USB a drive is removed and/or no drive is present, ps3netsrv++ should fall back to serving /share/.

(not an issue) automated/simpler process to play online psp games?

hello its me again, is there a simpler way to executed all this commands

sudo ifconfig wlan1 down
sudo ifconfig wlan1 up
sudo service hostapd stop
sudo iw wlan1 set type ibss
sudo iw wlan1 ibss join "SSID" "frequency"

without put in one by one?, some thing like making a file with all that commands and then put in command line something like "execute cod.txt" and it makes all those lines for me without writing it one by one?

[Minor issue] Root owns files I wish to edit for adding a power off button to PI 4B / Found a swap file by the name "/boot/.config.txt.swp"

EDIT: Added the code by setting a password. so stupid of me.

ORIGINAL MESSAGE:
So I have the PSX Pi smbshare running successfully on Pi 4b using the methods discussed here.

But I am trying to add a power off button via GPIO3 pin. For that, I need to add following command in the boot/config.txt file.

#shutdown button
dtoverlay=gpio-shutdown

But the file seems to be only writable by 'root' and everyone else can only read and execute.

Now I am not aware of this root user password. I tried the usual defaults like root, toor, raspberry, strawberry, etc. None worked..

Anyway to edit that file or if you can share that root's pw, that would be great. I have backed up the default config.txt file.

But would like to know I get a warning now upon opening the config.txt file.

E325: ATTENTION
Found a swap file by the name "/boot/.config.txt.swp"
owned by: root dated: Fri Jun 18 18:14:54 2021
file name: /boot/config.txt
modified: YES
user name: root host name: raspberrypi
process ID: 1359
While opening file "/boot/config.txt"
dated: Fri Jun 18 19:58:48 2021
NEWER than swap file!

So is it safe to delete this file? or is it part of PSX PI SMBSHARE?

Thank you for making this great tool!

psx-pi-smbshare not bootable (Pi 3 B)

Hallo

Wenn ich das Image mit balenaEtcher für meinen 'Raspberry Pi 3 Model B' flashen will, erscheint vorher den Hinweis 'no boot partition'.
Der Raspberry bottet dann nicht (immer rotes LED)
Was mache ich falsch?

Danke und Gruss

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.