linux命令列下安裝VM TOOLS

來源:互聯網
上載者:User
以ROOT帳戶登入LINUX,VM菜單:VM--安裝VMware Tools,開啟終端:
注意:在linux的各種命令列下輸入"命令"或"軟體名"一定要注意大小寫!!!

[root@rd01 ~]# cd /mnt/cdrom
[root@rd01 ~]# cd /cdrom
[root@rd01 ~]# ls

VMwareTools-5.5.1-19175.rpm VMwareTools-5.5.1-19175.tar.gz
[root@rd01 ~]# rpm -ivh VMwareTools-5.5.1-19175.i386.rpm
[root@rd01 ~]# cp VMwareTools-5.5.1-19175.tar.gz /tmp
[root@rd01 ~]# cd /tmp
[root@rd01 ~]# tar zxpf VMwareTools-5.5.1-19175.tar.gz
[root@rd01 ~]# cd vmware-tools-distrib
[root@rd01 vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.

Installing the content of the package.

# 安裝過程的畫面,全部使用預設值,一直按 Enter 就對了

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

Thepath "/usr/lib/vmware-tools" does not exist currently. This programisgoingto create it, including needed parent directories. Is thiswhatyou want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

Thepath "/usr/share/doc/vmware-tools" does not exist currently.Thisprogram isgoing to create it, including needed parent directories.Isthis what you want?
[yes]

The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]

Stopping VMware Tools services in the virtual machine:

Guest operating system daemon: [ 確定 ]
Trying to find a suitable vmhgfs module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

pcnet32 30153 0
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

Detected X.org version 6.8.

關閉控制台滑鼠服務: [ 確定 ]
啟動控制台滑鼠服務: [ 確定 ]

Enjoy,

--the VMware team

[root@rd01 vmware-tools-distrib]# shutdown -r now

# 修改完成之後,重新啟動電腦,讓 VMware Tools 生效

 

 

再接下來設定共用就是在VM裡設定了,VM→Setting→Options→SharedFolders→Add→選定要共用的檔案夾並給這個檔案夾命名→OK,vmware會把這個檔案夾自動mount到/mnt/hgfs目錄下,OK搞定收工!

 

 

關於這個問題,偶有一點小發現,如下:

1.這個共用與windows的server服務開否沒有關係,也就是說與我們常見的windows與windows共用是不同的。

2.共用與內建防火牆允許共用這個有關。我開了內建防火牆,也就是在本地串連那裡設定啟用了共用這一項,否則會有什麼後果,有待我具體確定,剛才就是我把這個沒搞hgfs裡面什麼也沒有,內建防火牆允許共用這項之後我重啟了一次linux,現在有了,HOHO!

3.現在是兩個檔案夾拖檔案的時候,可以從windows拖到Linux系統,但是把檔案從linux拖到windows的時候顯示錯誤提示:目標位置沒有足夠的空間。NND!我在VM裡設定了可寫,設定了windows目錄可寫入權限,賦給everyone所有許可權,賦給vmware user也是所有許可權,依然出現這樣的問題,很是鬱悶。最後我試著在/mnt/hgfs共用出來的檔案夾裡可以建立檔案夾,那就表明可以寫啊,有戲。然後我用cp命令把linux的東東拷到windows目錄去了,yeah!這可能是一個Bug吧,cp可以,拖動複製就報錯,我靠!

4.在終端裡對漢字的支援,還是不太好,windows的檔案帶有漢字的在linux裡顯示的。。。。。。。。。亂78糟,所以如果想把linux的東東CP到windows裡最好取名的時候不帶漢字。另外比如LINUX下帶漢字的記事本(內容有漢字)cp到windows用記事本開啟的話,格式是沒辦法了,LINUX下的換行在windows裡都用一個黑框代替了,這樣子可以用寫字板看就會恢複原來的格式,可是漢字呢,慘了!兩者要是都能恢複就好了。。。。。。。。。:)

5.這個共用暫時用用,以後換換Samba或者FTP玩玩:)

 

 

轉載:http://hi.baidu.com/w_dalu/blog/item/09c374c397aa3653b219a8fd.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.