Ubuntu 14.04 LTS SERVER with second Hard Drive and Multicast working



  • All, this is how I was able to successfully install Ubuntu 14.04 LTS SERVER edition with a second hard drive mounted on the /images folder…

    NOTE: the Setup for Ubuntu named the NICs on the Proliant Server as em1 and em2, though I only used em1.

    [B][FONT=Times New Roman]Installating Ubuntu 14.04.LTS SERVER edition[/FONT][/B]
    [LIST]
    [][FONT=Times New Roman]Boot up the VM using the ISO or Burn a CD to boot the Metal Server[/FONT]
    [
    ][FONT=Times New Roman]Select English as the language[/FONT]
    [][FONT=Times New Roman]For Keyboard Select English US[/FONT]
    [
    ][FONT=Times New Roman]Server Name: FOGSRVR or take your pick… [/FONT]
    [][FONT=Times New Roman]Time: Pacific/Los Angeles (or your time)[/FONT]
    [
    ][FONT=Times New Roman]Create an account [/FONT]
    [][FONT=Times New Roman]Packages Selection[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]OpenSSH (to remote in using PuTTY)[/FONT]
    [][FONT=Times New Roman]LAMP (Linux, Apache, MySQL, PHP)[/FONT]
    [
    ][FONT=Times New Roman]Continue[/FONT]
    [/LIST]
    [][FONT=Times New Roman]Leave the MySQL password blank (just hit ENTER) on all three prompts[/FONT]
    [
    ][FONT=Times New Roman]Finish the install[/FONT]
    [][FONT=Times New Roman]The server restarts[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Configure the Server’s IP[/FONT][/B]
    [FONT=Times New Roman](This is for STATIC IP only… it is better to assign an IP on DHCP, so this is OPTIONAL)[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]nano /etc/network/interfaces[/FONT]
    [*][FONT=Times New Roman]# The primary network interface
    auto eth0
    iface eth0 inet static
    address x.x.x.x
    netmask x.x.x.x
    gateway x.x.x.x
    dns-search example.com
    dns-nameservers x.x.x.x[/FONT]
    [/LIST]
    [SIZE=3][FONT=Times New Roman]Note: in some instances instead of eth0, the NIC may be named differently… to check run “ifconfig”[/FONT][/SIZE]

    [B][SIZE=3][FONT=Times New Roman]Connecting to the Ubuntu server remotely (I prefer PuTTY over the vCenter Console)[/FONT][/SIZE][/B]
    [LIST]
    [][FONT=Times New Roman]PuTTY to the FOG Server (enter the IP and hit enter)[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]You can change the appearance settings, like the font and save the connection/session settings for quick access[/FONT]
    [/LIST]
    [][FONT=Times New Roman]Click OK to accept the encryption key/certificate[/FONT]
    [
    ][FONT=Times New Roman]login to the server with the account you created[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Configuration Tasks before installing FOG 1.2.0[/FONT][/B]
    [LIST]
    [][FONT=Courier New]sudo su -[/FONT]
    [
    ][FONT=Courier New]passwd root[/FONT]
    [][FONT=Courier New]apt-get remove mysql[/FONT]
    [
    ][FONT=Courier New]apt-get remove mysql-server[/FONT]
    [][FONT=Courier New]apt-get install mysql-server [/FONT][FONT=Times New Roman] (leave password blank)[/FONT]
    [
    ][FONT=Courier New]mysql_secure_installation[/FONT]
    [LIST]
    [][FONT=Times New Roman]Set root password? [B]N[/B][/FONT]
    [
    ][FONT=Times New Roman]Remove annonymous users? [B]Y[/B][/FONT]
    [][FONT=Times New Roman]Disallow root login remotely? [B]Y[/B][/FONT]
    [
    ][FONT=Times New Roman]Remove test database… [B]Y[/B][/FONT]
    [][FONT=Times New Roman]Reload privilege tables now? [B]Y[/B][/FONT]
    [/LIST]
    [
    ][FONT=Courier New]apt-get update[/FONT]
    [][FONT=Courier New]apt-get upgrade -y[/FONT]
    [
    ][FONT=Courier New]ufw disable[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Adding a second hard drive/additional storage[/FONT][/B]
    [FONT=Times New Roman]Note: This is for an OS drive “sda” and a Data drive “sdb”[/FONT]
    [LIST]
    [][FONT=Courier New]ls /dev/sd[/FONT]
    [LIST]
    [][FONT=Times New Roman]Because sdb has no partitions there should be no sdb1 or sdb2 (paritions)[/FONT]
    [/LIST]
    [
    ][FONT=Courier New]fdisk /dev/sdb[/FONT]
    [][FONT=Courier New]n[/FONT]
    [
    ][FONT=Courier New]p[/FONT]
    [][FONT=Courier New]Enter[/FONT]
    [
    ][FONT=Courier New]Enter[/FONT]
    [][FONT=Courier New]w[/FONT]
    [
    ][FONT=Courier New]mkfs.ext4 -L /images /dev/sdb1[/FONT]
    [][FONT=Courier New]nano /etc/fstab[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]Add the following line at the botton of this file[/FONT]
    [LIST]
    [][FONT=Courier New]/dev/sdb1 /images ext4 defaults 1 2[/FONT]
    [/LIST]
    [
    ][FONT=Times New Roman]Ctrl + O[/FONT]
    [][FONT=Times New Roman]Enter[/FONT]
    [
    ][FONT=Times New Roman]Ctrl + x[/FONT]
    [/LIST]
    [][FONT=Times New Roman]mkdir /images[/FONT]
    [
    ][FONT=Courier New]mount -a[/FONT]
    [LIST]
    [][FONT=Times New Roman]If there are no errors, then everythig is ok…[/FONT]
    [
    ][FONT=Times New Roman]If there are errors[/FONT]
    [LIST]
    [][FONT=Courier New]nano /etc/fstab[/FONT]
    [/LIST]
    [/LIST]
    [
    ][FONT=Times New Roman]ifconfig[/FONT]
    [LIST]
    [][FONT=Times New Roman]Make a note of the name of the NIC interface such as eth0, em1, eno1, ens32, etc.[/FONT]
    [
    ][FONT=Times New Roman]You can ignore the loopback adapter called “lo”[/FONT]
    [/LIST]
    [/LIST]
    [B][FONT=Times New Roman]Install FOG 1.2.0[/FONT][/B]
    [LIST]
    [][FONT=Courier New]wget [url]http://downloads.sourceforge.net/project/freeghost/FOG/fog_1.2.0/fog_1.2.0.tar.gz[/url][/FONT]
    [
    ][FONT=Courier New]tar -xzf fog_1.2.0.tar.gz[/FONT]
    [][FONT=Courier New]cd fog_1.2.0[/FONT]
    [
    ][FONT=Courier New]cd bin[/FONT]
    [][FONT=Courier New]./installfog.sh[/FONT]
    [
    ][B][FONT=Times New Roman]2[/FONT][/B]
    [][B][FONT=Times New Roman]N[/FONT][/B]
    [
    ][FONT=Times New Roman]Note: This is the section to Configure Networking…[/FONT]
    [][B][FONT=Times New Roman]Enter [/FONT][/B][FONT=Times New Roman] (or specify the IP you assigned this server via DHCP)[/FONT]
    [
    ][B][FONT=Times New Roman]Enter[/FONT][/B][FONT=Times New Roman] (This is the same as the gateway for the subnet)[/FONT]
    [][B][FONT=Times New Roman]Enter[/FONT][/B][FONT=Times New Roman] (DNS server…)[/FONT]
    [
    ][FONT=Times New Roman]Interface:[/FONT]
    [LIST]
    [][FONT=Times New Roman]If the output of the command “ifconfig” showed a NIC named eth0, then you can just hit Enter[/FONT]
    [
    ][FONT=Times New Roman]If the output of the command “ifcondig” showed a NIC named em1, ens32, eno1, etc… specify it here[/FONT]
    [/LIST]
    [][FONT=Times New Roman]for DHCP…[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]If you are on a network with an existing DHCP, then select N[/FONT]
    [][FONT=Times New Roman]If you are going to use this FOG server as a StandAlone server with DHCP, two things:[/FONT]
    [/LIST]
    [LIST=1]
    [
    ][SIZE=3][FONT=Times New Roman]Get ready to disconnect the server from the network after all the packages for FOG are installed[/FONT][/SIZE]
    [][SIZE=3][FONT=Times New Roman]If you are on a business or large network, make sure you work with the network admin and NOT kill the network… mmm k?[/FONT][/SIZE]
    [/LIST]
    [
    ][B][FONT=Times New Roman]N[/FONT][/B][FONT=Times New Roman] for Internationalization[/FONT]
    [][SIZE=3][FONT=Times New Roman][B]Donate is up to you…[/B][/FONT][/SIZE]
    [
    ][FONT=Times New Roman]Review the options you entered[/FONT]
    [][FONT=Times New Roman]Are you sure you with to continue [B]Y[/B][/FONT]
    [
    ][FONT=Times New Roman]Did you leave the MySQL Password blank [B]Y[/B][/FONT]
    [][FONT=Times New Roman]From another computer:[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]Open the link indicated on a Web Broswer and Click the blue button[/FONT]
    [][FONT=Times New Roman]Now back to our server…[/FONT]
    [/LIST]
    [
    ][FONT=Times New Roman]Enter[/FONT]
    [][FONT=Times New Roman]Login to the Fog Server using a web browser to test that it is up and running…[/FONT]
    [
    ][FONT=Times New Roman]touch /images/.mntcheck[/FONT]
    [][FONT=Times New Roman]touch /images/dev/.mntcheck[/FONT]
    [
    ][FONT=Times New Roman]chown -R fog /images[/FONT]
    [][FONT=Times New Roman]chmod -R 777 /images[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Configuring Services to restart [/FONT][/B]
    [FONT=Times New Roman](on Ubuntu 14.04 LTS, services crash on boot, here is how we fix that)[/FONT]
    [LIST]
    [
    ][FONT=Courier New]nano /etc/rc.local[/FONT]
    [LIST]
    [][FONT=Times New Roman]Add this lines [B]before[/B] the exit 0[/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]sleep 6 && service tftpd-hpa restart[/FONT]
    [][FONT=Times New Roman]sleep 6 && service mysql restart[/FONT]
    [
    ][FONT=Times New Roman]sleep 6 && service FOGMulticastManager restart[/FONT]
    [/LIST]
    [/LIST]
    [][FONT=Courier New]Ctrl + O[/FONT]
    [
    ][FONT=Courier New]Enter[/FONT]
    [][FONT=Courier New]Ctrl + x[/FONT]
    [
    ][FONT=Courier New]init 6[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Configuring FOG Settings[/FONT][/B]
    [LIST]
    [][FONT=Times New Roman]Login to the FOG Server using a web browser[/FONT]
    [
    ][B][FONT=Times New Roman]Users[/FONT][/B][FONT=Times New Roman] > [B]List All Users[/B] >[B] fog[/B][/FONT]
    [][FONT=Times New Roman]Change the password[/FONT]
    [/LIST]
    [B][FONT=Times New Roman]Optional Stuff[/FONT][/B]
    [LIST]
    [
    ][B][FONT=Times New Roman]Create New user[/FONT][/B][FONT=Times New Roman] > [B]image > [/B][/FONT][COLOR=#555555][FONT=Arial]Mobile/Quick Image Access Only[/FONT][/COLOR] [B]Check[/B]
    [][B][FONT=Times New Roman]Fog Configuration[/FONT][/B][FONT=Times New Roman] (?) > [B]PXE Boot Menu[/B][/FONT]
    [LIST]
    [
    ][FONT=Times New Roman]Hide Menu [B]Check[/B][/FONT]
    [][FONT=Times New Roman]Boot Key Sequence [B]F9 - (31)[/B][/FONT]
    [
    ][FONT=Times New Roman]Timeout [B]5[/B][/FONT]
    [][B][FONT=Times New Roman]Save PXE MENU[/FONT][/B]
    [/LIST]
    [
    ][FONT=Times New Roman]Done[/FONT]
    [/LIST]
    [FONT=Times New Roman]For other settings, well… Google it… :)[/FONT]



  • that’s great, thank you


  • Developer

    I would recommend Debian.

    I know Ubuntu looks the same but there have been changes behind the scenes where files are stored and this causes problems with the installation and the scripts because it doesn’t know where to find the information.

    a LOT of the bugs we were facing have been squashed, but this is NOT the first time that Ubuntu has broken the debian mold it is built from.

    We only recommend Ubuntu because Ubuntu was built to be easy to use for those that have never used linux before, and since they have made it difficult to drop FOG in place, we no longer recommend Ubuntu version 14.04 or higher.



  • [quote=“Jaymes Driver, post: 35793, member: 3582”]Very nice guide, but I feel it should be stated, and possibly even at the very top of your guide, that [B]Ubuntu 14.04 is NOT a recommended OS for installation[/B].

    Thank you for taking the time to document your steps, we appreciate your work :)[/quote]
    Jaymes, what is the reccomended OS for the server install. I would like to use 14.04 seeing as it is LTS, is the above post by Jose the only known issue?
    Or would you reccomend the latest Debian
    Thanks



  • [quote=“Jaymes Driver, post: 35793, member: 3582”]Very nice guide, but I feel it should be stated, and possibly even at the very top of your guide, that [B]Ubuntu 14.04 is NOT a recommended OS for installation[/B].

    Thank you for taking the time to document your steps, we appreciate your work :)[/quote]

    True… It has worked mostly reliably until the FOGMulticastManager service crashes and starts adding an un-ending line of “@@@@@@@@@” once a week and that same service needs to be:

    [INDENT=1]service FOGMulticastManager stop[/INDENT]
    [INDENT=1]wait 30 sec or more[/INDENT]
    [INDENT=1]service FOGMulticastManager start[/INDENT]

    to get it working again…

    So I’ll be adding a cron job to do those two lines on Sundays at 2AM…

    So far this is the only glitch I have found with Ubuntu LTS Server 14.04…


  • Developer

    Very nice guide, but I feel it should be stated, and possibly even at the very top of your guide, that [B]Ubuntu 14.04 is NOT a recommended OS for installation[/B].

    Thank you for taking the time to document your steps, we appreciate your work :)



  • This post is deleted!

Log in to reply
 

358
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.