分类: Oracle
2010-11-09 17:46:15
This is a one-liner command that will download, copy, and edit the VirtualBox repository file at once.
1 | su -c 'wget
-O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g"
/etc/yum.repos.d/virtualbox.repo' |
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' |
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”.
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'
Finally, run VirtualBox and have fun with it!
| VirtualBox |
chinaunix网友2010-11-10 20:43:00
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com