pc.jpg

STOP spending your hard earn money by having someone else fix your Computer. Do it yourself and save a bundle of cash.
Click for more info --> Windows PC Troubleshooting Unleashed!

How To Automatically Start VMWare Tools In Ubuntu And Kubuntu

ubuntulogo.jpgIf you installed VMWare tools in Ubuntu or Kubuntu guests running on VMWare hosts, you probably noticed that VMWare tools does not, by default start up automamtically during boot. To start VMWare tools, you must run vmware-toolbox & manually at a command prompt. While this is good way of starting up VMWare tools, a better way is to have it start up automatically on Unbuntu or Kbuntu.

 

To start VMWare tools automatically from Kubuntu, we'll need to add a start up script to ~/.kde/Autostart directory (hidden), located in your home directory.

Logon to kubuntu and open a Terminal window by clicking on Kmenu \ Utilities \ Terminal from the panel. Next enter the following two commands:

echo "/usr/bin/vmware-toolbox - -minimize" > ~/.kde/Autostart/vmware-toolbox.sh
(NOTE: there is no space between hyphens before minimize)

and press enter. Then enter the following command:

chmod +x ~/.kde/Autostart/vmware-toolbox.sh

and press enter. Now the next time you restart, VMWare tools will start and minimize to the panel.

To start VMWare tools from Gnome, logon, then click System \ Preferences \ Sessions from the panel.

ubuntuvmwaretools1.png

 

Click on the New button and in the New Startup Program window, enter

VMWare Tools

in the Name field, and

/usr/bin/vmware-toolbox - -minimize
(NOTE: there is no space between hyphens before minimize)

in the Command: field. Click OK to save.

ubuntuvmwaretools2a.png

 

Next time you restart Ubuntu, VMWare tools will auto start and minimize to the panel. No more starting up manually!

Filed under Ubuntu And Linux Tips, VMware Tips by

Comment

Comments on How To Automatically Start VMWare Tools In Ubuntu And Kubuntu »

August 6, 2007

wahyu budhi nugroho @ 5:30 am

oke thx, its usefull to.
I ever use it before but not run, but now its run well… thx.

August 16, 2007

joma @ 6:40 pm

thx,
remark: the option should read: –minimize not -minimize

Question: Is it necessary to start the toolbox at startup? (i.e. is starting up the toolbox enabling some functionality?)

Watching The Net @ 8:36 pm

@joma

I would recommend starting VMWare toolbox at startup since it provides improved video performance, mouse synchronization with the host OS (no need to release the mouse to go back to the host), and allows you to copy and paste between host and guest.

August 25, 2007

marlinman @ 10:38 pm

@joma, WTN:

thx folks… just in case anyone knows less about *nix than myself, the minimize option is preceded by TWO hyphens (displayed on this page as one long hyphen in my browser)

September 2, 2007

Watching The Net @ 11:06 pm

@joma

Thanks for catching the hyphen (before minimize). For some reason Firefox wants to display it as one long hyphen. I have edited the article and added a note.

October 9, 2007

bac @ 10:44 am

Hi!

There's any way to execute VMWare Tools in background? I mean without appearing in any panel.

Thank you!
bac

February 4, 2008

lucvdv @ 8:02 am

You don't need to start vmware-toolbox, a better choice is to use the command

/usr/bin/vmware-user &

This is per the vmware 6.0.2 docs. It starts the vmware user process, which takes care of mouse handling etc. in the background without any visual window.

If you want to change any settings, you can still start vmware-toolbox manually.
I suppose that vmware-toolbox starts vmware-user as well, if it isn't running yet.

Leave a Comment

Subscribe without commenting