Skip to content

Instantly share code, notes, and snippets.

@xenialaq
Last active November 12, 2017 01:11
Show Gist options
  • Save xenialaq/4f0b904f834b4445a2a7ceba6145b78f to your computer and use it in GitHub Desktop.
Save xenialaq/4f0b904f834b4445a2a7ceba6145b78f to your computer and use it in GitHub Desktop.
Ubuntu Setup (Ubuntu MATE 17.10)
#!/bin/bash
sudo apt-get install -y \
build-essential git curl nano gedit vim kdiff3 ubuntu-make octave \
chromium-browser fcitx cloc gtkhash p7zip gparted baobab gimp pinta uncrustify \
imagemagick meshlab python-nose \
muon okular python3-pyqt4 pavucontrol pulseaudio-equalizer \
redshift redshift-gtk \
openjdk-8-jdk nginx \
xdotool tidy python-gpgme autoconf libqt5opengl5 \
vlc smplayer texlive-fonts-recommended wine-stable ubuntu-restricted-addons ubuntu-restricted-extras \
compizconfig-settings-manager dconf-editor \
i3-wm i3lock i3status suckless-tools lxappearance samba filezilla caja-share && \
sudo smbpasswd -a $USER
#!/bin/bash
cd /tmp && \
sudo apt-get install -y gcc make gnome-themes-standard && \
wget 'http://download.virtualbox.org/virtualbox/5.2.0/virtualbox-5.2_5.2.0-118431~Ubuntu~zesty_amd64.deb' && \
wget 'https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb' && \
wget 'https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2015.10.28_amd64.deb' && \
wget 'https://downloads.slack-edge.com/linux_releases/slack-desktop-2.8.2-amd64.deb' && \
wget 'https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb' && \
wget 'http://get.code-industry.net/public/master-pdf-editor-4.3.61_qt5.amd64.deb' && \
wget 'https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.3.9-1ubuntu16.10-amd64.deb' && \
wget 'https://repo.skype.com/latest/skypeforlinux-64.deb' && \
sudo dpkg -i *.deb
sudo apt-get install -yf
sudo apt-get install -y pepperflashplugin-nonfree && \
sudo update-pepperflashplugin-nonfree --install
wget 'https://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb' && \
wget 'http://archive.getdeb.net/ubuntu/pool/apps/u/ubuntu-tweak/ubuntu-tweak_0.8.7-1~getdeb2~xenial_all.deb' && \
sudo dpkg -i google-earth*.deb ubuntu-tweak*.deb
sudo apt-get install -yf
#!/bin/bash
cd /tmp && \
sudo add-apt-repository ppa:webupd8team/java -y && \
sudo add-apt-repository ppa:nilarimogard/webupd8 -y && \
sudo add-apt-repository ppa:webupd8team/atom -y && \
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y && \
sudo add-apt-repository ppa:peterlevi/ppa -y && \
sudo add-apt-repository ppa:noobslab/themes -y && \
sudo add-apt-repository ppa:ravefinity-project/ppa -y && \
sudo sed -i 's/artful/zesty/g' /etc/apt/sources.list.d/ravefinity-project-ubuntu-ppa-artful.list && \
sudo add-apt-repository ppa:teejee2008/ppa -y && \
sudo add-apt-repository ppa:linuxgndu/sqlitebrowser -y && \
sudo apt-add-repository ppa:rael-gc/rvm -y && \
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections && \
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 && \
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list && \
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 && \
sudo apt-get update && \
sudo apt-get install -y oracle-java8-installer && echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections && \
sudo apt-get install -y atom sublime-text-installer variety feh spotify-client sqlitebrowser && \
sudo update-java-alternatives -s java-8-oracle && sudo apt-get install oracle-java8-set-default ukuu rvm && \
sudo apt-get install -y arc-theme vibrancy-colors
umake android
wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_17.10/Release.key -O Release.key && \
sudo apt-key add - < Release.key && \
echo deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_17.10/ / | sudo tee /etc/apt/sources.list.d/albert.list && \
sudo apt-get update && \
sudo apt-get install -y albert
#!/bin/bash
# Node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash && \
source ~/.bashrc && nvm install --lts && \
npm install -g babel-eslint csscomb electron-forge eslint eslint-config-airbnb-base eslint-plugin-flowtype eslint-plugin-import flow-bin flow-typed gulp http-server less npm resume-cli typescript && \
echo >> ~/.profile && \
cat ~/.bashrc | grep 'export NVM_DIR' -A 2 >> ~/.profile && \
echo >> ~/.profile
# Conda
cd /tmp && \
wget 'https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh' && \
chmod +x Miniconda*.sh && \
./Miniconda*.sh -b -p && \
echo >> ~/.profile && \
cat ~/.bashrc | grep conda3 >> ~/.profile && \
echo >> ~/.profile && \
conda install opencv -y && \
pip install --upgrade pip && pip install autopep8 pycodestyle flask image keras tensorflow gensim nltk numpy scipy pandas
# Ruby
# Change to login shell
git clone https://github.com/rbenv/rbenv.git ~/.rbenv && \
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc && \
echo 'eval "$(rbenv init -)"' >> ~/.bashrc && \
source ~/.bashrc && \
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build && \
rbenv install -l && \
gem install bundler rails
# Atom packages
apm install ariake-dark-syntax atom-material-ui autoclose-html docblockr indent-guide-improved language-babel linter-csslint linter-php linter-sass-lint merge-conflicts minimap-find-and-replace pdf-view prettier-atom sync-settings && \
apm install atom-beautify atom-typescript auto-indent exception-reporting intentions language-javascript-jsx linter-eslint linter-pycodestyle linter-swagger metrics minimap-pigments pigments sort-lines trailing-semicolon && \
apm install atom-dark-fusion-syntax audio busy-signal hyperclick javascript-snippets linter linter-flow linter-ruby linter-ui-default minimap nord-atom-syntax platformio-ide-terminal sunset
# git and p4merge
read -p "Enter Your Git Username: " git_user
read -p "Enter Your Git Email: " git_email
wget "http://cdist2.perforce.com/perforce/r17.3/bin.linux26x86_64/p4v.tgz" && \
tar -zvxf p4v.tgz && \
sudo mkdir /opt/p4merge && \
sudo mv p4v-*/* /opt/p4merge && \
sudo ln -s /opt/p4merge/bin/p4merge /usr/local/bin/p4merge && \
git config --global merge.tool p4merge && \
git config --global diff.tool p4merge && \
git config --global user.name $git_user && \
git config --global user.email $git_email && \
git config --global core.editor nano
# Heroku
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./" && \
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add - && \
sudo apt-get update && sudo apt-get install -y heroku
# Redis and MariaDB
sudo apt-get install -y redis-server mariadb-server libmariadbclient-dev && \
mysql_secure_installation
# .nanorc
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | bash
# Canon printer
wget 'http://gdlp01.c-wss.com/gds/1/0100005951/06/linux-UFRIILT-drv-v131-usen.tar.gz' && \
tar -xvzf linux-UFRIILT* && \
cd linux-UFRIILT*/64-bit_Driver/Debian && \
sudo dpkg -i *.deb > /dev/null 2>&1 && \
sudo apt-get install -yf
# Hack mono font
wget 'https://github.com/source-foundry/Hack/releases/download/v3.000/Hack-v3.000-ttf.tar.xz' && \
tar xvf Hack* && \
mkdir -p ~/.fonts && \
mv *.ttf ~/.fonts
# i3 config
i3-config-wizard && \
echo 'exec albert' >> ~/.config/i3/config && \
echo 'exec mate-volume-control-applet' >> ~/.config/i3/config && \
echo 'exec redshift-gtk' >> ~/.config/i3/config && \
echo 'exec start-pulseaudio-x11' >> ~/.config/i3/config && \
echo 'exec system-config-printer-applet' >> ~/.config/i3/config && \
echo 'exec mate-power-manager' >> ~/.config/i3/config && \
echo 'exec variety' >> ~/.config/i3/config && \
echo 'exec /usr/bin/mate-settings-daemon' >> ~/.config/i3/config && \
echo 'exec imsettings-switch -n -q -x' >> ~/.config/i3/config && \
echo 'exec blueman-applet' >> ~/.config/i3/config && \
echo 'exec dropbox start' >> ~/.config/i3/config && \
echo 'exec /usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1' >> ~/.config/i3/config && \
cat ~/.config/i3/config | sed 's/i3-sensible-/mate-/g' > ~/.config/i3/config.1 && \
rm ~/.config/i3/config && mv ~/.config/i3/config.1 ~/.config/i3/config
# Term colors
dconf write /org/mate/terminal/profiles/default/palette "'#1B1B1D1D1E1E:#F9F926267272:#8282B4B41414:#FDFD97971F1F:#4E4E8282AAAA:#8C8C5454FEFE:#464654545757:#CCCCCCCCC6C6:#505053535454:#FFFF59599595:#B6B6E3E35454:#FEFEEDED6C6C:#0C0C7373C2C2:#9E9E6F6FFEFE:#89899C9CA1A1:#F8F8F8F8F2F2'"
@kafran
Copy link

kafran commented Oct 9, 2017

Nice work. Hows yours experience using i3wm + mate? Have you been facing problems with VirtualBox 5.1 on i3wm? With me the window keeps resizing alone =/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment