用newsbeuter的話,就可以在console下讀rss news了,
LinuxToy的介紹:
Newsbeuter:在控制台下讀 RSS 新聞
可以用 newsbeuter -i feeds.opml
來匯入
自己的opml檔
技術文章留存囉
可以用 newsbeuter -i feeds.opml
來匯入
自己的opml檔
sudo apt-get install smartmontools再使用
sudo smartctl -a /dev/sda觀察裡面的
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
18 10 5 * * * root /usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w對應到
m h dom mon dow user command不過還有另一種寫法 ex:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
@hourly root /usr/sbin/ntpdate tock.stdtime.gov.tw && /sbin/hwclock -w說明如下 :p
string meaning詳細的資訊可以 man 5 crontab
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
sudo apt-get install localepurge
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
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";};
};
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
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)