VirtualBox 配置 CentOS 备忘

简介

http://en.wikipedia.org/wiki/VirtualBox

Oracle VM VirtualBox (formerly Sun VirtualBox, Sun xVM VirtualBox and innotek VirtualBox) is an x86 virtualization software package, created by software company Innotek GmbH, purchased in 2008 by Sun Microsystems, and now developed by Oracle Corporation as part of its family of virtualization products.

本文以 VirtualBox 4.2.8 安装的 CentOS 6.4_x86_64 为例:

安装 Guest Additions

安装依赖

# yum install gcc kernel sources kernel-devel
# ln -s /usr/src/kernels/2.6.32-358.0.1.el6.x86_64 /usr/src/linux

重启操作系统

# sh autorun.sh

配置sudo命令

经常使用 su root - 比较麻烦,sudo 比较好用。

# chmod 740 /etc/sudoers
# vi /etc/sudoers

编辑 sudoers 文件,添加 sodoer。

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
your_username        ALL=(ALL)       ALL

保存之后再将权限修改回去

# chmod 440 /etc/sudoers

安装Google Chrome

http://www.google.com/chrome/eula.html?hl=en 下载安装文件

$ sudo rpm -Uvh google-chrome-stable_current_x86_64.rpm

安装 Git gui

使用 git-gui,图形用户界面相对方便些

$ sudo yum install git-gui

使用方法,cd 到项目的 git repo 根目录

$ git gui

参考资料

How to install Guest Additions in CentOS 5.1

分类: Tutorial | 评论

blog comments powered by Disqus