[root@sample ~]# vi /etc/yum.repos.d/dag.repo ← 建立dag.repo,定义非官方库
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
#baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag
baseurl=http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/i386/dag
gpgcheck=1
enabled=1
[root@sample ~]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
导入非官方库的GPG
2009年2月26日星期四
2009年2月23日星期一
LINUX优化CPU和内存的参数
放在/etc/sysctl.conf 文件里:
vm.dirty_ratio = 1
vm.dirty_background_ratio=1
vm.dirty_writeback_centisecs=2
vm.dirty_expire_centisecs=3
vm.drop_caches=3
vm.swappiness =3
vm.vfs_cache_pressure=163
vm.overcommit_memory=2
vm.overcommit_ratio=2
vm.lowmem_reserve_ratio=32 32 8
vm.dirty_ratio = 1
vm.dirty_background_ratio=1
vm.dirty_writeback_centisecs=2
vm.dirty_expire_centisecs=3
vm.drop_caches=3
vm.swappiness =3
vm.vfs_cache_pressure=163
vm.overcommit_memory=2
vm.overcommit_ratio=2
vm.lowmem_reserve_ratio=32 32 8
2009年2月18日星期三
永远的痛:Marvell 88w8363 300M ABGN MINIPCI
一年前BUY了一个Marvell 88w8363 300M ABGN MINIPCI 无线网卡,至今没能找到在LINUX下使用的驱动,只好放在另一个用WINDOWS的本本,这个卡的信号及传送速度真是没的说,比我现在用的AR5008 300M ABGN MINIPCI 都强,只能哭呀。
找到的一些信息是:
http://kerneltrap.org/mailarchive/freebsd-current/2008/4/13/1418734/thread
在这里有讨论在FREEBSD上的一个PATCH,但 已能下载,只能流口水了。
在另一个论坛发的帖子更是没人回:
http://www.linuxsir.org/bbs/lastpostinthread330600.html
找到的一些信息是:
http://kerneltrap.org/mailarchive/freebsd-current/2008/4/13/1418734/thread
在这里有讨论在FREEBSD上的一个PATCH,但 已能下载,只能流口水了。
在另一个论坛发的帖子更是没人回:
http://www.linuxsir.org/bbs/lastpostinthread330600.html
2009年2月17日星期二
fedora 10 kernel
这里是Fedora 10 各内核发布的地方,收藏先;
http://koji.fedoraproject.org/koji/packageinfo?packageID=8
http://koji.fedoraproject.org/koji/packageinfo?packageID=8
解压 kernel*src.rpm 方法
普通用户解压kernel*src.rpm的方法:
1、下载需要的内核rpm包的源码包,即:kernel*src.rpm
2、普通用户权限下运行:rpmdev-setuptree ,会在普通用户的主目录下生成rpmbuild目录
3、使用:$rpm -ivh kernel-*.src.rpm 安装内核的源码,会安装在普通用户主目录下的rpmbuild目录里。
4、$cd ~/rpmbuild/SPECS
$rpmbuild -bp --target=`uname -m` kernel.spec
5、解压出来的源码包就在:~/rpmbuild/BUILD/kernel-/linux-. 目录下了。
6、其中:a)、linux-*.i686 目录是打过各种补丁的源码。
b)、vanilla-* 目录是原始的内核目录,没打过补丁。
7、~/rpmbuild/SOURCES 里包括了各个补丁,可选择使用在原内核上。
1、下载需要的内核rpm包的源码包,即:kernel*src.rpm
2、普通用户权限下运行:rpmdev-setuptree ,会在普通用户的主目录下生成rpmbuild目录
3、使用:$rpm -ivh kernel-*.src.rpm 安装内核的源码,会安装在普通用户主目录下的rpmbuild目录里。
4、$cd ~/rpmbuild/SPECS
$rpmbuild -bp --target=`uname -m` kernel.spec
5、解压出来的源码包就在:~/rpmbuild/BUILD/kernel-
6、其中:a)、linux-*.i686 目录是打过各种补丁的源码。
b)、vanilla-* 目录是原始的内核目录,没打过补丁。
7、~/rpmbuild/SOURCES 里包括了各个补丁,可选择使用在原内核上。
2008年12月22日星期一
JDK1.6*中文显示设置
原来的方法过于复杂,更新一个更简单的方法:
目前使用的是:jdk1.6.0_12(包括了JRE)
进入安装JVAV的目录,我用的是jdk-6u12-linux-i586-rpm.bin ,解压安装后的Java是在/usr/java 下,参数设在:/etc/profile
[code]
export JAVA_HOME=/usr/java/jdk1.6.0_12/
export JRE_HOME=/usr/java/jdk1.6.0_12/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
[/code]
显示中文方法:
进入:
/usr/java/jdk1.6.0_12/jre/lib/fonts/
使用:ln -s 命令把有中文字体的目录连接过来为fallback目录就OK了,如我的是:
ln -s /usr/local/share/fonts/ fallback
重启 电脑,这样JAVA就可以完美显示中文了。
目前使用的是:jdk1.6.0_12(包括了JRE)
进入安装JVAV的目录,我用的是jdk-6u12-linux-i586-rpm.bin ,解压安装后的Java是在/usr/java 下,参数设在:/etc/profile
[code]
export JAVA_HOME=/usr/java/jdk1.6.0_12/
export JRE_HOME=/usr/java/jdk1.6.0_12/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
[/code]
显示中文方法:
进入:
/usr/java/jdk1.6.0_12/jre/lib/fonts/
使用:ln -s 命令把有中文字体的目录连接过来为fallback目录就OK了,如我的是:
ln -s /usr/local/share/fonts/ fallback
重启 电脑,这样JAVA就可以完美显示中文了。
2008年12月18日星期四
hades-fedora.kcsrc
[Color Scheme]
Name=hades-fedora
activeBackground=0,0,0
activeBlend=128,128,128
activeForeground=255,255,255
activeTitleBtnBg=0,0,0
alternateBackground=233,233,233
background=42,42,42
buttonBackground=0,0,0
buttonForeground=188,188,188
contrast=10
foreground=188,188,188
frame=168,168,168
handle=168,168,168
inactiveBackground=0,0,0
inactiveBlend=168,168,168
inactiveForeground=104,104,104
inactiveFrame=168,168,168
inactiveHandle=168,168,168
inactiveTitleBtnBg=168,168,168
linkColor=0,0,238
selectBackground=0,0,0
selectForeground=255,255,255
shadeSortColumn=true
visitedLinkColor=82,24,139
windowBackground=57,57,57
windowForeground=190,190,190
Name=hades-fedora
activeBackground=0,0,0
activeBlend=128,128,128
activeForeground=255,255,255
activeTitleBtnBg=0,0,0
alternateBackground=233,233,233
background=42,42,42
buttonBackground=0,0,0
buttonForeground=188,188,188
contrast=10
foreground=188,188,188
frame=168,168,168
handle=168,168,168
inactiveBackground=0,0,0
inactiveBlend=168,168,168
inactiveForeground=104,104,104
inactiveFrame=168,168,168
inactiveHandle=168,168,168
inactiveTitleBtnBg=168,168,168
linkColor=0,0,238
selectBackground=0,0,0
selectForeground=255,255,255
shadeSortColumn=true
visitedLinkColor=82,24,139
windowBackground=57,57,57
windowForeground=190,190,190
2008年12月12日星期五
Linux I/O调度器 选择
ANTICIPATORY (AS): This is a decent scheduler, it works well with all file systems, works best on older drives.
DEADLINE: This is a surprising scheduler, it is light and performs the extremely well on most file systems, including reiser4. Works best on newer drives.
CFQ: Only use it on ext3, this scheduler's goal is not performance, but about balancing IO among all resources.
DEADLINE: This is a surprising scheduler, it is light and performs the extremely well on most file systems, including reiser4. Works best on newer drives.
CFQ: Only use it on ext3, this scheduler's goal is not performance, but about balancing IO among all resources.
订阅:
博文 (Atom)