Pages

Thursday, November 22, 2012

How long should you charge the battery when you start it up first time ?



You probably wondering when you buy a new laptop, how long should you keep the power connected first time to full charge it. Answer is ... there is NO need to. Lithium ion batteries are more efficient than nickel based rechargeable batteries and go through a formation process during manufacturing. They do not require the initial loading prior to use.

Wednesday, November 21, 2012

Dual-boot Windows 7 with SafeBoot and Ubuntu


Environment :
Windows 7
Ubuntu 12.04
SafeBoot aka McAfee Endpoint Encryption

Description :
What is SafeBoot ?
SafeBoot is a McAfee product which defunct back in 2009. Cooperate are using McAfee Endpoint Encryption nowadays (2012). McAfee Endpoint Encryption provide full disk encryption prevents exposure of sensitive data on laptops and desktop computers (especially in the event of PC loss or theft) with transparent encryption; enforce strong access control with two- and three-factor, pre-boot authentication.

This document the step I used to install McAfee Endpoint Encryption and got it to dual boot Windows 7 and Ubuntu.

1. To install Windows 7 on a computer without an operating system
2. Resize Windows 7 partition size to prepare space for Ubuntu
3. Install Ubuntu alongside Windows 7
4. Prepare bootloader for Safeboot
5. Install McAfee Endpoint Encryption
6. Testing dual boot setting
7. Final tweaks

Final tweaks:
1. Boot into Ubuntu
2. Bring the Terminal
3. Issue command "sudo gedit /etc/default/grub"

Make sure the GRUB settings below are followed. This settings is for hidding the GRUB selection, else you need to select twice in order to get into Ubuntu.

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISABLE_OS_PROBER=true

Tuesday, November 20, 2012

Prepare bootloader for Safeboot


Environment :
Windows 7
Ubuntu

Installation / Usage :
This would be the most critical part in getting the dual boot to work properly with SafeBoot/McAfee Endpoint Encryption installed. We are using a method called "chain loading".

Pre-requisite:
A) Windows 7 installed (Without SafeBoot/McAfee Endpoint Encryption)
B) Ubuntu installed (During boot, GRUB is the boot manager)

The following step is to backup the Ubuntu bootloader:
1. Login Ubuntu
2. Issue the command "df" without quotes and note down the entry which says "Mounted on "/" .. what is the /dev/sda?
3. Issue the command "sudo grub-install --force /dev/sda?" .. where sda? is referring from result from step #2
4. Backup the bootloader, issue the command "dd if=/dev/sda of=grub.bin bs=512 count=1" (you can specify the thumbdrive at the 'of' paramenter)

The following step is to default the bootloader back to the original Windows 7 bootloader:
1. Boot PC
2. Press F8 after BIOS and Before Windows logo (Bring up the recovery console)
3. Select "Command Prompt"
4. Issue the command "bootrec /fixmbr"
5. Reboot

Upon reboot you should see the generic Window boot selection and GRUB is missing. This is expected.

6. Boot into Windows 7
7. Copy the grub.bin file from the thumbdrive into C:\Windows\System32

The following step is to update the Windows 7 boot menu to add the entry for Ubuntu:

9. Open a command prompt (Run > cmd)
10. Issue the following command to update the boot menu

BcdEdit commands:

    10a. Create a ID for the entry "Ubuntu"
    bcdedit /create /d "Ubuntu" /application BOOTSECTOR
    The entry {5a9684fa-9ec0-11e1-a7c3-00137290c993} was successfully created.
   
    * eg. ID -> {5a9684fa-9ec0-11e1-a7c3-00137290c993}
    * Copy the ID generated from this command as it will be reference in the following commands

   
    10b. Specifying which partition contains the bootloader (grub.bin)
    bcdedit /set {5a9684fa-9ec0-11e1-a7c3-00137290c993} device partition=c:
   
    10c. Specifying the path to the bootloader (grub.bin)
    bcdedit /set {5a9684fa-9ec0-11e1-a7c3-00137290c993} path \Windows\System32\grub.bin
   
    10d. Add the entry to the boot menu
    bcdedit /displayorder {5a9684fa-9ec0-11e1-a7c3-00137290c993} /addlast
   
    10e. Specifying menu display time
    bcdedit /timeout 10

11. Verify the Window 7 boot menu has the entry
Right-click "Computer" > Advanced system settings > Advanced > Startup and Recovery > Settings >
Under the drop down of "Default operating system", you should see Ubuntu.

12. Reboot and Choose the "Ubuntu" entry
13. GRUB should be loaded if all had been done properly
14. Allow it to boot into Ubuntu to see if it working properly

! For Windows XP users, you can edit the Boot.ini file and specify the path to the Linux bootloader
! For Windows 7 users, you can download a software called EasyBCD which is free and edit the boot menu entries via a GUI. It also has an option to default the boot loader back to Windows 7 original.

Monday, November 19, 2012

Install Ubuntu alongside Windows 7

Environment :
Windows 7
Ubuntu 12.04 (LTS)

Installation / Usage :
This guide covers the installation of the Ubuntu AFTER installing Windows 7. Because Windows OS installation will replace the Master Boot Record (MBR) with its and replace GRUB.

Prior to install Ubuntu, make sure you prepare enough harddisk space for the installation.

1. Download Ubuntu 32/64bit [LINK]
2. Burn ISO onto DVD or Create a Ubuntu bootable USB drive
3. Boot the Ubuntu installer
4. Select English
4. Select the option "Install Ubuntu"
5. Select English > Continue
6. Needs atleast 4.4GB harddisk space / Connection to internet (optional)
7. Install Ubuntu alongside Windows 7
8. Select Timezone
9. Select Keyboard layout English (US)
10. Choose a computer name
11. Account to import - NO
12. Installation done, restart the machine

Sunday, November 18, 2012

Create a Ubuntu bootable USB drive

Environment : Windows/Linux/MacOSX

Description :
UNetbootin is a all in one package which create a bootable USB drive for Ubuntu and other Linux distributions. It runs on Windows, Linux, and Mac OS X. It can auto download the support Linux distro from the internet (internet connection required) or you point it to the path to the ISO of the distro you downloaded.

Installation / Usage :
1. Download UNetbootin [LINK]
2. Select Diskimage
3. Select ISO
4. Choose the location to the image ISO (...)
5. Select Type: USB Drive
6. Drive: <double confirm from My Computer>
7. Click OK
8. Unmount the USB drive and connect to the machine which you wish to boot the new Ubuntu bootable USB drive.

Saturday, November 17, 2012

Resize Windows 7 partition size to prepare space for Ubuntu



Environment :
Windows 7
Ubuntu

Installation / Usage :
Because you are preparing space for installing Ubuntu alongside with Windows 7, you can choose to use either

1. Windows build in disk management tool
2. Bootable Ubuntu DVD with GParted

Option 1 - Windows Disk Management:
* You would need to defrag the harddisk before shrinking it.
Settings -> Control Panel -> Administrative Tools -> Computer Management -> Storage -> Disk Management -> Shrink Volume

Option 2 - Bootable Ubuntu DVD with GParted:
1. Boot into Ubuntu Live (Test Ubuntu)
2. On the Left Top Most Upper icon (Dash Home)
3. under Search, key in "gparted" and press ENTER
4. Right click on the partion and Select "Resize/Move"
5. Using the slider, adjust the amount of space you wish to allocate for Ubuntu installation
6. Click resize
7. You will see "unallocated" space available for Ubuntu installation later.
8. Save the changes by Edit > Apply All Operations (or click the Green Check icon)
9. Reboot

! Remember to reboot and boot back into Windows 7 and make sure its still running properly.

Friday, November 16, 2012

To install Windows 7 on a computer without an operating system


Environment :
Clean install of Windows 7

Installation / Usage :
To do this, you'll need to start, or boot, your computer using the Windows 7 :

1. Installation disc
    1a. Go to the Microsoft Store website and complete your purchase.
    1b. On the Order Receipt webpage, click the Additional Download Options drop-down list, click either Download 32/64bit ISO and then click Download.
   
2. USB flash drive
    2a. Download the Windows 7 USB/DVD Download Tool [LINK]
    2b. Under Installation, follow the instructions to download and install the tool on your PC.

Windows 7 installation steps:
  1. Turn on your computer, insert the Windows 7 installation disc or USB flash drive, and then shut down your computer.
  2. Restart your computer.
  3. Press any key when prompted, and then follow the instructions that appear.
  4. On the Install Windows page, enter your language and other preferences, and then click Next.
  5. If the Install Windows page doesn't appear, and you're not asked to press any key, you might need to change some system settings.
  6. On the Please read the license terms page, if you accept the license terms, click I accept the license terms, and then click Next.
  7. On the Which type of installation do you want? page, click Custom.
  8. On the Where do you want to install Windows? page, choose the partition that you want to install Windows 7 on, or click Unallocated Space if no partitions are listed, and then click Next.
  9. If a dialog box appears saying that Windows might create additional partitions for system files, or that the partition you chose might contain recovery files or other types of files from your computer manufacturer, click OK.
  10. Follow the instructions to finish installing Windows 7, which include naming your computer and setting up an initial user account.

Saturday, November 10, 2012

Installing Windows 8 from a USB drive

Make a bootable USB Windows 8 and installing from it. Save on the DVD media and install much faster.

Enviroment : Windows

Things you need:
1. Windows 8 ISO
2. USB drive
3. Windows 7 USB/DVD Download Tool and Image Mastering API v2.0

Reference :
Windows 7 USB/DVD Download Tool - [LINK]

Image Mastering API v2.0 (IMAPIv2.0) for Windows XP (KB932716) - [LINK]

Installation / Usage :

Follow the instruction and proceed to install the Windows 7 USB/DVD Download Tool (you might need to install IMAPIv2.0. After installing, start the Windows 7 USB/DVD Download Tool up

! Make sure you backup content from the USB drive BEFORE you continue.

1. Choose ISO file
2. Select the media type, Select "USB device"
3. Insert USB device, select the USB from the drop down selection
4. Erase USB Device

The Windows 7 USB/DVD Download Tool will format the USB device and copy over the files.

After the bootable USB device is created, go ahead and boot it up on the computer which you wished to install Windows 8. Make sure you select boot from USB during booting up.