在linux上的kernel其實支援很多硬體,
不過要是這個硬體的驅動程式沒有在開機時被自動載入該怎麼辦呢?
這個Blog主要是以我個人的電腦的桌面環境(KDE)為主,大部份都是一些技術文件,也會有一些Server方面的文章,還有一些自己寫的Script,如果你也喜歡KDE、Script歡迎留言討論
2012年2月1日 星期三
2011年7月12日 星期二
2010年8月4日 星期三
更新kubuntu 9.10到10.04
終於把kubuntu 9.10更新到10.04了
更新後沒什麼大問題
有幾個地方需要微調一下
1.利用thinkpad的TrackPoint(小紅點)來滾動頁面
這是TrackPoint我覺得非常好用的地方
不過更新完之後這個功能就消失了
於是要稍微修改一下
用root帳號建立這個檔案 /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
內容如下
2.mplayer的gui介面不知道為什麼不見
所以重新安裝一下就好了
sudo aptitude install mplayer-gui
3.firefox遇到flash網頁就會整個當掉
這個問題只能先把firefox給移掉並且重新安裝一個了
sudo apt-get remove firefox
點這裡下載新版的firefox
並且解壓縮
tar jxvf firefox-3.6.3.tar.bz2
解壓縮之後會出現 firefox的資料夾
將資料夾放到 /usr/local底下
mv firefox /usr/local
更改/usr/bin底下的firefox連結
cd /usr/bin/
mv /usr/bin/firefox /usr/bin/firefox.old
ln -s /usr/local/firefox/firefox .
這樣子firefox的問題就解決了
但是flash卻得重新安裝
連線到這裡下載flash
解壓縮之後會出現libflashplayer.so
將檔案移到firefox底下就好了
mv libflashplayer.so /usr/local/firefox/plugins/
這樣子看flash就沒問題了
更新後沒什麼大問題
有幾個地方需要微調一下
1.利用thinkpad的TrackPoint(小紅點)來滾動頁面
這是TrackPoint我覺得非常好用的地方
不過更新完之後這個功能就消失了
於是要稍微修改一下
用root帳號建立這個檔案 /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
內容如下
Section "InputClass" Identifier "Trackpoint Wheel Emulation" MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device" MatchDevicePath "/dev/input/event*" Option "EmulateWheel" "true" Option "EmulateWheelButton" "2" Option "Emulate3Buttons" "false" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection存檔之後重開機或者重新啟動Xorg即可
2.mplayer的gui介面不知道為什麼不見
所以重新安裝一下就好了
sudo aptitude install mplayer-gui
3.firefox遇到flash網頁就會整個當掉
這個問題只能先把firefox給移掉並且重新安裝一個了
sudo apt-get remove firefox
點這裡下載新版的firefox
並且解壓縮
tar jxvf firefox-3.6.3.tar.bz2
解壓縮之後會出現 firefox的資料夾
將資料夾放到 /usr/local底下
mv firefox /usr/local
更改/usr/bin底下的firefox連結
cd /usr/bin/
mv /usr/bin/firefox /usr/bin/firefox.old
ln -s /usr/local/firefox/firefox .
這樣子firefox的問題就解決了
但是flash卻得重新安裝
連線到這裡下載flash
解壓縮之後會出現libflashplayer.so
將檔案移到firefox底下就好了
mv libflashplayer.so /usr/local/firefox/plugins/
這樣子看flash就沒問題了
標籤:
kernel
釋放kernel cache增加記憶體空間
下這行指令將kernel中沒在使用的cache給釋放出來
sync;echo 1 > /proc/sys/vm/drop_caches
1是釋放pagecache
2是釋放dentries and inodes
3則是上面兩種一起釋放
/proc/sys/vm/drop_caches (since Linux 2.6.16)
Writing to this file causes the kernel to drop clean caches,
dentries and inodes from memory, causing that memory to become
free.
To free pagecache, use echo 1 > /proc/sys/vm/drop_caches;
to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
to free pagecache, dentries and inodes, use echo 3 >
/proc/sys/vm/drop_caches.
Because this is a non-destructive operation and dirty objects
are not freeable, the user should run sync first.
sync;echo 1 > /proc/sys/vm/drop_caches
1是釋放pagecache
2是釋放dentries and inodes
3則是上面兩種一起釋放
/proc/sys/vm/drop_caches (since Linux 2.6.16)
Writing to this file causes the kernel to drop clean caches,
dentries and inodes from memory, causing that memory to become
free.
To free pagecache, use echo 1 > /proc/sys/vm/drop_caches;
to free dentries and inodes, use echo 2 > /proc/sys/vm/drop_caches;
to free pagecache, dentries and inodes, use echo 3 >
/proc/sys/vm/drop_caches.
Because this is a non-destructive operation and dirty objects
are not freeable, the user should run sync first.
訂閱:
文章
(
Atom
)