Label Cloud

Thursday, February 26, 2009

最小化安装ubuntu+lxde

  源设置(网通/教育网线路)
  sudo nano /etc/apt/sources.list
  将文件中的内容清空,再加入以下文字。如果你用电信线路,建议使用163的源。
deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
#
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://ppa.launchpad.net/msn-pecan/ubuntu hardy main
deb-src http://ppa.launchpad.net/msn-pecan/ubuntu hardy main
deb http://ppa.launchpad.net/galaxium/ubuntu hardy main
deb-src http://ppa.launchpad.net/galaxium/ubuntu hardy main
deb http://ppa.launchpad.net/stemp/ubuntu hardy main
deb http://download.tuxfamily.org/swiftweasel hardy multiverse
# deb http://ppa.launchpad.net/telepathy/ubuntu hardy main
# deb-src http://ppa.launchpad.net/telepathy/ubuntu hardy main
deb http://ppa.launchpad.net/tualatrix/ubuntu hardy main #Ubuntu Tweak
deb http://dl.google.com/linux/deb/ stable non-free #Google
#Ubuntu Chinese Repository
deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse
#lxde
deb http://ppa.launchpad.net/lxde/ubuntu hardy main
deb-src http://ppa.launchpad.net/lxde/ubuntu hardy main

  制作最小化安装ubuntu的文件。
  sudo nano install.sh
#!/bin/sh
#最小化安装ubuntu
#系统更新
sudo apt-get update
sudo apt-get upgrade
#安装x-windows
sudo apt-get install xorg
#安装lxde桌面
sudo apt-get install lxde lxnm lxrandr lxtask lxterminal lxappearance leafpad gpicview xarchiver
#安装显示卡驱动
sudo apt-get install nvidia-glx-new nvidia-settings
#安装声卡驱动
sudo apt-get install alsa-utils
#安装中文环境
sudo apt-get install zhcon
sudo apt-get install language-pack-gnome-zh language-pack-zh
#安装中文输入法
sudo apt-get install scim scim-chewing scim-gtk2-immodule scim-modules-socket scim-modules-table scim-pinyin scim-python scim-tables-zh libscim8c2a
sudo sh -c " echo 'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
sudo chmod +755 /etc/X11/Xsession.d/95xinput
#安装桌面及必须品
sudo apt-get install gdm ubuntu-gdm-themes synaptic bum gdebi alacarte
#安装添加删除程序工具
sudo apt-get install gnome-app-install
#安装多媒体解码器
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin w32codecs
#DVD影碟支持
sudo apt-get install libdvdnav4 libdvdread3 libdvdcss2
#媒体播放器
sudo apt-get install mplayer gmplayer mozilla-mplayer audacious audacious-plugins
#压缩工具
sudo apt-get install rar unrar p7zip-full cabextract
#flash插件
sudo apt-get install adobe-flashplugin
#alien转换器
sudo apt-get install alien

  将以上内容复制并保存到一个linux纯文本文件,扩展名设置为.sh。比如install.sh。
  sudo chmod a+x install.sh
  sudo ./install.sh
  开始安装!(前提是,你的sources.list中有lxde的源,否则lxde会安装不成功)

No comments: