Hi!
I am using a raspberry pi 4 with tethered internet and libreELEC (it is far easier than raspbian os and when I did it there was no openelec for pi4), in a different room from the rooter.
Since I haven't found a tutorial here specifically for it, I am leaving one here.
I will be using a mac, LibreELEC, a PS3 slim, a raspberry Pi 4 2GB and a crossed ethernet cable (don't know if it needs to be crossed).
There are basically 2 ways to connect with a pi with internet access:
Connection A) PS3 -> wireless/ethernet -> ROUTER -> wireless/ethernet -> Pi4
Connection B) PS3 -> ethernet -> Pi4 -> wireless -> ROUTER
You either connect to the router or to the pi directly. In my situation, being far away from the router, I have connected my PS3 slim to the Pi4 with a crossed ethernet cable, and left the Pi4 connected wirelessly to the router. To get internet to the PS3, I have enabled ethernet tethering in the Pi4, which sends the wireless retrieved internet to the ethernet port.
This tutorial is for the option B).
If this LibreELEC build is the first install, it is far easier to configure, since it lets us make most configurations at the first boot.
Start by following aldotools guide for openElec-OS - it is very similar to LibreELEC (a fork of the same OS but with more people working on it) - I will leave here a modified version for libreelec.
If aldotools and mods authorise this, here it goes:
SECTION 1: Using Raspberry Pi with installed LibreELEC-OS as a Streaming Device for webMAN & Co
A) Preparations
A1) Format USB-HDD with NTFS and create a folder named "PS3NETSRV" in it's root directory
A2) Inside "PS3NETSRV" create these folders: "BDISO", "DVDISO", "GAMES", "PS3ISO", "PSPISO", "PSXISO" and fill them with your games and videos.
A3) Shutdown Pi > Connect USB-HDD with Pi > Start Pi
A4.1) If this is the first boot, you should define the user and password, make a manual IP address, enable SSH and samba. If you do this now, you can jump steps A5, A6,A7,A8-9.
A4.2) Exemplary assumption:
___ Router-IP:
192.168.1.1 (check what's your Router-IP)
___ selected Pi-IP:
192.168.1.
123 (the
last number must be in the range of 2-254)
A5) Go to "Configuration (sprocket symbol) > LibreELEC > Connections > #wireless_network_you_have# > edit > IPv4 >" and set it up like this (change the values to yours (see A4.2)):
IP Address Method: Manual
IP Address:
192.168.1.
123
Subnet Mask: 255.255.255.0
Default Gateway:
192.168.1.1
A6) Use "SAVE"-button to save these settings
A7) Go to "Configuration (sprocket symbol) > LibreELEC > Services" and activate 'Samba' and 'Auto-share external drives'
A8-9) Go to "Configuration (sprocket symbol) > LibreELEC > Services > SMB client" and set 'Workgroup' to the same as your PC
A10) Reboot LibreELEC
A11) Enter "\\
192.168.1.
123" in address-bar of windows explorer and u should see the shared folders of Openelec and the connected USB-HDD
A11.1) On a mac libreelec will show up on the shares tab on a finder window; if it doesn't work, install paragon ntfs and paragon extfs, reboot both and it should work.
A12) Download and extract "
ps3netsrv-pi" -> copy "ps3netsrv" to the shared "Userdata"-folder
B) Install "ps3netsrv" and make it autostart
B1) Use '
Putty' on windows or the "terminal" on mac (or another SSH client) to login to LibreELEC (IP=
192.168.1.
123 / Login=root / password=libreelec or the password you defined in A4.1)
On a mac or linux, open the console and write: "ssh
[email protected]" and enter the password "libreelec" or the one you defined in step A4.1.
Code:
B2) Enter "cd /media"
B3) Enter "ls" and you should see your USB-HDDs name. Note it ! (for me it's 'sdb1-ata-TOSHIBA_MQ01ABB2' and i'll use it further on in the tutorial as an example)
B4) Enter "nano /storage/.config/autostart.sh"
B5) Copy & Paste the following code (replace 'sdb1-ata-TOSHIBA_MQ01ABB2' with your USB-HDDs name (see B3)):
(
/storage/.kodi/userdata/ps3netsrv /media/sdb1-ata-TOSHIBA_MQ01ABB2/PS3NETSRV 38008
) &
B5) Press CTRL-X > answer the following question with Y > press ENTER
B6) Enter "reboot"
B7) IF YOU ARE USING THE OPTION "CONNECTION B" OF THIS TUTORIAL (WITH ETHERNET TETHERING) -time to ENABLE ETHERNET TETHERING
B7.1 - with putty or console in mac/linux, connect through ssh to pi4.
B7.2 - write: "cp /etc/connman/main.conf /storage/.config/connman_main.conf"
B7.3 - Now edit the new file and add "ethernet" to the list of tethering technologies:
[…]
TetheringTechnologies = wifi, ethernet
[…]
B7.4 - save and reboot
B7.5 - At this point write on the ssh console/putty:
connmanctl enable ethernet
connmanctl tether ethernet on
B7.6 - connect the ps3 to the pi4 with a crossed ethernet cable, and on the ps3, go to network and connect wired.
B7.7 - you should be able to access internet on the ps3 through the pi4 now.
C) webMAN-Configuration
C1) At PS3 go to "webMAN-settings" > click on the first tab "Search content" if it is closed > Check "Activate Streaming at PS3NETSRV#x" > Enter '
192.168.1.
123' next to it > Save > Reboot PS3.
C2) If u can't see your games/vidoes under "MyGames" do a XML-Scan and/or raise time settings in webMAN-settings
D) Updating 'ps3netsrv'
D1) Copy new "ps3netsrv"-version to the shared "Userdata"-folder (see A11/A12)
D2) Reboot Openelec
Notes:
- Because the system-filesystem of Openelec is 'read-only' we can't simply place 'ps3netsrv' in '/usr/local/bin' like we do in SECTION 2.
_ Therefore i've choosed '/storage/.kodi/userdata' as an (not perfect) alternative.
- If you see more then one possible USB-HDDs name in step B3 (because your USB-HDD has more than 1 partition or there are other USB-devices connected to Pi) and you are not sure whats the correct one, then us "cd [name]" and then "ls" to find "PS3NETSRV" folder. If you've found it use [name] in B5