Ubuntu

Setup Ubuntu firewall
         sudo ufw allow 22/tcp (if you're using the standard ssh port) sudo ufw allow 80/tcp (if you're using standard http) sudo ufw enable yes ...
Fri, Sep 24, 2021 at 2:26 PM
Change SSH port and disable root access
         sudo nano -w /etc/ssh/sshd_config change port from 22 to whatever root access from yes to no crtl+x yes enter sudo service sshd restart     
Fri, Sep 24, 2021 at 2:26 PM
How to add a user in ubuntu
adduser "username" (no quotes)
Fri, Sep 24, 2021 at 2:27 PM
How to add a user to sudo group
sudo gpasswd -a username sudo
Fri, Sep 24, 2021 at 2:27 PM
Configure time zone on Ubuntu
sudo dpkg-reconfigure tzdata
Fri, Sep 24, 2021 at 2:35 PM
Install NTP (client) on Ubuntu
     sudo apt-get update sudo apt-get install ntp yes service ntp status     
Thu, Jan 20, 2022 at 9:29 PM
Change Ubuntu 20.04 IP
sudo nano /etc/netplan/00-installer-config.yaml Copy and paste (or type) the following then, edit it where needed. The spaces/indentions, version numb...
Mon, Jun 26, 2023 at 8:44 PM
Schedule a one time reboot on Ubuntu
SSH into the OS or use Terminal Type date (time will be displayed as 17:30 Type sudo at 18:00 (this schedules the next command to run in 30 min from 17:3...
Thu, Jan 20, 2022 at 9:25 PM
Enable automatic security updates on Ubuntu & Raspian
Ubuntu sudo dpkg-reconfigure --priority=low unattended-upgrades Raspian Update the package list, update all packages and remove any packages that are no ...
Thu, Jan 20, 2022 at 9:28 PM
Install Unifi Controller on Ubuntu
Add rules to the firewall and enable it sudo ufw allow 22/tcp sudo ufw allow 8080/tcp sudo ufw allow 8443/tcp sudo ufw allow 8880/tcp sudo ufw allow 8...
Thu, Jan 20, 2022 at 9:33 PM