You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
3.5 KiB
HTML
100 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="title" content="I've started a blog">
|
|
<meta name="description" content="A new step for aney.co.uk, there's now a blog.">
|
|
<meta name="keywords" content="Blog, articles, news">
|
|
<meta name="author" content="Nathan (Aney) Steel">
|
|
<meta name="theme-color" content="white">
|
|
<meta name="theme-color" content="black">
|
|
<link rel="stylesheet" type="text/css" href="/main.css">
|
|
<link rel="icon" type="image/png" href="/images/favicon.svg">
|
|
<title>Debian Server Setup</title>
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<h1>Debian Server Setup</h1>
|
|
<hr/>
|
|
<nav>
|
|
<a href="/">home</a>
|
|
<a href="/equipment.html">equipment</a>
|
|
<a href="/projects.html">projects</a>
|
|
<a href="/blog/">blog</a>
|
|
<a href="/sitemap.html">misc</a>
|
|
<a href="/support.html">support</a>
|
|
</nav>
|
|
<hr/>
|
|
</header>
|
|
|
|
<main>
|
|
<section>
|
|
<p>This section assumes you have a fresh Debian 11 install on a server (either physical or VPS)</p>
|
|
<p>It will cover installing the essentials for access, and basic security so you don't need to worry in the future. This section may seem a little daunting for a first-time linux user, but most of it is copy/paste, hopefully with enough description to understand what is being done.</p>
|
|
</section>
|
|
|
|
<section>
|
|
<p>This first section will be done on the physical PC, or on the VPS via their website</p>
|
|
<h2>Update the OS</h2>
|
|
<p>Even with a fresh install of Debian from the latest ISO, there may be some updates you're missing, and it's a good idea to have these, especially in case they're security updates.</p>>
|
|
<pre>
|
|
<code>
|
|
root# apt update && apt upgrade
|
|
</code>
|
|
</pre>
|
|
|
|
<h2>Install essential packages</h2>
|
|
<p>These are packages that are needed for accessing, and controlling the server</p>
|
|
<pre>
|
|
<code>
|
|
root# apt install sudo ssh
|
|
</code>
|
|
</pre>
|
|
<h3>Some useful packages too</h3>
|
|
<pre>
|
|
<code>
|
|
root# apt install vim htop wget curl tmux
|
|
</code>
|
|
</pre>
|
|
|
|
<h2>Add a user, and give super user privilleges</h2>
|
|
<p>You want to avoid using root as much as possible in regular use, so a new user for yourself is a must</p>
|
|
<pre>
|
|
<code>
|
|
root# adduser <USERNAME>
|
|
root# usermod -aG sudo <USERNAME>
|
|
</code>
|
|
</pre>
|
|
<p>*replace <USERNAME> with the user you want to create, e.g. nathan</p>
|
|
|
|
<h2>Set static IP</h2>
|
|
<p><strong>TODO: Homeserver</strong>. If the server is a physical PC in your home you will need to set a static IP, otherwise your router could assign a differnent IP on reboot, and this would mess with port forwarding, and internal DNS.</p>
|
|
|
|
<h2>Secure ssh</h2>
|
|
|
|
<h2>Setup UFW</h2>
|
|
|
|
<h2>Set hostname</h2>
|
|
<p>Setting the name for a server is an important step, but the name doesn't need to be serious</p>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
<p>This next section can be done via a terminal, or a SSH client else you can secure shell with e.g. PuTTY for Windows</p>
|
|
<h2>Create an SSH key</h2>
|
|
<h2>SSH into the server</h2>
|
|
|
|
|
|
</section>
|
|
</main>
|
|
|
|
<footer>
|
|
<hr/>
|
|
<p>Written by <a href="http://www.aney.co.uk" target="_blank" rel="noopener noreferrer">@aney</a> with <a href="https://danluu.com/web-bloat/" target="_blank" rel="noopener noreferrer">web bloat</a> in mind | <a href="https://github.com/Aney/website" target="_blank" rel="noopener noreferrer">Source Code</a></p>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
|