In this article, we will show you how to install GeoServer on Ubuntu 24.04. GeoServer is an open-source server software designed for sharing, processing, and editing geospatial data. It is a powerful tool for serving maps and spatial data over the web, allowing users to create and manage geospatial services using standard protocols.

Steps to Install GeoServer on Ubuntu 24.04
Step 1. Install Java JDK
Download the latest Oracle Java JDK from the link below
https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.deb
Or, you can simply open Terminal and paste this command to download
wget https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.deb
And then install it using this command
sudo dpkg -i jdk-24_linux-x64_bin.deb
Once installed, check it if Java correctly installed
java --version
It should show something like this
dhani@geoserver:~$ java --version
java 23.0.2 2025-01-21
Java(TM) SE Runtime Environment (build 23.0.2+7-58)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.2+7-58, mixed mode, sharing)
Step 2. Install GeoServer package
Now download the latest GeoServer package
wget https://sourceforge.net/projects/geoserver/files/GeoServer/2.26.2/geoserver-2.26.2-bin.zip
Now extract the zip package to /usr/share/geoserver
sudo unzip geoserver-2.26.2-bin.zip -d /usr/share/geoserver
sudo chmod -R dhani /usr/share/geoserver
Change dhani with your actual user. Now set the environmental variable
echo "export GEOSERVER_HOME=/usr/share/geoserver" >> ~/.profile
. ~/.profile
Step 3. Start GeoServer
To start GeoServer, change directory to /usr/share/geoserver/bin. And then run the startup.sh script
cd /usr/share/geoserver/bin
sh startup.sh
Step 4. Create the GeoServer service
If you want to run GeoServer automatically upon system restart, do the following
cd /usr/share/geoserver/bin
sudo chmod +x startup.sh
Create a new systemd file called geoserver.service
sudo nano /etc/systemd/system/geoserver.service
And then paste these lines
[Unit]
Description=GeoServer Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/share/geoserver/bin/startup.sh
Environment="GEOSERVER_HOME=/usr/share/geoserver"
[Install]
WantedBy=multi-user.target
Now save and exit nano. Next, reload systemd.
sudo systemctl daemon-reload
Enable the service on system reboot
sudo systemctl enable geoserver.service
Start the service now
sudo systemctl start geoserver.service
Check status for geoserver service
sudo systemctl status geoserver.service
Output:
dhani@geoserver:~$ sudo systemctl status geoserver.service
● geoserver.service - GeoServer Service
Loaded: loaded (/etc/systemd/system/geoserver.service; enabled; preset: enabled)
Active: active (running) since Sat 2025-03-22 08:31:30 UTC; 5h 50min ago
Main PID: 20374 (java)
Tasks: 45 (limit: 4565)
Memory: 869.7M (peak: 1.3G)
CPU: 2min 58.967s
CGroup: /system.slice/geoserver.service
└─20374 java --add-exports=java.desktop/sun.awt.image=ALL-UNNAMED --add-opens=java.b>
Mar 22 14:10:37 geoserver startup.sh[20374]: StyleUrl = null
Mar 22 14:10:37 geoserver startup.sh[20374]: StyleVersion = null
Mar 22 14:10:37 geoserver startup.sh[20374]: Tiled = false
Mar 22 14:10:37 geoserver startup.sh[20374]: TilesOrigin = null
Mar 22 14:10:37 geoserver startup.sh[20374]: Time = []
Mar 22 14:10:37 geoserver startup.sh[20374]: Transparent = true
Mar 22 14:10:37 geoserver startup.sh[20374]: ValidateSchema = false
Mar 22 14:10:37 geoserver startup.sh[20374]: Version = 1.1.1
Mar 22 14:10:37 geoserver startup.sh[20374]: ViewParams = null
Mar 22 14:10:37 geoserver startup.sh[20374]: Width = 768
Step 5. Open GeoServer web admin
Open a web server and then type the Geoserver address
http://192.168.100.140:8080/geoserver

You can login to the admin using the following default credentials
- user: admin
- password: geoserver
Now GeoServer is installed on Ubuntu 24.04. We can then start to create new layers to our GeoServer. For more information, please visit the official GeoServer documentation.