2008年7月11日 星期五

[ubuntu] for [預設安裝的套件]、[apt-get default install]


預設安裝的套件,安裝ubuntu後,可以執行下面動作。請斟砟使用。

[額外的中文支援]
sudo apt-get -y install language-support-zh
sudo apt-get -y install language-pack-zh
sudo apt-get -y install language-pack-gnome-zh
sudo apt-get -y install language-pack-gnome-zh-base
sudo apt-get -y install language-pack-kde-zh
####################################################################################################
基本套件安裝:
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y --purge autoremove gnome-games
####################################################################################################
sudo apt-get -y install scim-bridge-client-qt
sudo apt-get -y install ee lsof htop startupmanager emesene gnome-icon-theme-gartoon
sudo apt-get -y install rar unrar p7zip p7zip-full p7zip-rar
sudo apt-get -y install nautilus-gksu nautilus-image-converter nautilus-open-terminal
sudo apt-get -y install nautilus-script-audio-convert nautilus-script-manager
sudo apt-get -y install kalarm minicom gtkterm ksnapshot ktorrent dia gip kedit
kpdf kghostview dolphin

說明:
sudo apt-get -y install kalarm (訊息通知)
sudo apt-get -y install gtkterm (終端機連線程式Serial-port)
sudo apt-get -y install minicom (終端機連線程式,記得要先 sudo -i 才不會有亂碼產生)
sudo apt-get -y install ksnapshot (畫面擷取程式,可以自訂大小)
sudo apt-get -y install ktorrent (抓BT)
sudo apt-get -y install gip (IP計算機)
sudo apt-get -y install dia (畫網路架構圖)
sudo apt-get -y install kedit (kde的筆記本,功能簡單,無plug-in)
sudo apt-get -y install kpdf (kde的pdf view)
sudo apt-get -y install kghostview (kde的pdf reader)
sudo apt-get -y install dolphin (kde的檔案總管)


####################################################################################################
(
MadEdit is an Open-Source & Cross-Platform Text/Hex Editor written in C++ and wxWidgets.)
首頁:http://madedit.sourceforge.net/
安裝方式:下載 source ......
wget http://downloads.sourceforge.net/madedit/madedit_0.2.8-1_i386.deb?modtime=1191883084&big_mirror=0
檔案總管按右鍵,選第一個選項『套件安裝』,done ~
####################################################################################################




[非必要,另外的套件]
############################################################################################################################
For KDE,英文介面(advanced text editor for KDE)。
sudo apt-get -y install kate
Description: advanced text editor for KDE Kate is a multi document editor, based on a rewritten version of the kwrite editing widget of KDE.

For KDE,桌面便利貼。爛爛的~
sudo apt-get -y install knotes
Description: KDE sticky notes KNotes is a program that lets you write sticky notes. The notes are saved automatically when you exit the program, and they display when you open the program. The program supports printing and mailing your notes.
############################################################################################################################


apt-get clean
我們透過 apt-get 安裝的任何軟體都會先下載到 『 /var/cache/apt/archives/ 』及 『 /var/cache/apt/archive/partial/ 』 目錄底下,一般預設 apt-get 在安裝完軟體後是不會把上述位置底下的 『 .deb 』 殺除,一段時間後您如果覺得系統空間不足,您可以下 『 apt-get clean 』讓系統自動清理這個目錄。

apt-get autoclean
類似 『 apt-get clean 』,下此參數時 apt-get 在安裝完畢後會自動刪除該軟體的 『 .deb 』 檔。





apt-get clean

清除:當使用 apt-get install 指令安裝套件,下載下來的 rpm 會放置於 /var/cache/apt/archives,使用 apt-get clean 指令可以將之清除,避免佔用硬碟空間


APT 的安裝、使用
http://apt.nc.hcc.edu.tw/web/apt/apt.html




參考資料聯結:

- UbuntuL10n - Ubuntu 正體中文 Wiki
http://wiki.ubuntu.org.tw/index.php/UbuntuL10n#.E5.88.A9.E7.94.A8_im-switch_.E8.A8.AD.E5.AE.9A.E8.BC.B8.E5.85.A5.E6.B3.95





gcin 設定方式,參考網址:http://zh.wikipedia.org/wiki/Gcin

利用 im-switch 設定輸入法

目前的 im-switch 已經能以簡單指令使載入輸入法,重新啟動後即生效〈僅個人設定,非全域〉。如果用了 im-switch 設定後,即不需要 .xsession 了,因為如果有自己的 .xinitrc 或 .xsession,系統不會自動執行 im-switch。

注意,若 "語文支援(Language Support)" 已選取 "中文" ,便不需設定了喔。

im-switch 指令如下:

  • scim
im-switch -s scim
  • gcin
im-switch -s gcin

參考資料:

  1. http://moto.debian.org.tw/viewtopic.php?t=11334 當 im-switch 錯亂時…
  2. http://moto.debian.org.tw/viewtopic.php?t=6964 官方輸入法選擇工具 im-switch

