Last active
December 17, 2015 08:49
-
-
Save mhenrixon/5582696 to your computer and use it in GitHub Desktop.
This file contains 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
Update server | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo reboot | |
Enable Swedish locale and utf-8 | |
sudo locale-gen sv_SE.UTF-8 | |
sudo dpkg-reconfigure locales | |
Open sudo vim /etc/environment and add the folowing lines | |
LC_ALL=sv_SE.UTF-8 | |
LANG=sv_SE.UTF-8 | |
Create user and disable root user (If active) | |
adduser your-user-name | |
adduser your-user-name admin (or sudo) | |
vim /etc/ssh/sshd_config | |
Set ´PermitRootLogin´ to `no` | |
/etc/init.d/ssh reload | |
logout | |
ssh your-user-name@hostname | |
Other stuff | |
sudo apt-get install imagemagick | |
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev | |
Enable firewall | |
sudo ufw default deny | |
sudo ufw allow http | |
sudo ufw allow https | |
sudo ufw allow ssh | |
sudo ufw enable | |
sudo reboot | |
sudo ufw status | |
Add ssh key to remote server | |
ssh-copy-id user@hostname | |
Install Rbenv with Ruby. | |
sudo apt-get install build-essential git-core python-software-properties | |
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
rbenv bootstrap-ubuntu-12-04 | |
rbenv install 2.0.0-p0 | |
rbenv global 2.0.0-p0 | |
rbenv rehash | |
gem install bundler | |
rbenv rehash | |
PostgreSQL 9.2 | |
sudo apt-get install libpq-dev | |
sudo add-apt-repository ppa:pitti/postgresql | |
sudo apt-get update | |
sudo apt-get install postgresql-9.2 | |
Install Passenger & Nginx | |
sudo -s | |
nginx=stable # use nginx=development for latest development version | |
add-apt-repository ppa:nginx/$nginx | |
apt-get update | |
apt-get install nginx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment