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
IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes. IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble.Final Year Projects for CSE
DeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining .
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai
The Angular Training covers a wide range of topics including Angular Directives, Angular Services, and Angular programmability.Angular Training
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
Great collection and thanks for sharing this info with us. Waiting for more like this.
ReplyDeleteTally course in Chennai
Tally classes in Chennai
Tally Training institute in Chennai
Tally Training in Chennai
Web Designing course in Chennai
ui ux design course in Chennai
PHP Training Institute in Chennai
Tally Course in Adyar
Tally Training in Vadapalani
Tally Course in Thiruvanmiyur
Such a shame VMware Tools couldn't work properly by default
ReplyDeletevmware backups
Esay to follow steps for an effective vmware backups , thanks!
ReplyDelete
ReplyDeleteThis content of information has
helped me a lot. It is very well explained and easy to understand.
seo training classes
seo training course
seo training institute in chennai
seo training institutes
seo courses in chennai
seo institutes in chennai
seo classes in chennai
seo training center in chennai
ReplyDeleteYou write this post very carefully I think, which is easily understandable to me. Not only this, but another post is also good. As a newbie, this info is really helpful for me. Thanks to you.
Tally ERP 9 Training
tally classes
Tally Training institute in Chennai
Tally course in Chennai
Nice blog, it’s so knowledgeable, informative, and good looking site. I appreciate your hard work. Good job. Thank you for this wonderful sharing with us. Keep Sharing.
ReplyDeleteDigital Marketing Course In Kolkata
Web Design Course In Kolkata
online 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/
ReplyDeletePositive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. SEO Company Vancouver
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ỹ