Skip to content

Instantly share code, notes, and snippets.

@mourato
Forked from IronistM/setup-elementary.sh
Last active August 6, 2019 20:52
Show Gist options
  • Save mourato/2ad0c965bd415ac853863d55cd981e46 to your computer and use it in GitHub Desktop.
Save mourato/2ad0c965bd415ac853863d55cd981e46 to your computer and use it in GitHub Desktop.
Things to do after installing elementary OS Loki 0.4 (script)
#!/bin/bash
#
# Updating system
#
# Update resources
sudo apt-get update
# Then, a dist upgrade
sudo apt dist-upgrade -f
#
# Installing stuffs
#
# Software Properties Common
sudo apt-get install -y software-properties-common software-properties-gtk
#
# Adding repositories (with PPA)
#
# Libreoffice
sudo add-apt-repository ppa:libreoffice/ppa
# Elementary tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
# atom
sudo add-apt-repository ppa:webupd8team/atom
#
# Adding repositories (without PPA)
#
# Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# Spotify
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
# vagrant [see: https://github.com/wolfgang42/vagrant-deb]
sudo bash -c 'echo deb https://vagrant-deb.linestarve.com/ any main > /etc/apt/sources.list.d/wolfgang42-vagrant.list'
sudo apt-key adv --keyserver pgp.mit.edu --recv-key AD319E0F7CFFA38B4D9F6E55CE3F3DE92099F7A4
# Virtualbox
wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian xenial non-free contrib" >> /etc/apt/sources.list.d/virtualbox.org.list'
# Visual Studio Code
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
#
# Updating resources (again)
#
sudo apt-get update
#
# Dev stuffs
#
# git, node, npm
sudo apt install -y git git-ftp nodejs npm
# Virtualbox, Vagrant
sudo apt install -y virtualbox-5.2 vagrant
# Atom editor with sync settings package
sudo apt install atom && apm install sync-settings
# Visual Studio Code editor
sudo apt-get install code -y
#
# Other stuffs
#
# Archive formats
sudo apt install -y unace rar unrar p7zip-rar p7zip
# Libreoffice
sudo apt install -y libreoffice-gtk2 libreoffice-gnome
# VLC, Gimp, Inkscape
sudo apt install -y vlc gimp inkscape
# Install Chrome
sudo apt install -y google-chrome-stable
# Install Spotify
sudo apt install -y spotify-client
# Install Transmission
sudo apt install -y transmission-gtk
# Install Elementary Tweaks
sudo apt install -y elementary-tweaks
#
# Remove elementary softwares
#
sudo apt purge -y epiphany-browser epiphany-browser-data
sudo apt purge -y midori-granite
sudo apt purge -y noise
sudo apt purge -y bluez
sudo apt purge -y modemmanager
sudo apt purge -y geary
#
# Clean and remove
#
sudo apt autoremove
sudo apt autoclean
#
# Install apps from Elementary's AppCenter
#
sudo apt install -y com.github.donadigo.eddy
sudo apt install -y com.github.ronnydo.colorpicker
sudo apt install -y com.github.donadigo.appeditor
#
# Making super key open the applications menu
#
gsettings set org.gnome.mutter overlay-key "'Super_L'"
gsettings set org.pantheon.desktop.gala.behavior overlay-action "'wingpanel --toggle-indicator=app-launcher'"
#
# Aumentando a quantidade de arquivos que podem ser "assistidos" pelo Atom, VSCode, gulp etc
#
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment