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就可以完美显示中文了。

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

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.

2008年12月10日星期三

konsole 设置文件

update_info=konsole.upd:kde2.2/r1,konsole.upd:kde3.0/r1

[Desktop Entry]
ActiveSession=0
AllowResize=false
AutoResizeTabs=false
BlinkingCursor=false
CtrlDrag=true
CutToBeginningOfLine=false
DefaultSession=shell.desktop
DynamicTabHide=false
EnableBidi=false
EncodingName=Default
Fullscreen=false
Height 1200=880
LineSpacing=0
MatchTabWinTitle=false
MenuBar=Disabled
SilenceSeconds=10
TabColor=0,0,0
TabViewMode=0
WarnQuit=true
Width 1920=997
XonXoff=false
bellmode=3
class=konsole-mainwindow#1
defaultfont=Courier [ibm],16,-1,5,75,0,0,0,0,0
has frame=true
history=1000
historyenabled=true
keytab=default
schema=BlackOnWhite.schema
scrollbar=0
tabbar=0
wordseps=:@-./_~

[General]
ShowAlternativeShortcutConfig=true

[Shortcuts]
save_as_default=Alt+Ctrl+D
save_sessions_profile=Alt+Ctrl+P
show_menubar=Alt+Ctrl+H

在这里加个LINK:ATI 在FC10上安装的过程:

http://www.fedora-tunisia.org/?q=node/55

Centos 5.2 eth0 的内容

# Broadcom Corporation BCM4401-B0 100Base-TX
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:12:3F:DE:F9:70
ONBOOT=no
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes


[hades@Centos ~]$ rpm -qa |grep NetworkManager
NetworkManager-gnome-0.6.5-7.9.el5.al
NetworkManager-glib-0.6.5-7.9.el5.al
NetworkManager-openvpn-0.3.2-7.9.el5.al
NetworkManager-0.6.5-7.9.el5.al
NetworkManager-glib-devel-0.6.5-7.9.el5.al
NetworkManager-devel-0.6.5-7.9.el5.al
[hades@Centos ~]$ rpm -qa |grep knetwork
knetworkmanager-0.2.2-3.fc7

2008年12月8日星期一

EXT4-how fot fixed

EXT4-fs: sda4: Filesystem with huge files cannot be mounted read-write without CONFIG_LSF.

hades: fedora 10 原生内核编译解压方法

hades: fedora 10 原生内核编译解压方法

fedora 10 原生内核编译解压方法

1个有用的网站,保存起来:
http://fedoraproject.org/wiki/Docs/CustomKernel

2008年12月3日星期三

ati

Ok, I've got it working...

Steps for a working fglrx in F10:

1) rpm -e --nodeps libdrm
2) rpm -ivh libdrm.rpm from F9
3) download and install fglrx from amd.com
4) rm /usr/lib/dri/fglrx_dri.so
5) ln -s /usr/lib64/dri/fglrx_dri.so /usr/lib/dri/fglrx_dri.so
6) yum install system-config-display
7) run system-config-display and change *nothing*, but press "ok" to create
an xorg.conf.
8) aticonfig --initial -f

Done.

2008年11月27日星期四

测试中文问题

测试中文问题

2008年11月26日星期三

生活目的

有时我宁愿相信有鬼,也不相信世界会有公平!

我的移动博客

新的BLOG开始了,测试一下。

2008年11月25日星期二

开始新生活!

这是我的第一个网络BLOG,希望能用它记录生活中的点滴,和同样相信自己并热爱生活的朋友们一起分享这个痛苦并快乐的世界,