用newsbeuter的話,就可以在console下讀rss news了,
LinuxToy的介紹:
Newsbeuter:在控制台下讀 RSS 新聞
可以用 newsbeuter -i feeds.opml
來匯入
自己的opml檔
技術文章留存囉
可以用 newsbeuter -i feeds.opml
來匯入
自己的opml檔
$man setterm
...
-bfreq [freqnumber]
Sets the bell frequency in Hz. Without an argument, defaults to 0.
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
一個檔案
找到mv 桌面 Desktop
vim ~/.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/"
sudo apt-get install usbmount記下囉
vi /etc/usbmount/usbmount.conf
更改內容如下:
+++++++++++++++++++++++++++++++++++++++++++
FILESYSTEMS="ext2 ext3 vfat"
FS_MOUNTOPTIONS="-fstype=vfat,iocharset=big5"
VERBOSE="yes"
+++++++++++++++++++++++++++++++++++++++++++
/etc/init.d/udev restart
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";};
};