ln -s /usr/bin/gnome-settings-daemon ~/.kde/Autostart
Monday, December 17, 2007
在KDE下的gnome字型設定
把gnome-settings-daemon ln 到 ~/.kde/Autostart 就可以用gnome設定來調了
Saturday, December 15, 2007
影片轉檔
Wednesday, December 12, 2007
xmms UTF8環境中文顯示
照抄這裡解決的
我的locale:
我的locale:
LANG=zh_TW.UTF-81)修改 /etc/gtk/gtkrc.utf-8 如下:
style "default-text" {2)修改 ~/.xmms/config 的這幾行:
fontset = "-*-*-medium-r-normal--16-*-*-*-c-*-iso10646-1"
}
class "GtkWidget" style "default-text"
playlist_font=-*-*-medium-r-normal--16-*-*-*-c-*-iso10646-13)Done!
use_fontsets=TRUE
mainwin_use_xfont=TRUE
mainwin_font=-*-*-medium-r-normal--16-*-*-*-c-*-iso10646-1
Sunday, December 09, 2007
Wednesday, March 28, 2007
安裝掃瞄器
實驗室的一台AGFA Snapscan e50 擺著也是擺著,拿來用看看。大概安裝其它掃瞄器也會用纇似的方法。
先找到for windows XP的驅動程式,然後安裝解壓縮,找出Snape50.bin這個檔案。cp 到想要的目錄。
在/etc/sane.d/snapscan.conf裡面改掉這一行:
先找到for windows XP的驅動程式,然後安裝解壓縮,找出Snape50.bin這個檔案。cp 到想要的目錄。
在/etc/sane.d/snapscan.conf裡面改掉這一行:
- firmware /usr/share/sane/snapscan/Snape50.bin
Friday, March 23, 2007
LaTeX CJK 中文成功!
剛剛搞定LaTeX的中文環境。原來非常簡單。
在Debian下裝上這些套件
在Debian下裝上這些套件
latex-cjk-common使用的時候呢用法像這樣
latex-cjk-chinese
latex-cjk-chinese-arphic-bkai00mp
latex-cjk-chinese-arphic-bsmi00lp
\documentclass[12pt]{article}剛剛打了一份中德交雜的信件,目前看起來運作良好。
\usepackage{CJK} %使用CJK套件
\usepackage[encapsulated]{CJK} %1.Dec. 2009更新:使用[encapsulate]才是正確的用法
\begin{document}
\begin{CJK}{UTF8}{bsmi} %開始CJK環境,設定編碼,設定字體
正體中文測試。This is a test.
\end{CJK} %有始有終
\end{document}
Saturday, March 17, 2007
Thursday, August 31, 2006
偽裝Mac位址
現在寄住在同學宿舍,要用網路怎麼辦呢?
只好把我的網路卡偽裝一下。
在Debian上面弄很簡單
在 /etc/network/interfaces 裡面把網路卡的設定改一下
# The primary network interface
auto eth0
iface eth0 inet dhcp
hwaddress ether xx:xx:xx:xx:xx:xx
重新啟動網路
ifdown eth0
ifup eth0
完成!
只好把我的網路卡偽裝一下。
在Debian上面弄很簡單
在 /etc/network/interfaces 裡面把網路卡的設定改一下
# The primary network interface
auto eth0
iface eth0 inet dhcp
hwaddress ether xx:xx:xx:xx:xx:xx
重新啟動網路
ifdown eth0
ifup eth0
完成!
Monday, May 29, 2006
skype
之前skype一直跟我的系統不合,很討厭
現在發現是有個switch沒開
用kmix或alsamixer把打開
然後用指令
aoss skype
就可以聽到聲音了
測試可打電話到echo123不用麻煩別人
現在發現是有個switch沒開
用kmix或alsamixer把
然後用指令
aoss skype
就可以聽到聲音了
測試可打電話到echo123不用麻煩別人
Sunday, May 28, 2006
libasound2
According to here:
libasound2(1.0.11-5)會跟很多程式搞不定
如xmms的錯誤訊息:
/usr/lib/xmms/Output/libALSA.so: symbol snd_pcm_hw_params_set_channels_near, version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link time reference
把他降級為(1.0.11-4)就可以了
下載舊版還有安裝:(as root)
wget http://snapshot.debian.net/archive/2006/05/20/debian/pool/main/a/alsa-lib/libasound2_1.0.11-4_i386.deb
dpkg -i --force-all libasound2_1.0.11-4_i386.deb
libasound2(1.0.11-5)會跟很多程式搞不定
如xmms的錯誤訊息:
/usr/lib/xmms/Output/libALSA.so: symbol snd_pcm_hw_params_set_channels_near, version ALSA_0.9.0rc4 not defined in file libasound.so.2 with link time reference
把他降級為(1.0.11-4)就可以了
下載舊版還有安裝:(as root)
wget http://snapshot.debian.net/archive/2006/05/20/debian/pool/main/a/alsa-lib/libasound2_1.0.11-4_i386.deb
dpkg -i --force-all libasound2_1.0.11-4_i386.deb
Sunday, May 14, 2006
fetchyahoo
今天來搞定 yahoo 轉寄的問題
看起來 Debian 可以越來越方便了
首先安裝 fetchyahoo
apt-get install fetchyahoo
Debian 會搞定相依性
然候 copy .fetchyahoorc
cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc.gz ~
解壓縮後改成
~/.fetchyahoorc
修改檔案:
# FetchYahoo configuration file
#改這幾行
username = YAHOO-USER-NAME
password = PASSWORD
spool = /home/chieh/.thunderbird/ukg0ak1l.phyton/Mail/fetchyahoo
use-forward = 1
mail-host = smtp.gmail.com
send-to = GMAIL-USER-NAME@gmail.com
send-from = GMAIL-USER-NAME@gmail.com
use-sendmail = 1
sendmail = /usr/sbin/sendmail
max-messages = 20 #應該十五分鐘內不會有超過20封信吧XD
no-delete = 1 #我一向不刪信的....
其中我還是搞不定 gmail 的 smtp ,不過反正用 sendmail 就可以轉寄了,而且很舒服XD
然候編輯crontab
crontab -e
加入這一行
0,15,30,45 * * * * fetchyahoo
每十五分鐘轉一次給 gmail
大功告成!!
看起來 Debian 可以越來越方便了
首先安裝 fetchyahoo
apt-get install fetchyahoo
Debian 會搞定相依性
然候 copy .fetchyahoorc
cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc.gz ~
解壓縮後改成
~/.fetchyahoorc
修改檔案:
# FetchYahoo configuration file
#改這幾行
username = YAHOO-USER-NAME
password = PASSWORD
spool = /home/chieh/.thunderbird/ukg0ak1l.phyton/Mail/fetchyahoo
use-forward = 1
mail-host = smtp.gmail.com
send-to = GMAIL-USER-NAME@gmail.com
send-from = GMAIL-USER-NAME@gmail.com
use-sendmail = 1
sendmail = /usr/sbin/sendmail
max-messages = 20 #應該十五分鐘內不會有超過20封信吧XD
no-delete = 1 #我一向不刪信的....
其中我還是搞不定 gmail 的 smtp ,不過反正用 sendmail 就可以轉寄了,而且很舒服XD
然候編輯crontab
crontab -e
加入這一行
0,15,30,45 * * * * fetchyahoo
每十五分鐘轉一次給 gmail
大功告成!!
Sunday, May 07, 2006
id3iconv 轉換mp3 tag
Wednesday, April 19, 2006
gdm 鬧啤氣
前兩天執行升級之後, gdm 突然之間不能啟動,而且連一般使用者帳號也無法使用 xserver-xorg ,很是困擾。因為沒有自己修補的能力,使用
dpkg-reconfigure xserver-xorg
嘗試解決問題,還是失敗,後來偷瞄了一下錯誤訊習,再看了一下 /etc/X11/xorg.conf 這個檔案開頭的說明:
If you have edited this file but would like it to be automatically updated again, run the following commands as root:
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
dpkg-reconfigure xserver-xorg
大概是之前動到了,檔案被鎖住,照著上面的指令作了一遍,再執行
dpkg-reconfigure xserver-xorg
現在 xserver 是可以啟動了,但 gdm 還是不行。我不知道 gdm 的指令是怎麼啟動 xserver ,但看到錯誤訊息是找不到 X 這個指令,於是我作了一個聯結:
ln -s /etc/X11/X /usr/X11R6/bin/X
我的圖型介面又回來了,喔耶!
這種爛修改就是我寫這個筆記的原因啦,不然到時候忘光光。
PS. 今天重新看了一下 xorg.conf 的開頭又不一樣了呢!
dpkg-reconfigure xserver-xorg
嘗試解決問題,還是失敗,後來偷瞄了一下錯誤訊習,再看了一下 /etc/X11/xorg.conf 這個檔案開頭的說明:
If you have edited this file but would like it to be automatically updated again, run the following commands as root:
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
dpkg-reconfigure xserver-xorg
大概是之前動到了,檔案被鎖住,照著上面的指令作了一遍,再執行
dpkg-reconfigure xserver-xorg
現在 xserver 是可以啟動了,但 gdm 還是不行。我不知道 gdm 的指令是怎麼啟動 xserver ,但看到錯誤訊息是找不到 X 這個指令,於是我作了一個聯結:
ln -s /etc/X11/X /usr/X11R6/bin/X
我的圖型介面又回來了,喔耶!
這種爛修改就是我寫這個筆記的原因啦,不然到時候忘光光。
PS. 今天重新看了一下 xorg.conf 的開頭又不一樣了呢!
第一篇
這個 Blog 是我自己的 Debian 使用筆記。我目前是在 IBM X31 機器上跑我的 Debian unstable ,以後會陸續把資料放上來。最主要的目的是萬一哪天電腦掛掉我還可以找到如何重灌,中文化,還有一些周邊設備的微調。
Subscribe to:
Posts (Atom)