Content Entry

Ubuntu 8.04 LTS 安装配置清单

Published: 2008-04-28 Categories: Software Tags: Linux Ubuntu 8.04 LTS Install

ubuntu-8.04-desktop-{i386}.iso
LiveCD可以预览系统,可以友好安装,也能文本形式安装,还是很好的系统修复盘.

下载刻盘,虽然可以申请到免费的官方光盘,但中国的linux-er素质在提高,如今在Ubuntu中文论坛,申请免费光盘这种行为已经被普遍鄙视了,倡导环保和节约.

安装清单:

默认系统安装...

加入常用别名
sudo gedit /etc/bash.bashrc
加入 alias ll='ls -l'
更新本地终端 source /etc/bash.bashrc

安装 SSH 服务
apt-get install ssh
ubuntu 8.04 并没有默认开启sshd,安装,然后可以在远程安全登入主机,做很多“有意义”的事,比如上班时间远程登录你的个人计算机,boss在意你上班是否浏览花花绿绿的网页,但他不关心你的字符终端是什么! :)

安装 Ftp Server Client
apt-get install vsftpd filezilla(比gftp好用,而且有server版,并且支持Linux,Mac,Windows平台)

安装 Web Server, php
apt-get install apache2 libapache2-mod-php5 php5
配置模块
sudo a2enmod rewrite
配置apache虚拟主机
sudo touch /factr/conf/apache.conf
加入一个主机:

<VirtualHost *:80>
ServerName kit.lab.hooto.com
DocumentRoot /lab/project/kit/trunk/
<Directory "/lab/project/kit/trunk/">
AllowOverride all
</Directory>
</VirtualHost>

链接外部配置文件
sudo ln -s /lab/conf/apache.conf /etc/apache2/sites-enabled/virtual.conf

安装 PHP 扩展模块
apt-get install php5-cli php5-gd php5-mhash php5-xmlrpc php5-curl
apt-get install php5-mysql php5-pgsql php5-sqlite php5-odbc

安装 perl, python (可能已经随其它关联组件安装)
sudo apt-get install python perl

安装 MySQL Server, Client
sudo apt-get install mysql-server mysql-client
sudo apt-get install mysql-admin mysql-query-browser phpmyadmin

安装 PostgreSQL Server, Client
sudo apt-get install postgresql postgresql-client pgadmin3

安装 C/C++ 环境, IDE, 文档
sudo apt-get install linux-headers-`uname -r` build-essential
sudo apt-get install autoconf intltool libtool automake autogen
sudo apt-get install anjuta devhelp

安装 Java - JRE, JDK
apt-get install sun-java6-jre sun-java6-jdk

安装 Java Web Server
apt-get install tomcat5.5
配置tomcat虚拟主机
sudo gediti /etc/tomcat5.5/conf/server.xml
加入

<Server>
......
</Service>
......
<Engine
defaultHost="localhost"
name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
<Host
appBase="/lab/www/demo/javaweb/host"
name="javaweb.demo.hooto.com">
</Host>
<Host
appBase="webapps"
name="localhost">
</Host>
</Engine>
</Service>
</Server>

配置本地硬解析
(上面对apache,tomcat加入了两个虚拟机,做本地测试用,需要对域名本地硬解析,每天都接触客户,这些IDC界的“天才”不会设置host!? )
sudo gedit /etc/hosts
加入
127.0.0.1 kit.lib.hooto.com javaweb.demo.hooto.com

安装解压工具: gz, bz2, zip已经默认支持
apt-get install rar

安装版本控制软件
sudo apt-get install subversion cvs rapidsvn

安装 Differ
sudo apt-get install meld

安装中文输入法
sudo apt-get install scim-pinyin
im-switch -z en_US -s scim

安装词典 http://stardict.sourceforge.net
sudo apt-get install stardict sox
/usr/share/stardict/dic/stardict-langdao-ce-gb-2.4.2 (郎道汉英辞典)
/usr/share/stardict/dic/stardict-langdao-ec-gb-2.4.2 (郎道英汉辞典)
/usr/share/WyabdcRealPeopleTTS (英文语音词库)

安装邮件客户端
sudo apt-get install thunderbird

安装 win-xchm查看器
sudo apt-get install xchm

安装 msn for linux
sudo apt-get install emesene

安装下载工具 ( bt 工具 transmission 默认已安装 ; amule 对应windows平台的 emule)
sudo apt-get install gwget amule

安装 rss 订阅工具
sudo apt-get install liferea

硬件监控工具
sudo apt-get install sensors-applet

远程桌面管理,RDP默认已安装
sudo apt-get install xvnc4viewer

安装视频/音频解码器
gnome 平台推荐用 totem+gstreamer*, 直接点击多媒体文件,totem会自动搜索匹配解码器安装
特殊的rm, rmvb格式文件, RealPlayer 11 for Linux 刚发布 (http://www.real.com/linux) ,效果不错,可以不用 w32codecs 了.

安装 flash for firefox, 新版多了一个选项"swfdec player", 推荐, 其对CPU消耗改善了
1. swfdec player for adobe/macromedia flash
2. adobe flash player
3. gnash swf player

中文编码配置
sudo gedit /var/lib/locales/supported.d/zh
加入以下编码支持
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_HK.BIG5 BIG5
zh_TW.BIG5 BIG5
立即应用更新
sudo locale-gen

安装 vim
sudo apt-get install vim
配置 vim
sudo gedit /etc/vim.local
加入以下设置(个人喜好)
syntax on
set expandtab
set tabstop=4
set shiftwidth=4
set sts=4
set autoindent
set smartindent
set cindent
set number
let &termencoding=&encoding
set fileencodings=utf-8,gb18030,gbk,gb2312,big5

配置 gedit
执行 gconf-editor (配置当前用户gedit,无需sudo)
选择 apps/gedit-2/preferences/encodings
找到 auto_detected 编辑,在Values中分别加入 GB18030,GBK,GB2312,BIG5,编码顺序置顶,优先匹配

界面风格 http://art.gnome.org
Ubuntu 默认的橘黄风格让我"焦躁",一直偏向用蓝,灰的风格
窗体用 SimpleBox (2.6 kb, 下载安装)
图标用 tango ( apt-get install tango-icon-theme )

重启进入系统.
物理内存占用 160M
交换区swap 0M
包含各种应用软件在内的系统根分区占用 3.0G

--EOF--

comments loading