May 13
前两周就将公司的Ubuntu 7.10 升级到 8.04了,升级过程很顺利。只是我用的是英文的locale.所以原来配置的fcitx输入法不能调出来了。还有就是后来重启的时候选择8.04的新内核2.6.24就不能启动报 :
revalidation failed (error=-5)
的错误.到网上查了一下解决了。
[more..]
May 03
在ssh访问一个服务器的时候第一次会提示签名验证,只要同意之后就会将这个host添加到~/.ssh中的known_hosts中,以后再连接就不会再出现提示了。
原来在ubuntu和freebsd下都没有这个问题。在Gentoo中就有点问题。今天解决了一下,在gentoo-user的mail list中找到了答案。
[more..]
Apr 03
关于sudo详细的文档在Gentoo的文档里面。顺便赞一下Gentoo的文档,文档很全,质量非常高。这里记一些有用的提示。
[more..]
Mar 31
今天做了一下subversion的同步。如果你想从一个Subversion服务器换到另外一下的话就要用到subversion的同步。这个通过svnsync就可以做到了。
[more..]
Feb 22
原来使用ubuntu的时候用linuxtoy的方法就可以了。不过换成gentoo了之后就不管用了。今天发现axlrose的文章才知道原来是装了两 个版本的qt,直接运行qtconfig的时候运行的是qt4的config,所以基于qt3的程序样式还是没有修改好。
首先安装polymer样式,
gentoo rory # emerge -av polymer
然后运行Alt+F2运行qtconfig,这个时候设置的是qt4的样式。设置好之后save一下就可以了。然后再设置qt3的样式。运行/usr/qt/3/bin/qtconfig进行设置就ok了
[more..]
Nov 08
Lost your shell connection? Need multiple shell sessions?
You are logged into your remote server via SSH and happily plucking along at your keyboard and then it happens. Suddenly, the characters stop moving and then you get the dreaded "Connection Closed" message. You have just lost your session. You were halfway through some task and now you have to start over. Ugh. Well you can prevent this from happening by using screen. Screen can not only save you from disconnection disasters, but it also can increase your productivity by using multiple windows within one SSH session.
Screen真是个好东西。今天要用nutch爬东西,所以正好是需要这个东西了。用了Screen也不怕突然的terminal断线。
[more..]
Oct 14
From: http://blog.chinaunix.net/u/27464/showart_256517.html 转过来记一下。
双系统下屏幕左右偏移的解决办法
用xvidtune调整你的显示器
大家会发现装了linux之后在windows下用的好好的显示器有时进到linux的xwindows里后就歪掉了,调整好之后回到windows后windows的桌面也外调了,来回启动系统每次都要调整很麻烦的,这里介绍一个办法一劳永逸。
进入linux启动x在xterm里执行xvidtune,会弹出这个软件的窗口,点Auto然后点Left,Right等按钮调整你的显示器到最佳的位置,然后点界面上的Show按钮会得到类似这样的输出:
"1152x864" 121.50 1152 1232 1360 1568 864 865 868 911 +hsync -vsync
然后退出这个软件,修改你的/etc/X11/XF86Config-4文件,在:
Section "Monitor"
Identifier...
[more..]
Aug 30
前几天看到另一个linux发行版本,觉得不错就下载了。正好刚安装了deluge的新版本,就拿来试试,我装的是0.5.4.1版本的。上周还没有下载完,前两天想继续下载的时候,死活打不开deluge了。在命令行运行出现下面的错误。
rory@rory-laptop:~$ deluge
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Capping download to -1 bytes per second
Capping upload to 20480 bytes per second
Raising error: libtorrent reports this is a duplicate torrent
Error: 'libtorrent reports this is a duplicate torrent'
Traceback (most...
[more..]
Aug 16
在linux下最好的词典就是stardict了,有很多可选择的词典。也支持WyabdcRealPeopleTTS真人发音,在ubuntu下只要安装了stardict和wyabcrealpeopletts就可以发音了(sudo apt-get install stardict wyabdcrealpeopletts)。不过我装的是xubuntu,在xfce下是不能发音的。在论坛上问了也没有答案,后来在中文wiki里找到了答案。
http://wiki.ubuntu.org.cn/%E5%BF%AB%E9%80%9F%E8%AE%BE%E7%BD%AE%E6%8C%87%E5%8D%97/FeistyFawn
在快速设置指南里面提到了在kubuntu下的安装方法,看来kde下也不能支持安装stardict和wyabdcrealpeopletts。原来就是换成stardict-gtk就可以了。只有装的是stardict-gtk在音效设置里面才有播放wav命令(Command for playing wav files)的选项。这里设置成aplay就ok了。
如果您确认安装的是 statdict-gtk...
[more..]
Jul 31
每天Freebsd的ports和src都会有更新,Subversion1.4.4发布不久,ports也跟上了。我就做了一次升级,出现了一些小问题。
升级Ports安装的软件需要安装portupgrade,在 /usr/ports/ports-mgmt 下面。有两个一个是 portupgrade ,一个是portupgrade-devel,portupgrade-devel是正在开发的。我装的就是portupgrade-devel,当然你 也可以安装portupgrade。
dev# cd /usr/ports/ports-mgmt/portupgrade-devel/ dev# make install clean
这样就安装好了,在升级安装软件之前要先升级ports。先建立/etc/make.conf文件
dev# vi /etc/make.conf
内容如下:
SUP_UPDATE=yes SUP=/usr/bin/csup SUPFLAGS=-g -L 2 SUPHOST=cvsup2.cn.FreeBSD.org...
[more..]