Ubuntu Server Setup / Install Notes
- Chris Speed
- Dec 13, 2022
- 1 min read
Updated: Jul 9, 2023
SSH
sudo apt install openssh-server
## enable and start the ssh service immediately ##
sudo systemctl enable ssh --now
Open firewall
sudo ufw allow ssh
sudo ufw enable
sudo ufw status
Edit the logind.conf file
sudo nano /etc/systemd/logind.conf
Make the following changes
HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=no
Restart OS
sudo service systemd-logind restart
Edit the file /etc/default/console-setup
sudo nano /etc/default/console-setup
and change the values for font type and font size to
FONTFACE="TER"
FONTSIZE="16x32"
Save the file and apply the changes with
sudo update-initramfs -u
On the next reboot you will have a much larger font in your TTY.
Webmin
Install dependency packages to help you manage software repositories by using:
sudo apt install software-properties-common apt-transport-https
Add Webmin's GPG key
sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
Add the Webmin repository
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
Install Webmin
sudo apt install webmin
Configure the Firewall
sudo ufw allow 10000/tcp
sudo ufw reload
Set the password for the Webmin root user
sudo /usr/share/webmin/changepass.pl /etc/webmin root [new password]
Access Webmin
https://[your server's IP]:10000/
Surfshark
sudo apt-get install surfshark-vpn
sudo surfshark-vpn
Jellyfin
wget -O- https://repo.jellyfin.org/install-debuntu.sh | sudo bash
Configure the Firewall
sudo ufw allow 10000/tcp
sudo ufw reload
Access Webmin
https://[your server's IP]:8096/
-------------------------------------------------------------------------
References:
askubuntu. Keep Ubuntu Server running on a laptop with the lid closed? https://askubuntu.com/questions/141866/keep-ubuntu-server-running-on-a-laptop-with-the-lid-closed
askubuntu. How do I change the font or the font size in the TTY (console)? https://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console
How to Install Webmin on Ubuntu. https://phoenixnap.com/kb/install-webmin-on-ubuntu
How to set up Surfshark VPN on Linux? (Legacy version). https://support.surfshark.com/hc/en-us/articles/360017418334
I followed the steps to install Webmin, but I ran into issues with dependencies on Ubuntu 24.04. The installation seemed to work, but I couldn’t access the Webmin interface at https://[server IP]:10000/. I checked the firewall settings, and everything seems fine. Has anyone else faced this issue? I also came across this guide on Install Webmin on Ubuntu—wondering if following that method might resolve the problem. Any suggestions?"