Skip to content

Instantly share code, notes, and snippets.

@concatime
Last active April 22, 2017 15:13
Show Gist options
  • Save concatime/dafeb89c8073b7e010f8a11fcdef93aa to your computer and use it in GitHub Desktop.
Save concatime/dafeb89c8073b7e010f8a11fcdef93aa to your computer and use it in GitHub Desktop.
#!/bin/sh
#Adding sources for NodeJS
cat <<EOT | sudo cp /dev/stdin /etc/apt/sources.list.d/nodesource.list
deb https://deb.nodesource.com/node_7.x yakkety main
deb-src https://deb.nodesource.com/node_7.x yakkety main
EOT
#Adding NodeJS's public key
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add
#Updating to apply added packages & search for updates
sudo apt update
#Upgrading all packages
sudo apt -y upgrade
#Installing packages
sudo apt install \
xfce4 xfce4-terminal \
thunar-archive-plugin ristretto \
keepassx gdebi \
openjdk-8-jdk nodejs \
gtk2-engines-pixbuf \
screenfetch
#Installing packages without recommends
sudo apt install --no-install-recommends git chromium-browser gvfs-backends
#Free some space
sudo apt autoclean -y
#Remove useless dependencies
sudo apt autoremove -y
#https://forum.manjaro.org/t/keyring-for-chromium-is-pointless/4328/5
sudo mv /usr/bin/gnome-keyring-daemon /usr/bin/gnome-keyring-daemon-old
#Copying default xinitrc file
cp /etc/X11/xinit/xinitrc .xinitrc
#Adding line to start xfce4
echo '
exec startxfce4' >> .xinitrc
#Adding golang's bin to path & starting line for xinit
echo '
export PATH=\$PATH:/usr/local/go/bin
[ -z $DISPLAY ] && startx' >> .bashrc
#Downloading & installing golang
curl --progress-bar https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | sudo tar -xzC /usr/local
#Tell the human to make some changes to mount drives w/o elevated permissions
read -p 'mount-system > allow_active > yes'
#Proceed to changes > Mount internal drives without root
sudo vi /usr/share/polkit-l/actions/org.freedesktop.udisks2.policy
#Put debs' link to Intel Update Tool & VSCode
cat > Downloads/DEBs.txt <<EOT
https://go.microsoft.com/fwlink/?LinkID=760868
https://gluonhq.com/download/scene-builder-linux-deb
EOT
#Ask to reboot to apply changes
echo Install DEBs in Downloads/DEBs.txt after reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment