Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2385554
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类: LINUX

2006-09-28 15:10:21

1 删除exim*和nvi 
rac1:~# apt-get remove -y --purge exim* nvi
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting exim4-daemon-custom for regex 'exim*'
Note, selecting exim4-config for regex 'exim*'
Note, selecting exim4-daemon-light for regex 'exim*'
Note, selecting eximon4 for regex 'exim*'
Note, selecting exim4-config-2 for regex 'exim*'
Note, selecting exim4-config instead of exim4-config-2
Note, selecting exim-tls for regex 'exim*'
Note, selecting exim4-doc-info for regex 'exim*'
Note, selecting exim4-doc-html for regex 'exim*'
Note, selecting exim4-daemon-heavy for regex 'exim*'
Note, selecting exim for regex 'exim*'
Note, selecting exim4 for regex 'exim*'
Note, selecting exim4-base for regex 'exim*'
Note, selecting libexif10 for regex 'exim*'
Note, selecting texinfo for regex 'exim*'
The following packages will be REMOVED:
at* exim4* exim4-base* exim4-config* exim4-daemon-light* mailx*
mutt* nvi* texinfo*
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 10.4MB disk space will be freed.
(Reading database ... 19535 files and directories currently installed.)
Removing at ...
Stopping deferred execution scheduler: atd.
Purging configuration files for at ...
Removing mutt ...
Purging configuration files for mutt ...
Removing mailx ...
Purging configuration files for mailx ...
Removing exim4 ...
Removing exim4-daemon-light ...
Stopping MTA: exim4.
Removing exim4-base ...
Purging configuration files for exim4-base ...
Removing exim4-config ...
Purging configuration files for exim4-config ...
Removing nvi ...
Purging configuration files for nvi ...
Removing texinfo ...


