Skip to content

Instantly share code, notes, and snippets.

@wkei
Last active August 23, 2024 08:24
Show Gist options
  • Save wkei/05917460e87ec8ddeb6d433da8d8f95b to your computer and use it in GitHub Desktop.
Save wkei/05917460e87ec8ddeb6d433da8d8f95b to your computer and use it in GitHub Desktop.
Things to do after installing Ubuntu server

Things to do after installing Ubuntu server

Thanks to https://imtx.me/archives/2375.html

Tips about byobu https://askubuntu.com/a/700641

Node.js

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Yarn

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

Node.js modules

yarn global add pm2

Nginx

sudo apt install nginx
sudo service nginx restart

Git ssh

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Certificate

https://certbot.eff.org/#ubuntutzesty-nginx

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo certbot --nginx
sudo certbot renew --dry-run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment