System Administration on Linux
Initial Server Setup. Ubuntu 24.04 LTS
Watch as we set up a brand new DigitalOcean Droplet and prepare it for further software installation. Steps performed: Add a user, give the user 'sudo' privileges, configure UFW firewall.
All the configuration steps are taken directly from DigitalOcean's tutorials. When making your own server, feel free to change any of the steps or to make this process individualized for your needs. The tutorial will stick directly with the article just for consistency!
https://www.digitalocean.com/communit...
First, create your server.
Then, log in:
ssh root@your_server_ip
Create a user.
adduser sammy
Grant privileges by adding your user to the 'sudo' group.
usermod -aG sudo sammy
Set up a firewall. First, list the UFW profiles
ufw app list
Allow the OpenSSH profile.
ufw allow OpenSSH
Enable UFW.
ufw enable
View UFW status.
ufw status
Sync SSH key used to provision the server with the newly created user.
rsync --archive --chown=sammy:sammy ~/.ssh /home/sammy
SSH with the new user account.
ssh sammy@your_server_ip
Of course make sure to substitute your own user name if you aren't named 'sammy'.