Rundeck is an open-source automation and orchestration tool that simplifies various IT tasks like configuring systems, deploying applications, managing servers, etc. In this tutorial, we will guide you through the process of installing Rundeck on Ubuntu Server latest version.
Make sure your Ubuntu Server is fully up to date by running the following command:
sudo apt-get update && sudo apt-get upgrade -y
Rundeck requires Java 8 or higher to run, so you need to install it first. Run the following command to install OpenJDK 11:
sudo apt-get install -y openjdk-11-jdk
Once the installation is complete, verify the Java version by running the following command:
java -version
To download Rundeck, go to http://rundeck.org/downloads.html, and select the version you want to install. For this tutorial, we will use Rundeck 3.4.2. Run the following commands to download and extract the Rundeck package:
wget https://dl.bintray.com/rundeck/rundeck-deb/rundeck_3.4.2-20210126.deb
sudo dpkg -i rundeck_3.4.2-20210126.deb
After installing Rundeck, you need to configure it to connect to your database and set up the admin password.
Rundeck uses a database to store project and job data. Open the Rundeck configuration file using your favorite text editor:
sudo nano /etc/rundeck/framework.properties
Find the following section in the file:
# datasource.${DATABASETYPE}.url=jdbc:h2:file:/var/lib/rundeck/data/rundeckdb;MVCC=true
# datasource.${DATABASETYPE}.username=rundeck
# datasource.${DATABASETYPE}.password=rundeck
Remove the "#" symbol from the beginning of the three lines to uncomment them. Next, replace the H2 database URL with the database connection string for your database server. In this example, we will use MySQL:
datasource.db.url=jdbc:mysql://localhost/rundeck?autoReconnect=true&useSSL=false
datasource.db.username=rundeck
datasource.db.password=rundeck
Save and close the file by pressing "Ctrl + X", then "Y", and "Enter".
Rundeck comes with a default admin account with the username "admin" and the password "admin". We recommend changing the password for security reasons. To do this, run the following command:
sudo ~/bin/rundeck-3.4.2/cli/tools/bin/rd-setup-admin-password
Type the new password and press "Enter". Confirm the new password by retyping it and press "Enter".
Now that you have configured Rundeck, you can start it by running the following command:
sudo service rundeckd start
You can verify that Rundeck is running by visiting the web interface at http://your-server-ip-address:4440. Log in using the admin username and the new password you set up in the previous step.
Congratulations! You have successfully installed and configured Rundeck on Ubuntu Server latest version. You can now use Rundeck to automate your IT tasks and manage your infrastructure more efficiently.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!