Browse Source

Added post about basic server setup

master
Kim Grytøyr 2 years ago
parent
commit
a6fe5b2a2a
39 changed files with 680 additions and 183 deletions
  1. 1
    1
      content/post/2018-02-09-ubuntu-sudo-nopasswd.md
  2. 72
    0
      content/post/2018-02-12-basic-server-setup-ubuntu.md
  3. 7
    7
      public/2014/07/08/going-static/index.html
  4. 7
    7
      public/2014/07/09/case-sensitivty-problem-with-git-in-os-x/index.html
  5. 7
    7
      public/2014/09/03/opening-sublime-text-from-the-command-line/index.html
  6. 7
    7
      public/2015/06/14/locationpicker.js/index.html
  7. 7
    7
      public/2015/06/14/using-launchctl-on-mac-osx-10-10/index.html
  8. 7
    7
      public/2015/06/21/mutt-tips-and-tricks/index.html
  9. 7
    7
      public/2015/08/09/basic-usage-of-git-svn/index.html
  10. 7
    7
      public/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/index.html
  11. 7
    7
      public/2015/08/09/useful-git-tips/index.html
  12. 7
    7
      public/2016/01/21/creating-a-bootable-usb-stick-on-os-x/index.html
  13. 7
    7
      public/2016/01/21/trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42/index.html
  14. 7
    7
      public/2016/01/31/resizing-windows-on-linux/index.html
  15. 7
    7
      public/404.html
  16. 7
    7
      public/about/index.html
  17. 10
    10
      public/index.html
  18. 11
    1
      public/index.xml
  19. 9
    1
      public/page/2/index.html
  20. 7
    7
      public/post/2017-07-30-ludum-dare-39/index.html
  21. 10
    10
      public/post/2018-02-09-ubuntu-sudo-nopasswd/index.html
  22. 330
    0
      public/post/2018-02-12-basic-server-setup-ubuntu/index.html
  23. 7
    7
      public/post/3d-model-of-a-book/index.html
  24. 10
    10
      public/post/index.html
  25. 11
    1
      public/post/index.xml
  26. 7
    7
      public/post/ludum-dare-38/index.html
  27. 7
    7
      public/post/new-website-platform/index.html
  28. 9
    1
      public/post/page/2/index.html
  29. 10
    5
      public/sitemap.xml
  30. 3
    3
      public/tags/index.xml
  31. 10
    2
      public/tags/linux/index.html
  32. 11
    1
      public/tags/linux/index.xml
  33. 3
    3
      public/tags/page/3/index.html
  34. 1
    1
      public/tags/page/4/index.html
  35. 10
    2
      public/tags/reference/index.html
  36. 11
    1
      public/tags/reference/index.xml
  37. 1
    1
      public/tags/sudo/index.html
  38. 10
    2
      public/tags/ubuntu/index.html
  39. 11
    1
      public/tags/ubuntu/index.xml

+ 1
- 1
content/post/2018-02-09-ubuntu-sudo-nopasswd.md View File

@@ -1,6 +1,6 @@
+++
date = "2018-02-09T22:12:00+02:00"
description = "Reference"
description = "I always forget how to do this..."
title = "Disabling password for sudo in Ubuntu"
tags = ["ubuntu", "linux", "sudo", "reference"]
+++

+ 72
- 0
content/post/2018-02-12-basic-server-setup-ubuntu.md View File

@@ -0,0 +1,72 @@
+++
date = "2018-02-12T20:51:00+02:00"
description = "First steps when setting up a new Ubuntu server."
title = "Basic server setup (Ubuntu)"
tags = ["ubuntu", "linux", "reference"]
+++

> **Disclaimer:** This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean's [Initial Server Setup with Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04) and my own memory. There are some important steps that aren't included in this guide. If you're new to Linux or Ubuntu, I suggest that you read Digital Ocean's guide instead.

All commands in this guide (unless otherwise stated) assume you are currently logged in as root.

## Add a user
We don't want to use the *root* user when logging in to our server, so we need to create a new user.

> If you're only using keys to log in to your server (which you should), you can choose to not create a password for the new user using the `--disabled-password` option. Please note that you'll be unable to use `sudo` with this user unless you also perform the steps in [this post](/post/2018-02-09-ubuntu-sudo-nopasswd/).

```shell
adduser <user> [--disabled-password]
```

