Fixing VMWARE tools on kali linux to enable copy paste properly - especially when you are doing OSCP
Hi Folks,
So if you are playing around with kali linux on a VM you might have faced the issue of getting the vmware tools work properly. Especially when you want to copy paste files and clipboard contents between guest and host. This is very annoying thing and took lot of my precious time when i was doing OSCP course. Here is how i fixed it.
I run a kali linux distro on vmware player which is recommended for doing the OSCP course. By default it has GNOME as the default GUI. I kind of hate it as it uses lot of resources and has all those stupid animations and stuff. I want something clean and precise when i am working, i am not into looks and too many features, just the bare minimum responsive system is always my favourite.
So I installed LXDE which is light weight GUI for linux. you can install it with following command
This will not make LXDE you default GUI, so if you reboot, you will need to choose LXDE from the menu while logging in. To make it default you can run the command
First of all, Kali Linux new versions comes with open vm tools pre installed, this should supposedly enable all functionalities but unfortunately it doesn't work just like that. So typically eveyone installs VMware tools on top of this.
To fix it properly first remove any additional libraries that you have installed, in my case its vmware tools. To uninstall it you have to issue the command
if you have virtualbox additions you can uninstall it by the something like this (based on version it may differ)
just make sure its all gone for good
Now uninstall open vm tools
Remove any residual files
Now that everything is properly gone. Do a restart to clean up everything.
Lets install open vm tools properly
Now open the file /etc/rc.local on a text editor and add following lines towards the end of file just before the exit 0 statement
Thats it. Now restart and you should have copy paste functionality working properly. In case drag and drop does not work, just right click copy and then paste it works everytime for me.
Enjoy. Please do provide your feedback.
So if you are playing around with kali linux on a VM you might have faced the issue of getting the vmware tools work properly. Especially when you want to copy paste files and clipboard contents between guest and host. This is very annoying thing and took lot of my precious time when i was doing OSCP course. Here is how i fixed it.
My Setup
I run a kali linux distro on vmware player which is recommended for doing the OSCP course. By default it has GNOME as the default GUI. I kind of hate it as it uses lot of resources and has all those stupid animations and stuff. I want something clean and precise when i am working, i am not into looks and too many features, just the bare minimum responsive system is always my favourite.
So I installed LXDE which is light weight GUI for linux. you can install it with following command
apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base
This will not make LXDE you default GUI, so if you reboot, you will need to choose LXDE from the menu while logging in. To make it default you can run the command
update-alternatives --config x-session-manager
Now you will be presented with a wizard like interface to choose default GUI, choose LXDE if you want to make it default GUI.First things First
First of all, Kali Linux new versions comes with open vm tools pre installed, this should supposedly enable all functionalities but unfortunately it doesn't work just like that. So typically eveyone installs VMware tools on top of this.
To fix it properly first remove any additional libraries that you have installed, in my case its vmware tools. To uninstall it you have to issue the command
/usr/bin/vmware-uninstall-tools.pl
if you have virtualbox additions you can uninstall it by the something like this (based on version it may differ)
/opt/VBoxGuestAdditions-5.0.16/uninstall.sh
just make sure its all gone for good
sudo aptitude purge virtualbox-guest-x11 virtualbox-dbg virtualbox-dkms
Now uninstall open vm tools
aptitude purge open-vm-tools open-vm-tools-desktop open-vm-tools-dkms
Remove any residual files
rm -rf /etc/vmware-tools/
Now that everything is properly gone. Do a restart to clean up everything.
Lets start
Lets install open vm tools properly
apt-get install open-vm-tools open-vm-tools-desktop fuse
Now open the file /etc/rc.local on a text editor and add following lines towards the end of file just before the exit 0 statement
sudo mkdir /var/run/vmblock-fuse
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse"
Now create a file /root/.config/autostart/copypaste-autostart.desktop with following contents
[Desktop Entry]
Type=Application
Name=copypaste start
Comment=Start copy paste and drag n drop for vm tools
Exec=/root/Desktop/OSCP/setup/cpaste.sh
OnlyShowIn=LXDE
Now create a file /root/Desktop/OSCP/setup/cpaste.sh (note: you can create in any location, just make sure to add that location on the previous step file contents for parameter Exec) with following contents
#!/bin/sh -e
sudo chmod u+s /usr/bin/vmware-user-suid-wrapper
vmware-user-suid-wrapper
Thats it. Now restart and you should have copy paste functionality working properly. In case drag and drop does not work, just right click copy and then paste it works everytime for me.
Enjoy. Please do provide your feedback.
Excellent post, thanks for this. I gathered lots of information from this and I am happy about it. Do share more updates.
ReplyDeleteUiPath Training in Chennai
RPA UiPath Training
Blue Prism Training in Chennai
Blue Prism Training Institute in Chennai
RPA Training in Chennai
RPA course in Chennai
RPA Training Institute in Chennai
RPA Training in Tambaram
Blue Prism Training in Anna Nagar
I wanted to thank for sharing this article and I have bookmarked this page to check out new stuff.
ReplyDeleteAWS Training in Chennai
AWS Training institute in Chennai
Best AWS Training in Chennai
VMware Training in Chennai
VMware course in Chennai
Azure Training in Chennai
Microsoft Azure Training in Chennai
DevOps Training in Anna Nagar
Such a shame VMware Tools couldn't work properly by default
ReplyDeletevmware backups
Esay to follow steps for an effective vmware backups , thanks!
ReplyDeleteonline Quran classes on Islam has given, and ensure the youngster numerous rights, and these ?rights are ?ensured by Islam to all kids, ?for example, the privilege to instruction, and charged guardians and moms and different guardians to train youngsters all that they need after adolescence learn Quran particularly Quran internet perusing? Go along with us now and welcome your loved ones both youthful and old and you will discover all that you need to learn here. https://patendo.com/cara-membuat-merek/
ReplyDeleteExcellent post. I was reviewing this blog continuously, and I am impressed! Extremely helpful information especially this page. Thank you and good luck. semrush pricing
ReplyDeleteI simply couldn't resist praising the way you play with words. This is a perfect example of a well-written blog post.
ReplyDeletevé máy bay đi thái lan giá rẻ 2020
từ việt nam bay sang singapore bao nhiêu tiếng
vé máy bay air asia đi malaysia
giá vé máy bay đi vương quốc anh
giá vé máy bay từ sà i gòn đi mỹ
I use only high quality materials - you can see them at: check over here
ReplyDeleteAdditionally, think about the closures of the sledge. There are torn finishes and adjusted closures. power tools
ReplyDeleteI just would like to give a huge thumbs up for the great info you have here on this post. Thanks for sharing with us. Are you looking for Escort Services in Ahmedabad and Call Girls in Ahmedabad
ReplyDeleteClick For More Information Escort Services in Ahmedabad
Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Software for writers
ReplyDeleteWould you be able to utilize the GUI to characterize boundaries and worldwide information for the experiments or would you say you are needed to compose code as you would on the off chance that you were trying physically? targonca szállÃtás Debrecen Europa-Road Kft.
ReplyDeleteI am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. Direct Response Copywriter
ReplyDeleteBlack Anti Static ESD Safe Foam is made from Low Density Polyethylene (LDPE) resins with anti static additive. Black Anti Static ESD Safe Foam are excellent for packaging fine surface finish 3C products and other high grade products. Visit our website anti static foam to learn more.
ReplyDeleteImpressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. Copywriting Services
ReplyDeleteSupplanting a cracked bath might be the initial step to a significant shower redesigning: since the tub must be supplanted at any rate, why not do the entire room? ix tools
ReplyDeleteclick this
ReplyDeleteclick this
click this
click this
click this
click this
click this
click this
click this
ReplyDeleteclick this
click this
click this
click this
click this
click this
click this
click this
click this
Nice piece of information! May I reference part of this on my blog if I post a backlink to this webpage? Thx. Linux Cloud course
ReplyDeleteDelta-8 tetrahydrocannabinol, also known as delta-8 THC, is a psychoactive substance found in the Cannabis sativa plant, of which marijuana and hhc vape cartridges
ReplyDeleteI read the above article and I got some different kind of information from your article about a mattress. It is a helpful article to enhance our knowledge for us. Thankful to you for sharing an article like this.Hire A Social Media Hacker
ReplyDeleteGreat job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Read more info about Hire A Professional Lottery Hacker in Usa. Thank you because you have been willing to share information with us.
ReplyDeleteGreat job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Read more info about building and termite inspection melbourne Thank you because you have been willing to share information with us.
ReplyDelete