2 添加需要的软件
rac1:~# apt-get install -y unzip\
> vim lesstif2 gawk\
>
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
defoma fontconfig libexpat1 libfontconfig1 libfreetype6 libice6
libsm6 libx11-6 libxext6 libxft2 libxp6 libxrender1 libxt6
ttf-bitstream-vera ucf vim-common xfree86-common xlibs-data
Suggested packages:
defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libfreetype6-dev zip
ctags vim-doc vim-scripts x-window-system-core x-window-system
Recommended packages:
libft-perl debconf-utils
The following NEW packages will be installed:
defoma fontconfig gawk lesstif2 libexpat1 libfontconfig1
libfreetype6 libice6 libsm6 libx11-6 libxext6 libxft2 libxp6
libxrender1 libxt6 ttf-bitstream-vera ucf unzip vim vim-common
xfree86-common xlibs-data
0 upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/10.7MB of archives.
After unpacking 34.8MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package gawk.
(Reading database ... 19145 files and directories currently installed.)
Unpacking gawk (from .../g/gawk/gawk_3.1.4-2_i386.deb) ...
Selecting previously deselected package vim-common.
Unpacking vim-common (from .../vim-common_6.3-071+1_all.deb) ...
Selecting previously deselected package vim.
Unpacking vim (from .../v/vim/vim_6.3-071+1_i386.deb) ...
Selecting previously deselected package defoma.
Unpacking defoma (from .../defoma_0.11.8-0.1_all.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_1.95.8-3_i386.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.1.7-2.4_i386.deb) ...
Selecting previously deselected package libfontconfig1.
Unpacking libfontconfig1 (from .../libfontconfig1_2.3.1-2_i386.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../main/u/ucf/ucf_1.17_all.deb) ...
Moving old data out of the way
Selecting previously deselected package ttf-bitstream-vera.
Unpacking ttf-bitstream-vera (from .../ttf-bitstream-vera_1.10-3_all.deb) ...
Selecting previously deselected package fontconfig.
Unpacking fontconfig (from .../fontconfig_2.3.1-2_i386.deb) ...
Selecting previously deselected package xfree86-common.
Unpacking xfree86-common (from .../xfree86-common_4.3.0.dfsg.1-14_all.deb) ...
Selecting previously deselected package libice6.
Unpacking libice6 (from .../libice6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package libsm6.
Unpacking libsm6 (from .../libsm6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package xlibs-data.
Unpacking xlibs-data (from .../xlibs-data_4.3.0.dfsg.1-14_all.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package libxext6.
Unpacking libxext6 (from .../libxext6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package libxrender1.
Unpacking libxrender1 (from .../libxrender1_0.8.3-7_i386.deb) ...
Selecting previously deselected package libxft2.
Unpacking libxft2 (from .../x/xft/libxft2_2.1.7-1_i386.deb) ...
Selecting previously deselected package libxp6.
Unpacking libxp6 (from .../libxp6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package libxt6.
Unpacking libxt6 (from .../libxt6_4.3.0.dfsg.1-14_i386.deb) ...
Selecting previously deselected package lesstif2.
Unpacking lesstif2 (from .../lesstif2_0.93.94-11.4_i386.deb) ...
Selecting previously deselected package unzip.
Unpacking unzip (from .../u/unzip/unzip_5.52-1_i386.deb) ...
Setting up gawk (3.1.4-2) ...

Setting up defoma (0.11.8-0.1) ...

Setting up libexpat1 (1.95.8-3) ...

Setting up libfreetype6 (2.1.7-2.4) ...

Setting up ucf (1.17) ...

Setting up ttf-bitstream-vera (1.10-3) ...
Regenerating fonts cache... done.

Setting up xfree86-common (4.3.0.dfsg.1-14) ...
Adding system startup for /etc/init.d/xfree86-common ...
/etc/rcS.d/S70xfree86-common -> ../init.d/xfree86-common
Setting up X server socket directory /tmp/.X11-unix...done.
Setting up ICE socket directory /tmp/.ICE-unix...done.

Setting up libice6 (4.3.0.dfsg.1-14) ...

Setting up libsm6 (4.3.0.dfsg.1-14) ...

Setting up xlibs-data (4.3.0.dfsg.1-14) ...

Setting up libx11-6 (4.3.0.dfsg.1-14) ...

Setting up libxext6 (4.3.0.dfsg.1-14) ...

Setting up libxrender1 (0.8.3-7) ...

Setting up libxp6 (4.3.0.dfsg.1-14) ...

Setting up libxt6 (4.3.0.dfsg.1-14) ...

Setting up unzip (5.52-1) ...
Setting up vim-common (6.3-071+1) ...
Setting up libfontconfig1 (2.3.1-2) ...

Setting up libxft2 (2.1.7-1) ...

Setting up lesstif2 (0.93.94-11.4) ...

Setting up vim (6.3-071+1) ...

Setting up fontconfig (2.3.1-2) ...

Creating config file /etc/fonts/local.conf with new version
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Regenerating fonts cache... done.

以上操作可以使用如下脚本完成
apt-get remove -y --purge exim* nvi
apt-get install -y unzip\
vim lesstif2 gawk

3 apt-get install x-window-system-core
安装过程中将配置xserver-xfree86,"Attempt to autodetect video hardware"选择"Yes", 鼠标选择"/dev/psaux",鼠标类型选择”ImPS/2", 默认色深选择16,其他选默认值。

4 apt-get install gnome-core
安装过程中的寻问选默认值即可
5 安装iputils-arping,从如下地址下载需要的软件包

下载后使用dpkg -i iputils-arping_20020927-2_i386.deb安装

rac1:~# dpkg -i iputils-arping_20020927-2_i386.deb
Selecting previously deselected package iputils-arping.
(Reading database ... 34970 files and directories currently installed.)
Unpacking iputils-arping (from iputils-arping_20020927-2_i386.deb) ...
Setting up iputils-arping (20020927-2) ...


6 安装libaio,从如下地址下载需要的软件包

下载后使用dpkg -i libaio_0.3.104-1_i386.deb安装
rac1:~# dpkg -i libaio_0.3.104-1_i386.deb
Selecting previously deselected package libaio.
(Reading database ... 34976 files and directories currently installed.)
Unpacking libaio (from libaio_0.3.104-1_i386.deb) ...
Setting up libaio (0.3.104-1) ...

7 建立必要的符号连接

ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/sort /bin/sort
ln -s /usr/bin/basename /bin/basename
ln -s /etc /etc/rc.d
ln -s /usr/bin/wc /bin/wc
ln -s /usr/sbin/arping /sbin/arping
阅读(2269) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~