Home
MICKEY'S TRACH!----something usefull and something useless!
His judgment cometh and that right early.
Recent Entries 
17th-Mar-2008 12:20 am(no subject)
notes

id

body

post_id

date

tag

tag_id

tag
tag_note

post_id

tag_id







12th-Jul-2006 05:43 pm - DDO游戏中
失业将近半月, 玩龙与地下城也半个月了......
5th-Jun-2006 08:48 am - 关注的动漫列表

海贼王 one piece
火影忍者
死神 bleach
特公
黑礁 black lagoon
女子高生

4th-Jun-2006 02:33 pm - Debian发布版代号来源

已用过的发布版代号

已使用过的发行版代号有:

  • buzz for release 1.1,
  • rex for release 1.2,
  • bo for releases 1.3.x,
  • hamm for release 2.0,
  • slink for release 2.1,
  • potato for release 2.2,
  • woody for release 3.0,
  • sarge for release 3.1。

发布版代号来源

到目前为止它们均出自Pixar的电影“Toy Story(Toy Story)”

  • Buzz(Buzz Lightyear)是个宇航员,
  • Rex是只暴龙,
  • Bo(Bo Peep)是个放羊的女孩,
  • Hamm是个小猪攒钱罐,
  • Slink(Slinky Dog)是只玩具狗,
  • Potato当然就是Potato Head先生,
  • Woody是个牛仔,
  • Sarge是位绿色塑料玩具士兵首领,
  • Etch(Etch-a-Sketch)是玩具黑板,
  • Sid是隔壁的男孩,那个玩具终结者。
4th-Jun-2006 10:37 am - Mplayer install on Debian HOWTO
Mplayer install on Debian HOWTO
Mplayer project home page

要下载的文件
   
Source:
            MPlayer v1.0pre7 source 6.6MB 可以在Mplayer Homemirror下载.

    Codecs:
      essential-YYYYMMDD.tar.bz2 - 在Mplayer Home下载最新的文件 "essential codecs package" .
         live.yyyy.mm.dd.tar.gz 在
这里下载后者这里.
         w32codecs.tar.bz2 6.3MB
下载地址,也可以用apt-get install w32codecs安装

    User Conf:
         mplayer-user-conf.tar 地址

     Font:
        
Arial  地址

     Skin:地址

卸载旧版本的Mplayer

    
使用命令dpkg -P mplayer卸载

To be continued
2nd-Jun-2006 02:26 pm - x-windows
1、#base-config
启动配置,apt软件安装源选择中国,建议选linuxforum,因速度最快。软件安装可以选择各种类型,如桌面环境、WEB服务器等,建议选择手动选择软件,然后退出。在shell环境下安装,这样可以实现精细控制安装。

2、安装桌面,即X-WINDOWS(建议安装,如果不用浏览只做服务器则不用装)
shell环境下输入
#apt-get install x-window-system-core kde kde-i18n-zhcn
也可详细安装如kde-core等,为省事可以选kde软件包则安装全部kde环境。

2.1、修改X-windows配置
X-windows配置文件在/etc/X11/XF86Config-4中。有三种方法(建议用第C种):
a.纯字符界面:
#xf86config
b.字符图形界面:
#dpkg-reconfigure xserver-xfree86
c.自动检测:
#apt-get install xdebconfigurator
自动检测硬件
#xdebconfigurator
根据检测结果修改XF86Config-4文件
#dexconf

2nd-Jun-2006 02:07 pm - Debian安装概要 输入法fcitx
摘至:Debian Sarge 光盘安装记要      作者:lzzzz    来自:www.linuxsir.org

安装中文输入法fcitx
#apt-get install fcitx

 

新建文件/etc/X11/Xsession.d/25xchinput-start,使启动X窗口自动启动fcitx做为汉字输入法,该文件内容如下:

