Last active
January 27, 2020 23:32
-
-
Save riipandi/d432ca9b755e6b9285b067abd04e5e0c to your computer and use it in GitHub Desktop.
Rasberry Pi Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TV Online : https://www.vidio.com/live | |
useradd -mg sudo -s `which bash` ariss -c "Aris Ripandi" -p `openssl passwd -1 ripandi` | |
chsh -s `which bash` root ; chsh -s `which bash` ariss ; perl -pi -e 's#(.*sudo.*ALL=)(.*)#${1}(ALL) NOPASSWD:ALL#' /etc/sudoers | |
apt install axel htop whois binutils dnsutils zip unzip unrar tar p7zip nscd lsof \ | |
crudini openssl openssh-server openssh-client curl screenfetch screen elinks nano | |
touch /usr/bin/duckdns ; chmod +x /usr/bin/duckdns | |
cat > /usr/bin/duckdns <<EOF | |
#!/bin/bash | |
DOMAIN="piraku" | |
TOKEN="298b66a6-6469-4c5b-9682-0b262d58f9b5" | |
NEWIP="\$(curl -s whatismyip.akamai.com)" | |
curl -k "https://www.duckdns.org/update?domains=\$DOMAIN&token=\$TOKEN&ip=\$NEWIP" | |
echo -e "\nIP changed to \$NEWIP" | |
EOF | |
nano /usr/bin/duckdns | |
( crontab -l | grep -v -F "/usr/bin/duckdns" ; echo "*/5 * * * * /usr/bin/duckdns >/dev/null 2>&1" ) | crontab - | |
touch /usr/bin/serveo ; chmod +x /usr/bin/serveo | |
cat > /usr/bin/serveo <<EOF | |
#!/bin/bash | |
ssh -R piraku-ssh:22:localhost:22 -R piraku-web:80:localhost:80 serveo.net | |
#ssh -R 80:localhost:22 -R 80:localhost:80 serveo.net | |
EOF | |
( crontab -l | grep -v -F "/usr/bin/serveo" ; echo "*/5 * * * * /usr/bin/serveo >/dev/null 2>&1" ) | crontab - | |
#-------------------------------------------------------------------------------------------------------- | |
1 passwd | |
2 passwd pi | |
3 passwd pi | |
4 apt update | |
5 apt fu8ll-upgrade -y | |
6 clear | |
7 apt full-upgrade -y | |
8 apt install kodi | |
9 apt autoremove | |
10 shutdown -r now | |
11 passwd | |
12 passwd pi | |
13 apt purge libreoffice* | |
14 apt purge claws-mail* xpdf* | |
15 apt purge minecraft* | |
16 apt autoremove | |
17 apt purge pythopn*( | |
18 apt purge pythopn* | |
19 apt purge python* | |
20 apt purge python* | |
21 whereis python_games | |
22 apt purge bluej* scratch* thonny* wolfarm* greenfoot* | |
23 apt purge bluej* scratch* thonny* greenfoot* | |
24 apt purge sense* | |
25 apt purge mathematica | |
26 apt purge mathematica* | |
27 apt purge *wolfarm* | |
28 apt purge *wolfram* | |
29 apt autoremoive | |
30 apt autoremove | |
31 apt purge sonic* | |
32 apt autoremove -y | |
33 apt purge node-red | |
34 apt purge node* | |
35 apt purge *idle* | |
36 apt purge *idle* | |
37 apt purge leafpad | |
38 apt autoremove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/05/19 - Aris Ripandi | |
https://linuxsuperuser.com/install-latest-version-kodi-on-raspbian-stretch/ | |
1 raspi-config | |
2 apt autoremove -y | |
3 apt install ntpdate | |
4 ntpdate | |
5 ntp | |
6 date | |
7 passwd | |
8 passwd root | |
9 passwd | |
10 passwd root | |
11 apt update | |
12 raspi-config | |
13 nano /etc/apt/sources.list.d/kodi.list | |
14 wget -O - http://pipplware.pplware.pt/pipplware/key.asc | sudo apt-key add - | |
15 sudo addgroup --system input | |
16 sudo nano /etc/udev/rules.d/99-input.rules | |
17 nano /etc/udev/rules.d/99-com.rules | |
18 nano /etc/udev/rules.d/99-input.rules | |
19 nano /etc/udev/rules.d/10-permissions.rules | |
20 sudo usermod -a -G audio pi | |
21 sudo usermod -a -G video pi | |
22 sudo usermod -a -G input pi | |
23 sudo usermod -a -G dialout pi | |
24 sudo usermod -a -G plugdev pi | |
25 sudo usermod -a -G tty pi | |
26 nano /etc/polkit-1/localauthority/50-local.d/all_users_shutdown_reboot.pkla | |
27 wget -O /etc/init.d/kodi https://gist.githubusercontent.com/shyamjos/60ea61fd8932fd5c868c80543b34f033/raw;sudo chmod +x /etc/init.d/kodi | |
28 apt update ; apt install kodi -y | |
29 systemctl enable kodi | |
30 apt full-upgrade | |
31 apt purge libreoffice* bluej* greenfoot* | |
32 apt purge claws-mail | |
33 apt purge minecraft* python-games* | |
34 apt purge minecraft* python-games* | |
35 apt purge minecraft* python-games* -y | |
36 apt autoremove -y | |
37 apt purge leafpad sonic* node* sense* wolfarm* | |
38 apt purge leafpad sonic* node* sense* *wolfarm* | |
39 apt purge leafpad sonic* node* sense* wolfram* | |
40 apt purge leafpad sonic* node* sense* wolfram* -y | |
41 apt autoremove -y | |
42 apt purge idle* | |
43 apt purge idle* thonny* | |
44 apt purge idle* thonny* scratch* | |
45 apt purge idle* thonny* scratch* -y ; apt autoremove -y | |
46 apt purge *games* | |
47 pip remove python_games | |
48 pip uninstall python_games | |
49 apt purge python-games | |
50 nano /usr/share/applications/dillo.desktop | |
51 apt purge epiphany* dillo* | |
52 apt purge epiphany* dillo* -y | |
53 apt autoremove -y | |
54 history > raspbian_kodi.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment