ubuntu live cd edit menu.lst
sudo mount /dev/sda7 /mnt
gksu gedit /mnt/boot/grub/menu.lst
sudo mount /dev/sda7 /mnt
gksu gedit /mnt/boot/grub/menu.lst
装了Ubuntu和XP双系统后,变得很麻烦,每次都得在启动菜单上选来选去,浪费了不少时间,而且万一那次想进windows,结果开机的时候忘记了,那就更加令人头疼了。
想修改使XP成为默认的操作系统,其实很简单,修改 /boot/grub/menu.lst 文件,使其中default值变动一下即可。
过程如下:
1、 打开命令行终端;
2、输入:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak //第一句做备份用。
sudo gedit /boot/grub/menu.lst
3、假设文件内容如下:
======================================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 6
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=zh_CN
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2d1136cb-416a-4329-8c6d-703537a2d578 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
-------------------------------------------------------------
原本的default值为0,意即启动排行第一的操作系统,这里代表的就是title Ubuntu, kernel 2.6.20-16-generic。
现在把它修改成“default 6”,那么XP就成为默认的操作系统了。
因为从零数起,以title打头的Microsoft Windows XP Professional这一行排序为6。
还可以通过修改timeout的值来变更默认等待时间。
呵呵,使用上了ubuntu,怎么接连上我的服务器的远程桌面呢,找了找帮助,使用终端命令就可以了:
sudo apt-get install rdesktop
rdesktop 124.42.120.174:1433
呵呵,连接成功了。

-f 全屏
-a 16位色
默认端口是3389(linux 22 sh)
注意:windows 的服务中的 Terminal Servies 需要开启。我的电脑 右键 属性 远程中,勾选 允许远程用户链接到此计算机。另外,退出的时候选择注销,而不是关机!
更多参数:
-u xxxxxx 登录用户,可选
-p xxxxxx 登录密码,可选
-r clipboard:PRIMARYCLIPBOARD 重要,剪贴板可以与远程桌面交互
-a 16 颜色,可选,不过最高就是16位
-z 压缩,可选
-g 1024x768 分辨率,可选,缺省是一种比当前本地桌面低的分辨率
-P 缓冲,可选
-r disk:wj=/home/magicgod 映射虚拟盘,可选,会在远程机器的网上邻居里虚拟出一个映射盘,功能很强,甚至可以是软盘或光盘
-r sound:off 关闭声音,当然也可以把远程发的声音映射到本地来。
我想把东西拷的到
/usr/share/fonts下
但是 提示我
“您没有该文件夹的写权限”
网上找的方法是用sudo,当然也可以用下面的方法
GONME:
sudo cp
sudo nautilus
KDE:
kdesu konqueror ~/
效果是:
我本来没有权限,在命令行里边sudo cp或者先sudo nautilus打开root权限的文件管理器,然后按照往常一样拷贝。我用的是sudo nautilus,效果如上。
在网上找了一些资料,有简单的有复杂的,有一个方法倒是非常简单:
在终端运行命令 "sudo apt-get install rar" 就可以了。
回显是:
jason@jason-laptop:~$ sudo apt-get install rar
Password:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
The following packages were automatically installed and are no longer required:
libdbus-1-2 libgnutls12 python2.4-minimal python2.4 libtasn1-2
使用 'apt-get autoremove' 来删除它们。
建议安装的软件包:
unrar
下列【新】软件包将被安装:
rar
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 506kB 的软件包。
解压缩后会消耗掉 1036kB 的额外空间。
获取:1 http://archive.ubuntu.com feisty/multiverse rar 1:3.7b1-2 [506kB]
下载 506kB,耗时 16s (30.2kB/s)
选中了曾被取消选择的软件包 rar。
(正在读取数据库 ... 系统当前总共安装有 104895 个文件和目录。)
正在解压缩 rar (从 .../rar_1%3a3.7b1-2_i386.deb) ...
正在设置 rar (3.7b1-2) ...
jason@jason-laptop:~$
然后双击rar文件就可以打开了。
花了几个小时的时间,现在终于使用上了硬盘版的ubuntu。
以前只用过光盘版的ubuntu,今天周六花些时间来研究一下ubuntu,嘻嘻,我的是笔记本,听说thinkpad与ubuntu的关系满亲密的。
安装之前把F盘留下来准备装ubuntu,先在网上找了篇文章,看了一下,基本上很简单的。
安装的时候,因为F盘的空间不是很大,所以在ubuntu里面,把F盘分成了两块,一块swap格式的900M,用来做交换区,剩下的12G分成了ext3,用来挂接跟文件系统"/",因为空间有限,所以没有把/home,/usr,/root等分开来优化。
感觉安装的过程要注意的是:
1、语言的选择,我咱装的时候好像没有注意,结果安好之后界面和firefox是英文的
2、就是分区选择挂接跟文件系统,我没有安装过,结果到选择分区的时候卡在那里了,幸到其他电脑上查了一下,才顺利安装下去。
安装之后重建,看到启动菜单已经变了,不够看到最下面一栏,还是有"windows xp professional",没有用来测试过,感觉很大希望windows可是直接启动,应该不用担心windows的启动问题。不过一会儿重启测试一下。
另外就是ubuntu的驱动好丰富,所有硬件都可以直接使用,包括tp-link的无线网卡。
不过无线网络设置的时候遇到一点麻烦,费了一番辛苦才连接成功,关于无线网络连接的地方想好再谈吧。
早上起来,aimee开她的笔记本,结,不能启动却显示出现0x000000ed的蓝屏错误,然后重启的时候就是找不到硬盘.
第一反应就是硬盘出问题了,其实这我也知道,因为她的硬盘有些坏道我是知道,也时常帮她检查和修修。不过不想今天突然就出现这种问题。还是先上了网查查具体的问题。
在网上最普遍的答案就是:将计算机重新启动到故障恢复控制台,然后使用 chkdsk /r 命令修复卷,结果没用。
1、我用启动光盘,想进入故障恢复控制台,结果没有发现硬盘,过程中止。
2、启动到win98 dos模式下(幸好最近一次分区是分区格式都是fat32),也是找不到其他盘。
3、用的光盘上PQ8.5中文版结果也是不能读取到硬盘。
没有办法,只有真正确定是不是硬盘的问题?于是用我的电脑的硬盘和她的互换,结果非常确定是硬盘的问题了,我的硬盘装在她的电脑上就是正常启动了,结果我的却是找不到操作系统了。
于是就去了太平眼电脑,回来的路上就发现有趣的“全肉大包1.5元/只!”。在太平洋电脑那里,找了个维修,借用usb接上也是识别不了。于是劝我们买个新的吧,如果里面数据不像amiee说的那样重要的话,否则不管是修理费或者是恢复数据的费用都是一个硬盘的价格不能比的。
后来什么也没做,只是问问新硬盘的情况,日立80G的3年包的420元,然后就回来了。
回来之后也不是办法啊,没有电脑了,的确不方便,没有办法。就用上了光盘的ubuntu来运行光盘的系统。
没想到奇迹发生了,通过ubuntu居然看到了计算机里面的3个分区,而且都能打开,这真是不一般啊!
后来又用了启动盘上的PQ8.5中文版,果真能读取到硬盘了,把c盘格式化成ntfs的,居然能装系统了,于是重装了xp。
就这样硬盘居然起死复生了,当然这只是一个良性而已,说不定什么时候又出问题了。