Install Ubuntu Server

NOTE: During the setup process, we are going to use the root account to make things easier. Later on, it will be best to use the "sudo" command to only temporarily grant root access rather than logging in with root access.


  1. Power on the Virtual Machine (VM)
  2. Press {ENTER} to accept English
  3. Select Install Ubuntu Server {ENTER}
  4. Press {ENTER} to accept English
  5. Press {ENTER} to accept United States
  6. Select No to not detect keyboard layout
  7. Press {ENTER} to accept USA
  8. Press {ENTER} to accept USA
  9. Type mail {ENTER} (this is your hostname)
  10. Press {ENTER} to accept detected time zone (America/Chicago)
  11. Select Manual {ENTER}
  12. Select SCSI3 (0,0,0) (sda) - 67.6 GB VMware Virtual disk {ENTER}
  13. Select Yes to create new empty partition table, {ENTER}
  14. Select pri/log 67.6 GB FREE SPACE {ENTER}
  15. Select Create a new partition {ENTER}
  16. Type 200 MB, {ENTER} (NOTE: This will be the /boot partition)
  17. Select Primary {ENTER}
  18. Select Beginning {ENTER}
  19. Select Use as: Ext4 journaling file system {ENTER}
  20. Select Ext2 file system {ENTER}
  21. Select Mount point: / {ENTER}
  22. Select /boot - static files of the boot loader {ENTER}
  23. Select Bootable flag: off {ENTER} (NOTE: This toggles it on)
  24. Select Done setting up the partition {ENTER}
  25. Select Configure the Logical Volume Manager {ENTER}
  26. Select Yes to write change to disks and configure LVM, {ENTER}
  27. Select Create volume group {ENTER}
  28. Type LVG {ENTER}
  29. Select /dev/sda free #1 (67445; FREE SPACE), {SPACEBAR}, {ENTER}
  30. Select Yes to write change to disks and configure LVM, {ENTER}
  31. Select Create logical volume {ENTER}
  32. Select LVG (67440MB) {ENTER}
  33. Type swap {ENTER}
  34. Type 8G {ENTER} (NOTE: This is double the amount of RAM)
  35. Select Create logical volume {ENTER}
  36. Select LVG (59441MB) {ENTER}
  37. Type bak {ENTER}
  38. Type 20G {ENTER}
  39. Select Create logical volume {ENTER}
  40. Select LVG (39443MB) {ENTER}
  41. Type opt {ENTER}
  42. Type 10G {ENTER}
  43. Select Create logical volume {ENTER}
  44. Select LVG (29444MB) {ENTER}
  45. Type temp {ENTER}
  46. Type 20G {ENTER}
  47. Select Create logical volume {ENTER}
  48. Select LVG (9445MB) {ENTER}
  49. Type root {ENTER}
  50. Type 9445MB {ENTER} (we are letting it take what is left over)
  51. Select Finish {ENTER}
  52. Select #1 8.0 GB directly under LVM VG LVG, LV swap, {ENTER}
  53. Select Use as: do not use {ENTER}
  54. Select swap area {ENTER}
  55. Select Done setting up the partition {ENTER}
  56. Select #1 9.4 GB directly under LVM VG LVG, LV root, {ENTER}
  57. Select Use as: do not use {ENTER}
  58. Select Ext4 journaling file system {ENTER}
  59. Select Mount point: none {ENTER}
  60. Select / - the root file system {ENTER}
  61. Select Done setting up the partition {ENTER}
  62. Select #1 20.0 GB directly under LVM VG LVG, LV bak, {ENTER}
  63. Select Use as: do not use {ENTER}
  64. Select Ext4 journaling file system {ENTER}
  65. Select Mount point: none {ENTER}
  66. Select Enter manually {ENTER}
  67. Type /var/backup {ENTER}
  68. Select Label: none {ENTER}
  69. Type backup {ENTER}
  70. Select Done setting up the partition {ENTER}
  71. Select #1 10.0 GB directly under LVM VG LVG, LV opt, {ENTER}
  72. Select Use as: do not use {ENTER}
  73. Select Ext4 journaling file system {ENTER}
  74. Select Mount point: none {ENTER}
  75. Select /opt - add-on application software packages {ENTER}
  76. Select Label: none {ENTER}
  77. Type zimbra {ENTER}
  78. Select Done setting up the partition {ENTER}
  79. Select #1 20.0 GB directly under LVM VG LVG, LV temp, {ENTER}
  80. Select Use as: do not use {ENTER}
  81. Select Ext4 journaling file system {ENTER}
  82. Select Mount point: none {ENTER}
  83. Select Enter manually {ENTER}
  84. Type /var/temp {ENTER}
  85. Select Label: temp {ENTER}
  86. Select Done setting up the partition {ENTER}
  87. Here is what the screen looks like at this point: Partitions
  88. Select Finish partitioning and write changes to disk {ENTER}
  89. Select Yes to write changes to disk, {ENTER}
  90. Type Administrator, {ENTER} for the full name (NOTE: Do not use "zimbra" as a choice here)
  91. Press {ENTER} to accept the default of the lowercase name of administrator
  92. Type myadminpass, {ENTER}, myadminpass, {ENTER}
  93. Select No, {ENTER} to not encrypt your home directory
  94. Press {ENTER} to accept a blank line for the HTTP proxy
  95. Select Install security updates automatically, {ENTER}
  96. Highlight only OpenSSH server and press {SPACEBAR} to enable, {ENTER} to continue. NOTE: This allows us to use PuTTY after installation to connect to the server.
  97. Select Yes, {ENTER} to install GRUB boot loader to the master boot record
  98. Installation Complete - from the VM menu, select VM --> Edit Settings and select CD/DVD Drive 1 and change to "Client Device" which will effectively remove the ISO. Now press {ENTER} to reboot.


Initial Configurations


  1. At the console login prompt, login with your administrator account (administrator / myadminpass)
  2. At the $ prompt, type sudo passwd root {ENTER}, type your administrator password (myadminpass), it will ask for a new password, type myrootpass and verify. NOTE: This enables the root account.
  3. At the $ prompt, change to the super user root account by typing su {ENTER} and then provide the new root password you just configured.
  4. Type vi /etc/network/interfaces {ENTER} and change the following: (We need to change the network interface card (NIC) from using DHCP to a static IP)

    From:
    Code:
    iface eth0 inet dhcp
    To:
    Code:
    iface eth0 inet static
    address 192.168.107.25
    netmask 255.255.255.0
    gateway 192.168.107.1
    network 192.168.107.0
    broadcast 192.168.107.255
    NOTE #1: You may need to manually remove the DHCP record (lease) associated to this Ubuntu server from your DHCP server so the correct IP can be found by other machines on the network. This can be avoided by temporarily configuring the VM Network Adapter connection to be "Host Only Network" instead of "VM Network" so the server is isolated during setup...at least until you reach the testing of the static IP below.

    NOTE #2: You might also need to manually add a HOST(A) record to your Windows DNS server (for mail.mydomain.com and mail.work.mydomain.com)
  5. Restart the network by typing /etc/init.d/networking restart
  6. Sanity check! Type ifconfig and make sure the settings are correct. Then type ping Google or similar and see if ping works.
  7. Shutdown and power off the server by typing shutdown -P now {ENTER}
  8. At this point forward, you can use PuTTY to access the console rather than the console itself for better performance, ability to scroll, etc.
  9. In VM menu, select VM --> Snapshot --> Take Snapshot. Give it a name like STEP 1 and description of Ubuntu Server 10.04.4 LTS, clean install, Static IP: 192.168.107.25 and click OK