Chinaunix首页 | 论坛 | 博客
  • 博客访问: 84472
  • 博文数量: 26
  • 博客积分: 90
  • 博客等级: 民兵
  • 技术积分: 140
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-02 00:25
文章分类
文章存档

2012年(16)

2011年(10)

我的朋友

分类:

2012-01-12 21:33:21

host: centos5.3  virtualbox gusest: debian5.0
安装虚拟的debian

我用的是别人的一张最简单的系统光盘,一些命令如:ifconfig和make都没有,都需要自己来安装,安装,我用的这个版本,在安装过程中,不能使用鼠标。全靠回车、Tab、Esc键。

1.设置局域网的源:

  1. vim /etc/apt/sources.list
  2. deb lenny main contrib non-free
  3. apt-get update   #更新源信息
    apt-get install gnome  #先安装图形桌面
2.安装完后,中文的菜单都是方块的乱码:

  1. apt-get install ttf-arphic-uming ttf-arphic-ukai ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp
3.如果你修改xorg.conf失败,进入不了X server,那么mv xorg.conf xorg.conf.bak2 ,
重启动系统会重新生成一个xorg.conf。

4 . 安装 build-essentials出错:

打开/var/log/vbox-install.log 看到
Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again
出现Kernel driver not installed (rc=-1908)错误的原因是,没有成功编译供virtualbox使用的内核模块。
sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`(uname –r 查看你的内核版本,比如我的是2.6.32-22-generic)
然后在执行sudo /etc/init.d/vboxdrv setup
2. 安装apt-get install linux-headers-`uname -r`

5.设置apt-get install http 代理 


  1. Acquire::http::Proxy "";
6.  设置debian源的好方法:
http://www.cnblogs.com/westfly/archive/2011/04/28/2031943.html


阅读(1039) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~