git本身是不支持gmail的smtp服务器的,我用ssmtp中转了一下。
#emerge ssmtp
配置ssmtp
/etc/ssmtp/ssmtp.conf如下:
root=liuqing@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=liuqing@gmail.com
UseSTARTTLS=YES
AuthUser=liuqing
AuthPass=mypassword
FromLineOverride=YES
配置/etc/ssmtp/revaliases如下:
root:liuqing@gmail.com :smtp.gmail.com:587
lq:liuqing@gmail.com:smtp.gmail.com:587
把git的smtp server 设成/sbin/sendmail就行了。不过现在有个小毛病,普通用户不能用这个server发邮件。
参见: http://git.or.cz/gitwiki/GitTips
http://www.destr0yr.com/article.php/Gmail_and_sSMTP
http://gentoo-wiki.com/HOWTO_Gmail_and_sSMTP
2007年8月25日星期六
2007年8月23日星期四
2007年8月11日星期六
2007年8月9日星期四
nvidia 7300GT TV-out 的配置
昨天晚上和今天早上都在搞新买显卡的电视输出。本来这个要求并不迫切,但是新买的显卡支持TV-out,忍不住,手痒。好在最后基本搞定。现在唯一的遗憾就是不能做到显示器和电视真正分离(在看TV显示的同时在显示器上干别的)。各位看官如果有什么高招,欢迎留言。
我的显卡是七彩虹的,nvidia 7300GT,因为我实在忍受不了VIA的显卡驱动,最近刚买了这个显卡(VIA的显卡驱动不支持3D,且很不稳定。)。nvidia 7300GT可以用两种方法来实现TV-out。一种是把显卡看成两个设备,一种是把显卡看成一个设备。现在分别贴到下面。其中有两条容易忽视。一个是所谓CRT-0不一定是0,有时会是CRT-1,这就在这上面吃了亏。还有一条就是如果设了虚拟桌面,在用扩展模式时因为screen变大了,我的变成2048×768了,这个参数可能会超过虚拟桌面,造成X无法启动。
看成一个设备的xorg.conf:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "xtrap"
Load "GLcore"
Load "extmod"
Load "record"
Load "dbe"
Load "dri"
Load "wfb"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "NoLogo"
Option "TwinView"
# Option "UseEdidDpi" "no"
#Option "TwinViewOrientation" "RightOf"
Option "TwinViewOrientation" "Clone"
Option "MetaModes" "CRT-1: 1024x768, TV-0: 1024x768"
Option "HorizSync" "CRT-1: 30-70; TV-0: 30-50"
Option "VertRefresh" "CRT-1: 50-160; TV-0: 60"
Option "ConnectedMonitor" "CRT-1, TV-0"
Option "TVStandard" "PAL-D"
Option "TVOutFormat" "SVIDEO"
# Option "TVOverScan" "0.6"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
modes "1024x768" "800x600"
# virtual 1280 960
Viewport 0 0
Depth 24
EndSubSection
EndSection
看成两个设备的xorg.conf:
#Section "ServerLayout"
# Identifier " X.org Configured"
# Screen 0 "Screen0" 0 0
# InputDevice "Mouse0" "CorePointer"
# InputDevice "Keyboard0" "CoreKeyboard"
#EndSection
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "xtrap"
Load "GLcore"
Load "extmod"
Load "record"
Load "dbe"
Load "dri"
Load "wfb"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "NoLogo"
Option "TwinView"
Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "TVStandard" "PAL-D"
Option "TVOutFormat" "SVIDEO"
Option "TVOverScan" "0.6"
Option "ConnectedMonitor" "TV" # Add this if you're having problems
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
modes "1024x768" "800x600"
# virtual 1280 960
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Device "Card1"
Identifier "Screen1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "320x240_50"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen 0 "Screen0"
#Screen 1 "Screen1"
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
我的显卡是七彩虹的,nvidia 7300GT,因为我实在忍受不了VIA的显卡驱动,最近刚买了这个显卡(VIA的显卡驱动不支持3D,且很不稳定。)。nvidia 7300GT可以用两种方法来实现TV-out。一种是把显卡看成两个设备,一种是把显卡看成一个设备。现在分别贴到下面。其中有两条容易忽视。一个是所谓CRT-0不一定是0,有时会是CRT-1,这就在这上面吃了亏。还有一条就是如果设了虚拟桌面,在用扩展模式时因为screen变大了,我的变成2048×768了,这个参数可能会超过虚拟桌面,造成X无法启动。
看成一个设备的xorg.conf:
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "xtrap"
Load "GLcore"
Load "extmod"
Load "record"
Load "dbe"
Load "dri"
Load "wfb"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "NoLogo"
Option "TwinView"
# Option "UseEdidDpi" "no"
#Option "TwinViewOrientation" "RightOf"
Option "TwinViewOrientation" "Clone"
Option "MetaModes" "CRT-1: 1024x768, TV-0: 1024x768"
Option "HorizSync" "CRT-1: 30-70; TV-0: 30-50"
Option "VertRefresh" "CRT-1: 50-160; TV-0: 60"
Option "ConnectedMonitor" "CRT-1, TV-0"
Option "TVStandard" "PAL-D"
Option "TVOutFormat" "SVIDEO"
# Option "TVOverScan" "0.6"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
modes "1024x768" "800x600"
# virtual 1280 960
Viewport 0 0
Depth 24
EndSubSection
EndSection
看成两个设备的xorg.conf:
#Section "ServerLayout"
# Identifier " X.org Configured"
# Screen 0 "Screen0" 0 0
# InputDevice "Mouse0" "CorePointer"
# InputDevice "Keyboard0" "CoreKeyboard"
#EndSection
Section "ServerFlags"
Option "Xinerama" "true"
EndSection
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Module"
Load "glx"
Load "xtrap"
Load "GLcore"
Load "extmod"
Load "record"
Load "dbe"
Load "dri"
Load "wfb"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-70
VertRefresh 50-160
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-50
VertRefresh 60
EndSection
Section "Device"
Identifier "Card0"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "NoLogo"
Option "TwinView"
Screen 0
EndSection
Section "Device"
Identifier "Card1"
Driver "nvidia"
VendorName "nVidia Corporation"
BoardName "G70 [GeForce 7300 GT]"
BusID "PCI:2:0:0"
Option "TVStandard" "PAL-D"
Option "TVOutFormat" "SVIDEO"
Option "TVOverScan" "0.6"
Option "ConnectedMonitor" "TV" # Add this if you're having problems
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
modes "1024x768" "800x600"
# virtual 1280 960
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Device "Card1"
Identifier "Screen1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "320x240_50"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen 0 "Screen0"
#Screen 1 "Screen1"
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
2007年8月2日星期四
屡败屡战才能体会到任务完成的快乐
今天,第四次去××局,居然说再盖上章就可以接我的材料了,意外地兴奋。回来时在城铁看到广告牌上写着:屡败屡战才能体会到任务完成的快乐。正好诠释我现在的心情。
以后的任务也是如此吗?这条广告词像偈语让我在黑暗中看到光明。
吃了五颗红豆的呆呆虫,加速ing.
以后的任务也是如此吗?这条广告词像偈语让我在黑暗中看到光明。
吃了五颗红豆的呆呆虫,加速ing.
2007年7月21日星期六
家谱解决方案
不知各位对家谱是否感兴趣。我是很感兴趣的。这也许应归因于我是长子长孙。
我老爸对这个也比较感兴趣。我记得他原来曾经整理过家谱。他那时是用WPS。好象他那时有一本我们家族在光绪出一本家谱。上面密密麻麻写满了人名字。我说要是每人有个小传就好了。我爸说有什么好写的,无非是种地~~种地。
实际上,现在人口的流动性大了,一个家庭很少再固守在一个小村庄里。家谱比原来更能起到维系宗族联系的作用。我理想中的家谱不应该只是名字的堆砌。它应该重视活人胜过死人。应该有通讯录,有照片。试用过几个家谱网站和软件之后,感觉在这方面我们中国也落后了。
我目前的选择是geni.com。这个网站能满足我对家谱的大部分要求了。家族树视图、每个人的相关资料、日历(家人的生日、纪念日等)、影集、家族地图等等应有尽有。它还支持gedcom格式(一种通用的家谱格式文件)的导出(不久会支持导入)。目前唯一不满意的是它默认把姓放在后面,还要手工再改一下。
如果是单机软件,建议采用gramps,gentoo里有的,emerge 就行了。功能也很全,也支持gedcom格式的导入和导出。
我老爸对这个也比较感兴趣。我记得他原来曾经整理过家谱。他那时是用WPS。好象他那时有一本我们家族在光绪出一本家谱。上面密密麻麻写满了人名字。我说要是每人有个小传就好了。我爸说有什么好写的,无非是种地~~种地。
实际上,现在人口的流动性大了,一个家庭很少再固守在一个小村庄里。家谱比原来更能起到维系宗族联系的作用。我理想中的家谱不应该只是名字的堆砌。它应该重视活人胜过死人。应该有通讯录,有照片。试用过几个家谱网站和软件之后,感觉在这方面我们中国也落后了。
我目前的选择是geni.com。这个网站能满足我对家谱的大部分要求了。家族树视图、每个人的相关资料、日历(家人的生日、纪念日等)、影集、家族地图等等应有尽有。它还支持gedcom格式(一种通用的家谱格式文件)的导出(不久会支持导入)。目前唯一不满意的是它默认把姓放在后面,还要手工再改一下。
如果是单机软件,建议采用gramps,gentoo里有的,emerge 就行了。功能也很全,也支持gedcom格式的导入和导出。
2007年7月9日星期一
修改thinking-rock的默认字体大小
thinking-rock的默认字体太小,
修改thinkingrock.conf,将其中的
default_options="-J-Xms64m -J-Xmx256m -J-Dnetbeans.logger.console=true -J-ea"
改为
default_options="-J-Xms64m -J-Xmx256m -J-Dnetbeans.logger.console=true -J-ea --fontsize 16"
就行了,但是还是比较虚。
修改thinkingrock.conf,将其中的
default_options="-J-Xms64m -J-Xmx256m -J-Dnetbeans.logger.console=true -J-ea"
改为
default_options="-J-Xms64m -J-Xmx256m -J-Dnetbeans.logger.console=true -J-ea --fontsize 16"
就行了,但是还是比较虚。
订阅:
博文 (Atom)