diff --git a/README.md b/README.md index c5a610a..a1104c3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ SMB sharing for Multiman and Open Playstation Loader on Raspberry Pi ## How it works -psx-pi-smbshare is a preconfigured Raspbian based image for Raspberry Pi 1, 2, and 3. It runs a [Samba](https://en.wikipedia.org/wiki/Samba_(software)) share, a pi-compatible build of [ps3netsrv](https://github.com/dirkvdb/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](/setup.sh). A pre-supplied [image](https://github.com/toolboc/psx-pi-smbshare/releases/download/v1.1/psx-smbshare-raspbian-stretch-lite.img) can be applied directly to a Micro-SD card using something like [etcher.io](https://etcher.io/). The image will expand to use the full available space on the SD card when the OS is first booted. +psx-pi-smbshare is a preconfigured Raspbian based image for Raspberry Pi 1, 2, and 3. It runs a [Samba](https://en.wikipedia.org/wiki/Samba_(software)) share, a pi-compatible build of [ps3netsrv](https://github.com/dirkvdb/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](/setup.sh). A pre-supplied [image](https://github.com/toolboc/psx-pi-smbshare/releases/download/v1.2/psx-smbshare-raspbian-stretch-lite.img) can be applied directly to a Micro-SD card using something like [etcher.io](https://etcher.io/). The image will expand to use the full available space on the SD card when the OS is first booted. An [Xlink Kai](http://www.teamxlink.co.uk/) client is also included and accesscible 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, Xbox, Xbox 360, and Gamecube. Just connect the ethernet cable to the device and access the Xlink Kai Service over Wi-Fi with a smart phone, tablet, or computer. @@ -20,7 +20,7 @@ psx-pi-smbshare supports an optional ability to route traffic from the ethernet * Micro-SD Card (8GB+ suggested) ## Flash the image -Download the latest [psx-pi-smbshare release image](https://github.com/toolboc/psx-pi-smbshare/releases/download/v1.1/psx-smbshare-raspbian-stretch-lite.img) and burn it to a Micro-SD card with [etcher.io](http://etcher.io) +Download the latest [psx-pi-smbshare release image](https://github.com/toolboc/psx-pi-smbshare/releases/download/v1.2/psx-smbshare-raspbian-stretch-lite.img) and burn it to a Micro-SD card with [etcher.io](http://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. @@ -48,6 +48,12 @@ With a wireless network configured, you should be able to access the SMB share b 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 +USB Drives are available on the SMB Share @ \\SMBSHARE\share\USB\_ + ## Configuring for use with MultiMAN on PS3 ** Prequisites ** @@ -141,6 +147,31 @@ Don't forget to select "Save Config" when you return to "Settings" 6. Launch Halo 2 and select "System Link" 7. Join a game and have fun! +## Playing PSP games online with Xlink Kai on PSP +** Prerequisites ** +* A Wifi capable PSP system +* 1 external wifi dongle for RPi 2/3 or 2 external wifi dongles for RPi 1 + +1. Burn the [latest psx-pi-smbshare image](https://github.com/toolboc/psx-pi-smbshare/releases) 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"](https://github.com/toolboc/psx-pi-smbshare#configuring-wireless-network) +4. Configure the PSP to connect to "XlinkKai" SSID when the pi has booted using Password `XlinkKai` +5. Vist the Xlink Kai service running @ http://smbshare:34522 or http://:34522/ and login with your Xlink Kai account +6. Select an available PSP game from the Xlink Kai portal +7. Start the game on your PSP and look for LAN play settings +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 + +1. Burn the [latest psx-pi-smbshare image](https://github.com/toolboc/psx-pi-smbshare/releases) 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"](https://github.com/toolboc/psx-pi-smbshare#configuring-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 + # Credits Thx to the following: * Jay-Jay for [OPL Daily Builds](https://github.com/Jay-Jay-OPL/OPL-Daily-Builds) diff --git a/automount-usb.sh b/automount-usb.sh index 3d1e5a3..cda9fe4 100644 --- a/automount-usb.sh +++ b/automount-usb.sh @@ -49,5 +49,5 @@ EOF # Make script executable sudo chmod +x /usr/local/bin/automount -# reboot -sudo reboot \ No newline at end of file +# reboot to take effect +#sudo reboot \ No newline at end of file diff --git a/setup.sh b/setup.sh index 56cdb10..b4097fb 100644 --- a/setup.sh +++ b/setup.sh @@ -14,6 +14,8 @@ # This setup should work fine out the box with OPL and multiman # Per default configuration, the smbserver is accessible on 192.168.2.1 +#Working directory +cd /home/pi # Update packages sudo apt-get -y update @@ -60,14 +62,13 @@ sudo cp ps3netsrv++ /usr/local/bin # Install wifi-to-eth route settings sudo apt-get install -y dnsmasq -cd ~ -wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/wifi-to-eth-route.sh -O ~/wifi-to-eth-route.sh -chmod 755 wifi-to-eth-route.sh +wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/wifi-to-eth-route.sh -O /home/pi/wifi-to-eth-route.sh +chmod 755 ./wifi-to-eth-route.sh # Install setup-wifi-access-point settings sudo apt-get install -y hostapd bridge-utils -wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup-wifi-access-point.sh -O ~/setup-wifi-access-point.sh -chmod 755 setup-wifi-access-point.sh +wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/setup-wifi-access-point.sh -O /home/pi/setup-wifi-access-point.sh +chmod 755 ./setup-wifi-access-point.sh # Install Xlink Kai wget http://cdn.teamxlink.co.uk/binary/kaiEngine-7.4.31-rev606.headless.ARM.tar.gz @@ -75,7 +76,7 @@ tar -xzvf kaiEngine-7.4.31-rev606.headless.ARM.tar.gz sudo cp kaiEngine-7.4.31/kaiengine /usr/local/bin sudo mkdir /root/.xlink -cat <<'EOF' > ~/launchkai.sh +cat <<'EOF' > /home/pi/launchkai.sh while true; do /usr/local/bin/kaiengine sleep 1 @@ -85,8 +86,8 @@ EOF chmod 755 launchkai.sh # Install USB automount settings -wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/automount-usb.sh -O ~/automount-usb.sh -chmod 755 automount-usb.sh +wget https://raw.githubusercontent.com/toolboc/psx-pi-smbshare/master/automount-usb.sh -O /home/pi/automount-usb.sh +chmod 755 ./automount-usb.sh sudo ./automount-usb.sh mkdir -m 1777 /share/USB @@ -96,5 +97,9 @@ mkdir -m 1777 /share/USB # Start services sudo /home/pi/wifi-to-eth-route.sh +sudo /home/pi/setup-wifi-access-point.sh ps3netsrv++ -d /share/ -sudo kaiengine \ No newline at end of file +sudo kaiengine + +# Not a bad idea to reboot +sudo reboot \ No newline at end of file