## Root privileges
Our newly created user will typically need root privileges:

```shell
usermod -aG sudo <user>
```

Now, if you want this user to be able to use `sudo` without the need for a password, [here's how to accomplish this](/post/2018-02-09-ubuntu-sudo-nopasswd/).


## Public Key Authentication
At this point we're ready to copy the public keys to the newly created user's *.ssh* folder. I won't cover all the details of this process in this guide. Please refer to the previously mentioned Digital Ocean guide if you're uncertain of how to do this.

We will need to set the correct permissions:

> **Note:** These commands assume you are logged in as your newly created user.

```shell
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
```

Also make sure that these files are owned by the user we just created.

## Disable password authentication
On new Digital Ocean droplets, this step is usually already done when creating the droplet. Just to make sure, we'll check to see if the file `/etc/ssh/sshd_config` contains the following lines and that none of them are commented out:

```bash
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
```

If you did any changes, reload the SSH daemon:

```shel
systemctl reload sshd
```

> **Note:** Try connecting to your server in a separate tab/window before disconnecting.

## Firewall
We need to make sure that our server doesn't expose unnecessary ports and protocols, so lets configure UFW in the most basic way possible:

```shell
ufw allow OpenSSH
ufw enable
```

> **Note:** At this point you should once more verify that you're able to log in to your server.

This concludes this short guide on how to perform the initial steps when creating a new Ubuntu (16.04) server.

+ 7
- 7
public/2014/07/08/going-static/index.html View File

@@ -150,6 +150,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -211,13 +218,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2014/07/09/case-sensitivty-problem-with-git-in-os-x/index.html View File

@@ -182,6 +182,13 @@ git commit -m &quot;Set correct case for filename&quot;
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -243,13 +250,6 @@ git commit -m &quot;Set correct case for filename&quot;
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2014/09/03/opening-sublime-text-from-the-command-line/index.html View File

@@ -166,6 +166,13 @@ subl . # Opens the current folder
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -227,13 +234,6 @@ subl . # Opens the current folder
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/06/14/locationpicker.js/index.html View File

@@ -303,6 +303,13 @@ A callback function that is called every time the location or radius changes. <c
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -364,13 +371,6 @@ A callback function that is called every time the location or radius changes. <c
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/06/14/using-launchctl-on-mac-osx-10-10/index.html View File

@@ -168,6 +168,13 @@ instead of crontab. The following example shows how to run <strong>offlineimap</
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -229,13 +236,6 @@ instead of crontab. The following example shows how to run <strong>offlineimap</
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/06/21/mutt-tips-and-tricks/index.html View File

@@ -232,6 +232,13 @@ your <code>.muttrc</code>:</p>
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -293,13 +300,6 @@ your <code>.muttrc</code>:</p>
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/08/09/basic-usage-of-git-svn/index.html View File

@@ -187,6 +187,13 @@ git svn dcommit # This will push your changes to the SVN repository
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -248,13 +255,6 @@ git svn dcommit # This will push your changes to the SVN repository
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/index.html View File

@@ -157,6 +157,13 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -218,13 +225,6 @@ SELECT i.* FROM images i LEFT JOIN users u ON i."/>
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2015/08/09/useful-git-tips/index.html View File

@@ -157,6 +157,13 @@ ignored = !git ls-files -v | grep ^[a-z]
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -218,13 +225,6 @@ ignored = !git ls-files -v | grep ^[a-z]
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2016/01/21/creating-a-bootable-usb-stick-on-os-x/index.html View File

@@ -183,6 +183,13 @@ diskutil list After you have successfully identified your USB stick, unmount th
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -244,13 +251,6 @@ diskutil list After you have successfully identified your USB stick, unmount th
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2016/01/21/trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42/index.html View File

@@ -173,6 +173,13 @@ of the kernel was working, I figured it couldn&rsquo;t be because of those BIOS
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -234,13 +241,6 @@ of the kernel was working, I figured it couldn&rsquo;t be because of those BIOS
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/2016/01/31/resizing-windows-on-linux/index.html View File

@@ -138,6 +138,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -199,13 +206,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/404.html View File

@@ -79,6 +79,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -140,13 +147,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

</article>

+ 7
- 7
public/about/index.html View File

@@ -130,6 +130,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -191,13 +198,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 10
- 10
public/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -80,9 +80,17 @@
<li>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'>Basic server setup (Ubuntu) <h2>First steps when setting up a new Ubuntu server.</h2></a>
</li>
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>
@@ -150,14 +158,6 @@
</li>
<li>
<a href='/2015/08/09/useful-git-tips/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/useful-git-tips/'>Useful git tips <h2></h2></a>
</li>
</ul>

<nav id="post-nav">

+ 11
- 1
public/index.xml View File

@@ -6,11 +6,21 @@
<description>Recent content on Kim Grytøyr</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 09 Feb 2018 22:12:00 +0200</lastBuildDate>
<lastBuildDate>Mon, 12 Feb 2018 20:51:00 +0200</lastBuildDate>
<atom:link href="/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Basic server setup (Ubuntu)</title>
<link>/post/2018-02-12-basic-server-setup-ubuntu/</link>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/post/2018-02-12-basic-server-setup-ubuntu/</guid>
<description>Disclaimer: This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&amp;rsquo;s Initial Server Setup with Ubuntu 16.04 and my own memory. There are some important steps that aren&amp;rsquo;t included in this guide. If you&amp;rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&amp;rsquo;s guide instead.
All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</description>
</item>
<item>
<title>Disabling password for sudo in Ubuntu</title>
<link>/post/2018-02-09-ubuntu-sudo-nopasswd/</link>

+ 9
- 1
public/page/2/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2015-08-09T15:13:36&#43;00:00"/>
<meta property="og:updated_time" content="2015-08-09T17:03:00&#43;00:00"/>



@@ -80,6 +80,14 @@
<li>
<a href='/2015/08/09/useful-git-tips/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/useful-git-tips/'>Useful git tips <h2></h2></a>
</li>
<li>
<a href='/2015/08/09/basic-usage-of-git-svn/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/basic-usage-of-git-svn/'>Basic usage of git-svn <h2></h2></a>

+ 7
- 7
public/post/2017-07-30-ludum-dare-39/index.html View File

@@ -179,6 +179,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -240,13 +247,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 10
- 10
public/post/2018-02-09-ubuntu-sudo-nopasswd/index.html View File

@@ -20,7 +20,7 @@

<meta property="og:title" content="Disabling password for sudo in Ubuntu" />
<meta property="og:description" content="Reference" />
<meta property="og:description" content="I always forget how to do this..." />
<meta property="og:type" content="article" />
<meta property="og:url" content="/post/2018-02-09-ubuntu-sudo-nopasswd/" />

@@ -43,7 +43,7 @@
<meta itemprop="name" content="Disabling password for sudo in Ubuntu">
<meta itemprop="description" content="Reference">
<meta itemprop="description" content="I always forget how to do this...">


<meta itemprop="datePublished" content="2018-02-09T22:12:00&#43;02:00" />
@@ -56,7 +56,7 @@

<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Disabling password for sudo in Ubuntu"/>
<meta name="twitter:description" content="Reference"/>
<meta name="twitter:description" content="I always forget how to do this..."/>
<meta name="twitter:site" content="@https://www.twitter.com/kimgrytoyr"/>

</head>
@@ -150,6 +150,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -211,13 +218,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 330
- 0
public/post/2018-02-12-basic-server-setup-ubuntu/index.html View File

@@ -0,0 +1,330 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Kim Grytøyr">
<meta name="description" content="Personal website for Kim Grytøyr.">
<meta name="generator" content="Hugo 0.36" />
<title>Basic server setup (Ubuntu) &middot; Kim Grytøyr</title>
<link rel="shortcut icon" href="/favicon.png">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/highlight.css">

<link rel="stylesheet" href="/css/monosocialiconsfont.css">


<meta property="og:title" content="Basic server setup (Ubuntu)" />
<meta property="og:description" content="First steps when setting up a new Ubuntu server." />
<meta property="og:type" content="article" />
<meta property="og:url" content="/post/2018-02-12-basic-server-setup-ubuntu/" />



<meta property="article:published_time" content="2018-02-12T20:51:00&#43;02:00"/>

<meta property="article:modified_time" content="2018-02-12T20:51:00&#43;02:00"/>











<meta itemprop="name" content="Basic server setup (Ubuntu)">
<meta itemprop="description" content="First steps when setting up a new Ubuntu server.">


<meta itemprop="datePublished" content="2018-02-12T20:51:00&#43;02:00" />
<meta itemprop="dateModified" content="2018-02-12T20:51:00&#43;02:00" />
<meta itemprop="wordCount" content="420">



<meta itemprop="keywords" content="ubuntu,linux,reference," />

<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Basic server setup (Ubuntu)"/>
<meta name="twitter:description" content="First steps when setting up a new Ubuntu server."/>
<meta name="twitter:site" content="@https://www.twitter.com/kimgrytoyr"/>

</head>

<body>
<nav class="main-nav">
<a href='/'> <span class="arrow">←</span>Home</a>

<a href='/about'>About</a>

</nav>


<section id="wrapper">
<article class="post">
<header>
<h1>Basic server setup (Ubuntu)</h1>
<h2 class="headline">
February 12, 2018
<br>
<a href="/tags/ubuntu">ubuntu</a>
<a href="/tags/linux">linux</a>
<a href="/tags/reference">reference</a>
</h2>
</header>
<section id="post-body">

<blockquote>
<p><strong>Disclaimer:</strong> This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&rsquo;s <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04">Initial Server Setup with Ubuntu 16.04</a> and my own memory. There are some important steps that aren&rsquo;t included in this guide. If you&rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&rsquo;s guide instead.</p>
</blockquote>

<p>All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</p>

<h2 id="add-a-user">Add a user</h2>

<p>We don&rsquo;t want to use the <em>root</em> user when logging in to our server, so we need to create a new user.</p>

<blockquote>
<p>If you&rsquo;re only using keys to log in to your server (which you should), you can choose to not create a password for the new user using the <code>--disabled-password</code> option. Please note that you&rsquo;ll be unable to use <code>sudo</code> with this user unless you also perform the steps in <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">this post</a>.</p>
</blockquote>

<pre><code class="language-shell">adduser &lt;user&gt; [--disabled-password]
</code></pre>

<h2 id="root-privileges">Root privileges</h2>

<p>Our newly created user will typically need root privileges:</p>

<pre><code class="language-shell">usermod -aG sudo &lt;user&gt;
</code></pre>

<p>Now, if you want this user to be able to use <code>sudo</code> without the need for a password, <a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">here&rsquo;s how to accomplish this</a>.</p>

<h2 id="public-key-authentication">Public Key Authentication</h2>

<p>At this point we&rsquo;re ready to copy the public keys to the newly created user&rsquo;s <em>.ssh</em> folder. I won&rsquo;t cover all the details of this process in this guide. Please refer to the previously mentioned Digital Ocean guide if you&rsquo;re uncertain of how to do this.</p>

<p>We will need to set the correct permissions:</p>

<blockquote>
<p><strong>Note:</strong> These commands assume you are logged in as your newly created user.</p>
</blockquote>

<pre><code class="language-shell">chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
</code></pre>

<p>Also make sure that these files are owned by the user we just created.</p>

<h2 id="disable-password-authentication">Disable password authentication</h2>

<p>On new Digital Ocean droplets, this step is usually already done when creating the droplet. Just to make sure, we&rsquo;ll check to see if the file <code>/etc/ssh/sshd_config</code> contains the following lines and that none of them are commented out:</p>

<pre><code class="language-bash">PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
</code></pre>

<p>If you did any changes, reload the SSH daemon:</p>

<pre><code class="language-shel">systemctl reload sshd
</code></pre>

<blockquote>
<p><strong>Note:</strong> Try connecting to your server in a separate tab/window before disconnecting.</p>
</blockquote>

<h2 id="firewall">Firewall</h2>

<p>We need to make sure that our server doesn&rsquo;t expose unnecessary ports and protocols, so lets configure UFW in the most basic way possible:</p>

<pre><code class="language-shell">ufw allow OpenSSH
ufw enable
</code></pre>

<blockquote>
<p><strong>Note:</strong> At this point you should once more verify that you&rsquo;re able to log in to your server.</p>
</blockquote>

<p>This concludes this short guide on how to perform the initial steps when creating a new Ubuntu (16.04) server.</p>

</section>
</article>
<footer id="post-meta" class="clearfix">
<a href="https://twitter.com/kimgrytoyr">
<img class="avatar" src="/images/avatar.png">
<div>
<span class="dark">Kim Grytøyr</span>
<span>A guy.</span>
</div>
</a>
<section id="sharing">
<a class="twitter" href="https://twitter.com/intent/tweet?text=%2fpost%2f2018-02-12-basic-server-setup-ubuntu%2f - Basic%20server%20setup%20%28Ubuntu%29 by @kimgrytoyr"><span class="icon-twitter"> Tweet</span></a>

<a class="facebook" href="#" onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),
'facebook-share-dialog',
'width=626,height=436');
return false;"><span class="icon-facebook-rect"> Share</span>
</a>

