Skip to content

Instantly share code, notes, and snippets.

@mrdotkg
Last active April 30, 2018 07:06
Show Gist options
  • Save mrdotkg/3d6c86d7bc656db07295e2fcb93f837b to your computer and use it in GitHub Desktop.
Save mrdotkg/3d6c86d7bc656db07295e2fcb93f837b to your computer and use it in GitHub Desktop.
Scripts to setup development environment on Elementary OS Loki (0.4)
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# base os cleanup
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
sudo apt-get update -y && sudo apt-get dist-upgrade -y
sudo apt-get purge -y epiphany-browser epiphany-browser-data #browser
sudo apt-get purge -y midori-granite #browser
sudo apt-get purge -y noise
sudo apt-get purge -y scratch-text-editor #text-editor
sudo apt-get purge -y modemmanager
sudo apt-get purge -y geary #email
sudo apt-get purge -y pantheon-mail #email
sudo apt-get purge -y pantheon-terminal #terminal
sudo apt-get purge -y audience
sudo apt-get purge -y maya-calendar #calendar
sudo apt-get autoremove -y
sudo apt-get autoclean -y
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# install os software repository items
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
apt-get install -y virtualbox-guest-dkms virtualbox-guest-x11
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
sudo apt-get install -y gdebi
sudo apt-get install -y rar unrar zip unzip p7zip-full p7zip-rar
sudo apt-get install -y terminator
sudo apt-get install -y krita
sudo apt-get install -y htop
sudo apt-get install -y gparted
sudo apt-get install -y flashplugin-installer vlc browser-plugin-vlc
sudo apt-get install -y firefox
sudo apt-get install -y inkscape
sudo apt-get install -y kazam
sudo apt-get install -y git
sudo apt install openssh-server
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# add external software repositories
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# Elementry tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
# Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
xenial \
stable"
sudo add-apt-repository ppa:linrunner/tlp
# Atom
curl -L https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update -y
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# install external software repository items
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# Reduce overheating and improve battery life
sudo apt-get install -y tlp tlp-rdw
sudo tlp start
# WPS (Office Alternative)
wget http://kdl1.cache.wps.com/ksodl/download/linux/a21//wps-office_10.1.0.5707~a21_amd64.deb
gdebi -i wps-office_10.1.0.5672~a21_amd64.deb
# WPS Fonts
wget http://kdl.cc.ksosoft.com/wps-community/download/fonts/wps-office-fonts_1.0_all.deb
gdebi -i wps-office-fonts_1.0_all.deb
# Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
gdebi -i google-chrome-stable_current_amd64.deb
gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize:maximize:close"
# jenv
curl -L -s get.jenv.io | bash
source ~/.jenv/bin/jenv-init.sh
jenv selfupdate
# Elementry tweaks
sudo apt-get install -y elementary-tweaks elementary-wallpapers-extra
# Docker, Docker-compose
apt-get install -y docker-ce
curl -L "https://github.com/docker/compose/releases/download/1.21.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Docker commands auto completion
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.21.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
# Docker Cleanup script
cd /tmp
git clone https://gist.github.com/76b450a0c986e576e98b.git
cd 76b450a0c986e576e98b
mv docker-cleanup /usr/local/bin/docker-cleanup
chmod +x /usr/local/bin/docker-cleanup
# Add vagrant user to docker group
usermod -a -G docker vagrant
# Atom
sudo apt-get install atom
apm install platformio-ide-terminal
# Teamviewer 11
wget https://download.teamviewer.com/download/teamviewer_i386.deb
gdebi -i teamviewer_i386.deb
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# development environments
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
sudo apt-get install build-essential
# python build tools
sudo apt-get install -y python-dev python-pip python-virtualenv python-numpy python-matplotlib
# pyhthon for machine learning
pip install scipy scikit-learn matplotlib jupyter pandas numpy tensorflow keras seaborn
# pyhthon for web development
pip install django beautifulsoup4 requests ipython
# networking tools
sudo apt-get install -y libpcap-dev libnet1-dev rpcbind openssh-server nmap
# node
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
# lamp
# todo install tasksel, lamp-server, phpmyadmin, vhost
# todo configure php, apache, mysql, phpmyadmin
# codemount
# todo install samba for code share
# todo mirror Projects folder to host
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
# fix broken dependencies
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
sudo apt-get install -y -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment