วันพฤหัสบดีที่ 4 เมษายน พ.ศ. 2556

Dual Boot Ubuntu Desktop 12.04 + Windows7 : The Right Solution

Dual Boot Ubuntu Desktop 12.04 + Windows7 : The Right Solution

NOTE: Ubuntu WUBI didn't work well (don't know why)
NOTE: Check Ubuntu certified H/W here >> http://www.ubuntu.com/certification/desktop/
1. Install Ubuntu
   detail steps here >> http://www.dedoimedo.com/computers/dual-boot-windows-7-ubuntu.html
   1.1 download Ubuntu Desktop from web --> got file .iso
   1.2 burn to DVD
       it's bootable
   1.3 boot from DVD, select Try Ubuntu
       check if there is no problem with H/W
   1.4 (if needed) use GParted to create partition for install Ubuntu
       it comes with DVD
       - one extended partition, and under this extended partition create:
       - one logical partition for root (File System = ext4, Label = root)
       - one logical partition for swap (File System = linux-swap, Label = swap)
       - one logical partition for home (File System = ext4, Label = home)
   1.5 install Ubuntu at root partition above
       - mount point / for root partition
       - mount point /home for home partition
       - [IMPORTANT] create GRUB loader at root partition (then use EasyBCD to dual boot later)
         if create at HDD (i.e. /dev/sda), it will overwrite Windows boot loader,
         hence boot from GRUB, and might cause problem if want to remove Ubuntu later and have only Windows
         NOTE: Never try this way because I used GRUB, but this should be a better way - -;
2. Install EasyBCD 2.2
   It is a small program for multi-boot, free for non-commercial.
   After installed, add new entry for Ubuntu
   Type = GRUB 2
   Drive = Automatically locate and load

If you have used GRUB, and want to switch to EasyBCD, here are steps

0. Situation
   0.1 Current : When switch on, GRUB loader work, listed Ubuntu and Windows
   0.2 Target  : When switch on, EasyBCD work, listed Ubuntu and Windows, when select Ubuntu, not list Windows again
1. Install EasyBCD 2.2 and create entry for Ubuntu (as above)
2. Boot into Ubuntu and do following steps
   cd /etc/boot.d
   sudo chmod a-x 30_os-prober
   sudo update-grub
   NOTE: 30_os-prober is a script to find other OS (e.g. Windows),
         remove 'x' from it will prevent GRUB to show Windows for selection
3. Restore Windows Master Boot Record
   3.1 Boot with Windows installation DVD,
   3.2 select Repair My Computer > select drive with Windows installation > select Command Prompt
   3.3 use this two commands (execute one command at a time)
       bootrec.exe /FixBoot
       bootrec.exe /FixMbr
   detail here >> http://blog.eukhost.com/webhosting/howto-remove-grub-loader-and-restore-windows-7-and-vista-bootloader/
4. Restart and it should be OK now.

Another alternative is to use Boot Repair in Ubuntu.
Recommended repair worked for me so far.
This will boot from GRUB.

Just in case, here are steps to create Ubuntu VMWare

detail here >> http://www.howtogeek.com/howto/11287/how-to-run-ubuntu-in-windows-7-with-vmware-player/
1. download Ubuntu Desktop from web --> got file .iso
   same as above
2. start VMWare Player or Workstation, click "Create a New Virtual Machine"
3. select "Installer disc image file (iso)", and browse to above iso file
4. go ahead, following steps not difficult
5. (just in case) if install VMWare Tool failed during setup,
   manually install it (detail step in the above URL)
   to integrate with host OS (i.e. Windows) from Ubuntu VMWare

To install nVidia driver on Ubuntu

detail here
>> http://news.softpedia.com/news/How-to-Install-The-Latest-Nvidia-Driver-on-Ubuntu-12-04-295542.shtml
>> http://www.noobslab.com/2012/10/install-latest-nvidia-drivers-in-ubuntu.html
1. for clean install
   sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
   sudo apt-get update
   sudo apt-get install nvidia-current
2. for upgrade
   sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
   sudo apt-get update
   sudo apt-get dist-upgrade
3. just for unlucky case where after installed the driver, resolution may down to 640x480,
   here are steps to remove nVidia driver (hence return to default nouveau driver)
   detail here >> http://askubuntu.com/questions/206283/how-can-i-uninstall-a-nvidia-driver-completely
   sudo apt-get remove --purge nvidia-*
   sudo apt-get install ubuntu-destkop
   sudo rm /etc/X11/xorg.conf
   echo 'nouveau' | sudo tee -a /etc/modules

Turn on/off Touchpad in ThinkPad Edge E430

I tried using xinput set-prop to disable touchpad, but the device ID keep changing (e.g. sometimes 14, sometimes 12, ...) so I changed to use Touchpad Indicator, and it works.
detail for disable device from command line  here
http://askubuntu.com/questions/65951/how-to-disable-touchpad

to make it run every reboot, detail here >> http://ubuntuforums.org/showthread.php?t=1930479
1. create file disable_touchpad.sh as below (use appropriate id from xinput list, "14" is just an example)

    #!/bin/bash
    xinput set-prop 14 "Device Enabled" 0

2. save at ~/bin folder
3. register at Startup Applications to run when startup.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น