|
| 1 | +# Stremio-RaspberryPi |
| 2 | + |
| 3 | + |
1 | 4 | ## **If you like the work and if you would like to get me a :coffee: :smile:** [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GH3YDCHZ36QN) |
2 | 5 |
|
3 | | -# Stremio-RaspberryPi |
4 | | - |
5 | | -## Steps to run Stremio in Raspberry Pi |
6 | | - |
7 | | -### Clone the git project |
8 | | -``` |
9 | | -git clone https://github.com/shivasiddharth/Stremio-RaspberryPi |
10 | | -``` |
11 | | - |
12 | | -### Make the scripts executable |
13 | | -``` |
14 | | -sudo chmod +x /home/${USER}/Stremio-RaspberryPi/scripts/installer.sh |
15 | | -sudo chmod +x /home/${USER}/Stremio-RaspberryPi/scripts/service-installer.sh |
16 | | -sudo chmod +x /home/${USER}/Stremio-RaspberryPi/src/server-launcher.sh |
17 | | -sudo chmod +x /home/${USER}/Stremio-RaspberryPi/src/client-launcher.sh |
18 | | -``` |
19 | | - |
20 | | -### Run the installer |
21 | | -``` |
22 | | -sudo /home/${USER}/Stremio-RaspberryPi/scripts/installer.sh |
23 | | -``` |
24 | | - |
25 | | -### After the installation, try opening the Stremio server and client manually using the following commands or use the Launcher Shortcuts created on the desktop |
26 | | -Open first terminal and run |
27 | | -``` |
28 | | -/home/${USER}/Stremio-RaspberryPi/src/server-launcher.sh |
29 | | -``` |
30 | | - |
31 | | -Open second terminal and run |
32 | | -``` |
33 | | -/home/${USER}/Stremio-RaspberryPi/src/client-launcher.sh |
34 | | -``` |
35 | | - |
36 | | -### After verification if desired, set Stremio to auto start on boot |
37 | | -There will be a minor delay ~1Min between the launch of Server Service and Client Service. This is to ensure that the Client starts after the Server. |
38 | | -Run the service installer |
39 | | -``` |
40 | | -sudo /home/${USER}/Stremio-RaspberryPi/scripts/service-installer.sh |
41 | | -``` |
42 | | - |
43 | | -Enable and start the service |
44 | | -``` |
45 | | -systemctl --user enable stremio-server.service |
46 | | -systemctl --user enable stremio-client.service |
47 | | -systemctl --user start stremio-server.service |
48 | | -systemctl --user start stremio-client.service |
49 | | -``` |
50 | | - |
51 | | -### Fix for screen tearing |
52 | | -Open a terminal and run |
53 | | -``` |
54 | | -sudo raspi-config |
55 | | -``` |
56 | | -In that, Navigate to Advanced Options -> Compositor -> xcompmgr composition manager -> Choose “No” |
57 | | - |
58 | | - |
59 | | -### Note |
60 | | - - If you have closed or stopped the background Stremio services, then if you wish to start them again, you can use the service desktop shortcuts. |
61 | | - - You can manually start the Stremio server and client using the Stremio Launcher desktop shortcuts. |
62 | | - - If your cursor is stuck after running ```systemctl --user start stremio-server.service```, press Ctrl+C on keyboard to break free. |
63 | | - - You can access Stremio on Apple iPads and iPhones with the server running on Raspberry Pi. Refer to https://www.youtube.com/watch?v=cYmpVh_GWJg |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +********** |
| 11 | +## Installation Using Binaries |
| 12 | +********** |
| 13 | +1. Download the Zip files containing the binaries from the Releases section. |
| 14 | +2. Place it in the /home/${USER}/ directory. |
| 15 | +3. Add Debian sources as given below: |
| 16 | + Buster Users: |
| 17 | + ``` |
| 18 | + echo "deb http://ftp.us.debian.org/debian/ buster main contrib non-free" >> /etc/apt/sources.list |
| 19 | + echo "deb http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list |
| 20 | + sudo apt-get update |
| 21 | + ``` |
| 22 | + Bullseye Users: |
| 23 | + ``` |
| 24 | + echo "deb http://ftp.us.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list |
| 25 | + echo "deb http://deb.debian.org/debian bullseye main contrib non-free" >> /etc/apt/sources.list |
| 26 | + sudo apt-get update |
| 27 | + ``` |
| 28 | +4. Change directory as given below: |
| 29 | + 64-Bit Users: |
| 30 | + ``` |
| 31 | + cd /home/${USER}/Stremio-4.4.142-arm64-64-bit/ |
| 32 | + ``` |
| 33 | + 32-Bit Users: |
| 34 | + ``` |
| 35 | + cd /home/${USER}/Stremio-4.4.142-armhf-32-bit/ |
| 36 | + ``` |
| 37 | +5. Perform the installation as given below (Replace x.x.xxx with the version numbers on the file): |
| 38 | + 64-Bit Users: |
| 39 | + ``` |
| 40 | + sudo apt-get install ./libfdk-aac1_0.1.6-1_arm64.deb ./stremio_x.x.xxx-1_arm64.deb -f |
| 41 | + ``` |
| 42 | + 32-Bit Users: |
| 43 | + ``` |
| 44 | + sudo apt-get install ./libfdk-aac1_0.1.6-1_armhf.deb ./stremio_x.x.xxx-1_armhf.deb -f |
| 45 | + ``` |
| 46 | +6. Now you should have Stremio installed. Grab some snacks and enjoy the show. |
| 47 | +
|
| 48 | +
|
| 49 | +
|
| 50 | +********** |
| 51 | +## Building from source |
| 52 | +********** |
| 53 | +1. Add Debian sources as given below: |
| 54 | + Buster Users: |
| 55 | + ``` |
| 56 | + echo "deb http://ftp.us.debian.org/debian/ buster main contrib non-free" >> /etc/apt/sources.list |
| 57 | + echo "deb http://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list |
| 58 | + sudo apt-get update |
| 59 | + ``` |
| 60 | + Bullseye Users: |
| 61 | + ``` |
| 62 | + echo "deb http://ftp.us.debian.org/debian/ bullseye main contrib non-free" >> /etc/apt/sources.list |
| 63 | + echo "deb http://deb.debian.org/debian bullseye main contrib non-free" >> /etc/apt/sources.list |
| 64 | + sudo apt-get update |
| 65 | + ``` |
| 66 | +2. Clone the stremio-shell using: |
| 67 | + ``` |
| 68 | + git clone --recurse-submodules -j8 git://github.com/shivasiddharth/stremio-shell.git |
| 69 | + ``` |
| 70 | +3. Change directory using: |
| 71 | + ``` |
| 72 | + cd /home/${USER}/stremio-shell/ |
| 73 | + ``` |
| 74 | +4. Install dependencies using: |
| 75 | + ``` |
| 76 | + sed 's/#.*//' ./Requirements.txt | xargs sudo apt-get install -y |
| 77 | + ``` |
| 78 | +5. Make using: |
| 79 | + ``` |
| 80 | + qmake |
| 81 | + ``` |
| 82 | +6. Build binaries using: |
| 83 | + ``` |
| 84 | + make -f release.makefile |
| 85 | + ``` |
| 86 | +7. Prepare server using: |
| 87 | + ``` |
| 88 | + cp ./server.js ./build/ && ln -s "$(which node)" ./build/node |
| 89 | + ``` |
| 90 | +8. Run Stremio using: |
| 91 | + ``` |
| 92 | + ./build/stremio |
| 93 | + ``` |
| 94 | + or |
| 95 | + ``` |
| 96 | + /home/${USER}/stremio-shell/build/stremio |
| 97 | + ``` |
| 98 | +
|
| 99 | +
|
| 100 | +
|
| 101 | +********** |
| 102 | +## Note |
| 103 | +********** |
| 104 | +1. After the ```sudo apt-get update``` command for adding sources, if you get a key error like shown below: |
| 105 | +  |
| 106 | + Fix the issue using (Replace XXXXXXXXXXXX with the first alphanumeric character key): |
| 107 | + ``` |
| 108 | + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXXXXXX |
| 109 | + ``` |
| 110 | +2. For remote access of server, go into setting and select your IP address from the **Enable remote HTTPS connections** dropdown menu as shown below. |
| 111 | +  |
| 112 | +3. For accessing the Stremio server remotely and securely (Expecially from Apple devices), use the **Streaming HTTPS endpoint:** link as shown below. |
| 113 | +  |
0 commit comments