Ggarlic\’s Header Image

Entries Tagged as 'tips'

该死的urxvt启动很慢

每次启动urxvt都慢的要死,cpu狂升,刚才在linuxsir闲逛,看到了解决方法(11楼):

跟 X 字体和 XIM 光标跟随有关,
说来也算 苏哲 的责任
去看看你系统里的
/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
苏哲给 UTF-8 的 XLC_LOCALE 里加了个该死的 GBK-0 ,
而一般的系统都是用不着 GBK-0 字体的,
X 会在 poll 这个系统里不存在的 GBK-0 字体上用掉大量的资源。
所以解决有两个:
1. 简单地添加一个 GBK-0 字体, 或者直接加一个 GBK-0 的 alias
2. 修改 /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE , 去掉里面的
# fs3 class (Chinese Han Character GBK) fs3 { charset { name GBK-0:GLGR } font { primary GBK-0:GLGR substitute GB13000.1993-1:GLGR } }
或者, 不要用 X 字体, [...]

Categories: tips

又是一堆问题

用了很久的tilda,但是来到arch后发现不能全透明,最高保持在90不变了,前天给同学装9.04,里面的tilda也最高到90.
在launchpad里报告bug的地方找到了解决方法:
sudo vim /usr/share/tilda/tilda.glade
找到995行左右:
0 0 100 1 10 10
将后两个10改为0即可
其次是google earth 5在我这里卡,而且连中文都不显示
解决方法:
对于没有中文:
sudo rm -f /opt/google-earth/libcrypto.so.0.9.8 /opt/google-earth/libQt*
使用系统自己的qt,嘿嘿
运行卡可以把“视图”下的“大气层”去掉
仍然存在的问题:
rainlendar右键点击崩溃,segfault

Categories: tips

给touchpad启用了circle scrolling还有two-finger scrolling

很早就知道synaptics的circle scrolling,正好刚才在改xorg.conf时想到了,查看了一下wiki,嘿嘿

circle scrolling:
Section “InputDevice”

Option “CircularScrolling” “on”
Option “CircScrollTrigger” [...]

Categories: tips

备忘

vim总是给我惊喜,shift+k查看man
apropos COMMAND根据关键字查找命令

Categories: shell · tips

mpd的last.fm插件

刚打完题目就发现是个歧义句 :D
如无特别指出,插件指的是上传歌曲记录的那种插件,不是收听lastfm音频流的插件
找到两个,lastmp跟lastscribble,两个ubuntu 8.10源里都有,直接
$sudo aptitude install lastmp
或者
$sudo aptitude install lastscribble
现在用的是lastmp,其实是lastsubmited的一个plugin,所以安装lastmp会装上lastsubmited,lastsubmited专注于向lastfm上传歌曲信息,用插件来支持各个播放器。如果lastmp不能记录的话,这里的信息可能有帮助
lastscribble我鼓捣了半天都不行,索性扔掉
ps:无意间发现的,mpdtoys,提供各种好玩或者实用的功能,包括下面这些工具:
* mpstore – store and transfer mpd state between daemons
* mprev – reverse the mpd playlist
* mpgenplaylists – generate mpd playlists for each subdirectory of music
* mpfade – fade mpd [...]

Categories: CLI · music & sports · tips

mpd的E: client-conf-x11.c: XOpenDisplay() failed

心不甘情不愿地升级到了8.10(原因是另一个故事)
新系统一切不顺,先是由于CD的问题安装时间超长,然后ff3的各种按钮多次莫名失踪(从同学那里cp了他的.mozilla搞定),然后就是题目里的那个问题,安装mpd之后出现的:
E: client-conf-x11.c: XOpenDisplay() failed
然后启动mpd:
ggarlic@redcamp:~$ mpd
段错误
心情已经不能用糟糕来形容
在http://mpd.wikia.com/wiki/PulseAudio中google到了解决方法。我用的是第二种:An alternate solution for fixing access rights

Another solution, found on [Ubuntu Forums] is to adjust the network access permissions using the paprefs tool. On Ubuntu:
$ sudo aptitude install paprefs
$ paprefs
Select the following settings:
* Enable network access to local sound devices
[...]

Categories: software · tips

gvim在windows下的字体设置

最近看Consolas挺顺眼,准备lin/win下都采用这个字体,lin下倒是方便,直接在.vimrc中写入:
set guifont=Consolas\ 10
可是到了windows里却没反应,查了下帮助,原来是
For the Win32 GUI                    *E244* *E245*- takes these options in the font name:    hXX – height is XX (points, can be floating-point)    wXX – width is XX (points, can be floating-point)    b   – bold    i   – italic    u   – underline    s   – strikeout    cXX – character set XX.  Valid charsets are: ANSI, ARABIC,          [...]

Categories: tips

nothing to do with linux

终于搞定了
说说这两天的遭遇吧
周四晚上在win下emule的时候突然死机(ubuntu下我用amule从来都是连不上服务器),只能强行关机,结果就是产生了坏道,C盘跟D盘都有,xp无法启动,进入ubuntu里挂载C盘,显示是I/O错误,没办法,只好格掉两个盘重做系统
周五晚上终于装好了系统,可是今天不知道怎么了,自动更新只能下载,不能安装更新,真实莫名其妙(ubuntu的库从来不会出这种烂问题)
焦头烂额的修了很久,没效果
WindowsUpdate.log中显示是
error = 0×80004002
终于查到解决方法:
Re-Register the Windows Update dll files
regsvr32.exe c:\windows\system32\wuweb.dll regsvr32.exe c:\ windows \system32\wups2.dll regsvr32.exe c:\ windows \system32\wups.dll regsvr32.exe c:\ windows \system32\wucltui.dll regsvr32.exe c:\ windows \system32\wuaueng1.dll regsvr32.exe c:\ windows \system32\wuaueng.dll regsvr32.exe c:\ windows \system32\wuapi.dll
Then restart the Automatic [...]

Categories: tips

localhost:10000

这个东西。。。。。

Categories: tips

gimmie不断崩溃,另:推荐alt+f1

晕啊,不过这倒是使我发现了alt+F1的妙处了

Categories: tips