</section>
</footer>


<ul id="post-list" class="archive readmore">
<h3>Read more</h3>

<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
<li>
<a href="/post/2017-07-30-ludum-dare-39/">Ludum Dare 39: PowerClick<aside class="dates">Jul 30</aside></a>
</li>
<li>
<a href="/post/ludum-dare-38/">Ludum Dare 38: Parking Zone<aside class="dates">Apr 24</aside></a>
</li>
<li>
<a href="/post/3d-model-of-a-book/">3D model of a book<aside class="dates">Apr 14</aside></a>
</li>
<li>
<a href="/post/new-website-platform/">New website platform<aside class="dates">Apr 13</aside></a>
</li>
<li>
<a href="/about/">About<aside class="dates">Apr 13</aside></a>
</li>
<li>
<a href="/2016/01/31/resizing-windows-on-linux/">Resizing windows on linux<aside class="dates">Jan 31</aside></a>
</li>
<li>
<a href="/2016/01/21/creating-a-bootable-usb-stick-on-os-x/">Creating a bootable USB stick on OS X<aside class="dates">Jan 21</aside></a>
</li>
<li>
<a href="/2016/01/21/trouble-booting-newer-linux-kernels-on-asus-vivopc-vm42/">Trouble booting newer Linux kernels on Asus VivoPC VM42<aside class="dates">Jan 21</aside></a>
</li>
</ul>

