Ubuntu Server Setup
Some Personal Preferences
Updated: 23 December 2025
SSH Setup
1. Install SSH
1sudo apt update2sudo apt install openssh-serverNote using this SSH server you also connect for remote development using VSCode Remote Development, Additionally you can install the VSCode docker extension to work with docker on the server
2. Check SSH Status
1sudo systemctl status ssh3. Start/Stop SSH Server
If the SSH server is not working for some reason you can stop/start as needed
1sudo systemctl stop ssh2sudo systemctl start ssh4. Log in From Remote
You can log in using the following command from a machine with SSH installed
1ssh username@ipaddressYour username will be the same as your Ubuntu UN, and the IP can be found by running the following commmand on the Server
1ip address | grep inetOr more easily using
Next use the relevant inet ip address of the form x.x.x.x, e.g. 192.168.0.2
You should also be able to access applications running on this server on their respective ports at the relevant IP
RDP Setup
From Windows using RDP you will need to first install and activate the RDP Client, this can be done with
1sudo apt install xrdp2sudo systemctl enable xrdpThen connect from RDP with the server IP and Username/Password
This is currently untested
Open Ports
You can allow ports through your firewall (if this is a problem) with the following commans
1## sudo ufw allow <PORTNUMBER>2sudo ufw allow 80803sudo ufw statusVS Code Server Setup
Leaving this here for reference but just note that if you are using the VSCODE Remote development extension this will be automatically installed on the server IDK how it connects though ~ I think using SSH (who knows)
You can run code-server using a Docker Image with the following command
1docker run -it -p 8443:8443 --name vscode -v "${PWD}/repos:/home/coder/project" -d codercom/code-server --allow-http --no-authDocker
I have not tested this installation method but it looks like docker provides an installation script that you can use on GitHub
To use it you can run the following:
1curl -fsSL https://get.docker.com -o get-docker.sh2sh get-docker.shJenkins
Configuring Jenkins on an Ubuntu server can be done by following these instructions, or the following steps below:
1sudo apt update2sudo apt install openjdk-8-jdk3wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -4sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'5sudo apt update6sudo apt install jenkinsYou can then verify it is running with
1systemctl status jenkinsYou can then go through the normal Jenkins Setup. Note that the initial admin password can be found with:
1sudo cat /var/lib/jenkins/secrets/initialAdminPasswordAfter installation be sure to add the Blue Ocean Plugin. Otherwise like what are you even doing? You can do that from Configure >