Chinaunix首页 | 论坛 | 博客
  • 博客访问: 192123
  • 博文数量: 40
  • 博客积分: 2265
  • 博客等级: 大尉
  • 技术积分: 434
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-23 17:01
文章分类

全部博文(40)

文章存档

2014年(1)

2013年(2)

2012年(6)

2011年(5)

2010年(26)

我的朋友

分类: Oracle

2010-11-09 17:46:15

Step 1: Download, Copy, and Edit Repository File

This is a one-liner command that will download, copy, and edit the VirtualBox repository file at once.

1su -c 'wget -O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g" /etc/yum.repos.d/virtualbox.repo'

Step 2: Update Repository and Install VirtualBox-3.2

This command will update yum repositories to include the new VirtualBox repository file we copied in the last step and then it will attempt to install VirtualBox-3.2 with dependencies.


su -c 'yum update; yum install -y VirtualBox-3.2 dkms gcc'

Step 3: Run VirtualBox Setup Script

This command will run the VirtualBox driver setup script.


su -c '/etc/init.d/vboxdrv setup'

If you’re having issues, try installing “kernel-PAE-devel” or “kernel-devel”.

Step 4: Setup Groups for VirtualBox Access

This command will add you to the vboxusers group. Replace “username” with your actual username found by using the whoami command.


su -c 'usermod -G vboxusers -a username'

If you find that you’re getting SELinux errors or denials, try adding VirtualBox.so as an exception with this command:
su -c 'chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so'

Step 5: Run VirtualBox

Finally, run VirtualBox and have fun with it!


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

chinaunix网友2010-11-10 20:43:00

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com