Showing posts with label Ubuntu Linux. Show all posts
Showing posts with label Ubuntu Linux. Show all posts

Wednesday, July 15, 2015

Fix Inverted Camera on Ubuntu Linux

I am running Lucid Lynx 64 bit OS version on my Asus i3 K52J Series laptop. Like everyone else, I like using Skype video/chat as well as Cheese camera for taking pictures and videos. Not until then when I had a problem using it.


NOTE: Not advisable to do "export LIBV4LCONTROL_FLAGS=3", LIBV4LCONTROL_FLAGS is for debugging purposes only. - by Hans De Goede(libv4l author and maintainer)

I was so disappointed that my camera display was inverted! I tried reading several blogs and posting comments on Ubuntu forum threads online for days and but none of their solutions helped solved my problem. It could have been easily solved if only there was an option to invert my camera on Video4Linux Device Preference. Sadly, there was not! So, I decided to find a way to flip the camera by looking into export options on gtk-v4l(Video4Linux). 

Saturday, June 13, 2015

Encrypt and decrypt your files in Ubuntu using ccrypt

ccrypt is a utility for encrypting and decrypting files and streams. It was based on Rijndael cipher, which was chosen candidate by U.S. government's for Advance Encryption Standard. This cipher is believed to provide a very strong security.

1. Install CCrypt from repo

sudo apt-get install ccrypt

2. To encrypt a file, use one of the following command,

ccrypt -e file_name or ccencrypt file_name

3. It will prompt you for Encryption Phrase aka Password, enter it. for example,

ccrypt -e sample.text 
Enter encryption key: your_key 
Enter encryption key: (repeat) your_key 

Note: Don't forget the encryption phrase, there is no way to get back the original file without it.