Ubuntu 12.04 & 12.10 Live PXE Network Installation Tutorial (updated, easy)

pxe_connection_ubuntu

My previous tutorial is still available here but this one is a lot easier thanks to the new features introduced in Serva 2.1.

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Ubuntu CD/DVD: download the latest desktop version of Ubuntu from the official website.

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.1.0). Choose the appropriate Serva version based on the Ubuntu edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing the  x64 edition of Ubuntu, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP and make sure that the BINL box is checked.Serva #2
  6. Save your settings and restart Serva.
  7. In your root directory you should see some files that Serva has created. Right click on the NWA_PXE folder and select properties. On the Sharing tab select Advanced sharing. Tick Share folder and set the Share name to NWA_PXE_SHARE.share
  8. Create a subfolder under NWA_PXE. You can name it freely (e.g. UBUNTU_12_10_X64_LIVE). Copy the contents of the downloaded Ubuntu iso into this folder and create a ServaAsset.inf file (you can use Notepad) with the following content:

    ;-Serva v2.1 Non-Windows Asset Information File
    ;-Boot/Install:
    ;  Ubuntu 12.10 Live
    ;-Tested on:
    ;  ubuntu-12.10-desktop-i386.iso
    ;-Require:
    ;  \NWA_PXE\ offered as MS share NWA_PXE_SHARE user=serva password=avres
    ;-Notes:
    ;  When installed on a real PC there are not passwords asked
    ;  When installed on VMWare a password is first asked (text mode); just hit enter
    ;  The GUI asks for user=ubuntu with empty password.
    [PXESERVA_MENU_ENTRY]
    asset    = Ubuntu 12.10 Live
    platform = x64
    kernel   = NWA_PXE/$HEAD_DIR$/casper/vmlinuz
    append   = showmounts toram root=/dev/cifs initrd=NWA_PXE/$HEAD_DIR$/casper/initrd.lz boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=YOUR USER NAME,pass=YOUR PASSWORD,ro ip=dhcp ro

    The non-static fields are asset (you can name it freely), platform (x86/x64), user and pass (your Windows account is needed to access the shared folder) and the intitial ram disk file (Ubuntu 12.10 – initrd.lz, Ubuntu 12.04 – INITRD_N02.GZ which you have to download into the appropriate folder). Your file should look similar to this: servaasset

  9. Restart Serva for the last time.
  10. Start your s205 and press Fn+F11 to enter the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Serva’s Install Menu with the Ubuntu option. Press Enter to continue. Ubuntu will be loaded into the memory (it takes a few minutes).
  11. Ubuntu Live will start with the nice Unity look and a dedicated Ubuntu installer icon. cool That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.Ubuntu Desktop

Source: vercot

Dual-Boot Windows & Ubuntu on Lenovo S205

Dual-Boot

Important: If you follow this tutorial you wont’t be able to use Lenovo OneKey Recovery anymore (but on the other hand, you will get a fully-functional secondary OS and a more secure partition structure instead :)).

Recommendations / Guidelines:

  •  There’s a difference between advertised and actual capacity of an HDD. You can use this calculator to get the actual size of you drive. My 320 GB hard drive has the capacity of only 298.02 GB.
  • According to the official requirements Windows 7 needs at least 16 GB (32-bit) / 20 GB (64-bit) hard disk space. Keep in mind that Windows tends to grow over time and don’t forget to add the the sofwares/games you are going to install to the final size as well. For someone who wants Windows as primary OS, I recommend an at least 80 GB partition.
  • Ubuntu’s documentation says it’s going to need at least 5 GB hard disk space. For a general user (who just wants to have a secondary/backup OS or simply wants to try Ubuntu) I recommend a 10 GB partition. In this tutorial you don’t have to create any Linux partition as Ubuntu will automatically create them for you on the empty space. Linux experts will probably set the partition types and sizes manually anyway 😉
  • People tend to use the standard Documents folder (or even worse: Desktop) for file storage. THIS IS WRONG AND IRRESPONSIBLE. Your OS can die anytime/virus can hit and I don’t think you would like to spend your time with recovery. It’s a lot easier and safer to just create a partition for your stuff. Besides, this partition can be used under both Windows and Ubuntu without any conflict. WORK or PERSONAL partition size should equal HDD capacity – Win7 partition – Ubuntu partition. In my case 300-80-10 = 210 GB.
  • Don’t expect partition sizes to be exactly the same you’ve entered. Windows will subtract a small 100/200 MB partition from your System drive and there will be differences due to rounding as well.
  • You have to enter partition sizes in MB (1 GB = 1024 MB surprised).

Scenario #1: You’ve bought your netbook with pre-installed Windows.
Your partitions should look similar to this:
Preinstalled Partitions

  • No drive letter | 100 MB / 200 MB | SYSTEM_DRV / No label
    This is a Windows System Reserved space. DO NOT MESS WITH IT.
  • C: | Windows_system / Windows7_OS / any other Win related label
    This is your Windows partition. DO NOT DELETE IT.
  • D: | LENOVO
    Partition containing your Lenovo Drivers & Softwares.
  • No drive letter | LENOVO_PART / No label
    OneKey Recovery backup partition.

You have two options:

  1. Use Wubi (Ubuntu Installer for Windows) – Recommended (this is the only method which won’t disable OneKey Recovery)
    Installs Ubuntu on your Windows drive without messing with the partition table. You can install/uninstall it like any other Windows software. Keep in mind, that Wubi won’t be as fast as the standard Ubuntu (see pros/cons here).
  2. Re-partition your hard drive.
    • If you’ve stored files on your D: (Lenovo) drive, back them all up to your C: partition. You might want to back up the Lenovo stuff as well.
    • Type in diskmgmt.msc in Start menu and Disk Management will pop-up.
    • Delete Lenovo’s partitions: LENOVO and LENOVO_PART (it’s the last one with “OEM Partition” attribute, not necessarily have a label). Be careful not to remove any Windows-related or personal volume.
    • Right click on your C: drive and choose Shrink. Enter the desired size in MB (see my recommendation above, I’ve set it to 81 920 MB).
    • You should see two partitions and an unallocated space.
    • Right click on the unallocated space and select New Partition. In New Parition Wizard select Primary partition > Enter the desired size in MB (see my recommendation above, I’ve set it to 215 040 MB). > Assign the letter ‘D’ > Select Format, choose NTFS as file system and enter a Volume label. I named it WORK.
    • The Windows part is over. If everything went well, you should have your computer ready for Ubuntu. Proceed with the Ubuntu installation tutorial below.

Scenario #2: You’ve bought your netbook without pre-installed Windows.

Installing Windows

Important: You have to install Windows in Legacy/BIOS mode instead of the default UEFI mode (otherwise WiFi/Sleep/Hibernation won’t work due to their incompatibility with UEFI).

  1. You have three ways to install Windows on your device:
    • via External (USB) DVD drive
    • via Pendrive
    • and via Network (PXE)
  2. If you want to install Windows via DVD, do these extra steps to start Windows installer in Legacy mode:
    • Enter BIOS (press F2 when you see the Lenovo logo) and set SATA Controller working mode to ‘AHCI’ under the Configuration tab. Switch to Exit and select Exit Saving Changes. Reboot.
    • Enter Boot menu (press FN+F11 when you see the Lenovo logo). Select your DVD drive.
    • Windows installer’s “Press any key to boot from CD/DVD…” message will appear but DO NOT PRESS ANY KEY – WAIT.
    • It will then either boot straight from the DVD or it will once again say “Press any key to boot from CD/DVD…”, but in a slightly different (DOS-like, low-resolution) font.  This is when you need to press a key.
    • If everything went well, Windows installer will now start in legacy mode.
  3. Windows Installer
    • Set your localization > Install now > Accept the licence terms > Choose Custom (advanced) installation
    • You will see some default FreeDOS / Lenovo partitions. We are going to delete all of them. biggrin
    • Click on Drive options (advanced) and delete the partitions one-by-one until you have a single Unallocated Space on your drive.
    • Click on New, enter the desired partition size for the System volume (see my recommendation above, I’ve set it to 81 920 MB) and click Apply. Windows will automatically create an additional partition (System Reserved) along with the new partition.

    Important: If it creates three partitions, it means that Windows installer is still in UEFI mode. Delete these partitions and do the steps again.

    • Create your work/personal partition the same way (this partition is going to be accessible by booth Windows and Ubuntu). As for the partition size, see my recommendation above. I’ve set it to  215 040 MB.
    • Now, you should see three partitions and some unallocated space.
    • Select Partition 2 and click next.
    • That’s it. The rest is self-explanatory. After the Windows installation is done, you can proceed with the Ubuntu installation tutorial below.

Installing Ubuntu

  1. You have three ways to install Ubuntu on your device:
    • via External (USB) DVD drive
    • via Pendrive
    • and via Network (PXE)
  2. In Ubuntu’s Boot Menu choose “Try Ubuntu without installing”. This will start Ubuntu in Live mode.
  3. Click on the “Install Ubuntu 12.04” icon on your desktop.
  4. Ubuntu Installer
    • Set localization
    • Check “Download updates while installing” and “Install this third-party software” if you have a working internet connection. Ubuntu live may have trouble setting up wifi and ethernet, in this case you can either try to fix the network devices (see my tutorials) or install the updates later.
    • Select “Install Ubuntu alongside Windows 7”. Ubuntu Installer
    • That’s it. The rest is self-explanatory.
    • If you want to customize your boot loader (change default operating system, waiting time, etc.), read my GRUB customization tutorial.

The result:

GRUB

GRUB 1.99 – This is what you are going to see when the computer starts.

diskmgmt result

Partitions under Windows 7 (Disk Management)

gparted result

Partitions under Ubuntu 12.04 (GParted)

Ubuntu 12.04 LTS PXE Network Installation Tutorial (with Ubuntu Live Graphical Installer)

pxe_connection_ubuntuCheck out my new, simpler tutorial.

 

If you’ve previously done my tutorial on Windows 7 PXE Network Installation you can skip to Step #5.
If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.

If you’ve bought a Lenovo S205 without pre-installed OS – FreeDOS doesn’t count 🙂 – you must’ve wandered how you could install an OS on this device without an internal optical drive. I have good news: you can install it in three different ways.

  • via External (USB) DVD drive
  • via Pendrive
  • and via Network (PXE)

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Ubuntu CD/DVD: download the latest desktop version of Ubuntu from the official website.

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.0.0). Choose the appropriate Serva version based on the Ubuntu edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing the  x64 edition of Ubuntu, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP, make sure that the BINL box is unticked and set pxelinux.0 as Boot File.Serva #2
  6. Save your settings and close Serva.
  7. Open your favorite FTP software and add a new connection (Host name: archive.ubuntu.com, User name: anonymous, Password: [leave it blank], Remote dir: /ubuntu/dists).FTP #1
  8. After a successfull connection you should see some Ubuntu distribution folders. Now you have to look up the code name of your Ubuntu version here (12.04 LTS is called Precise Pangolin). Navigate to the /ubuntu/dists/[YOUR_UBUNTU’S_CODE_NAME]/main/installer-[YOUR UBUNTU’S ARCHITECTURE:  32 bit – i386 / 64 bit – amd64]/current/images/netboot folder. Download ubuntu-installer, pxelinux.0 and pxelinux.cfg  (∑ ~12 MB) to the Serva root folder that you’ve created.FTP #2
  9. Create a new folder in your Serva root directory called ubuntu-desktop. Insert / mount your Ubuntu CD  and copy vmlinuz and  initrd.lz from the casper folder to the ubuntu-desktop folder.
  10. Edit your pxelinux.cfg/default file with notepad. Add

    LABEL live
    kernel ubuntu-desktop/vmlinuz
    append root=/dev/nfs boot=casper netboot=nfs nfsroot=[YOUR.IP.ADRESS]:/[YOUR DVD DRIVE LETTER] initrd=ubuntu-desktop/initrd.lz quiet splash —

    to the end of your file. You can get your IP-adress by entering ipconfig in Command Prompt (we need the IPv4-adress). After editing, your file should look similar to this: default

    Save the file and close Notepad.

  11. Download and install haneWin NFS Server (30-day trial or google is your friend 🙂 OR you can try to get NFS working using FreeNFS).  Open haneWin NFS Server as administrator. Go to Server tab and make sure below both check boxes are ticked. NFS #1Switch to the Exports tab click the Edit exports file button. Delete / comment out the sample lines and add the following line:

    [YOUR DVD DRIVE LETTER]:\ -public

    NFS #2 Save it and click on Restart Server.

  12. Run Serva.
  13. Start your s205 and press Fn+F11 to enter the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Ubuntu’s Installer Boot Menu. Select the extra live option and press Enter to continue.PXE
  14. Ubuntu Live will start with the nice Unity look and a dedicated Ubuntu installer icon. cool That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.Ubuntu Desktop