<footer id="footer">
<div id="social">

<a class="symbol" href="https://www.facebook.com/kimgrytoyr">
circlefacebook
</a>
<a class="symbol" href="https://www.github.com/kimgrytoyr">
circlegithub
</a>
<a class="symbol" href="https://www.twitter.com/kimgrytoyr">
circletwitterbird
</a>


</div>

<p class="small">
© Copyright 2018 Kim Grytøyr
</p>
</footer>

</section>

<script src="/js/jquery.min.js"></script>
<script src="/js/main.js"></script>
<script src="/js/highlight.js"></script>
<script src="/js/instantclick.min.js" data-no-instant></script>
<script>
InstantClick.on('change', function() {
setTimeout(function() {
hljs.initHighlighting();
}, 100);
});
</script>
<script data-no-instant>InstantClick.init();</script>





</body>
</html>

+ 7
- 7
public/post/3d-model-of-a-book/index.html View File

@@ -191,6 +191,13 @@ this book, and I have a list of things I want to accomplish:</p>
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -252,13 +259,6 @@ this book, and I have a list of things I want to accomplish:</p>
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 10
- 10
public/post/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -81,9 +81,17 @@
<li>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'>Basic server setup (Ubuntu) <h2>First steps when setting up a new Ubuntu server.</h2></a>
</li>
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>
@@ -151,14 +159,6 @@
</li>
<li>
<a href='/2015/08/09/basic-usage-of-git-svn/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/basic-usage-of-git-svn/'>Basic usage of git-svn <h2></h2></a>
</li>
</ul>

