Difference between revisions of "Ubuntu 12.04"

From FOG Project
Jump to: navigation, search
(Enabling Root on Ubuntu)
 
Line 25: Line 25:
  
 
== Setting static IP ==
 
== Setting static IP ==
To be continued.
+
# Click the “Dash Home” icon again, in the text box at the top type “Network” and select the first icon in the list displayed as “Network”. Select Wired and click Options. Select the “IPV4 Settings” tab and change the method from Automatic to Manual, Add, and supply the server with a proper IP address and information. Click Save. Your connection will reconnect.
 +
# Next click on FireFox and in the browser navigate to the webpage http://www.fogproject.org and follow the download links to download the latest version of FOG, at the time of writing it is 0.32. Right mouse click and select show in folder and close your browser and all other open windows. Move the file to your desktop if you haven’t already. Right mouse click and select “Extract Here”.
 +
 
 +
''' NOTE: GIVEN THE DATE OF THE FOG 0.32 REVISION SOME PACKAGES ARE NO LONGER SUPPORTED AND MUST BE UPDATED WE WILL DO THIS FIRST!!! '''
 +
== Update Packages ==
 +
# Click on the “Dash Home” Icon again, type “Terminal” into the search box and select the first Icon. Now we are going to install FOG and configure it. We will do the installation through the Terminal with a number of commands, please follow them and remember to press enter after each line. Note the Capital and lower case letters, linux is VERY picky, “A” is not the same as “a”.
 +
 
 +
# From the terminal Type the following Commands:
 +
#* <pre>cd Desktop/
 +
cd fog_0.32/
 +
cd /packages
 +
wget https://svn.code.sf.net/p/freeghost/code/trunk/packages/udpcast-20120424.tar.gz
 +
rm -f udpcast-20071228.tar.gz
 +
sed -i 's:udpcastout="udpcast-20071228":udpcastout="udpcast-20120424":' ../lib/common/config.sh
 +
sed -i 's:udpcastsrc="../packages/udpcast-20071228.tar.gz":udpcastsrc="../packages/udpcast-20120424.tar.gz":' ../lib/common/config.sh
 +
cd ../bin/
 +
sudo ./installfog.sh</pre>
 +
# The following commands are for the installfog.sh installer information.  '''Change the relevant values for your particular system.'''
 +
#* Type 2 and press Enter for Ubuntu installation.
 +
#* Type N and press Enter for Normal installation
 +
#* Supply IP Address, it SHOULD be the static IP address you set up earlier, if it is not please revert to step 5 and try again.
 +
#* Type Y and press Enter setup DHCP Server.
 +
#* Enter the IP Address associated with your DHCP Server
 +
#* Type Y and press Enter to set up DNS.
 +
#* Enter the DNS Server address and press Enter.
 +
#* Type N and press Enter to leave the default Network Card the same.
 +
#* Type N to disable DHCP Service.
 +
#* '''NOTE: It tells you that in order to use your PXE server you have to run a few commands on your DHCP server, this is not entirely true, but it definitely helps, this will point your clients to your server, or you can disconnect your server from the outside world while you image.'''
 +
#* Type N to not install Additional Languages.
 +
#* Type Y and press Enter.
 +
# Next it will verify the settings, make sure everything has been entered correctly.
 +
#* '''NOTE: I set up Fog with default passwords for MYSQL and users, you can supply information if you like, just make notes.'''
 +
#* Type a password for the “root” user in MySQL and press enter.
 +
#* Type the Password again and press enter.
 +
#* Type the Password again and press enter.
 +
#* Type Y to send your install information to the Project, and it will take some time to complete.
 +
# Now we need to set up the web GUI for FOG. Open your browser and navigate to http://(serveripaddress)/fog/management. Or click the link in the Terminal window.
 +
# The web GUI will alert you to back up your database for MYSQL Server and install the upgrades, do so and follow the upgrade instructions.
 +
# Next log in, default user name is FOG and the password is password.
 +
# Click “User Management” the Second Icon from the Left. Click “New User” on the left and set up a new user. Supply the name, password, and check the “Mobile/Quick Access only” box and press create user. In the PXE menu when doing a Quick Image, you will need to provide the username and password specified here to complete the image process.
 +
