`
hypercube1024
  • 浏览: 85292 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Sun VirtualBox安装Ubuntu后与宿主系统共享文件

阅读更多
1.安装好Ubuntu后点击 Sun VirtualBox 的 设备->安装增强功能
2.这个时候光驱中多了 VBOXADDITIONS_3 的光盘,进入光盘,运行autorun.sh
3.重启之后,点 控制->自动调整显示尺寸,这个时候ubuntu的分辨率已经可以随虚拟机窗口自动变化
4.在Sun VirtualBox上点 设备->分配数据空间,新建一个数据空间,固定数据空间是永久,还有就是临时的。
5.在gnome-terminal中运行命令sudo mount -t vboxsf my_dev /mnt/develop
其中my_dev是刚才新建的数据空间的名字 /mnt/develop 是挂在点的名字。

至此,虚拟机就可以和宿主系统共享文件了。

装好Ubuntu后还有很多设置工作了。
1)修改 /etc/apt/sources.list 软件源配置,sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak 备份一下,然后再sources.list里面填上163,sohu等几个国内的软件源,这样下载更新软件就比较快。以下是我的sources.list文件里面的内容
deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

修改好之后 sudo apt-get update 刷新一下即可

2)设置拼音输入法
9.10里面默认是iBus输入法,这个拼音输入实在是不好用,装回scim sudo apt-get install scim-chinese,输入中文就舒服多了。
3)设置vim
先在新立得软件管理器里面搜索vim,安装vim完整版,然后把我的vim配置文件.vimrc拷贝到~文件夹下面
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics