从0.4.2到0.5.1
增加了 不少功能
rcfile 格式也改变了
重写一份 延续原来的键绑定
#Mrxvt.opacity: 75
#Mrxvt.opacityDegree: 5
#Mrxvt.transparent: True
#Mrxvt.transparentScrollbar: True
#Mrxvt.transparentTabbar: True
#Mrxvt.transparentMenubar: True
Mrxvt.foreground: grey
#Mrxvt.foreground: yank
#Mrxvt.background: blue
Mrxvt.background: #315fab
#Mrxvt.ufBackground: yellow
#Mrxvt.backgroundFade: 50
#Mrxvt.fading: 50
#Mrxvt.shading: 80
#Mrxvt.tintColor: red
#Mrxvt.textShadow: red
#Mrxvt.textShadowMode: botright
Mrxvt.xft: 1
Mrxvt.xftFont: DejaVu Sans Mono
Mrxvt.xftmFont: WenQuanYi Bitmap Song
#Mrxvt.xftNomFont: True
Mrxvt.xftAntialias: 1
#Mrxvt.xftWeight: Medium
Mrxvt.xftSlant: Roman
#Mrxvt.xftHinting: True
#Mrxvt.xftAutoHint: True
Mrxvt.xftGlobalAdvance: True
#Mrxvt.xftWidth: ultracondensed #normal
Mrxvt.xftRGBA: rgb
Mrxvt.xftSize: 14
#Mrxvt.cursorBlink: True
#Mrxvt.cursorBlinkInterval: 200
Mrxvt.geometry: 80x40
#Mrxvt.lineSpace: 2
#Mrxvt.borderLess: True
#Mrxvt.overrideRedirect: True
#Mrxvt.bellCommand: ls
#Mrxvt.holdExit: False
#Mrxvt.holdExitText: Terminal exited#
#Mrxvt.internalBorder: 2
#Mrxvt.externalBorder: 2
#Mrxvt.thai: False
#Mrxvt.multichar_encoding: GB
Mrxvt.multichar_encoding: GB
#Mrxvt.inputMethod: fcitx
Mrxvt.minVisibleTabs: 8
#Mrxvt.tintColor: #ffffff
Mrxvt.macro.Ctrl+Right: GotoTab +1
Mrxvt.macro.Ctrl+Left: GotoTab -1
#Mrxvt.macro.Ctrl+t: NewTab -
Mrxvt.macro.Ctrl+Up: NewTab -
Mrxvt.scrollBar: True
Mrxvt.saveLines: 65535
2007年10月24日星期三
2007年10月20日星期六
我的两块硬盘 留底
diskinfo -ctv ad0
ad0
512 # sectorsize
80026361856 # mediasize in bytes (75G)
156301488 # mediasize in sectors
155061 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
I/O command overhead:
time to read 10MB block 0.153954 sec = 0.008 msec/sector
time to read 20480 sectors 1.951592 sec = 0.095 msec/sector
calculated command overhead = 0.088 msec/sector
Seek times:
Full stroke: 250 iter in 6.229230 sec = 24.917 msec
Half stroke: 250 iter in 4.397800 sec = 17.591 msec
Quarter stroke: 500 iter in 7.038233 sec = 14.076 msec
Short forward: 400 iter in 1.982712 sec = 4.957 msec
Short backward: 400 iter in 1.254739 sec = 3.137 msec
Seq outer: 2048 iter in 0.221814 sec = 0.108 msec
Seq inner: 2048 iter in 0.228228 sec = 0.111 msec
Transfer rates:
outside: 102400 kbytes in 1.359987 sec = 75295 kbytes/sec
middle: 102400 kbytes in 1.652919 sec = 61951 kbytes/sec
inside: 102400 kbytes in 2.796036 sec = 36623 kbytes/sec
diskinfo -ctv ad6
ad6
512 # sectorsize
160041885696 # mediasize in bytes (149G)
312581808 # mediasize in sectors
310101 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
I/O command overhead:
time to read 10MB block 0.113047 sec = 0.006 msec/sector
time to read 20480 sectors 1.990766 sec = 0.097 msec/sector
calculated command overhead = 0.092 msec/sector
Seek times:
Full stroke: 250 iter in 6.991143 sec = 27.965 msec
Half stroke: 250 iter in 4.926424 sec = 19.706 msec
Quarter stroke: 500 iter in 7.740060 sec = 15.480 msec
Short forward: 400 iter in 2.775153 sec = 6.938 msec
Short backward: 400 iter in 3.088087 sec = 7.720 msec
Seq outer: 2048 iter in 0.216119 sec = 0.106 msec
Seq inner: 2048 iter in 0.233842 sec = 0.114 msec
Transfer rates:
outside: 102400 kbytes in 1.374697 sec = 74489 kbytes/sec
middle: 102400 kbytes in 1.582706 sec = 64699 kbytes/sec
inside: 102400 kbytes in 2.826320 sec = 36231 kbytes/sec
ad0
512 # sectorsize
80026361856 # mediasize in bytes (75G)
156301488 # mediasize in sectors
155061 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
I/O command overhead:
time to read 10MB block 0.153954 sec = 0.008 msec/sector
time to read 20480 sectors 1.951592 sec = 0.095 msec/sector
calculated command overhead = 0.088 msec/sector
Seek times:
Full stroke: 250 iter in 6.229230 sec = 24.917 msec
Half stroke: 250 iter in 4.397800 sec = 17.591 msec
Quarter stroke: 500 iter in 7.038233 sec = 14.076 msec
Short forward: 400 iter in 1.982712 sec = 4.957 msec
Short backward: 400 iter in 1.254739 sec = 3.137 msec
Seq outer: 2048 iter in 0.221814 sec = 0.108 msec
Seq inner: 2048 iter in 0.228228 sec = 0.111 msec
Transfer rates:
outside: 102400 kbytes in 1.359987 sec = 75295 kbytes/sec
middle: 102400 kbytes in 1.652919 sec = 61951 kbytes/sec
inside: 102400 kbytes in 2.796036 sec = 36623 kbytes/sec
diskinfo -ctv ad6
ad6
512 # sectorsize
160041885696 # mediasize in bytes (149G)
312581808 # mediasize in sectors
310101 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
I/O command overhead:
time to read 10MB block 0.113047 sec = 0.006 msec/sector
time to read 20480 sectors 1.990766 sec = 0.097 msec/sector
calculated command overhead = 0.092 msec/sector
Seek times:
Full stroke: 250 iter in 6.991143 sec = 27.965 msec
Half stroke: 250 iter in 4.926424 sec = 19.706 msec
Quarter stroke: 500 iter in 7.740060 sec = 15.480 msec
Short forward: 400 iter in 2.775153 sec = 6.938 msec
Short backward: 400 iter in 3.088087 sec = 7.720 msec
Seq outer: 2048 iter in 0.216119 sec = 0.106 msec
Seq inner: 2048 iter in 0.233842 sec = 0.114 msec
Transfer rates:
outside: 102400 kbytes in 1.374697 sec = 74489 kbytes/sec
middle: 102400 kbytes in 1.582706 sec = 64699 kbytes/sec
inside: 102400 kbytes in 2.826320 sec = 36231 kbytes/sec
2007年10月17日星期三
gentoo desktop 备忘
非 root 用户 关机
emerge sudo
/etc/sudoers下添加
username ALL=NOPASSWD:ALL
fcitx 自启动
在 /etc/X11/Sessions/Xfce中加入
/usr/bin/fcitx
startxfce4
gnome kde 未测试
emerge sudo
/etc/sudoers下添加
username ALL=NOPASSWD:ALL
fcitx 自启动
在 /etc/X11/Sessions/Xfce中加入
/usr/bin/fcitx
startxfce4
gnome kde 未测试
2007年10月7日星期日
设置FreeBSD控制台分辨率
FreeBSD6.2
在内核中加入两项:
options VESA
options SC_PIXEL_MODE
然后编译安装新的内核
用 vidcontrol 设置调试 分辨率
用 vidcontrol -i mode|grep G 来查看支持MODE的列表,注意第一列的编号,
用 vidcontrol MODE_编号 来更改分辨率
如果想启动时生效,就在 /etc/rc.conf 加入 allscreens_flags="MODE_编号"
在内核中加入两项:
options VESA
options SC_PIXEL_MODE
然后编译安装新的内核
用 vidcontrol 设置调试 分辨率
用 vidcontrol -i mode|grep G 来查看支持MODE的列表,注意第一列的编号,
用 vidcontrol MODE_编号 来更改分辨率
如果想启动时生效,就在 /etc/rc.conf 加入 allscreens_flags="MODE_编号"
2007年10月3日星期三
常见音频格式工具
MP3 相关工具: lame
OGG 相关工具: vorbis-tools
APE 相关工具: mac
FLAC 相关工具: flac
WAV 相关工具: shntool
BIN/CUE镜像分割: bchunk
1. MP3 和 WAV 之间相互转换
===========================
mp3 -> wav
lame --decode <输入_mp3文件> <输出_wav文件>
wav -> mp3
lame -b <比特率> <输入_wav文件> <输出_ogg文件>
shntool conv -o "cust ext=mp3 lame -b <比特率> - %f" <输入_wav文件>
2. OGG 和 WAV 之间相互转换
===========================
ogg -> wav
oggdec <输出_ogg文件> -o <输入_wav文件>
wav -> ogg
oggenc -b <比特率> <输入_wav文件> -o <输出_ogg文件>
3. APE 和 WAV 之间相互转换
===========================
ape -> wav
mac <输入_ape文件> <输出_wav文件> -d
wav -> ape
mac <输入_wav文件> <输出_ape文件> -c <压缩比率, 默认为 2000>
4. FLAC 和 WAV 之间相互转换
===========================
flac -> wav
flac -d <输入_flac文件> -o <输出_wav文件>
wav -> flac
flac <输入_wav文件> <输出_flac文件> -<压缩比率 1-8 , 默认为 5>
5. 分割APE/CUE镜像
i) 先解码成WAV格式
mac CDImage.ape CDImage.wav -d
再进行切割
bchunk -w CDImage.wav CDImage.cue output
或
shnsplit -f CDImage.cue CDImage.wav
ii) 也可以直接切割
shnsplit -f CDImage.cue -i ape CDImage.ape
iii) 切割并转换到其他格式(FLAC/mp3)
shnsplit -f CDImage.cue -i ape -o flac CDImage.ape
shnsplit -f CDImage.cue -i ape \
-o "cust ext=mp3 lame -b 320 - %f" CDImage.ape
6. APE <-> FLAC 互相转换
shnconv -i ape -o flac CDImage.ape
shnconv -i flac -o ape CDImage.flac
OGG 相关工具: vorbis-tools
APE 相关工具: mac
FLAC 相关工具: flac
WAV 相关工具: shntool
BIN/CUE镜像分割: bchunk
1. MP3 和 WAV 之间相互转换
===========================
mp3 -> wav
lame --decode <输入_mp3文件> <输出_wav文件>
wav -> mp3
lame -b <比特率> <输入_wav文件> <输出_ogg文件>
shntool conv -o "cust ext=mp3 lame -b <比特率> - %f" <输入_wav文件>
2. OGG 和 WAV 之间相互转换
===========================
ogg -> wav
oggdec <输出_ogg文件> -o <输入_wav文件>
wav -> ogg
oggenc -b <比特率> <输入_wav文件> -o <输出_ogg文件>
3. APE 和 WAV 之间相互转换
===========================
ape -> wav
mac <输入_ape文件> <输出_wav文件> -d
wav -> ape
mac <输入_wav文件> <输出_ape文件> -c <压缩比率, 默认为 2000>
4. FLAC 和 WAV 之间相互转换
===========================
flac -> wav
flac -d <输入_flac文件> -o <输出_wav文件>
wav -> flac
flac <输入_wav文件> <输出_flac文件> -<压缩比率 1-8 , 默认为 5>
5. 分割APE/CUE镜像
i) 先解码成WAV格式
mac CDImage.ape CDImage.wav -d
再进行切割
bchunk -w CDImage.wav CDImage.cue output
或
shnsplit -f CDImage.cue CDImage.wav
ii) 也可以直接切割
shnsplit -f CDImage.cue -i ape CDImage.ape
iii) 切割并转换到其他格式(FLAC/mp3)
shnsplit -f CDImage.cue -i ape -o flac CDImage.ape
shnsplit -f CDImage.cue -i ape \
-o "cust ext=mp3 lame -b 320 - %f" CDImage.ape
6. APE <-> FLAC 互相转换
shnconv -i ape -o flac CDImage.ape
shnconv -i flac -o ape CDImage.flac
2007年10月2日星期二
freebsd6.2 换了张intel 82559网卡
重新 config下
先 ifconfig 得知 intel 100m的网卡名 fxp0
dhclient fxp0 确定连上
在/etc/rc.conf 加上
inconfig_fxp0="DHCP"
先 ifconfig 得知 intel 100m的网卡名 fxp0
dhclient fxp0 确定连上
在/etc/rc.conf 加上
inconfig_fxp0="DHCP"
订阅:
博文 (Atom)