VM下搭建UBuntu开发环境笔记

来源:互联网 发布:2016淘宝运营视频 编辑:程序博客网 时间:2024/06/04 23:51

Ubuntu10.04 VM中安装:

 

1、系统安装完毕,升级系统

2、在System =Preferences =》 IBus Preferences 加入中文输入法

3、获取root权限:键入sudo passwd

4、要是在/mnt/hgfs/找不到共享目录,在VM->Reinstall VMtools 重新安装VMtools,这时在ubuntu会自动加载其光盘,把压缩包拷贝到本地,解压,获取root权限,运行,一直按确认键,重启,OK

5ubuntu10 方向键打出ABCD和退格键没有用的解决办法:

修改/etc/vim/vimrc.tiny

1)、将set compatible 改为 set nocompatible

2)、加入一句:set backspace=2

6、ubuntu10 默认不安装g++sudo apt-get install g++

7、nfs服务器的搭建

1)、服务器端:sudo apt-get install portmap

              sudo apt-get install nfs-kernel-server

2)、客户端:sudo apt-get install nfs-common

3)、服务器端配置:sudo gedit /etc/exports 添加:

/nfsshare  192.168.1.*(rw,sync,no_root_squash)

   共享目录        允许IP

4)、服务器端启动:sudo /etc/init.d/portmap restart

                  sudo /etc/init.d/nfs-kernel-server restart

    服务器检查是否挂载:showmount -e

5)、 客户端(armlinux开发板):配置IP地址等网络信息

6)、挂载:mount -o nolock,tcp 192.168.188.226:/nfsshare /mnt

这里192.168.188.226:/nfsshare是服务器的IP和共享目录路径

/mnt 是客户端挂载的使用目录,最好为空

(sync代表数据会同步写入到内存与硬盘中

async则代表数据会先暂存于内存当中,而非直接写入硬盘

,开放客户端使用root身份来操作服务器的文件系统,那么开no_root_squash才行,root_squash不允许)

 

 

 

UBuntu12.04VM中安装

1、在VM9的版本中,安装完毕,再安装其自带的VMtool工具,找不到共享文件夹,不能实现与宿主机(win7)的共享功能。这时,把VM10WMtool工具包用U盘拷贝到UBuntu12中安装,可以实现共享功能.

2、接着安装g++什么的。

3、网络无法连接,找不到eth0设备,通过VM的设置里,删除网络设备,再加入网络设备,搞定。

failed to bring up eth0
0 0
原创粉丝点击