Skip to content

Instantly share code, notes, and snippets.

@ddneat
Last active May 9, 2016 07:09
Show Gist options
  • Save ddneat/13505efdee99a725911c to your computer and use it in GitHub Desktop.
Save ddneat/13505efdee99a725911c to your computer and use it in GitHub Desktop.
ubuntu basic install process

Server: Ubuntu 10.04 / 64 bit, User: root

update packages

apt-get upgrade
apt-get update

=================================================================

add ssh keys

mkdir ~/.ssh
vim ~/.ssh/authorized_keys
...

connect with ssh

  1. logout exit

  2. modifiy ss config, local machine: ~/.ssh/config

Host foobar
Hostname 80.80.80.80
User root
  1. login ssh ssh foobar

=================================================================

  1. stop apache service apache2 stop

  2. (optional) purge apache files from system apt-get purge apache2*

  3. install new webserver apt-get install nginx

  4. start nginx service nginx start

=================================================================

  1. add svg to mime types vim /etc/nginx/mime.types

  2. insert the following image/svg+xml svg svgz;

=================================================================

create your sites-available file (alternative: copy the default file)

vim /etc/nginx/sites-available/davidne.at

basic server config

server {
        listen   80 default;
        server_name  localhost;

        access_log  /var/log/nginx/localhost.access.log;

        location / {
                root   /var/www/nginx-default;
                index  index.html index.htm;
        }
}

enable site by symlinking

ln -s /etc/nginx/sites-available/davidne.at /etc/nginx/sites-enabled/davidne.at

=================================

user setup

adduser david

mkdir /home/david/www

rsync -zrp ~/Sites/david-neubauer.com/ root@88.80.214.165:/home/david/www/ --progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment