Last active
May 13, 2018 12:48
-
-
Save clementf/847a77f9c8dc78e60b605731fcfc8fb5 to your computer and use it in GitHub Desktop.
Useful commands to get a machine up and running quickly
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
| #Download Ubuntu LTS | |
| # create user | |
| adduser clem | |
| # add to shudders | |
| usermod -aG sudo clem | |
| # download git | |
| Sudo apt-get install git | |
| #install zsh | |
| sudo apt-get update && sudo apt-get -y install zsh | |
| chsh -s /bin/zsh | |
| #install oh my zsh | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| #install spaceship theme | |
| curl -o - https://raw.githubusercontent.com/denysdovhan/spaceship-zsh-theme/master/install.zsh | zsh | |
| # download rbenv & ruby (https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04 ) | |
| sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
| git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
| source ~/.zshrc | |
| # install the silver searcher | |
| apt-get install silversearcher-ag | |
| # install fzf | |
| git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
| ~/.fzf/install | |
| # install ruby | |
| git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| rbenv install 2.5.0 | |
| # make it the default version | |
| rbenv global 2.5.0 | |
| # download rake | |
| gem install rake | |
| #download vundle | |
| git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| # download dotfiles | |
| git clone https://github.com/clementf/dotfiles | |
| #install them | |
| cd dotfiles && rake install | |
| #install plugins for vim, inside vim do :PluginInstall | |
| #install node | |
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash | |
| sudo apt-get install -y nodejs | |
| #install mysql (more here: https://support.rackspace.com/how-to/installing-mysql-server-on-ubuntu/) | |
| sudo apt-get update | |
| sudo apt-get install mysql-server | |
| mysql_secure_installation | |
| # launch mysql | |
| sudo service mysql start | |
| # ensure it launches at reboot | |
| sudo /usr/sbin/update-rc.d mysql defaults | |
| #install nginx | |
| sudo apt-get install nginx | |
| #install openvpn: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment