This is the first 5 things I do before anything else when setting up a new ubuntu server.
Update the system
Update system packages.
# apt-get update
# apt-get upgrade
Install few packages
Install some needed packages.
# apt-get install build-essential fail2ban curl git-core tmux multitail zsh
Set up etckeeper
Etckeeper is a tool that allows you to keep /etc under git (or other fews CVS) control.
Change the VCS to git, and init etckeeper.
# vim /etc/etckeeper/etckeeper.conf
# etckeeper init
# etckeeper commit "Initial commit."
# etckeeper list-installed
Check etckeeper vcs
to get a list of all commands.
Create a user
Create a user for remote access over ssh.
# adduser thomas
# groupadd admin
# usermod -a -G admin thomas
# su thomas
Set up git
$ git config --global user.name "Thomas Sileo"
$ git config --global user.email "thomas.sileo@gmail.com"
Set up security
Disable root login and change the default ssh port.
# vim /etc/ssh/sshd_config
- set PermitRootLogin to no
- change default port
Install oh my zsh
Zsh is an newer alternative to bash and oh-my-zsh is a framework for managing zsh configuration.
$ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
$ chsh -s /bin/zsh
$ zsh
Add some plugins in ~/.zshrc.
[...]
plugins=(git extract python pip)
[...]
And you ?
What are you used to do when setting up ubuntu server ?
Tip with Bitcoin
Tip me with Bitcoin and vote for this post!
Leave a comment