Ubuntu 8.04安装好后需要进行的设置(vmware虚拟机中)

2008-05-28 16:39| 分类:tech ubuntu| 2,924 次点击

前面的一篇日志《VMware采用NAT连接搭建虚拟局域网》提到我搭建了一个虚拟局域网的环境,有两台虚拟机用的是Ubuntu,这个环境其实是为了测试DNS服务器所用,所以不需要设置很多,只是拿来安装一些东西测试,比如bind,其他上网操作都是在主机中设置,所以可以不安装中文环境和输入法,字体美化也都省了。下面是置过程:(如果要看包括安装输入法,字体等完整的步骤,可见下一篇日志《Ubuntu安装完后该进行的设置(没用虚拟机)》)

(很奇怪,ubuntu8.04不装vmtools也可以实现鼠标自动移出的功能)

1、反正在虚拟机中安装,不怕系统坏掉,所以打算直接用root账户,不然每步设置都要解锁,输入密码。

sudo passwd root,然后按提示操作

但我注销后用root登录却提示“The system administrator is not allowed to login from this screen”),重启后登录也不行。后来才想起来忘了还有一个步骤:

Ubuntu下允许Root用户直接登录图形界面:必须修改gdm的配置,让root能在gnome窗口登陆:

sudo gedit /etc/gdm/gdm.conf,修改allowroot=false为allowroot=true

以上两个操作也可以在Administrator-Users and Groups和Login Window中可视化设置

 

2、设置Ubuntu中打开终端的快捷键,不然每次都得点几次才能进linux最常用的“终端”,太麻烦了!Ubuntu不像KDE一样自带快捷键,所以得自己设置。在peferences-Keyboard Shortcuts中设置。我是设置为Win键。

3、更新Ubuntu。

本来我是不打算更新的,但后来安装任何东西都提示无法找到,比如安装vmtools必须先装一个编译器,但提示:“Couldn’t find package build-essential”,安装bind9也找不到,新立得里甚至都无法安装(灰色无法勾选)。所以肯定必须更新Ubuntu,而又看到ubuntu wiki上也说必须更改了默认的更新服务器才可以使用,否则可能找不到很多安装包,或者安装包版本低。于是必须先更改更改服务器再更新,我按ubuntu wiki里的设置更改源为上海交通大学的更新服务器列表,然后apt-get update更新Ubuntu。

 

root@DNS-Server:~# sudo apt-get update
Get:1 http://ftp.sjtu.edu.cn edgy Release.gpg [191B]
Get:2 http://ftp.sjtu.edu.cn edgy-backports Release.gpg [191B]
Get:3 http://ftp.sjtu.edu.cn edgy-proposed Release.gpg [191B]
Get:4 http://ftp.sjtu.edu.cn edgy-security Release.gpg [191B]
Get:5 http://ftp.sjtu.edu.cn edgy-updates Release.gpg [191B]
Ign http://ftp.sjtu.edu.cn edgy Release.gpg
Get:6 http://ftp.sjtu.edu.cn edgy Release [34.7kB]
Get:7 http://ftp.sjtu.edu.cn edgy-backports Release [44.6kB]
Get:8 http://ftp.sjtu.edu.cn edgy-proposed Release [36.5kB]
Get:9 http://ftp.sjtu.edu.cn edgy-security Release [50.9kB]
Get:10 http://ftp.sjtu.edu.cn edgy-updates Release [50.9kB]
Ign http://ftp.sjtu.edu.cn edgy Release              
Get:11 http://ftp.sjtu.edu.cn edgy/main Packages [940kB]
Get:12 http://ftp.sjtu.edu.cn edgy/multiverse Packages [126kB]
Get:13 http://ftp.sjtu.edu.cn edgy/restricted Packages [5974B]
Get:14 http://ftp.sjtu.edu.cn edgy/universe Packages [3559kB]
Get:15 http://ftp.sjtu.edu.cn edgy/main Sources [274kB]                       
Get:16 http://ftp.sjtu.edu.cn edgy/multiverse Sources [45.0kB]                
Get:17 http://ftp.sjtu.edu.cn edgy/restricted Sources [1436B]                 
Get:18 http://ftp.sjtu.edu.cn edgy/universe Sources [1068kB]                  
Get:19 http://ftp.sjtu.edu.cn edgy-backports/main Packages [17.3kB]           
Get:20 http://ftp.sjtu.edu.cn edgy-backports/multiverse Packages [8729B]      
Get:21 http://ftp.sjtu.edu.cn edgy-backports/restricted Packages [14B]        
Get:22 http://ftp.sjtu.edu.cn edgy-backports/universe Packages [56.7kB]       
Get:23 http://ftp.sjtu.edu.cn edgy-backports/main Sources [5655B]             
Get:24 http://ftp.sjtu.edu.cn edgy-backports/multiverse Sources [2402B]       
Get:25 http://ftp.sjtu.edu.cn edgy-backports/restricted Sources [14B]         
Get:26 http://ftp.sjtu.edu.cn edgy-backports/universe Sources [15.7kB]        
Get:27 http://ftp.sjtu.edu.cn edgy-proposed/main Packages [14B]               
Get:28 http://ftp.sjtu.edu.cn edgy-proposed/multiverse Packages [14B]         
Get:29 http://ftp.sjtu.edu.cn edgy-proposed/restricted Packages [14B]         
Get:30 http://ftp.sjtu.edu.cn edgy-proposed/universe Packages [14B]           
Get:31 http://ftp.sjtu.edu.cn edgy-proposed/main Sources [14B]                
Get:32 http://ftp.sjtu.edu.cn edgy-proposed/multiverse Sources [14B]          
Get:33 http://ftp.sjtu.edu.cn edgy-proposed/restricted Sources [14B]          
Get:34 http://ftp.sjtu.edu.cn edgy-proposed/universe Sources [14B]            
Get:35 http://ftp.sjtu.edu.cn edgy-security/main Packages [137kB]             
Get:36 http://ftp.sjtu.edu.cn edgy-security/multiverse Packages [5604B]       
Get:37 http://ftp.sjtu.edu.cn edgy-security/restricted Packages [6149B]       
Get:38 http://ftp.sjtu.edu.cn edgy-security/universe Packages [83.4kB]        
Get:39 http://ftp.sjtu.edu.cn edgy-security/main Sources [26.7kB]             
Get:40 http://ftp.sjtu.edu.cn edgy-security/multiverse Sources [1007B]        
Get:41 http://ftp.sjtu.edu.cn edgy-security/restricted Sources [928B]         
Get:42 http://ftp.sjtu.edu.cn edgy-security/universe Sources [11.4kB]         
Ign http://ftp.sjtu.edu.cn edgy/main Packages                                 
Ign http://ftp.sjtu.edu.cn edgy/multiverse Packages                           
Ign http://ftp.sjtu.edu.cn edgy/restricted Packages                           
Ign http://ftp.sjtu.edu.cn edgy/universe Packages                             
Get:43 http://ftp.sjtu.edu.cn edgy-updates/main Packages [211kB]              
Get:44 http://ftp.sjtu.edu.cn edgy-updates/multiverse Packages [10.9kB]       
Get:45 http://ftp.sjtu.edu.cn edgy-updates/restricted Packages [5138B]        
Get:46 http://ftp.sjtu.edu.cn edgy-updates/universe Packages [106kB]          
Get:47 http://ftp.sjtu.edu.cn edgy-updates/main Sources [52.2kB]              
Get:48 http://ftp.sjtu.edu.cn edgy-updates/multiverse Sources [1724B]         
Get:49 http://ftp.sjtu.edu.cn edgy-updates/restricted Sources [928B]          
Get:50 http://ftp.sjtu.edu.cn edgy-updates/universe Sources [16.3kB]          
Get:51 http://ftp.sjtu.edu.cn edgy/main Packages [33.3kB]                     
Get:52 http://ftp.sjtu.edu.cn edgy/multiverse Packages [462B]                 
Get:53 http://ftp.sjtu.edu.cn edgy/restricted Packages [20B]                  
Get:54 http://ftp.sjtu.edu.cn edgy/universe Packages [1864B]                  
Fetched 7056kB in 24s (287kB/s)                                               
Reading package lists… Done
root@DNS-Server:~#

 

很快就更新好了,而一更新好,马上新立得就变得可以安装软件了(本来勾选框都是灰色的),新立得就是使用linux的apt-get来获取源信息的,所以apt-get现在应该也不会提示找不到了。果然,用sudo apt-get install build-essential linux-headers-`uname -r`即可安装build-essential了。

4、接下来即可安装bind9了,下一篇文章将是《VMware虚拟网络环境下使用Bind9模拟主DNS服务器,缓存DNS服务器

相关文章

  • 没有相关文章
  1. 1 Trackback(s)

  2. 2008-05-29: Ubuntu安装完后该进行的设置(没用虚拟机) | fangyi's blog

发表您的评论

您的昵称:
您的邮箱:(可选,不会被公布)
您的网站: