- Install MINIBIAN
- Change root password using
passwd
to1%T9gjMkgaIn
apt-get update
to update package listsapt-get install vim sudo htop rpi-update raspi-config usbutils dosfstools -y
to install some essentials- Run
raspi-config
:- Choose
7. Overclock
thenPi2
- Choose
1. Expand Filesystem
- Choose
Finish
thenYes
to reboot
- Choose
rpi-update
to update firmware- Run
reboot
apt-get upgrade -y
to upgrade packagesapt-get dist-upgrade -y
to ugprade distroapt-get install firmware-linux-nonfree wireless-tools wpasupplicant -y
to install wireless firmwareadduser cinema
to add user with namecinema
and passwordp!303$LhZVpN
usermod -G sudo cinema
to add usercinema
to sudo group- Then run
sudo apt-get clean
- Finally reboot and login as
cinema
- Make directory
Downloads
, thencd Downloads
mkdir 8188eu-driver
, thencd 8188eu-driver
wget https://dl.dropboxusercontent.com/u/80256631/install-8188eu.tgz
tar -zxvf install-8188eu.tgz
./install-8188eu.sh
- Run
sudo vim /etc/network/interfaces
- Add the following at the bottom of the file (press
i
):allow-hotplug wlan0 auto wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
Now the RPi will connect automatically to available Wi-Fi networks. - Now add the following:
iface usb0 inet static address 192.168.42.42 netmask 255.255.255.0 network 192.168.42.0 broadcast 192.168.42.255
RPi can now connect through USB tethering from your Android phone. PressESC
and enter:wq
to save and quit. - Run
sudo /etc/wpa_supplicant/wpa_supplicant.conf
. Add the following:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ap_scan=2 update_config=1 network={ ssid="YOUR_SSID" psk="YOUR_SSID_PASS" proto=RSN key_mgmt=WPA-PSK pairwise=TKIP }
Edit the network details, thenESC
and enter:wq
to save and quit. - Run
echo PATH="/sbin:\$PATH" >> ~/.profile
- Reboot with
sudo reboot
- If everything is OK,
wlan0
will be available when you runifconfig
- Run
sudo vim /etc/apt/sources.list.d/mene.list
- Add the following (press
i
):deb http://archive.mene.za.net/raspbian wheezy contrib
PressESC
, then:wq
to save and quit. - Import the archive signing key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
sudo apt-get update
sudo apt-get install kodi -y
to install Kodi- The installation added a user
kodi
. Ourkodi
user must be a member of these groups:audio video input dialout plugdev tty cinema
- Run the following command
sudo usermod -a -G <GROUP> kodi
for each<GROUP>
above. If a group does not exist, create it withsudo addgroup --system <GROUP>
- To enable keyboard support in Kodi, add the following udev rules to
/etc/udev/rules.d/99-input.rules
:# input KERNEL=="mouse*|mice|event*", MODE="0660", GROUP="input" KERNEL=="ts[0-9]|uinput", MODE="0660", GROUP="input" KERNEL=="js[0-9]", MODE="0660", GROUP="input" # tty KERNEL=="tty[0-9]*", MODE="0666" # vchiq SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"
- Kodi need at least 96MB RAM to run normally. To configure this, change
gpu_mem
in/boot/config.txt
to128
:gpu_mem=128
- Edit
/etc/default/kodi
and change the following:ENABLED=1
- in order to start Kodi automatically on boot - Reboot using
sudo reboot
and after the reboot, Kodi will start automatically
- If you have a Mac computer, you might want to share Airport content. In order to do that, you must install the
avahi
package:sudo apt-get install avahi-utils -y
- SFTP connect to the RPi with
root
user - Upload
kodi
(TODO: Must upload .kodi to some cloud and put link here) directory to/home/kodi
- Go to the terminal,
cd /home/kodi
, thenrm .kodi
andsudo mv kodi .kodi
- Reboot and voila
- Install JDK 8:
mkdir ~/Downloads/JDK
, thencd ~/Downloads/JDK
- Get the latest JDK from https://jdk8.java.net/download.html:
wget --no-check-certificate http://www.java.net/download/jdk8u60/archive/b13/binaries/jdk-8u60-ea-bin-b13-linux-arm-vfp-hflt-28_apr_2015.tar.gz
- Unarchive:
sudo tar zxvf jdk-8u60-ea-bin-b13-linux-arm-vfp-hflt-28_apr_2015.tar.gz -C /opt
- Make symlink for java:
sudo ln -s /opt/jdk1.8.0_60/bin/java /usr/bin/java
- And
jar
:sudo ln -s /opt/jdk1.8.0_60/bin/jar /usr/bin/jar
- Test if it works:
java -version
- Install Filebot:
cd ~/Downloads
, thenmkdir Filebot
andcd Filebot
- Get the latest ARM version of Filebot from http://sourceforge.net/projects/filebot/:
wget http://sourceforge.net/projects/filebot/files/filebot/FileBot_4.5.6/filebot_4.5.6_arm.ipk/download -O filebot.ipk
mkdir /tmp/filebot
andsudo mv filebot.ipk /tmp/filebot
cd /tmp/filebot
andar -x filebot.ipk
tar zxvf data.tar.gz
sudo cp -r opt/share/* /usr/share/
sudo ln -s /usr/share/filebot/bin/filebot.sh /usr/bin/filebot
- Configure Filebot:
cd /usr/share/filebot/bin
sudo cp –p filebot.sh filebot.sh_old
sudo vim /usr/share/filebot/bin/filebot.sh
- Replace the content with this one: https://gist.github.com/gkostadinov/e16bd0f47663001ba2e0
- Install JNA 4:
sudo apt-get install libjna-java
mkdir /tmp/jna-4.1.0
andcd /tmp/jna-4.1.0
wget https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar
wget https://maven.java.net/content/repositories/releases/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar
jar xf jna-4.1.0.jar
cd /usr/lib/jni
sudo cp -p /tmp/jna-4.1.0/com/sun/jna/linux-arm/libjnidispatch.so libjnidispatch_4.1.0.so
rm libjnidispatch.so
andsudo ln -s libjnidispatch_4.1.0.so libjnidispatch.so
cd /usr/share/java
sudo rm jna.jar jna-platform.jar
sudo cp /tmp/jna-4.1.0/*.jar .
sudo ln -s jna-4.1.0.jar jna.jar
sudo ln -s jna-platform-4.1.0.jar jna-platform.jar
- Test with
java -jar jna.jar
. Should outputVersion: 4.1.0
- Install and setup MediaInfo:
sudo apt-get install mediainfo
cd /usr/share/filebot
sudo mv libzen.so libzen.so_old
sudo mv libmediainfo.so libmediainfo.so_old
sudo ln -s /usr/lib/arm-linux-gnueabihf/libmediainfo.so.0 libmediainfo.so
sudo ln -s /usr/lib/arm-linux-gnueabihf/libzen.so.0 libzen.so
- Finally test if everything works:
sudo filebot -script "fn:sysinfo"
. You should see something like this:FileBot 4.5.6 (r2818) JNA Native: 4.0.0 MediaInfo: MediaInfoLib - v0.7.58 7-Zip-JBinding: ERROR chromaprint-tools: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc) Extended Attributes: OK Groovy Engine: 2.3.9 JRE: Java(TM) SE Runtime Environment 1.8.0_60-ea (headless) JVM: 32-bit Java HotSpot(TM) Client VM CPU/MEM: 4 Core / 208 MB Max Memory / 9 MB Used Memory OS: Linux (arm) uname: Linux raspberrypi 3.18.12-v7+ #782 SMP PREEMPT Tue Apr 28 19:54:13 BST 2015 armv7l GNU/Linux Done ヾ(@⌒ー⌒@)ノ
1. Install it with `sudo apt-get install transmission-daemon -y`
- Go to Downloads -
cd Downloads
- Make Complete and Inprogress directories:
mkdir Inprogress & mkdir Complete
- Change permissions to 770:
chmod 770 Inprogress
chmod 770 Complete
- Create Media directory:
mkdir ~/Media
,mkdir ~/Media/Movies ~/Media/TV\ Shows ~/Media/Music ~/Media/Pictures
andsudo chmod -R 770 ~/Media
- Transmission runs by default with user
debian-transmission
. Let's add this user to groupcinema
so that it has rights to modify the directories we created:sudo usermod -a -G cinema debian-transmission
- Configure Transmission. Open Transmission settings:
sudo vim /etc/transmission-daemon/settings.json
- Replace the settings with these here: https://gist.github.com/gkostadinov/86e9768e153a7212db87
- Create a postprocess script that will run after a torrent completes:
sudo vim /etc/transmission-daemon/transmission-postprocess
The script runs Filebot and organizes your library. - Add this content to the script: https://gist.github.com/gkostadinov/bbe96a58ae3d7cea4066
sudo chmod +x /etc/transmission-daemon/transmission-postprocess
andsudo chown debian-transmission:debian-transmission /etc/transmission-daemon/transmission-postprocess
andsudo chown -R debian-transmission:debian-transmission /usr/share/filebot
so that Transmission can run the script.- Reload the daemon:
sudo service transmission-daemon reload
- Open your browser and navigate to
http://<YOUR_RPI_ADDRESS>:9091/
- Enter
raspberrycinema
for username andc1n3mat1c
for password - That's it! Now you can download torrents from here to your Raspberry Pi.
Note: If the postprocess script does not work, it is propbaly due to permission errors. To fix this edit
/etc/init.d/transmission-daemon
and setUSER
toroot
(generally not a good idea, but it is an easy fix).
dropbox links for 8188 is dead.