export G_FILENAME_ENCODEING=@GBK
export LANG=zh_CN.GB2312
export XMODIFIERS=@im=fcitx
fcitx
2nd-Jun-2006 09:30 am - Debian安装 转载三
http://www.linuxsir.org/bbs/showthread.php?t=181117
在debian的中文美化时,基本可以按照我这样的步骤来做。我也是参考了香港debian桌面安装大赛时采用的方式,步骤顺序上做了调整,并在debian和gentoo系统上测试成功。

1.第一步,产生语系(locale)
如果没有安装locales的请安装locales:
代码:
#apt-get install locales
若已经安装了locales,就重新设定语系:
代码:
#dpkg-reconfiguer locales

选择生成下列语系的数据:(空格选择某一语系
代码:
en_US.ISO-8859-1 en_US.UTF-8 zh_CN.GB2312 zh_CN.UTF-8 zh_CN.GBK zh_TW.BIG5 zh_TW.UTF-8

再将默认locale选择为“C”。然后用“locale -a”来查看现在系统中所有支持的语系,
代码:
#locale -a C POSIX en_US.ISO-8859-1 en_US.UTF-8 zh_CN.GB2312 zh_CN.UTF-8 zh_CN.GBK zh_TW.BIG5 zh_TW.UTF-8
用“locale”查看当前所使用的语系。
代码:
#locale LANG=C LC_ALL=POSIX LC_CTYPE=POSIX ...
在产生了语系后,最好是重新启动系统。或者也可以重新登陆一次。

2.建议先安装firefly修正的一些包。
同样在/etc/apt/sources.list中加入源地址:
代码:
deb http://debian.okey.net/debian-uo/ sid firefly 或者deb ftp://ftp.hk.debian.org/unofficial/firefly/binary-i386 ./
更新后安装firefly-sung
代码:
#apt-get update #apt-get install ttf-firefly-sung
注意这个firefly-sung与fireflysung不是同一个文件,它是firefly修正的fontconfig,libxfs等的配置,不要搞错了。你可以事先搜索一下“firefly”这个关键字,以检查apt仓库是否探测准确:
代码:
#apt-cache search firefly

3.安装字体
linux中最常用的中文字体是文鼎的四套中文字体:ttf-arphic-bkai00mp(文鼎PL中楷AR PL KaitiMBig5,包含BIG5中13000个繁体字),ttf-arphic-gbsn00lp(文鼎PL简报宋AR PL SungtiLGB,包含GB2312中7000多个简体),ttf-arphic-bsmi00lp(文鼎PL细上海宋AR PL Mingti2L Big5)以及ttf-arphic-gkai00mp(文鼎PL KaitiMGB,包含GB2312中7000多个简体字)。这些字体可以直接通过apt来安装。
代码:
#apt-get install ttf-arphic-bkai00mp tf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp

但是由于中文字体笔画繁多,矢量字体加上Anti-Alias在细尺寸时反而显得模糊不清。这里我推荐使用台湾萤火虫(firefly)合并衬线后的新字体——文鼎PL新宋。
在/etc/apt/sources.list中加上新宋字体的apt仓库源:
代码:
deb ftp://debian.linux.org.tw/pub/apt unstable main 或者 deb ftp://ftp.hk.debian.org/unoffical/dlot-apt unstable main
然后更新apt repositories数据,就可以安装firefly的字体了。
代码:
#apt-get update #apt-get install ttf-fireflysung
为了避免造成不必要的麻烦,强烈建议首先安装fireflysung这个字体!!
接着就是安装文鼎的四个字体,自由字体中英文字体效果比较好的有Bitstream Vera Sans字体和DejaVu字体。特别是这个DejaVu字体是fundawang提及的将在Mandrake中采用的英文字体,我在gentoo和dbeian中测试效果都好于Bitstream Vera字体,故推荐使用。
代码:
#apt-get install ttf-bitstream-vera ttf-dejavu

为了提高对微软平台的兼容程度,我也建议安装msttcorefonts这一套微软的英文字体。这套字体包含了AndalMono、ArialBlack、Arial、ComicSansMS、Georgia、Impact、TimesNew Roman、Times、Trebuchet、Verdana和Webdings等11种字体。
代码:
#apt-get install msttcorefonts

4.设置Fontconfig这一步非常重要,也许你是安装了非常好看的字体,但是如果你不修正你的Fontconfig,再好看的效果也不一定出来。
首先我们编辑/etc/fonts/fonts.conf这个文件,检查字体的使用顺序,把你要用的效果最好的字体放在最前面。

重排Serif字体显示顺序:
代码:
<alias> <family>serif</family> <prefer> <family>DejaVu Serif</family> <family>Bitstream Vera Serif</family> <family>Times New Roman</family> <family>Times</family> <family>AR PL New Sung</family> <family>SimSun</family> <family>Luxi Serif</family> <family>AR PL Mingti2L Big5</family> <family>AR PL SungtiL GB</family> <family>Ming(ISO10646)</family> <family>Kochi Mincho</family> <family>Baekmuk Batung</family> </prefer> </alias>
排序的关键是把效果最好的放在最前,DejaVu和Bitstream Vera的英文显示效果最好,所以排在所有英文字体的前面,而AR PL New Sung(就是firefly的字体)以及Simsun的中文效果最好,所以排在所有cjk字体的前面.我的技巧是直接搜索Luxi字体,在这个字体前加上自己的中文字体。

重排sans-serif字体显示顺序:
代码:
<alias> <family>sans-serif</family> <prefer> <family>DejaVu Serif</family> <family>Bitstream Vera Sans</family> <family>Arial</family> <family>Verdana</family> <family>Helvetica</family> <family>AR PL New Sung</family> <family>SimSun</family> <family>Luxi Serif</family> <family>Ming(ISO10646)</family> <family>AR PL kaitiM Big5</family> <family>AR PL kaitiM GB</family> <family>Kochi Gothic</family> <family>Baekmuk Dotum</family> </prefer> </alias>
Fontconfig把sans定为sans-serif的别名,所以排序的办法也是一样。

重排monospace的字体显示顺序:
代码:
<alias> <family>monospace</family> <prefer> <family>Bitstream Vera Sans Mono</family> <family>Courier New</family> <family>Courier</family> <family>AR PL New Sung</family> <family>Ming(ISO10646)</family> <family>Kochi Mincho</family> <family>Baekmuk Batung</family> </prefer> </alias>

接着我们来做一次模仿,请在所有写着“Bitstream Vera xxx”字样的一行前面按照这行的写法添加自己的字体。这样做的目的是让系统在做字体的替换时做得更彻底些。例如:
代码:
<match target="font"> <test name="family"> <string>DejaVu Sans Mono</string> <string>Bitstream Vera Sans Mono</string> </test> ... </match>

5.调整/etc/fonts/local.conf这一步也是非常重要的,因为我们要做的是关闭中文字体在8px-16px之间时的Anti-Alias,以及加入粗体的设定。
我的locale.conf如下:
代码:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file for local customizations --> <fontconfig> <!-- Enable sub-pixel rendering <match target="font"> <edit name="rgba" mode="assign"><const>rgb</const></edit> </match> --> <!-- Add by Firefly(firefly@firefly.idv.tw) --> <match target="font"> <edit name="embeddedbitmap" mode="assign"> <bool>true</bool> </edit> </match> <!-- Add by Firefly(firefly@firefly.idv.tw) Most of Asian fonts can't explain by freetype2, so,if these fonts have dual width(half/full) and monospacing, you need to disable globaladvance. --> <match target="font"> <test name="spacing" compare="more_eq"> <const>mono</const> </test> <edit name="globaladvance" mode="assign"> <bool>false</bool> </edit> </match> <!-- Add by firefly@firefly.idv.tw Artificial bold for fonts without a bold version. --> <match target="font"> <!-- check to see if the pattern requested > "medium" --> <test target="pattern" name="weight" compare="more"> <const>medium</const> </test> <!-- pretend the font is bold now --> <edit name="weight" mode="assign"> <const>bold</const> </edit> </match> <!-- Add by firefly@firefly.idv.tw --> <match target="pattern"> <test name="lang" compare="contains"> <string>zh-tw</string> <string>zh-cn</string> <string>zh-hk</string> <string>zh-mo</string> <string>zh-sg</string> <string>zh</string> <string>ja</string> <string>ko</string> </test> <edit name="hinting" mode="assign"> <bool>true</bool> </edit> <edit name="usegamma" mode="assign"> <if> <less> <name>pixelsize</name> <double>20</double> </less> </if> <bool>true</bool> </edit> </match> <!--........................................................................--> <config> <!-- Add by Firefly (firefly@firefly.idv.tw) Output non English/Latin family name. --> <familyoutput> <const>auto</const> <!--const>englishonly</const--> <!--const>any</const--> </familyoutput> </config> <!--.......................................................................--> <!-- Add by EricNeon (ericneon@geekbone.org) Disable Chinese fonts Anti-Alias in 8px-16px. --> <match target="font"> <test name="pixelsize" compare="more_eq"> <double>8</double> </test> <test name="pixelsize" compare="less_eq"> <double>16</double> </test> <edit name="antialias"> <bool>false</bool> </edit> <edit name="hinting"> <bool>true</bool> </edit> </match> </fontconfig>
6.最后我们在/etc/X11/XSession.d/目录下创建一个X的启动文件95locale-xinput-set,在此设定X的locale和中文输入法。
代码:
case "$LANG" in zh_CN*) /usr/bin/scim -d(或fcitx &) XMODIFIERS=@im=scim(或fcitx) GTK_IM_MODULE=scim(或fcitx) ;; zh_TW*) /usr/bin/scim -d(或fcitx &) XMODIFIERS=@im=scim(或fcitx) GTK_IM_MODULE=scim(或fcitx) ;; zh_HK*) /usr/bin/scim -d(或fcitx &) XMODIFIERS=@im=scim(或fcitx) GTK_IM_MODULE=scim(或fcitx) ;; esac export XMODIFIERS GTK_IM_MODULE export LANG=zh_CN.UTF-8 (如果你没有设置locale=zh_CN.UTF-8) export G_FILENAME_ENCODING=@UTF-8

现在你可以到你的桌面下去看看效果了,无论是使用startx还是用gdm、xdm、kdm等启动桌面,都不需要另外再设置locale和输入法。

2nd-Jun-2006 09:29 am - Debian安装 转载二
http://www.linuxsir.org/bbs/showthread.php?t=194163
更详细的请看官方 Debian 安装手册


Debian 安装手册中文版 , 在这儿


本来 Sir 里已经有大把大把的文章了,但还是有兄弟喊找不到
那就再贴一份吧


拜托表再乱骂 chaisave 她们了




一般情况下, Debian 是先安装基本系统,再安装其他软件的

1.
安装基本系统:
不要用 3.0 Woody 了,用 Sarge 的第一张盘,或更新的 D-i 光盘
100多M 的那个 iso 就可以
可以硬盘安装,但是刻一张光盘会更简单稳妥
把光盘放进光驱,由光盘启动
出现 boot: 时候
键入 linux26 回车
让她使用 2.6 内核
安装语言选简体中文
剩下的一路都有中文提示

基本系统安装过程结束后,她会要求拿出光盘,准本重新启动,安装其他软件


2.
配置 base-config :
装好基本系统重启后,她会自己运行 base-config
到了选择 apt 源时,可以选 http 或 ftp 方式
源 可以用国内的 cn99 或 jp 的 ftp2.jp.debian.org
结束 base-config 后,如果想再在 控制台下进行 base-config , 要先运行 zhcon 进入中文控制台环境



