Last active
April 23, 2018 21:31
-
-
Save Surreal9/7f6e953d13d9f5ef630f19a1ce695daf to your computer and use it in GitHub Desktop.
Setup Linux Mint 18 dev box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y build-essential autoconf curl xclip git vim | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh | bash | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn -y | |
echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \ | |
sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-9.6 -y | |
sudo apt-get install postgresql-9.6-postgis-2.3 postgresql-contrib-9.6 postgresql-9.6-postgis-scripts -y | |
sudo apt-get install postgresql-9.6-postgis-2.4 -y | |
sudo -u postgres createuser -s $(whoami); | |
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list | |
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install resilio-sync -y | |
sudo systemctl enable resilio-sync | |
/etc/resilio-sync/init_user_config.sh | |
sudo mkdir -p /etc/systemd/system/resilio-sync.service.d | |
cat << EOF | sudo tee /etc/systemd/system/resilio-sync.service.d/override.conf | |
[Service] | |
User=john | |
Group=john | |
PIDFile=/home/john/.config/resilio-sync/sync.pid | |
ExecStartPre= | |
ExecStart= | |
ExecStart=/usr/bin/rslsync --config /home/john/.config/resilio-sync/config.json | |
EOF | |
sudo systemctl daemon-reload | |
sudo systemctl restart resilio-sync.service | |
echo 'alias cofe="cd ~/sync/work/cofe-district/cofe-district-server"' | tee ~/.bash_aliases | |
echo 'alias cofeweb="cd ~/sync/work/cofe-district/cofe-district-web"' | tee -a ~/.bash_aliases | |
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
sudo add-apt-repository ppa:webupd8team/terminix -y | |
sudo apt-get update | |
sudo apt-get install tilix -y | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable -y | |
sudo apt-get install remmina remmina-plugin-vnc remmina-plugin-rdp powertop autokey-gtk -y | |
mkdir -p ~/sync/work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -L https://gist.github.com/Surreal9/7f6e953d13d9f5ef630f19a1ce695daf/raw | bash -s