<nav id="post-nav">

+ 11
- 1
public/post/index.xml View File

@@ -6,11 +6,21 @@
<description>Recent content in Posts on Kim Grytøyr</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 09 Feb 2018 22:12:00 +0200</lastBuildDate>
<lastBuildDate>Mon, 12 Feb 2018 20:51:00 +0200</lastBuildDate>
<atom:link href="/post/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Basic server setup (Ubuntu)</title>
<link>/post/2018-02-12-basic-server-setup-ubuntu/</link>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/post/2018-02-12-basic-server-setup-ubuntu/</guid>
<description>Disclaimer: This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&amp;rsquo;s Initial Server Setup with Ubuntu 16.04 and my own memory. There are some important steps that aren&amp;rsquo;t included in this guide. If you&amp;rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&amp;rsquo;s guide instead.
All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</description>
</item>
<item>
<title>Disabling password for sudo in Ubuntu</title>
<link>/post/2018-02-09-ubuntu-sudo-nopasswd/</link>

+ 7
- 7
public/post/ludum-dare-38/index.html View File

@@ -221,6 +221,13 @@ The jam lasts for 72 hours and the compo for 48 hours. There are different <a hr
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -282,13 +289,6 @@ The jam lasts for 72 hours and the compo for 48 hours. There are different <a hr
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 7
- 7
public/post/new-website-platform/index.html View File