Source: vercot, Jelada (using Linux as server!)

Windows 7 PXE Network Installation Tutorial

pxe_connection_win7

If you’ve bought a Lenovo S205 without pre-installed OS – FreeDOS doesn’t count 🙂 – you must’ve wandered how you could install Windows on this device without an internal optical drive. I have good news: you can install it in three different ways.

  • via External (USB) DVD drive
  • via Pendrive
  • and via Network (PXE)

Prerequisites:

  • Router: you can connect your computers directly if you have an Ethernet crossover cable, but you have to configure your server differently.
  • Computer with Windows installed: you can use any computer-OS combination as a PXE Server as long as it has a TFTP software (even your smartphone can be a server :)). In this tutorial I’m going to use  a Windows 7  PC with Serva because I think this configuration would suit the S205 owners the best. There is an alternative TFTP software for Windows called TFTPD which is more popular than Serva but in my opinion also harder to set up.
  • Windows DVD: you can install other OS’s as well using different settings. You don’t neccessary need a physical disk, you can also  use a downloaded ISO. A Ubuntu 12.04 LTS network installation tutorial is coming soon is already out. 😛

(!) You should temporarily disable your firewall to avoid potential conflicts.

Steps:

  1. Download and extract Serva to a folder (e.g. C:\Serva_Non-Supporter_64_v2.0.0). Choose the appropriate Serva version based on the Windows edition you are about to install (x64 – 64 bit,  x86 – 32 bit). I recommend installing Windows 7 64-bit edition (you can upgrade memory to 4GB+ and S205 drivers are provided as well, see a comparison here) . Use the selected architecture consistently throughout this tutorial.
  2. Create a root folder for Serva (e.g. C:\SERVA_ROOT).
  3. Run Serva and click on the Settings button at the bottom.
  4. On TFTP tab tick TFTP server and select the TFTP Server root directory you have created in the previous step (in my case C:\SERVA_ROOT).Serva #1
  5. Click on the DHCP tab, set proxyDHCP and tick the BINL box.Serva #2
  6. Save your settings and restart Serva.
  7. In your root directory you should see some files that Serva has created. Right click on the WIA_WDS folder and select properties. On the Sharing tab select Advanced sharing. Tick Share folder, set the Share name to WIA_WDS_SHARE and make sure that the access is set for Everyone.Serva #3
  8. Create a new folder inside the WIA_WDS directory and copy the contents of your Windows 7 DVD to it (i.e. C:\SERVA_ROOT\WIA_WDS\Win7_64_SP1).
  9. We are almost finished. 🙂  In order for Windows install to work you have to add the S205 ethernet driver to the install package. First create the following directory structure inside your WIA_WDS’s Windows folder: $OEM$\$1\Drivers\NIC\ (i.e.  C:\SERVA_ROOT\WIA_WDS\Win7_x64\$OEM$\$1\Drivers\NIC). Now you have two options to get the required drivers to their place:
    1. Insert your Lenovo Driver CD to your drive and navigate to the LAN driver folder: Win7\4.LAN\WIN7\YOUR_WINDOWS_DISK’S_ARCHITECTURE (in my case it’s F:\Win7\4.LAN\WIN7\64) and copy all files except note.txt to the created NIC folder.
    2. Download the latest ethernet drivers from Lenovo‘s website and extract the contents of the \\WIN7\64 or \\WIN7\32 folder inside the .exe file to the NIC directory using WinRAR or 7-ZIP.

    Serva #4

  10. Quit and re-run Serva again.
  11. Start your s205 and press Fn+F11 to go to the Boot Menu. Select the PCI LAN: Realtek PXE option. If your settings are correct, after a few seconds you should see Serva’s Install Menu (similar to the one below but with only one Windows 7 entry). Select it and press Enter to continue.Serva Multi-OS PXE Install Menu
  12. ServaPENet will start with the familiar Windows look. cool  After it automatically installed the LAN drivers you will be prompted to provide the username and password of your server computer (the one with Serva running on). Enter them (or, in case you don’t have, leave the fields blank) and press Connect.WDS OS requiring WIA_WDS_SHARE user and password
  13. After a few seconds Windows Installer should start. That’s it. If you want to use both Windows and Ubuntu on your S205 make sure you’ve read my tutorial on Dual-Booting before you proceed with the installation.

Source: vercot, rmprepusb

%d bloggers like this: