Installing Foreman Server Manager on Ubuntu Linux

office 4694143 640
office 4694143 640

Foreman is a complete life-cycle management tool that can be installed on Linux systems, including Ubuntu. It allows system administrators to administer Linux servers via a simple web interface. It makes managing Linux servers a breeze; even a newbie can do it!

Foreman supports agents from Puppet, Chef, Salt, and Ansible and provides reports via its management interface, monitoring host configuration, report status, distribution, and trends.

This tool may be what admins need to easily automate repetitive tasks, quickly deploy applications, and proactively manage servers, on-premise or in the cloud.

For more about Foreman, please check its homepage.

When you want to install Foreman on Ubuntu, please follow the steps below:

Add Foreman Repository

Before installing Foreman, you may want to add its repository to Ubuntu first. Using Puppet 5. x is recommended, which is available from the Puppet Labs repository. To use Puppet 5. x with Puppet Agent and Puppet Server:

sudo apt-get -y install ca-certificates
cd /tmp && wget
sudo dpkg -i /tmp/puppet5-release-bionic.deb

Next, enable the Foreman repository by running the commands below.

echo "deb bionic 1.20" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb plugins 1.20" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get -y install ca-certificates
wget -q -O- | sudo apt-key add -

Install Foreman

Now that the Foreman repository and key have been added to Ubuntu, run the commands below to update and install the package.

sudo apt-get update
sudo apt-get -y install foreman-installer

This will fetch all the supported packages and install them, including Foreman. The installation run is non-interactive, but the configuration can be customized by supplying any of the options listed in foreman-installer –help or by running foreman-installer -I for interactive mode.

After it completes, the installer will print details about where to find Foreman and the Smart Proxy and Puppet master if they were installed along with Foreman. The output should be similar to this:

Foreman is running at
Initial credentials are admin / 3ekw5xtyXCoXxS29
Foreman Proxy is running at
Puppetmaster is running at port 8140
The full log is at /var/log/foreman-installer/foreman-installer.log

If you don’t get the dashboard info above, run the commands below:

sudo foreman-installer

First, ensure the qualified server name is in the /etc/hosts file. And it should be the first entry in the file. Example:      foreman

Now open your browser and browse to the server name or IP address and log in with the admin username and password printed above.

Foreman Ubuntu Install

Log on to the admin portal using the username and password printed above.

Foreman Ubuntu Install

Congratulations! You’ve just installed the Foreman server management tool on Ubuntu 16.04 | 18.04 LTS servers.


This brief post shows students and new users how to install Foreman on Ubuntu 16.04 | 18.04. New users will find managing Ubuntu easy with Foreman. The tool takes away Linux complicity and allows almost anyone to manage Linux like a pro.

Posted by
Richard W

I love computers; maybe way too much. What I learned I try to share at

1 Comment

  1. Hello, Very Nice article. Is this a centralized app for managing more than one server?


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: