In this document we describe an installation of Puppet configuration manager on a Ubuntu Linux 14.04 Trusty Tahr. The installation will be followed by a simple puppet manifest example to make sure that installation was successful and puppet ready to use as standalone deployment.
First we need to inlcude puppet repository to our Ubuntu 14.04 Trusty Tahr Linux system:
$ wget http://apt.puppetlabs.com/puppetlabs-release-trusty.deb
$ sudo dpkg -i puppetlabs-release-trusty.deb 
$ sudo apt-get update
Now we are ready to install an appropriate puppet package which will fetch all necessary prerequisites requirements:
$ sudo apt-get install puppet
After a successful execution of the above command check the puppet version to get a first indication of working puppet manager on your system.
$ puppet --version
3.6.2
In the next step we are ready to test our Puppet installation with a simple puppet manifest file puppet-test.pp, which will do nothing else just create a file /tmp/puppet with a content: "Puppet installation, successful".
$ cat puppet-test.pp
file { '/tmp/puppet':
	content => "Puppet installation, successful",
}

If you have forgotten or lost your root password and unable to login to your Ubuntu 14.04 linux system then follow the instructions below to recover your root password.

Step 1 - Reboot to GRUB2 boot menu

First reboot/reset your system to GRUB2 boot loader menu. Navigate to the menu item you normally boot you Ubuntu system from and press "e" for edit.

Step 2 - Modify boot options

Find the line which starts with "linux". Navigate to the end of the line and add:
init=/bin/bash
as illustrated on the screen-shot below: Ubuntu 14.04 Lost Password Recovery Grub 2

Step 3 - Boot your system

Once you have changed boot options as indicated in the previous step press F10 to instruct your Ubuntu system to boot. Your system will boot and you will be provided with root command line prompt.

ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.