Here’s the easiest way to add a user to sudo group. First create the user you want: Then add the user to sudo group: That’s it. Now login as the user.
Category: Bash
Ubuntu 20.04 SSH + TOTP
In order to protect your SSH against hacks, the most basic you can do is to change the port, but that is never enough. We know the basics to be disable root logins, change port, enable pubkey authentication, IP based blocking and so on. However, one shoe never fits all. If you keep changing computers,…
Nginx SSL Site Config
Sample configuration used for most SSL sites.
Ubuntu 20.04 Nginx+PHP
This will install Nginx and PHP 7.x on Ubuntu 18.04 or later and perform basic configurations needed to get it up and running. This is used to create servers to serve static content as well as minor PHP scripts that need to run on it. After we’ll set up SSL using LetsEncrypt and use it…
Ubuntu 20.04 Install Samba
So you want to use a linux server on local network. Great, but if you still have to access the files through ssh or ftp, it is troublesome. So why not access the files over samba network share? It is also great when you want to setup a simple NAS server on your local network.
Ubuntu 18.04 Install LLMP stack
With the new MariaDB 10+ they have disabled performance_schema, which means your database will consume minimum amount of memory and you can run Lighttpd, PHP and MariaDB on only 256 MB RAM! So here’s how to do it. We’ll also install phpMyAdmin for easy configuration of our mysql server and set it up securely to…
Proxmox 6 disable subscription invalid message
When you are using the free version of Proxmox 5 or 6, you’ll get a message every time saying your subscription is invalid. This is fine if it was just during the initial login, but it’ll pop up every time you try to open a shell or run updates. Luckily this can be disabled by…
Ubuntu 18.04 Install Aria2c for Downloads with WebUI
This is a simple guide on how to install and configure Aria2c with WebUI for downloading files on your linux server. For the WebUI, we’ll go with lighttpd as it is lightweight, however you can install apache or nginx or even run the file directly from your computer.
Ubuntu 18.04 Install Pi-Hole with PiVPN
This will transform your server into a network wide ad-blocker as well as allowing you to use this ad-blocker from outside your network using the private VPN of PiVPN. These software are originally meant to be installed on a Raspberry Pi, but since you got a space on your server, why not install it? This…
Ubuntu 18.04 Install Lighttpd+PHP
This will install Lighttpd and PHP 7.x on Ubuntu 18.04 or later and perform basic configurations needed to get it up and running. This is used to create isolated dev servers that use as little memory as possible. You can also setup SSL on these using LetsEncrypt, but it is not covered here. This is…