@@ -142,6 +142,13 @@
<li>
<a href="/post/2018-02-12-basic-server-setup-ubuntu/">Basic server setup (Ubuntu)<aside class="dates">Feb 12</aside></a>
</li>
<li>
<a href="/post/2018-02-09-ubuntu-sudo-nopasswd/">Disabling password for sudo in Ubuntu<aside class="dates">Feb 9</aside></a>
</li>
@@ -203,13 +210,6 @@
</li>
<li>
<a href="/2015/08/09/useful-git-tips/">Useful git tips<aside class="dates">Aug 9</aside></a>
</li>
</ul>

<footer id="footer">

+ 9
- 1
public/post/page/2/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2015-08-09T11:28:36&#43;00:00"/>
<meta property="og:updated_time" content="2015-08-09T15:13:36&#43;00:00"/>



@@ -81,6 +81,14 @@
<li>
<a href='/2015/08/09/basic-usage-of-git-svn/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/basic-usage-of-git-svn/'>Basic usage of git-svn <h2></h2></a>
</li>
<li>
<a href='/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/'><aside class="dates">Aug 9, &#39;15</aside></a>
<a href='/2015/08/09/deleteing-rows-with-a-left-join-in-mysql/'>Deleting rows with a LEFT JOIN in MySQL <h2></h2></a>

+ 10
- 5
public/sitemap.xml View File

@@ -2,6 +2,11 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/post/2018-02-12-basic-server-setup-ubuntu/</loc>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
</url>
<url>
<loc>/post/2018-02-09-ubuntu-sudo-nopasswd/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
@@ -219,13 +224,13 @@
<url>
<loc>/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>/tags/linux/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
<priority>0</priority>
</url>
@@ -255,7 +260,7 @@
<url>
<loc>/post/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
<priority>0</priority>
</url>
@@ -291,7 +296,7 @@
<url>
<loc>/tags/reference/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
<priority>0</priority>
</url>
@@ -345,7 +350,7 @@
<url>
<loc>/tags/ubuntu/</loc>
<lastmod>2018-02-09T22:12:00+02:00</lastmod>
<lastmod>2018-02-12T20:51:00+02:00</lastmod>
<priority>0</priority>
</url>

+ 3
- 3
public/tags/index.xml View File

@@ -194,7 +194,7 @@
<item>
<title>Linux</title>
<link>/tags/linux/</link>
<pubDate>Fri, 09 Feb 2018 22:12:00 +0200</pubDate>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/tags/linux/</guid>
<description></description>
@@ -239,7 +239,7 @@
<item>
<title>Reference</title>
<link>/tags/reference/</link>
<pubDate>Fri, 09 Feb 2018 22:12:00 +0200</pubDate>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/tags/reference/</guid>
<description></description>
@@ -311,7 +311,7 @@
<item>
<title>Ubuntu</title>
<link>/tags/ubuntu/</link>
<pubDate>Fri, 09 Feb 2018 22:12:00 +0200</pubDate>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/tags/ubuntu/</guid>
<description></description>

+ 10
- 2
public/tags/linux/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -81,9 +81,17 @@
<li>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'>Basic server setup (Ubuntu) <h2>First steps when setting up a new Ubuntu server.</h2></a>
</li>
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>

+ 11
- 1
public/tags/linux/index.xml View File

@@ -6,11 +6,21 @@
<description>Recent content in Linux on Kim Grytøyr</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 09 Feb 2018 22:12:00 +0200</lastBuildDate>
<lastBuildDate>Mon, 12 Feb 2018 20:51:00 +0200</lastBuildDate>
<atom:link href="/tags/linux/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Basic server setup (Ubuntu)</title>
<link>/post/2018-02-12-basic-server-setup-ubuntu/</link>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/post/2018-02-12-basic-server-setup-ubuntu/</guid>
<description>Disclaimer: This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&amp;rsquo;s Initial Server Setup with Ubuntu 16.04 and my own memory. There are some important steps that aren&amp;rsquo;t included in this guide. If you&amp;rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&amp;rsquo;s guide instead.
All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</description>
</item>
<item>
<title>Disabling password for sudo in Ubuntu</title>
<link>/post/2018-02-09-ubuntu-sudo-nopasswd/</link>