注意,以后在控制台下使用 apt 这些的时候,要先运行 zhcon , 才会有正常的中文界面

否则可能 乱码 , 除非设置了在控制台下不使用中文 locale , 或用了 unicon 补丁的内核
没有 zhcon 就先
# env LANG=C apt-get -y install zhcon

locale 推荐配置为 zh_CN.UTF-8
# /usr/sbin/dpkg-reconfigure locales




3.
升级到 Sid :
用 Sarge 安装的系统是 testing , 可以升级到 sid , sid 有最新的软件可以用
修改 /etc/apt/sources.list
把里面的 testing 字样 都换成 sid
然后运行命令
# apt-get update
# apt-get dist-upgrade

( 普通升级用 apt-get upgrade , 发行版升级用 apt-get dist-upgrade )


如果要 mplayer , java 这些,可以先在 /etc/apt/sources.list 里添加一行
deb http://debian.okey.net/debian-uo/ sid java marillat rareware misc



4.
安装桌面:
# apt-get -y install x-window-system-core menu fcitx kde kde-i18n-zhcn konversation kaffeine kaffeine-mozilla kdm icewm rcconf mlterm amule-utils showimg

( konversation 是一个很好用的 IRC 客户端, kaffeine 是一个几乎全能的播放器 )
如果要 mplayer 或 win32 解码器,先确保 /etc/apt/sources.list 里有
deb http://debian.okey.net/debian-uo/ sid java marillat rareware misc
这一行
# apt-get -y install mplayer-586 w32codecs
装了 w32codecs 后 , xine , mplayer , kaffeine 这些就可以播放几乎全部多媒体格式了



