To convert a UNIX datetime value to date/time string in OpenOffice Calc or Excel use this formula (assumes your datetime stamp is in the A1 cell of the current spreadsheet): =A1/86400+DATEVALUE(“1/1/1970”) If you want to test the above you may use the following simple C program: ======= #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> […]
Tips and tricks
Lost window decorations in XFCE!
Yep, that happens from time to time – you start XFCE and you notice that all the window decorations are lost and your windows look like this: Luckily fixing this is pretty easy. To get back your window decorations simply delete all the files in ~/.cache/sessions! 🙂 There is also directories in there – do […]
Deleting print jobs in Linux (…and other printer problems…)
The command to remove a stuck print job in Linux (CUPS): $ lprm =============== To list HP printers visible across the network: $ hp-probe =============== HP_LaserJet_P2055dn Paused – “/usr/lib/cups/backend/hp failed” SOLUTION: Printer state must be set to “Enabled” # sudo system-config-printer
How-to check my Linux distro (not kernel!) version
To check your Linux distribution version (i.e. release)… —————————- On Ubuntu/Debian: cat /etc/lsb-release or cat /etc/debian_version —————————- On RedHat/Fedora: $ cat /etc/fedora-release —————————- On Slackware: cat /etc/slackware-version —————————-
Linux clock shows invalid time (UTC vs Localtime problem)
In a Linux multi-boot system it often happens that one distro shows correct system time and another does not. The problem is in how the startup scripts interpret the hardware (BIOS) clock when setting the OS time (the so called System Clock). If you want to learn more about this (and fix this problem PROPERLY!) […]
How to write an ISO image with XCDRoast…
It may sound like a dumb question, since X-CD-Roast is a GUI tool for writing files and images, but it’s logic is so user-unfriendly and unnatural that in reality it’s not at all simple to create a CD or DVD from ISO using this app. Ok, so how do you write an ISO image with […]
Help! Unable to automount my usb flash disk!
PROBLEM: On certain Linux distributions removable media (USB flash drives, CD’s,…) are auto-mounted by default and all users can read and write to them (if media is writeable of course). On others, inserting a removeable media results in an error message similar to Failed to mount “200GB Volume”, e.g. an error message from your file-manager […]
Help I can’t write to my windows disk/partition from linux!
There may be several possible causes why one would not be able to access their Windows hard disk or windows partition. If we assume that obvious human errors are out of the question (e.g. permissions errors due user not having write permissions to the directory of the mount or user not specifying the ‘-o w’ […]
How to make ‘man’ or ‘less’ paged text not disappear from screen after exit?
Problem: Depending on your Linux distribution, the text displayed by the ‘man’ command (or any other text piped into ‘less’ for that matter) may stay on your screen upon exit from man/less or be cleared from your screen upon exit. Many people find it useful to have the man page text stay on the screen, […]