在服务器上操作
1、安装openssh:sudo apt-get install openssh-server
一下各步均在ssh上进行
2、配置服务器静态IP
1)sudo vi /etc/network/interfaces
2)auto eth0
iface eth0 inet static
address 192.168.1.201
netmask 255.255.255.0
gateway 192.168.1.1
3)配置DNS
sudo vi /etc/resolv.conf
如未自动设置,则以如下格式设置:
nameserver 222.85.85.85
nameserver 219.150.32.132
4)重启网络服务:sudo /etc/init.d/networking restart (重启网络服务时,SSH会停止,请重新连接)
3、配置常用源,这里采用网易的源: sudo vi /etc/apt/sources.list
deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
4、更新软件版本信息 sudo apt-get update
5、更新软件库:sudo apt-get upgrade
6、安装Webmin,网址为:http://www.webmin.com/
1)在源列表里添加webmin的源: deb http://download.webmin.com/download/repository sarge contrib
2)安装密钥文件:
sudo wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
3)更新软件版本:sudo apt-get update
4)下载并安装webmin: sudo apt-get install webmin
5)登录webmin(webmin的默认端口为10000,且为https加密连接)选择语言和皮肤,我还是比较喜欢:MSC.Linux Theme
至此,一个基本的服务器环境建立完毕,接下来就可以配置各项功能,如JDK,apache,Ftp等等!
posted on 2009-11-03 18:42
零全零美 阅读(1415)
评论(1) 编辑 收藏 所属分类:
ubuntu