本文出自:Ubuntu 正體中文 討論區 

最近都是用懶人包來更新Ubuntu系統,現在想先把需要的套件都先抓回來做成離線更新的方式,

可以參考一下本篇是怎麼用script透過APT更新套件。 


##本Script檔主要做的事
##新增五個台灣區apt 套件mirror server到source.list 加速你安裝軟體
## 用amoak替換rhythmbox 音樂管理
## 用skype替換ekiga 網路電話
## 用picasa替換f-spot 相片管理
## 移除遊戲
## 自動安裝繁體中文語系 中文化
## 安裝Codecs 多媒體支援
## 安裝Google Desktop Adobe Reader 讀PDF
## 安裝pcmanx-gtk2(BBS瀏覽) pcmanfm(檔案總管) filezilla(FTP 下載) kget(http下載) ktorrent(BT下載) stardict(網際譯王)
k3b(燒錄軟體) amule(抓檔案的寵物) vlc(多媒體播放) ntfs-3g(寫入ntfs) ntfs-config webilder(自動下載桌布from Flickr)

## 幫你安裝英漢字典For stardict
## 幫你安裝Smplayer(播放影片) Gtkhirad(華人網路廣播) startupmanager( 開機選單設定)
## 安裝微軟英文字型
## 安裝Java及其中文支援
## 自動安裝字型(新細明體 微軟正黑體 蘋果儷黑 亦可):和此script放在同一目錄之truetype字型將會自動安裝到系統中,可供更換成系統字型



##Main Server
echo "deb http://ftp.twaren.net/ubuntu/ feisty main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb http://tw.archive.ubuntu.com/ubuntu/ feisty main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb http://apt.nc.hcc.edu.tw/pub/ubuntu/ feisty main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb ftp://ftp.cse.yzu.edu.tw/Linux/Ubuntu/ubuntu/ feisty main restricted" | sudo tee -a /etc/apt/sources.list
echo "deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted" | sudo tee -a /etc/apt/sources.list

##Additional Server
echo "deb http://packages.medibuntu.org/ feisty free non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://debian.websterwood.com/ feisty main" | sudo tee -a /etc/apt/sources.list
echo "deb http://dl.google.com/linux/deb/ stable non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://wine.budgetdedicated.com/apt/ feisty main" | sudo tee -a /etc/apt/sources.list

sudo wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
sudo wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
sudo wget http://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
sudo apt-get update


##Remove SoftWare

sudo apt-get remove gnome-games rhythmbox ekiga f-spot



##Install Traditional Chinese Environment

sudo apt-get install language-pack-zh language-pack-gnome-zh language-support-zh libchewing3 scim-chewing scim-tables-zh wine gstreamer0.10*



#### Install Non-Free Ware

##Codecs

sudo apt-get install libdvdcss2 w32codecs ffmpeg libavcodec0d libavformat0d libpostproc0d sun-java5-plugin libdvdread3 mplayer rar p7zip-full



## Acrobat Reader Skype

sudo apt-get install skype acroread acroread-plugins cups-pdf acroread-escript mozilla-acroread

#Webilder Google Desktop

sudo apt-get install webilder-gnome google-desktop-linux picasa



## Install Free/Open Ware : PcmanX Filezilla Kget Ktorrent Amarok K3b

sudo apt-get install pcmanx-gtk2 pcmanfm filezilla kget ktorrent stardict
sudo apt-get install amarok k3b amule vlc ntfs-3g ntfs-config webilder



##Install Hinetuner Smplayer StartManager

sudo wget http://web.telia.com/~u88005282/sum/archive/deb/startupmanager_1.0.10-1_all.deb
sudo wget http://pcman.sayya.org/gtkhirad/ubuntu/gtkhirad_0.2-1_i386.deb
sudo wget http://downloads.sourceforge.net/smplayer/smplayer_0.5.21_i386.deb

sudo dpkg -i gtkhirad*
sudo dpkg -i smplayer*
sudo dpkg -i startupmanager*





##Install Dictionary Databases

sudo wget http://prdownloads.sourceforge.net/stardict/stardict-21shijishuangxiangcidian-big5-2.4.2.tar.bz2
tar jxpf stardict-21shijishuangxiangcidian-big5-2.4.2.tar.bz2
sudo mv stardict-21shijishuangxiangcidian-big5-2.4.2 /usr/share/stardict/dic/



##Install Microsoft Fonts
sudo apt-get install msttcorefonts

sudo cp *.ttf /usr/share/fonts/truetype
sudo cp *.ttc /usr/share/fonts/truetype

sudo chmod 775 /usr/share/fonts/truetype/*.ttf
sudo chmod 775 /usr/share/fonts/truetype/*.ttc
sudo fc-cache -v



##Set Java Chinese Fonts

cd /usr/lib/jvm/java-1.5.0-sun/jre/lib/fonts
sudo ln -s /usr/share/fonts/arphic fallback
cd /usr/lib/jvm/java-6-sun/jre/lib/fonts
sudo ln -s /usr/share/fonts/arphic fallback

##本Script不能作的事:
##安裝顯示卡驅動,更改解析度和更新頻率
##如果裝好ati&nv官方驅動更新頻率不對
##請看http://www.ubuntu.org.tw/modules/newbb/viewtopic.php?topic_id=4100&forum=2&post_id=14590#forumpost14590
##解析度選單裡沒有你要的項目,譬如某些寬螢幕的解析度,也請找##http://www.ubuntu.org.tw/modules/newbb /viewtopic.php?topic_id=5892&forum=22&post_id=26220#forumpost26220

##設定自動登入
##設定預設語系
##設定系統字型
##設定印表機

arrow
arrow
    全站熱搜

    正義的胖虎 發表在 痞客邦 留言(0) 人氣()