Thursday, November 23, 2017

VMware workstation 14 “not enough physical memory available to start this VM”

If you've just upgraded your linux distribution and you get the following error message when trying to start a VM using Vmware workstation 14 player
“not enough physical memory available to start this VM”

Do the following to patch your Vmware workstation player to work with the latest Linux Kernel


sudo -i
cd /tmp
cp /usr/lib/vmware/modules/source/vmmon.tar .
tar xf vmmon.tar
rm vmmon.tar
wget https://raw.githubusercontent.com/mkubecek/vmware-host-modules/fadedd9c8a4dd23f74da2b448572df95666dfe12/vmmon-only/linux/hostif.c
mv -f hostif.c vmmon-only/linux/hostif.c 
tar cf vmmon.tar vmmon-only
rm -fr vmmon-only
mv -f vmmon.tar /usr/lib/vmware/modules/source/vmmon.tar 
vmware-modconfig --console --install-all


your player should now work properly.


Monday, October 30, 2017

Find out how many files are open by a specific user

lsof Command


# lsof -u account | wc -l
Displays the total number of open file handles in the specified account.

# lsof -u account | grep pid | wc -l
or
# lsof -p pid
Displays the total number of open files in the specified account name for the specified pid.



Monday, August 7, 2017

Uninstall reinstall VMWare player Fedora

This is sometimes required after a Kernel upgrade and the built in VMware player models update doesn't work.
simply uninstalling and reinstalling vmwareplayer makes it usable again.

vmware-installer -u vmware-player  


download latest VMware-player bundle

make executable

./VMware-Player-12.5.7-5813279.x86_64.bundle


vmwareplayer should now work again.

Monday, July 24, 2017

Quickly Zip and encrypt file/folder/sub-folders recursively with password

zip -er filename.zip  

-e = encrypt
-r = recursively

eg

zip -er documents.zip documents_folder

or

zip -er document.zip document.docx

will ask you for password before zipping

to zip without encryption simply


zip -r documents.zip documents_folder




Tuesday, May 9, 2017

Send an email from the terminal when job finishes

some_program.sh; echo "some_program.sh finished running" | mail -s "Job Status Update" username@gmail.com

This can also be used when a program is already running

some_program.sh

[Ctrl]  Z 

[1]+ Stopped some_program

fg ; echo "some_program.sh finished running" | mail -s "Job Status Update" username@gmail.com