posts - 38, comments - 13, trackbacks - 0, articles - 0
  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

安装VirtualBox增强工具

Posted on 2009-11-17 15:18 大源 阅读(3041) 评论(0)  编辑 收藏 引用 所属分类: Linux
 1[root@localhost ~]# cd /media
 2[root@localhost media]# ls
 3VBOXADDITIONS_3.0.10_54097
 4[root@localhost media]# cd VBOXADDITIONS_3.0.10_54097/
 5[root@localhost VBOXADDITIONS_3.0.10_54097]# ls
 632Bit        VBoxLinuxAdditions-amd64.run    VBoxWindowsAdditions.exe
 764Bit        VBoxLinuxAdditions-x86.run      VBoxWindowsAdditions-x86.exe
 8AUTORUN.INF  VBoxSolarisAdditions.pkg
 9autorun.sh   VBoxWindowsAdditions-amd64.exe
10[root@localhost VBOXADDITIONS_3.0.10_54097]# cd VBoxLinuxAdditions-x86.run 
11bash: cd: VBoxLinuxAdditions-x86.run: 不是目录
12[root@localhost VBOXADDITIONS_3.0.10_54097]# cp /media/VBOXADDITIONS_3.0.10_54097/VBoxLinuxAdditions-x86.run /demo/
13cp:是否覆盖“/demo/VBoxLinuxAdditions-x86.run”? y
14[root@localhost VBOXADDITIONS_3.0.10_54097]# cd /demo
15[root@localhost demo]# ls
16ch1.txt   ch2.txt   ex03      first.sh~  sheller    VBoxLinuxAdditions-x86.run
17ch1.txt~  ch2.txt~  first.sh  second.sh  third_scp
18[root@localhost demo]# mkdir /mnt/share   创建挂载点
19[root@localhost demo]# mount -t vboxsf Share /mnt/share  挂载共享文件夹,其中Share为分配数据共享中设置的文件夹的别名
20[root@localhost demo]# cd /mnt/share/   进入共享文件夹[root@localhost share]# ls
21Qt4_error1.txt  Screenshot.png  Thumbs.db
22[root@localhost share]# 
23
24
下次登录的时候只需要挂载共享文件夹就可以,也就是输入以下命令:
mount -t vboxsf Share /mnt/share
只有注册用户登录后才能发表评论。