# Image Management will allow you to create images, '''NOTE: MUST BE DONE PRIOR TO IMPORTING A HOST TO YOUR FOG SERVER''', otherwise you will have to create one and select it later. Click “New Image” on the left. Give the image a name, a description, select “Default” for Storage, and give the file a name, no spaces. Select Multiple Partition image – Single Disk (Not resizeable) or Multiple Partition image – All Disks (Not resizeable) I have never had a problem using these settings. However Single Partition (NTFS, Only Re-sizable) will work as well. DO NOT use the RAW format, it takes a long time to upload and does so sector by sector. This would be a recommendation if you are backing up a Linux partition. Click Add.
 +
# Host Management will allow you to manually add or manage a host, I recommend using the PXE menu to register your hosts, but if you need to change information or the image type you can do it here.
 +
# Your FOG server is configured and setup, register a host via the PXE menu.
 +
# On your FOG Server in the WEB GUI, click on Task Management. On the left hand side, select “List all hosts” click on the “Upload” arrow for the host you just added. Select when you want the task to run, I set it a few minutes in the future. FOG has the ability to reboot your machine into the PXE menu to begin it’s process, but I simply reboot the computer, fog will find it and begin the image process
 +
# CONGRATULATIONS you now have a working FOG Server and a host image ready to deploy. In order to deploy an Image, boot into the PXE menu and register the host, next select “Quick Image” and begin the image process, or select the host from the “Task Management” screen and select “Deploy” and reboot the workstation after supplying a time to begin the task, the workstation will begin its image process.

Revision as of 10:17, 14 April 2014

USE AT YOUR OWN RISK: We are not responsible for any damage to yourself, hardware, or co-workers. Use at your own risk. This is a set up that was proven to work in at LEAST 3 test environments. Any misuse or replication of this walk through in any other form is STRICTLY PROHIBITED.

Ubuntu 12.04, 12.10, 13.10 Setup & Installation

  1. Insert your Ubuntu installation disc and reboot the computer. Boot from the disc, Ubuntu will launch in it’s live form for you to get a feel for the OS or install. You will be presented with two options, install Ubuntu or run a Live instance. Click the “Install Ubuntu” Option when it is presented to you at the Welcome screen.
  2. Proceed with a normal install of Ubuntu. It is recommended to make the choice to Download the Latest updates while installing by Ticking the checkbox. Ubuntu will now examine hardware and alert you of any previously existing operating systems. Recommended that you remove all information unless you have other OS's you want to keep on the system. During the install Ubuntu will ask you to set your timezone, Layout, and some user information such as a user name and password. Set this information to your liking. In the latest flavors of Ubuntu the Root user account is disabled, after installation this guide will show you how to enable it. Ubuntu will copy files and begin the installation.
  3. After installation is complete, reboot. Remove the installation disc and press enter, your computer will reboot and boot up in it’s new operating system that is much faster and more durable than it’s squishy, virus prone, partners. Log in with the Password and the User you specified during installation.

Your system should now be installed and ready to go.

Enabling Root on Ubuntu

  1. Please open up a terminal or console and log in as the user you created.
  2. To gain access, enter the following command and re-type the user password.
    • sudo su -
  3. Then type the following command:
    • passwd root
    • It will ask you to enter the new password. You will not see anything being entered, but it is typing. Once complete Press Enter.
    • It will ask you to confirm the password. You will not see anything being entered, but it is typing. Once complete Press Enter.
    • The terminal will return with Password updated successfully!
  4. Type or copy the following code into the terminal and press enter.
    • echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf
  5. Please restart the machine with the command:
    • shutdown -r now
  6. Once the system returns, you can now login as the root user even from the GUI. Just type the username: root in the Password field, you'll type the password you set in the passwd root command above.

Setting static IP

  1. Click the “Dash Home” icon again, in the text box at the top type “Network” and select the first icon in the list displayed as “Network”. Select Wired and click Options. Select the “IPV4 Settings” tab and change the method from Automatic to Manual, Add, and supply the server with a proper IP address and information. Click Save. Your connection will reconnect.
  2. Next click on FireFox and in the browser navigate to the webpage http://www.fogproject.org and follow the download links to download the latest version of FOG, at the time of writing it is 0.32. Right mouse click and select show in folder and close your browser and all other open windows. Move the file to your desktop if you haven’t already. Right mouse click and select “Extract Here”.

NOTE: GIVEN THE DATE OF THE FOG 0.32 REVISION SOME PACKAGES ARE NO LONGER SUPPORTED AND MUST BE UPDATED WE WILL DO THIS FIRST!!!

