How to install Ubuntu form the ISO format in the GRUB

来源:互联网 发布:qq监控软件 编辑:程序博客网 时间:2024/05/22 10:43

1. First, You must install GRUB. GRUB can be downloaded from sourceforge.net .  The way to install GRUB is quite simple: copy the grub.exe to C: , modify the boot.ini and add an entry c:/grldr=Grub

 

2. Prepare the Ubuntu boot file: vmlinuz and initrd.gz , the both files can be extract from the ISO's casper directory, We assume that your ISO file is placed in I:/ubuntu-9.04-desktop-i386.iso. so you can extract the

 

 

A :  For GRUB Boot

C:/boot.ini    (Add c:/grldr=Grub Entry)
C:/grub.exe   (Can be downloaded from sourceforge.net)

C:/grldr

C:/menu.lst

 

B:  For Ubuntu Boot

I:/ubuntu-9.04-desktop-i386.iso

I:/vmlinuz       (Extracted from ubuntu-9.04-desktop-i386.iso/casper)

I:/initrd.gz      (Extracted from ubuntu-9.04-desktop-i386.iso/casper)

 

C:

get into grub, type the following command

root (hd0,7)
kernel (hd0,7)/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-i386.iso ro quiet

initrd /initrd.gz

boot

 

安装过程中,提示分区不能卸载。
在安装的过程中,可能会遇到一个提示:
安装装程序要更改分区表,但未能实现,因为以下挂载点上的分区不能被卸载:/isodevice
ubuntu8.10以后的版本的硬盘安装和之前的版本不一样了
问题就是一旦设计到分区修改,安装程序默认会尝试卸载整个硬盘,但是此时硬盘上iso还是挂载的,所以会出错。
解决的办法是:
在启动安装程序之前把已经挂载的分区卸载 ,在终端中输入命令:
sudo umount -l /isodevice (一定要加-l)

 

 

 

####################################################################

 

*** Add chinese input in English Ubuntu:

1. Set the "Keyboard Input Method System" to "scim" in System -> Administration -> Language Support

 

2. Setup scim-pinyin, which is a input method in scifm platform. Do the following: sudo apt-get install scim-pinyin

    If you need WUBI input method, install as : sudo apt-get install scim-tables-zh

 

 

scim在一些编辑中无法输入任何字符的问题:

http://blozer.blogbus.com/logs/30508967.html

(a) 设置SCIM为不自动启动,(SCIM在每次退出后会自动更改config文件)
运行 im-switch -s none 
然后重新登录桌面
(b) 编辑 ~/.scim/config 配置文件, 将选项
/FrontEnd/X11/Dynamic 设置为 true.

(c) 重新把SCIM设置为自动启动 运行"im-switch -s scim".再重新登录

 

详细的BUG描述在

bugs.launchpad.net/ubuntu/+source/scim/+bug/66104

 

 

####################################################################

 

*** Install Sun JDK

1. Download the JDK package from sun.com, select the non-rpm package, such as "jdk-6u17-linux-i586.bin"

 

2. Set the "jdk-6u17-linux-i586.bin" file to executable : chomd u+x "jdk-6u17-linux-i586.bin"

 

3. Run "jdk-6u17-linux-i586.bin", what it does is nothing but release files to a directory.  JDK is green-software in some sense

 

4. Set the environment variables: PATH, JAVA_HOME, CLASSPATH

 

############################################3

解决SCIM 在很多编辑环境下的兼容问题

sudo im-switch -s scim

sudo gedit /etc/X11/xinit/xinput.d/scim

        GTK_IM_MODULE=scim

        QT_IM_MODULE=scim

 

export GDK_NATIVE_WINDOWS=1  解决ubuntu 9.10 和 eclipse 的兼容问题

 

###############################################

 Evince Document Viewer 2.22.1.1乱码

sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional

 

sudo apt-get install poppler-data

 

 

#####################################

在/usr/share/applications中修改开始菜单和桌面项

 

 

####################################333

安装CHM阅读

sudo apt-get install xchm

 

 

####################################################################

解决gedit乱码问题
好多情况下gedit 在打开windows分区下的文本文件,和下载下来的文本文件时会出乱码的情况,这种情况一般都是由于字符编码的源因,因为linux下缺省情况下是采用 UTF-8的,所以我们最好把GBK,GB2312,之类的字符编码加上去。步骤是,按ALT+F2输入gconf-edit调出gconf-edit在apps->gedit- 2->preferences->encodings在右边的auto-detected中双击会弹出一个对话框,在那里加入GBK,GB2312 编码就可以了。

或者终端直接运行gconf-editor

说明:
有些在windows下能够打开的txt文本文件在Ubuntu下用gedit打开时,中文显示是乱码,这是因为编码方式不同造成的,windows下有些txt文件的编码方式gbk,而Ubuntu下的gedit默认没有对gdk的支持

 

 

Ubuntu 中使有ISO

http://www.shwglm.com/archiver/tid-18040.html

 

安装依赖

apt-get build-dep keepalived

 

###################################################################

 

glxgears ubuntu中测试系统的3D性能(显卡驱动)

 

* Make partition plan

* Install OS

* Install video card driver X

* sudo apt-get install scim-pinyin scim-tables-zh, set input method, restart

* Edit .bashrc

* Copy msyh.ttf, and set the font to microsoft yahei, Adjust the font size to 12

 

* Software

  - sudo apt-get install emacs23

  - download Virtualbox, WingIDE, Chrome, and install

  - 

 

 

* Update

 

#####################################################

双显示器高分辩率问题的解决:

如要添加1920x1080到外接显示器分辩率的设置选项中,

 

~>cvt 1920 1080

# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

 

~>xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

~>xrandr --addmode VGA-0 "1920x1080_60.00"

~>xrandr --output VGA-0 --mode 1920x1080_60.00

 

 

注销,再登陆,Display设置窗口就有1920x1080的选项了。

 

##########################

VirtualBox

https://help.ubuntu.com/community/VirtualBox/USB

 

##########################

 

################################################

gconf-editor可以更改很多配置

 

################################################

GRUB

配置文件位于/etc/default/grub, /etc/grub.d

修改后运行 sudo grub-mkconfig -o /boot/grub/grub.cfg  使之生效

 

(注:在ATI显卡中,如果生成的grub.cfg中有radeon.modeset=1项,应去掉,这是XXX驱动的问题,会导致xorg异常慢)

 

################################################################

开发环境:

 

 

sudo apt-get install manpages-posix-dev #- for c headers
sudo apt-get install manpages-dev #- for c functions

 

sudo apt-get install python-mysqldb

sudo apt-get install python-django

sudo apt-get install python-flup

sudo apt-get install bpython

 

wingIDE

 - sudo apt-get install python-setuptools,  ''command = /usr/local/bin/pylint''

 

###########################

gnome环境的utf8问题

~>cat .dmrc
[Desktop]
Language=en_US.utf8
Layout=us

###########################

Ubuntu10 窗口按钮在左边的问题

gconf-editor -> apps -> metacity -> general -> button_layout -> "menu:minimize,maximize,close"