How to remap Capslock as Ctrl in XFCE4

Run this command in terminal

/usr/bin/setxkbmap -option 'ctrl:nocaps'

If you want to swap position of Capslock and Ctrl, use this command:

/usr/bin/setxkbmap -option 'ctrl:swapcaps'

You can add this to Session and Startup –> Application Startup (Choose add new and paste above command to the command textbox) in setting of XFCE4 so that this command will be executed in system’s start.

How to set timezone for Fedora 19?

Recently, I’ve install Fedora 19 but the timezone was wrong. I’ve found a lot but cannot find a intuitive tool to set the timezone. After googling, I’ve come up with timedatectl, a command to work with time and date.
This command lists out all timezones:

timedatectl list-timezones

This command will set timezone to Asia/Tokyo

timedatectl set-timezone Asia/Tokyo

Use this command to check timezone status

timedatectl status

Check ink level in Epson with Gutenprint driver

sudo su
apt-get update
apt-get install escputil

modprobe usblp

(to see if that worked ok)(my example)
lsmod | grep usblp
usblp                  17799  0

escputil --raw-device=/dev/usb/lp0 --ink-level
Escputil version 5.2.5, Copyright (C) 2000-2006 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

           Ink color       Percent remaining
                Cyan                      35
              Yellow                      31
             Magenta                      41
               Black                      33

rmmod usblp

lsmod | grep usblp (nil result)

How to know which package the missing file belongs to (when installing Gutenprint)

Recently, I’ve tried to install Gutenprint driver on my Xubuntu. The make processing threw some error said that there is no such file like cups/raster.h

So after googling, I’ve installed the apt-file and use it to know which package I should install to get the cups/raster.h file

sudo apt-get install apt-file

And search:

apt-file search cups/raster.h