硬盘安装Ubuntu 12.04

强烈推荐xubuntu12.10(安装方法一致)

记得安装前断开网路连接,不然下载语言包会很慢的!2012.12.18

----------------------------------------------------------------------------------

Windows都是相同的,Linux却各有各的不同。
  一直想把安装Linux系统的过程写下来,却一直没有真正安静地坐下来。
  N个月前,当我安装Debian系的Ubuntu时(硬盘安装),对着满屏黑底白字的英文一头雾水,安装无法进行下去。后来才知道是电脑不支持什么acpi。而知道这一点已经是历经艰辛。
当时的menu.lst是这样写的:

1 title Install Ubuntu12.04
2 root (hd0,0)
3 kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04-desktop-i386.iso locale=zh_CN.UTF-8
4 initrd (hd0,0)/initrd.lz

现在的menu.lst是这样的:

1 title Install Ubuntu12.04
2 root (hd0,0)
3 kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04-desktop-i386.iso locale=zh_CN.UTF-8 acpi=off
4 initrd (hd0,0)/initrd.lz

在kernel后面加了 acpi=off
仅仅是少了2个单词......
就是这样,我的电脑才可以顺利地进入安装界面。

硬盘安装Ubuntu的方法网上有很多,自己总结了一下,分为3部分来说:

  1. Ubuntu镜像文件的提取
  2. gurb4dos软件的使用
  3. 修改启动文件boot.ini

一、Ubuntu镜像文件
  1.下载ubuntu-12.04-desktop-i386.iso
  2.复制iso文件中的casper文件夹下的vmlinuz 和 initrd.lz,把这2个文件放到C盘的根目录下,iso镜像文件也放在C盘根目录下。
二、使用Grub4Dos软件
  据维基百科说:grub4dos是一个将Linux下的GNU GRUB启动引导程序移植到dos和windows的一个分支,是一个大幅度提高了软件和硬件兼容性的启动引导程序。
  1.下载Grub4Dos后提取menu.lst, grldr.mbr, grldr, grub.exe 共4个文件到Windows的C盘根目录下。
  2.打开menu.lst文件,清空内容后将Ubuntu镜像文件的信息写下来,告诉电脑该到哪里去找Ubuntu。
  menu.lst文件内容如下:

title Install Ubuntu12.04
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-12.04-desktop-i386.iso locale=zh_CN.UTF-8 acpi=off
initrd (hd0,0)/initrd.lz

  如果你的电脑能正确安装Ubuntu,就不用在kernel后面加acpi=off,否则加上它!
  这里的(hd0,0)就是C盘。
三、修改boot.ini文件
  在Windows的C盘的根目录下隐藏着一个boot.ini文件,显示所有文件后可以看到它。用记事本打开后,一般内容是这样:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
old_timeout_win32-loader=
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

在最后添加一行:c:\grldr="Install Linux" 这里引号中的内容随便写。


编辑好的boot.ini是这样的:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
old_timeout_win32-loader=
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
c:\grldr="Install Linux"

好了!重启电脑后你就会看到一个启动菜单,第一个是Microsoft Windows XP Professional,第二行就是刚才引号里写的Install Linux。
选中第二行,按下回车键吧。这样一会儿就进入了Ubuntu的安装界面。
在点击“安装Ubuntu”之前,按Ctrl+Alt+T打开一个终端,输入下面的命令,据说不输入这个命令后面分区时会出问题。

sudo umount -l /isodevice 

然后点击“安装Ubuntu”。开始安装了......

试用一些桌面

  1. mate
  2. cinnamon
  3. gnome2
  4. E17

mate桌面

1 sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu $(lsb_release -sc) main"
2 sudo add-apt-repository "deb http://repo.mate-desktop.org/ubuntu $(lsb_release -sc) main"
3 sudo apt-get update
4 sudo apt-get install mate-archive-keyring
5 sudo apt-get update
6 # this install base packages
7 sudo apt-get install mate-core
8 # this install more packages
9 sudo apt-get install mate-desktop-environment

cinnamon桌面

1 sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
2 sudo apt-get update
3 sudo apt-get install cinnamon

gnome2经典桌面

1 sudo apt-get install gnome-session-fallback

或者

1 sudo apt-get install gnome-panel

E17桌面

1 sudo apt-add-repository ppa:hannes-janetzek/enlightenment-svn
2 sudo apt-get update
3 sudo apt-get install e17

我把Ubuntu12自带的unity桌面给卸载了:

1 sudo apt-get -y -auto-remove purge unity
2 sudo apt-get -y -auto-remove purge unity-commonp
3 sudo apt-get -y -auto-remove purge unity-lens*
4 sudo apt-get -y -auto-remove purge unity-services
5 sudo apt-get -y -auto-remove purge unity-asset-pool

 目前尚无不良反应。

posted @ 2012-12-16 18:24  ibg  阅读(946)  评论(0编辑  收藏  举报