Skip to content

Instantly share code, notes, and snippets.

@amio
Last active August 26, 2017 06:11
Show Gist options
  • Save amio/b71617198e801577b72518c4ad5c4908 to your computer and use it in GitHub Desktop.
Save amio/b71617198e801577b72518c4ad5c4908 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 - Init with fish, nginx, and nodejs.

Also a Vultr Startup Script for Ubuntu 16.04.

curl https://gist.githubusercontent.com/amio/b71617198e801577b72518c4ad5c4908/raw/ub16-init.sh | bash
#!/bin/sh
# fix ubuntu locale issue
echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "LANG=en_US.UTF-8" >> /etc/environment
# Add sources: fish, yarn
apt-add-repository ppa:fish-shell/release-2
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
# update packages
apt update
apt upgrade -y
# fish stuff
apt install fish -y
chsh -s `which fish`
curl -L http://get.oh-my.fish | fish
# omf install https://github.com/amio/fish-theme-eden
# nginx
apt install nginx -y
# Node.js
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt install nodejs -y
# Yarn
apt install yarn -y
# Shadowsocks
apt install -y python-setuptools python-pip
pip install --upgrade pip
pip install shadowsocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment