懶得寫了,目前也沒有用到,貼網址就好。
http://www.ubuntugeek.com/howto-install-torprivoxy-and-tor-gui-programs-vidaliatork-and-torbuttonin-ubuntu.html
.
2008年5月12日 星期一
NB的硬碟偶爾會"咯吱、咯吱"地叫怎麼辦
去年買入小黑的時候,加購了一個Hitachi的7k100硬碟,
和原本內建的Seagate硬碟交叉使用,奇怪的是,在
用Seagate那顆當系統碟的時候,偶爾總是會冒出
"咯吱、咯吱“的聲音,去檢查硬碟又沒有什麼異狀。
剛剛逛到一篇Blog
" High Frequency of HDD Load/Unload Cycles Problem on Laptop"
說不定就是這個原因 :p
只是剛好現在是用Hitachi這顆,有機會換過來再試試,
作法留一下:
使用smartmontools檢查HD,windows和Linux上都有,
9 Power_On_Hours 0x0012 097 097 000 Old_age Always - 1498
193 Load_Cycle_Count 0x0012 097 097 000 Old_age Always - 36907
36907/1498 = 24.637516689 (每小時內Load Cycle的次數)
據文章裡的說法,每小時內Load Cycle的次數應在"15"次左右。
而Solrex本人的數據更誇張,跑到75次。
解決方式:
內容如下:
這樣應該能有效解決這個問題,
可以再用smartctl測測看。
和原本內建的Seagate硬碟交叉使用,奇怪的是,在
用Seagate那顆當系統碟的時候,偶爾總是會冒出
"咯吱、咯吱“的聲音,去檢查硬碟又沒有什麼異狀。
剛剛逛到一篇Blog
" High Frequency of HDD Load/Unload Cycles Problem on Laptop"
說不定就是這個原因 :p
只是剛好現在是用Hitachi這顆,有機會換過來再試試,
作法留一下:
使用smartmontools檢查HD,windows和Linux上都有,
sudo apt-get install smartmontools再使用
sudo smartctl -a /dev/sda觀察裡面的
9 Power_On_Hours 0x0012 097 097 000 Old_age Always - 1498
193 Load_Cycle_Count 0x0012 097 097 000 Old_age Always - 36907
36907/1498 = 24.637516689 (每小時內Load Cycle的次數)
據文章裡的說法,每小時內Load Cycle的次數應在"15"次左右。
而Solrex本人的數據更誇張,跑到75次。
解決方式:
vim fix_hdd.sh
內容如下:
cat > 99-hdd-spin-fix.sh << EOF再
#!/bin/sh
hdparm -B 255 /dev/sda
EOF
chmod a+x 99-hdd-spin-fix.sh
cp 99-hdd-spin-fix.sh /etc/acpi/suspend.d/
cp 99-hdd-spin-fix.sh /etc/acpi/resume.d/
cp 99-hdd-spin-fix.sh /etc/acpi/start.d/
sudo sh fix_hdd.sh
這樣應該能有效解決這個問題,
可以再用smartctl測測看。
2008年5月5日 星期一
Ubuntu 變更"桌面"的中文路徑為英文路徑
參考自lzy's 543的這篇
只要修改
另外還有其它可以設定的
只要修改
一個檔案
找到mv 桌面 Desktopvim ~/.config/user-dirs.dirs
XDG_DESKTOP_DIR="$HOME/桌面"改成
XDG_DESKTOP_DIR="$HOME/Desktop"就可以把"桌面"變成"Desktop"了
另外還有其它可以設定的
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/download"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
2008年4月23日 星期三
2008年4月22日 星期二
在Ubuntu下連上VPN
懶得打字了 :p
以後應該有用到的時候,先記下吧
參考自Ubuntu Geek的Howto Connect to Windows VPN server (PPTP) with Ubuntu 7.10 (Gutsy Gibbon)
以後應該有用到的時候,先記下吧
參考自Ubuntu Geek的Howto Connect to Windows VPN server (PPTP) with Ubuntu 7.10 (Gutsy Gibbon)
2008年1月4日 星期五
Ubuntu瘦身 - 刪除不需要的locale
從Nelson那看到的,替Ubuntu刪除不需要的locale,
1.安裝 localepurge
挑三個tw的就行了
2.PCMan寫的瘦身code
之後再執行compile好之後的執行檔,
我把它們放到/usr/local/sbin裡。
3. apt-get 安裝軟體後自動進行清理
1.安裝 localepurge
sudo apt-get install localepurge
挑三個tw的就行了
2.PCMan寫的瘦身code
desktop-purge.c、mime-purge.c、gconf-purge.c記得先安裝編譯環境
sudo apt-get install build-essential接下來就compile這三個檔案
gcc `pkg-config glib-2.0 --cflags --libs` -o desktop-purge desktop-purge.c會有Warning,記得回來看看可不可以把Warning改掉
gcc `pkg-config glib-2.0 --cflags --libs` -o mime-purge mime-purge.c
gcc `pkg-config glib-2.0 --cflags --libs` -o gconf-purge gconf-purge.c
之後再執行compile好之後的執行檔,
我把它們放到/usr/local/sbin裡。
3. apt-get 安裝軟體後自動進行清理
sudo vi /etc/apt/apt.conf.d/99-transpurge貼上以下內容並儲存
DPkg執行過這一次以後,之後會在每次安裝軟體時自動再執行
{
Post-Invoke {"if [ $(ps w -p "$PPID" | grep -c remove) != 1 ]; then /usr/local/sbin/desktop-purge > /dev/null; /usr/local/sbin/mime-purge >/dev/null ; /usr/local/sbin/gconf-purge > /dev/null; else exit 0; fi";};
};
2007年12月17日 星期一
ThinkPad在Linux下使用中鍵捲動
把/etc/X11/xorg.con裡
Section "InputDevice"加入這三行
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Option "Emulate3Buttons" "true"變成這樣
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Section "InputDevice"T61的中鍵就可以用了 :p
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
EndSection
2007年11月25日 星期日
Ubuntu開啟切換到console mode
From http://www.howtogeek.com/howto/ubuntu/how-to-switch-to-console-mode-for-ubuntu-vmware-guest/
把 /boot/grub/menu.lst kernel那行後面的"splash"拿掉,重開機後就ok。
sudo vi /boot/grub/menu.lst
Find the section that looks like this:
## ## End Default Options ##
title Ubuntu, kernel 2.6.17-10-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-386 root=UUID=8312b3d9-e087-439b-8f3b-21f4b00434f1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-386
savedefault
boot
Remove "splash" from the kernel line. Save the file, and reboot.
You should now be able to switch to console mode by using Ctrl+Alt+F1 (or F2-F6)
訂閱:
文章 (Atom)