2011年2月16日 星期三

[盜貼]清理 Debian/Ubuntu 儲存空間

http://people.debian.org.tw/~chihchun/2011/02/11/cleanup-your-debian-ubuntu-disk-with-bleachbit/

du --max-depth=1 -x |sort -n

# apt-get autoclean
# apt-get clean
 
apt-tools dependency


deborphan -a -n  |sort -n
 
bleachbit (ccleaner for Linux)


雖然新的 Linux 軟體,已經逐漸使用 .local .cache, .config 等目錄設定方式,但是還是有許多軟體會把快取存在 .config 或自己的目錄中,像是 .gnome2, .firefox 等。結果是使用者很難找到快取檔案,若使用 UbuntuOne, Dropbox 等等雲端備份工具,常常連不重要的快取都一起備份了,費時費錢。



上述或指令或工具,看似十分繁複,而且只能管理系統檔案。從 Windows 跳船過來的使用者一定想,是否有類似 CCleaner 的工具,點一點就可以把垃圾檔案清乾淨?



你可以使用 BleachBit (跨平臺),BleachBit 設計了一套相當有彈性的設定描述語言 – CleanerML,支援了許多常見軟體的清除功能,非常類似 CCleaner,軟體會自動偵測可清楚的軟體列表,只消點選要清除的檔案類型,BleachBit 就會自動刪除並計算所騰出空間。沒有 X 圖形界面時,也可以用 bleachbit_cli 指令列。

2011年2月10日 星期四

Omnitty 大量管理Linux主機

Omnitty簡化大量管理Linux主機與多台主機指令同步執行測試 By Keynes


http://keynes0918.wordpress.com/2010/09/12/omnitty%E7%B0%A1%E5%8C%96%E5%A4%A7%E9%87%8F%E7%AE%A1%E7%90%86linux%E4%B8%BB%E6%A9%9F%E8%88%87%E5%A4%9A%E5%8F%B0%E4%B8%BB%E6%A9%9F%E6%8C%87%E4%BB%A4%E5%90%8C%E6%AD%A5%E5%9F%B7%E8%A1%8C%E6%B8%AC/

批量管理多台linux的软件 Omnitty
http://myhat.blog.51cto.com/391263/453090

Installation Instructions
Installing Omnitty from source code involves the standard steps you are used to:

$ tar -zxf /path/to/rote-X.Y.Z.tar.gz
$ cd rote-X.Y.Z
$ ./configure
$ make
$ su -c "make install"
$ cd ..
$ tar -zxf /path/to/omnitty-X.Y.Z.tar.gz
$ cd omnitty-X.Y.Z
$ ./configure
$ make
$ su -c "make install"


If you do it this way, omnitty will get installed in /usr/local/bin, which you should put in your PATH if it is not already there. You can then run the program by typing omnitty at the prompt.

BloggerAds