Skip to content

Instantly share code, notes, and snippets.

@RPTST
Last active September 3, 2020 21:08
Show Gist options
  • Save RPTST/efa46511817b2099946da162a32f0138 to your computer and use it in GitHub Desktop.
Save RPTST/efa46511817b2099946da162a32f0138 to your computer and use it in GitHub Desktop.
#
## After initial setup
#
$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt-get dist-upgrade -y
$ sudo apt install mosh neofetch git vlc nixnote2 guake mypaint qmmp synaptic p7zip-full rar snapd cheese steamlink ntfs-3g openssh openssh-server ffmpeg ettercap-graphical yersinia -y
$ sudo snap install core
$ sudo snap install snap store
$ snap-store
$ sudo snap install htop
$ sudo snap install micropython
$ sudo snap install arduino
$ sudo snap install gimp
$ sudo snap install cool-retro-term
$ sudo snpa install chromium
$ sudo snpa install notepadqq
# optional
sudo snap install octoprint-pfs --edge
sudo snap install home-assistant-snap
sudo snap install home-assistant-hacs
sudo snap install adguard-home
sudo snap install mycroft --edge
sudo snap install retroarch
#
## Automatic install of usefull stuff
#
#
## IOT Stack install
#
$ git clone https://github.com/SensorsIot/IOTstack.git ~/IOTstack
$ cd ~/IOTstack
$ ./menu.sh
#
## piKiss install
#
$ curl -sSL https://git.io/JfAPE | bash
$ cd piKiss
$ ./piKiss.sh
#
## Manual install of useful stuff
#
#
## Chromium media
#
$ wget https://gist.githubusercontent.com/lemariva/0eb4ff4e847700627a5ebb71711c31bf/raw/0ff379fca4e804fbf9b1b6426f7f994db1b5a613/widevine-flash_armhf.sh
$ chmod +x widevine-flash_armhf.sh
$ sudo ./widevine-flash_armhf.sh
$
#
## Install cool-retro-term
#
# sudo apt install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtgraphicaleffects qml-module-qtquick-dialogs qml-module-qtquick-localstorage qml-module-qtquick-window2 qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel -y
# git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
# cd cool-retro-term/
# qmake && make
# sudo make install
# or
$ sudo snap install cool-retro-term
#
## Chromium media
#
# wget https://gist.githubusercontent.com/lemariva/0eb4ff4e847700627a5ebb71711c31bf/raw/0ff379fca4e804fbf9b1b6426f7f994db1b5a613/widevine-flash_armhf.sh
# chmod +x widevine-flash_armhf.sh
# sudo ./widevine-flash_armhf.sh
#
## Atom install
#
# sudo apt-get install build-essential git libgnome-keyring-dev fakeroot gconf2 gconf-service libgtk2.0-0 libudev1 libgcrypt20 python rpm npm npm-cli apm nodejs
# npm config set python /usr/bin/python2 -g
# npm -g node-gyp
# git clone https://github.com/atom/atom.git
# cd atom
# npm install node-gyp
# sudo ./script/build
# sudo script/grunt install
#
# Add the Icon Menu.
# According to your window manager this is different.
# I used mate to add my icon.
# You may check if the system finds the program and the icon automatically, then you don’t need to add the item in the menu.
# Otherwise right-click into the main menu.
# Click edit menu.
# Select the category where you want to place atom. Maybe use “development”.
# Click add item.
# Now select the icon. The atom icons are in the folder called “atom/out/icons”.
# Name it “atom”.
# Command:usr/local/share/atom/atom %F.
# Command: “Atom editor” or whatever you like.
#
# If you run into errors starting atom give write acces to the atom folder.
# $ sudo chmod 777 -R /usr/local/share/atom/
# $ sudo chmod 777 -R .atom/
$
# Autoupdate
sudo nano update.sh
#!/bin/sh
sudo apt-get update && sudo apt-get upgrade -y
sudo rpi-update
sudo apt-get autoremove
sudo apt-get autoclean
sudo reboot
sudo chmod +x update.sh
mkdir /logs
touch /logs/cronlog
crontab -e
0 0 * * SAT sh /home/pi/update.sh 2>/home/pi/logs/cronlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment