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