小记安装配置 Ubuntu 8.04

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

1. 配置网络

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

2. 配置 APT

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

deb 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

配置源列表:

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

修改为:

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

deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy main restricted universe multiverse
deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-security main restricted universe multiverse
deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-updates main restricted universe multiverse
deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-proposed main restricted universe multiverse
deb [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-backports main restricted universe multiverse
deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy main restricted universe multiverse
deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-security main restricted universe multiverse
deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-updates main restricted universe multiverse
deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-proposed main restricted universe multiverse
deb-src [http://archive.ubuntu.org.cn/ubuntu/](http://archive.ubuntu.org.cn/ubuntu/) hardy-backports main restricted universe multiverse

deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy main restricted universe multiverse
deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-security main restricted universe multiverse
deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-updates main restricted universe multiverse
deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-backports main restricted universe multiverse
deb [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-proposed main restricted universe multiverse
deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy main restricted universe multiverse
deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-security main restricted universe multiverse
deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-updates main restricted universe multiverse
deb-src [http://cn.archive.ubuntu.com/ubuntu](http://cn.archive.ubuntu.com/ubuntu) hardy-backports main restricted universe multiverse
deb-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 软件就可以连接该机器了。

Zealic @ 2008-05-08

View Comments |
Categories: tech.posix
Tags:

Related posts