2008年12月12日星期五

As a Ubuntu user, endless tuning!

I have to learn how to pause. I have to remind myself that my major task is not tuning ubuntu.

2008年12月9日星期二

安装Fedora10的硬盘会不会受风?

年初升级了PC,留下了一台旧的电脑主机。参加完Fedora10聚会后心血来潮打算把这个旧主机利用一下,至少要跑跑Fedora10,不能对不起bbbush的光盘。

旧机器的内存只有256M(DDR I),于是去南山赛格添了条256M的RAM,这样内存512M,跑Linux应该够用了。

借了公司的USB光驱,安装Fedora10的时候遇到了N多问题。首先是安装界面花屏。在bbbush的指导下进入text模式,顺利安装,不过text模式默认是字符启动模式3,于是我改成5,想看看X。不过进X后会死机,目前正在研究中...

两台PC了,但是只有一套键盘鼠标显示器,taobao拍了一个KVM。安装妥当后进入我的Ubuntu,在要进入Gnome桌面时竟然显示No Signal Input,晕死!对比用KVM进Windows XP一切正常。TMD连KVM都欺负Linux,上旺旺找店主发泄。没想到店主还有些经验,说之前Ubuntu + ATI显卡芯片有遇到这种问题,换个阳春的显卡驱动就正常了。一语点醒梦中人,我的Ubuntu有开启那个ATI非授权的驱动,Disable后KVM正常!AMD也够逊,没魄力搞开源,收购ATI就走末路,貌似和VIA收购S3有些雷同,看起来最好不要收购显卡晶片厂。

旧的机箱已经被我大卸八块,在B&Q的两个小凳子上躺着,突然发现目前架构是电源的出风口正好在对装有Fedora10的硬盘吹风,硬盘会不会受风?千万别得荨麻疹。

Tag 08/12/09
进入文本模式后输入gdm,进入图形登录界面,看起来分辨率至少是1024*768,显卡应该驱动上了。但是Fedora10没有xorg.conf文件,官方说是使用evdev,看来要从这里找些线索。
http://who-t.blogspot.com/2008/07/input-configuration-in-nutshell.html -- Evdev 配置。
Tag 08/12/11
Thanks God, Fedora10在i845显卡上终于跑起来了!
解决过程如下:
1. 到下面链接下载xorg-x11-drv-i810-2.5.0-3.fc10.i386.rpm
http://rpmfind.net/linux/rpm2html/se...g-x11-drv-i810
发现问题依旧,继续google,发现下面帖子,起到关键性作用
http://n2.nabble.com/Problem-with-xo...td1597767.html
2. 在/X11/目录下建立xorg.conf(Fedora10默认没此文件),内容如下:
+----------------+
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
EndSection

Section "Monitor"
Identifier "LCD Panel"
VendorName "Maya"
ModelName "X30 1024x768"
Option "dpms"
EndSection

Section "Device"
Identifier "Intel i845"
Driver "intel"
VendorName "Intel"
Option "AccelMethod" "XAA"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Intel i845"
Monitor "LCD Panel"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 1024 768
EndSubSection
EndSection
+----------------+
再进X,一切正常!Thanks God,Fedora10,想说爱你不容易!

2008年12月7日星期日

VIM

Tag 12/08/2008

o : creates a new, empty line below the cursor and puts Vim in Insert mode.

w : move the cursor forward one word.Like most Vim commands, you can use a numeric prefix to move past multiple words. For example, "3w" moves three words.
e : moves to the next end of a word.
b : moves backward to the start of the previous word.

^ : moves to the first non-blank character of the line.
$ : moves the cursor to the end of a line

+---------------------------+
H --> | text sample text |
| sample text |
| text sample text |
| sample text |
M --> | text sample text |
| sample text |
| text sample text |
| sample text |
L --> | text sample text |
+---------------------------+

ZZ : save and exit.

CTRL-G : get a message like this (assuming the 'ruler'option is off):
"usr_03.txt" line 233 of 650 --35%-- col 45-52

Tag 12/20/2008

~/.bashrc
alias vi='gvim'

~/.vimrc

Tricks:

Alt+F10 Maxisize window
Ctl+i Go into selected file
Ctl+o Go back