Update Packages

  1. Click on the “Dash Home” Icon again, type “Terminal” into the search box and select the first Icon. Now we are going to install FOG and configure it. We will do the installation through the Terminal with a number of commands, please follow them and remember to press enter after each line. Note the Capital and lower case letters, linux is VERY picky, “A” is not the same as “a”.
  1. From the terminal Type the following Commands:
    • cd Desktop/

cd fog_0.32/ cd /packages wget https://svn.code.sf.net/p/freeghost/code/trunk/packages/udpcast-20120424.tar.gz rm -f udpcast-20071228.tar.gz sed -i 's:udpcastout="udpcast-20071228":udpcastout="udpcast-20120424":' ../lib/common/config.sh sed -i 's:udpcastsrc="../packages/udpcast-20071228.tar.gz":udpcastsrc="../packages/udpcast-20120424.tar.gz":' ../lib/common/config.sh cd ../bin/

sudo ./installfog.sh
  1. The following commands are for the installfog.sh installer information. Change the relevant values for your particular system.
    • Type 2 and press Enter for Ubuntu installation.
    • Type N and press Enter for Normal installation
    • Supply IP Address, it SHOULD be the static IP address you set up earlier, if it is not please revert to step 5 and try again.
    • Type Y and press Enter setup DHCP Server.
    • Enter the IP Address associated with your DHCP Server
    • Type Y and press Enter to set up DNS.
    • Enter the DNS Server address and press Enter.
    • Type N and press Enter to leave the default Network Card the same.
    • Type N to disable DHCP Service.
    • NOTE: It tells you that in order to use your PXE server you have to run a few commands on your DHCP server, this is not entirely true, but it definitely helps, this will point your clients to your server, or you can disconnect your server from the outside world while you image.
    • Type N to not install Additional Languages.
    • Type Y and press Enter.
  2. Next it will verify the settings, make sure everything has been entered correctly.
    • NOTE: I set up Fog with default passwords for MYSQL and users, you can supply information if you like, just make notes.
    • Type a password for the “root” user in MySQL and press enter.
    • Type the Password again and press enter.
    • Type the Password again and press enter.
    • Type Y to send your install information to the Project, and it will take some time to complete.
  3. Now we need to set up the web GUI for FOG. Open your browser and navigate to http://(serveripaddress)/fog/management. Or click the link in the Terminal window.
  4. The web GUI will alert you to back up your database for MYSQL Server and install the upgrades, do so and follow the upgrade instructions.
  5. Next log in, default user name is FOG and the password is password.
  6. Click “User Management” the Second Icon from the Left. Click “New User” on the left and set up a new user. Supply the name, password, and check the “Mobile/Quick Access only” box and press create user. In the PXE menu when doing a Quick Image, you will need to provide the username and password specified here to complete the image process.
  7. Image Management will allow you to create images, NOTE: MUST BE DONE PRIOR TO IMPORTING A HOST TO YOUR FOG SERVER, otherwise you will have to create one and select it later. Click “New Image” on the left. Give the image a name, a description, select “Default” for Storage, and give the file a name, no spaces. Select Multiple Partition image – Single Disk (Not resizeable) or Multiple Partition image – All Disks (Not resizeable) I have never had a problem using these settings. However Single Partition (NTFS, Only Re-sizable) will work as well. DO NOT use the RAW format, it takes a long time to upload and does so sector by sector. This would be a recommendation if you are backing up a Linux partition. Click Add.
  8. Host Management will allow you to manually add or manage a host, I recommend using the PXE menu to register your hosts, but if you need to change information or the image type you can do it here.
  9. Your FOG server is configured and setup, register a host via the PXE menu.
  10. On your FOG Server in the WEB GUI, click on Task Management. On the left hand side, select “List all hosts” click on the “Upload” arrow for the host you just added. Select when you want the task to run, I set it a few minutes in the future. FOG has the ability to reboot your machine into the PXE menu to begin it’s process, but I simply reboot the computer, fog will find it and begin the image process
  11. CONGRATULATIONS you now have a working FOG Server and a host image ready to deploy. In order to deploy an Image, boot into the PXE menu and register the host, next select “Quick Image” and begin the image process, or select the host from the “Task Management” screen and select “Deploy” and reboot the workstation after supplying a time to begin the task, the workstation will begin its image process.