+ 3
- 3
public/tags/page/3/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -82,7 +82,7 @@
<li>
<a href='/tags/linux/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/tags/linux/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/tags/linux/'>Linux <h2></h2></a>
</li>
@@ -122,7 +122,7 @@
<li>
<a href='/tags/reference/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/tags/reference/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/tags/reference/'>Reference <h2></h2></a>
</li>

+ 1
- 1
public/tags/page/4/index.html View File

@@ -106,7 +106,7 @@
<li>
<a href='/tags/ubuntu/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/tags/ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/tags/ubuntu/'>Ubuntu <h2></h2></a>
</li>

+ 10
- 2
public/tags/reference/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -81,9 +81,17 @@
<li>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'>Basic server setup (Ubuntu) <h2>First steps when setting up a new Ubuntu server.</h2></a>
</li>
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>

+ 11
- 1
public/tags/reference/index.xml View File

@@ -6,11 +6,21 @@
<description>Recent content in Reference on Kim Grytøyr</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 09 Feb 2018 22:12:00 +0200</lastBuildDate>
<lastBuildDate>Mon, 12 Feb 2018 20:51:00 +0200</lastBuildDate>
<atom:link href="/tags/reference/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Basic server setup (Ubuntu)</title>
<link>/post/2018-02-12-basic-server-setup-ubuntu/</link>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/post/2018-02-12-basic-server-setup-ubuntu/</guid>
<description>Disclaimer: This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&amp;rsquo;s Initial Server Setup with Ubuntu 16.04 and my own memory. There are some important steps that aren&amp;rsquo;t included in this guide. If you&amp;rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&amp;rsquo;s guide instead.
All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</description>
</item>
<item>
<title>Disabling password for sudo in Ubuntu</title>
<link>/post/2018-02-09-ubuntu-sudo-nopasswd/</link>

+ 1
- 1
public/tags/sudo/index.html View File

@@ -83,7 +83,7 @@
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>

+ 10
- 2
public/tags/ubuntu/index.html View File

@@ -26,7 +26,7 @@



<meta property="og:updated_time" content="2018-02-09T22:12:00&#43;02:00"/>
<meta property="og:updated_time" content="2018-02-12T20:51:00&#43;02:00"/>



@@ -81,9 +81,17 @@
<li>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'><aside class="dates">Feb 12, &#39;18</aside></a>
<a href='/post/2018-02-12-basic-server-setup-ubuntu/'>Basic server setup (Ubuntu) <h2>First steps when setting up a new Ubuntu server.</h2></a>
</li>
<li>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'><aside class="dates">Feb 9, &#39;18</aside></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>Reference</h2></a>
<a href='/post/2018-02-09-ubuntu-sudo-nopasswd/'>Disabling password for sudo in Ubuntu <h2>I always forget how to do this&hellip;</h2></a>
</li>

+ 11
- 1
public/tags/ubuntu/index.xml View File

@@ -6,11 +6,21 @@
<description>Recent content in Ubuntu on Kim Grytøyr</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Fri, 09 Feb 2018 22:12:00 +0200</lastBuildDate>
<lastBuildDate>Mon, 12 Feb 2018 20:51:00 +0200</lastBuildDate>
<atom:link href="/tags/ubuntu/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Basic server setup (Ubuntu)</title>
<link>/post/2018-02-12-basic-server-setup-ubuntu/</link>
<pubDate>Mon, 12 Feb 2018 20:51:00 +0200</pubDate>
<guid>/post/2018-02-12-basic-server-setup-ubuntu/</guid>
<description>Disclaimer: This short guide is basically just a reminder to myself, where most of the content is based on Digital Ocean&amp;rsquo;s Initial Server Setup with Ubuntu 16.04 and my own memory. There are some important steps that aren&amp;rsquo;t included in this guide. If you&amp;rsquo;re new to Linux or Ubuntu, I suggest that you read Digital Ocean&amp;rsquo;s guide instead.
All commands in this guide (unless otherwise stated) assume you are currently logged in as root.</description>
</item>
<item>
<title>Disabling password for sudo in Ubuntu</title>
<link>/post/2018-02-09-ubuntu-sudo-nopasswd/</link>

Loading…
Cancel
Save