#!/bin/bash # Copy all files to their appropriate locations, # install necessary packages echo "Preparing to set up this server. Warning: this requires root privileges!" echo "Installing packages..." sudo apt update sudo apt upgrade sudo apt install fish tmux w3m emacs-nox ess sudo apt autoremove echo "Copying config files..." cp -v .tmux.conf ~/ cp -v .gitconfig ~/ cp -v config.fish ~/.config/fish/ cp -v init.el ~/.emacs.d/ cp -v config ~/.ssh/ echo "Setting up fish shell..." chsh -s /usr/bin/fish echo "Installing Julia v0.6.3 to /usr/local/lib..." wget https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.3-linux-x86_64.tar.gz tar xzf julia-0.6.3-linux-x86_64.tar.gz sudo mkdir /usr/local/lib/julia sudo mv julia-d55cadc350/* /usr/local/lib/julia sudo rm -r julia-d55cadc350 sudo ln -s /usr/local/lib/julia/bin/julia /usr/local/bin/julia echo "Don't forget to install julia-mode in emacs! (M-x package-install)" echo "Done."