[VirtualBox 鍵盤失效]
1.
在VirtualBox主控台的"檔案"->"偏好設定"->"輸入",取消「自動捕捉鍵盤」設定。

2.
sudo apt-get -y install scim-bridge-client-qt

3.
重開視窗介面
Ctrl + Alt + Backspace

或是直接 sudo reboot



把终端加到右键菜单:
sudo apt-get install nautilus-open-terminal


使用root身份打开文件夹:
sudo apt-get install nautilus-gksu



http://www.moztw.org/netscape/

[辦公]
KChart
Karbon14
KArm 個人時程紀錄
KOrganizer 行事曆
KPDF 檢視器

[附屬應用程式]
Strigi

正規表示式編輯器
graphical regular expression editor plugin for KDE
graphical regular expression editor plugin for KDE
This package contains a graphical regular expression editor plugin for use with KDE. It let you draw your regular expression in an unambiguous way.
This package is part of KDE, as a component of the KDE utilities module. See the 'kde' and 'kdeutils' packages for more information.

KSig
graphical tool for managing multiple email signatures
KSig is a graphical tool for keeping track of many different email signatures. The signatures themselves can be edited through KSig's graphical user interface. A command-line interface is then available for generating random or daily signatures from this list.
The command-line interface makes a suitable plugin for generating signatures in external mail clients such as KMail. See /usr/share/doc/ksig/README.Debian for details on how this can be done.
This package is part of KDE, as a component of the KDE addons module. See the 'kde' and 'kdeaddons' packages for more information.



knetattach
kfmclient




kalarm - Personal alarm message, command and email scheduler for KDE

# apt-cache -n search kalarm
# sudo apt-get update
# sudo apt-get -y install kalarm

若要一開機馬上執行,可以加入到這邊.....
系統-->偏好設定-->作業階段-->初始啟動程式-->新增

kalarm設定上面有『登入時自動啟動』的選項,但是我測試過,好像不行,可能是
我設定錯誤吧!還沒時間測試~

備份檔位置:
~/.kde/share/apps/kalarm
~/.kde/share/apps/kalarm/calendar.ics
~/.kde/share/config/kalarmdrc
~/.kde/share/config/kalarmrc




HyperTerminal replacement in Ubuntu - gtkterm

gtkterm - A simple GTK+ serial port terminal

http://www.jls-info.com/julien/linux/
http://www.jls-info.com/julien/linux/gtkterm.jpg

sudo apt-get -y install gtkterm
應用程式-->附屬應用程式-->Serial port terminal

畫面擷取

1.直接按下 Print Screen 鍵,即可將整個螢幕的畫面全部存成一個檔案。
2.如果按下 Alt+Print Screen 兩個鍵,可將滑鼠指標所指的視窗截取成一個檔案,自動將背景去除,很方便的。


桌面特效

compizconfig-settings-manager
sudo apt-get -y install compizconfig-settings-manager


Linux 真正缺乏的是這類的圖文教學
例如:在 Moble01 有一篇關於 Compiz Fusion 的教學
http://www.mobile01.com/topicdetail.php?f=300&t=426704&last=6230485#
我也是看了這篇,才去用 Ubuntu 的




############################################################
[HyperTerminal in Ubuntu(Linux)]
在ubuntu上面,使用Terminal console(serial port terminal)
# sudo apt-get -y install minicom
# sudo -i (轉變成為root,語系是en的,畫面就不會有亂碼)
# minicom
設定方式為:先按下『Ctrl+A』,接著再單獨按一下『Z』
------------------------------------------------------
另外一種方式,可以安裝:gtkterm
gtkterm = A simple GTK+ serial port terminal
# sudo apt-get -y install gtkterm
# gtkterm
它會單獨開出一個視窗,畫面很正常,但是沒有其他功能,不能用貼上文字的方式。
############################################################
[TFTP server in Ubuntu(Linux)]
有時候需要使用TFTP Server將config檔案或是IOS載入到Device裡面;
這時候,就會需要TFTP Server(tftpd)了。
tftpd = Trivial file transfer protocol server
# sudo apt-get -y install tftpd
# sudo cp -rf /etc/inetd.conf /etc/inetd.conf.XXXXXXXX
# sudo vi /etc/inetd.conf (細節可以參考 man inetd.conf)
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
最後面那個『/srv/tftp』是 tftp 目錄位置,可以自行變更。
Allow Device Download Data,請將資料放入/srv/tftp目錄裡面即可;
Allow Device Upload Data,請將/srv/tftp的目錄權限變更為『nobody:nogroup』即可。
# sudo chown -R nobody:nogroup /srv/tftp/
一切都就緒之後,就可以下達:
# sudo /etc/init.d/openbsd-inetd start
或是
# gksudo /etc/init.d/openbsd-inetd start
Usage: /etc/init.d/openbsd-inetd {start|stop|reload|force-reload|restart}
# netstat -an | grep '69' (check status)
############################################################








沒有留言: