Tuesday, August 25, 2015

Convert Unix Time

If you happen to be working on a system where you want to convert unix time to human readable format, use this:

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'

Its a perl command that when applied to a .log file allows you to convert unix time to a format that is readable to the user.  You can pretty much use this with other small shell tools to do wonderful things.

Sunday, August 16, 2015

Nouveau causing the Linux Mint System to Freeze

Ever had an experience that suddenly your Linux system freezes for no apparent reason?  This is manifested, when you tried to fire-up chrome (at least in my case) and doing some check on dmesg / syslog points to this:













The problem here lies with the video drivers loaded to the kernel is having a (NOT going to discuss the internals here) hard time figuring out how to work with the hardware of your system.  It can be very painful especially if you are not sure where to look at.
 
The SOLUTION:

sudo apt-get --purge remove xserver-xorg-video-nouveau

and then do:

sudo ldconfig

Afterwards reboot the system.