小记安装配置 Ubuntu 8.04

基本的安装很简单,省略不提。

1. 配置网络

  • 修改网络配置 : /etc/network/interfaces
1iface eth0 inet static
2address 192.168.1.10
3netmask 255.255.255.0
4gateway 192.168.1.1
  • 使设置生效: /etc/init.d/networking restart

2. 配置 APT

先说说源列表这个东西的概念

1deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
  1. 包类型 : deb (deb 或 deb-src,分别代表二进制包和源代码包)
  2. 来源地址
  3. 发行版本 : hardy (hardy 为 ubuntu 8.04 的开发代号,也可以直接使用版本号)
  4. 库 : main | multiverse | restricted | universe

参考:http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:Repositories/CommandLine/zh

配置源列表:

1sudo cp /etc/apt/sources.list /ect/apt/sources.list.bak
2sudo vim /etc/apt/sources.list

修改为:

 1deb [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy main restricted universe multiverse
 2deb [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-security main restricted universe multiverse
 3deb [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-updates main restricted universe multiverse
 4deb [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-proposed main restricted universe multiverse
 5deb [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-backports main restricted universe multiverse
 6deb-src [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy main restricted universe multiverse
 7deb-src [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-security main restricted universe multiverse
 8deb-src [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-updates main restricted universe multiverse
 9deb-src [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-proposed main restricted universe multiverse
10deb-src [http://ubuntu.cn99.com/ubuntu/](http://ubuntu.cn99.com/ubuntu/) hardy-backports main restricted universe multiverse
11
12deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy main restricted universe multiverse
13deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-security main restricted universe multiverse
14deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-updates main restricted universe multiverse
15deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-proposed main restricted universe multiverse
16deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-backports main restricted universe multiverse
17deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy main restricted universe multiverse
18deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-security main restricted universe multiverse
19deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-updates main restricted universe multiverse
20deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-proposed main restricted universe multiverse
21deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-backports main restricted universe multiverse
22
23deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy main restricted universe multiverse
24deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-security main restricted universe multiverse
25deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-updates main restricted universe multiverse
26deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-backports main restricted universe multiverse
27deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-proposed main restricted universe multiverse
28deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy main restricted universe multiverse
29deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-security main restricted universe multiverse
30deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-updates main restricted universe multiverse
31deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-backports main restricted universe multiverse
32deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-proposed main restricted universe multiverse

更新源列表 : sudo apt-get update

更多源列表信息参见:http://wiki.ubuntu.org.cn/index.php?title=Qref/Source&variant=zh-cn

3. 安装 SSH 服务

安装 openssh-server:

sudo apt-get install openssh-server

如果需要,配置 sshd:

sudo vim /etc/ssh/sshd_config

配置后需要重启 sudo /etc/init.d/ssh restart

之后使用 SecureCRT 或 putty 之类的 SSH Client 软件就可以连接该机器了。

View Comments