ubuntu相关设置

来源:互联网 发布:淘宝怎么添加旺信 编辑:程序博客网 时间:2024/05/19 20:37

注意:以下设置在12.04版本上可以成功。

windows共享目录【并不需要在windows上共享出该目录】给virtualbox虚拟机上的ubuntu:(在XWindows下操作)
1,在ubuntu上安装辅助工具:VirtualBox的设备/安装增强功能菜单,此时ubuntu中会自动mount光驱,运行辅助工具安装脚本,如果报下面的错误:

“The headers for the current running kernel were not found.”

则需要安装dkms,如下:

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
dkms是Dynamic Kernel Module Support的缩写,当有新的kernal安装的时候,它能让kernal的设备驱动自动的重新构建。

注意:如果在/media/sf_workspace/看不到共享出的内容,则也需要执行上面的语句。

2,在设置中共享一个windows目录出来,选择自动mount
3,登录ubuntu后,注意只能通过root账户访问这个共享目录


ubuntu开启root账户

ubuntu默认安装时,并没有给root账户设置密码,即没有开启root帐户。要开启root帐号,只需要为其设置一个密码即可:sudo passwd root。注意这样的root账户只能在命令行下使用。


ubuntu默认以字符界面启动
1,sudo vi /etc/default/grub,把GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"改成GRUB_CMDLINE_LINUX_DEFAULT="text"
2,sudo update-grub

3,sudo reboot


安装protocolbuffer,需要先安装autoconf



原创粉丝点击