5.
中文输入法:
安装 fcitx
# apt-get -y install fcitx
然后新建文件 /etc/X11/Xsession.d/95im-launch
在里面写入
export XMODIFIERS=@im=fcitx
fcitx

不用修改其他任何文件的
进入 X 会自动启动 fcitx


6.
升级内核:
并且加 alsa
现在 Sid 里可以 2.6.10 内核了
# apt-get -y install kernel-image-2.6.10-1-i386

Sarge 里就是 # apt-get -y install kernel-image-2.6.8-1-i386



( 在我发贴的时候,
Sid 里是 kernel-image-2.6.10-1-i386
Sarge 里是 kernel-image-2.6.8-1-i386
但是您安装的时候可能就是新的内核版本了
请您先 apt-cache search --names-only kernel-image
查找一下可用的版本,选一个适合您的 CPU 的 )

7.
使用 alsa
# apt-get -y install alsa aumix xmix


8.
安装办公套件:
# apt-get -y install koffice koffice-i18n-zhcn xpdf xpdf-chinese-simplified gimp





9.
安装 FireFly 的新宋体:
# wget http://debian.okey.net/other/debian/...0.0-1_i386.deb
# dpkg -i ttf-fireflysung_1.0.0-1_i386.deb

然后修改 /etc/fonts/local.conf
改为
PHP 代码:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintmedium</const>
  </edit>
</match>
<dir>~/.fonts</dir>
<match target="font" >
  <test compare="more" name="size" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="size" qual="any" >
   <double>12</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <test compare="more" name="pixelsize" qual="any" >
   <double>11</double>
  </test>
  <test compare="less" name="pixelsize" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
</fontconfig>


















可以了

现在已经是一个可用的中文桌面系统了
再重启一次,就可以使用新内核 和 alsa 了



还可以稍微加快系统速度

1. 去掉多余服务
# apt-get -y install rcconf
# rcconf
我只保留 alsa aumix dbus-1 makedev

2.
使用硬盘 hdparm
# apt-get -y install hdparm
# /sbin/hdparm -c3 -u1 -d1 /dev/hda
# /sbin/hdparm -k1 /dev/hda


引用:
由 xjzzx 补充

hdparm 加上个参数。

#/sbin/hdparm -c3 -u1 -d1 -X6x /dev/hda
X参数是打开硬盘DMA模式,现在的硬盘和主板都能支持这个了。
具体的参数是 ATA66=68 , ATA100=69 , ATA33=66 。




3.
使用预链接加速程序启动速度
# apt-get -y install prelink
# /usr/sbin/prelink -all --conserve-memory
This page was loaded Jul 16th 2009, 7:13 pm GMT.