Linux Programmer | RHCE | RHCSA

Search This Blog

Tuesday 6 March 2018

VMware client installation & USB Redirection (Ubuntu 14.04)

VMware Horizon client for linux installtion process
VMware Horizon Clients for Windows, Mac, iOS, Linux, and Android allow you to connect to your VMware Horizon virtual desktop from your device of choice giving you on-the-go access from any location.

You can Download VMware client for different versions of OS from here.
we are going to install VMware for 32 bit linux.
1. After Downloading you have .bundle file 
assign full permission to this file,
$ chmod 0777 /home/$user/VMware-Horizon-Client-4.7.0-7395152.x86.bundle
Execute this file,
$ sudo /home/$user//VMware-Horizon-Client-4.7.0-7395152.x86.bundle
You got the VMware installer, Install the software.
After installation press on scan button.
2. Open command prompt as normal user (not root)
$ vmware-view
 (Now, VMware Desktop Application will open, you can create connections and connect with the server from there.)


USB/Printers redirection with VMware Horizon client
Performing this procedure is usually not necessary if you have Horizon Client 3.4 or later because you can specify during client installation that the installer should register and start installed services after installation. When the user launches the client, a configuration file is automatically created and placed in the user's home directory.
Procedure
  1. Open a Terminal window and enter a command to create a folder named .thnuclnt in the home directory.
    $ mkdir ~/.thnuclnt/
    Note:
    Because this file is created in a specific user's home directory, the file needs to be created for each user who will be using the Linux client system.
  2. Use a text editor to create a configuration file called thnuclnt.conf in the ~/.thnuclnt folder, and add the following text to the file:
       autoupdate = 15
       automap = true
       autoid = 0
       updatecount = 1
       editcount = 0
       
       connector svc {
          protocol = listen
          interface = /home/user/.thnuclnt/svc
          setdefault = true
       }
    
    In this text, substitute the user name for user.
  3. Save and close the file.
  4. Enter a command to start the thnuclnt process.
    $ thnuclnt -fg
  5. Enter the commands to set the environment variables for the virtual printing components.
    $ export TPCLIENTADDR=/home/user/.thnuclnt/svc
    $ export THNURDPIMG=/usr/bin/thnurdp
    
  6. To launch Horizon Client, start the vmware-view process.
    The printers that normally appear in the client are now also redirected so that they appear in the Print dialog boxes in your remote desktop.
  7. (Optional) If you ever want to disable the virtual printing feature, use the following steps:
    1. Enter a command to stop the thnuclnt process.
      $ killall thnuclnt
    2. Disconnect from the remote desktop and reconnect to the desktop.
    The printers will no longer be redirected.

If Still Printers are not redirected then,

Note : create the config file if not exists and add the below settings.

$ nano /home/user/.vmware/config
viewusb.AllowAutoDeviceSpiltting = "true"

$ nano /etc/vmware/config
viewusb.AllowAutoDeviceSpiltting = "true"


Then, Remove VMware client(Without removing existing settings)

you can visit here for more,

to uninstall vmware-client

$ vmware-installer -h

Then, Again Reinstall the Vmwareclient with .bundle file .

And it works !!!



Leave reply, if it works for you.

No comments:

Post a Comment

SSH not working with password after upgrade ubuntu 22.04 or above

In recent upgrade of ubuntu 22.04 and above we are not able to login server with SSH password. but when we try to login with key then it all...