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
Month: May 2012
Make emacs grep/grep-find ignore .svn directories
Emacs grep and grep-find command used to work great for me until I started working with SVN and all those .svn directories started popping up in my emacs grep searches… So how can we make the emacs grep-find command ignore all the .svn directories? Being mostly a “git” guy, and having been recently introduced to […]
How to uninstall the old kernels in Ubuntu (and grub)
How can we remove the unused linux kernels and at the same time have our boot configuration (grub’s entries in the grub cfg menu) updated? First we want to list all the kernel-related packages, like linux-image and linux-headers, linux-generic, etc: $ dpkg -l linux-* On my 10.04 Ubuntu system the above command results in the […]
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 —————————-