Symptom:
– Your default File Manager is e.g. Thunar but Firefox uses Nautilus when saving files which is driving you bananas.
Solution (for XFCE):
1. Firstly make sure that your default Applilcation for that particular mime type (in this case it is the ‘inode/directory’ mime type) is actually setup properly. Open the “Preferred […]
Old way:
Examine list of DNS servers in /etc/resolv.conf:
$ cat /etc/resolv.conf
– – –
New way:
May not work on newer Linuxes since resolving may be setup via (not only DNS, but also) various other services: DDNS, LDAP, Avahi, Bonjour, ZeroConf and God knows what else.
So…
To check up […]
To make your web-page fonts increase/decrease as the browser window dimensions change use viewport-based values instead of %, ems, pxs or pts.
1vw = 1% of viewport width
1vh = 1% of viewport height
1vmax = 1vw or 1vh, whichever is larger
1vmin = 1vw or 1vh, whichever is smaller
Example:
[…]
Summary:
To find the PID of a running UNIX/XWindow process:
$ xprop _NET_WM_PID
If that fails:
$ ps -ww -fp <PID>
$ pwdx <PID>
Detailed explanation:
So How can you find the PID (not Window ID!) of a running UNIX/XWindow process?
Method 1 (simple):
$ xprop […]
Being able to see seconds in the UNIX ‘ls’ command is particularly useful for comparing/viewing recently created files, because by default ‘ls -l’ will simply show “Today” in the date/time field for such files.
Here’s how you can make ‘ls’ show also the seconds (and not only seconds but also microseconds, for that matter… […]
So you got this brand new (or hopelessly old.. does not really matter for the purposes of this exercise, hehe) computer… It’s got some USB ports, but who knows what they are (USB 3.0? 2.0? 1.0?) ?
How can you check what kind of USB ports does your Linux box have? Alternatively – how can […]
How can you remove a mounted USB stick or USB HDD from the list of mounted devices?
PROBLEM
We have all done it – in a hurry you unplug a USB drive which was mounted in your Linux system without properly unmounting it and then it sits there in your list of mounts and you […]
Use imagemagick – this is exactly what it was designed for! 🙂
For example:
– to resize all .jpeg files in the current directory to be 320 pixels wide, preserving the aspect ration, do this:
 $ convert ‘*.jpeg[320x]’ resized%03d.jpeg
– to shrink all .jpg files in the current directory […]
Getting DB_RUNRECOVERY error from yum/rpm, what can you do to fix it? The error messages look something like this:
$ sudo yum install google-chrome-stable error: rpmdb: Thread/process 9662/3077695168 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 – (-30974) […]
This is quite useful… putting it here coz I keep forgetting the syntax 🙂
To use another cell as part of your comparison criteria in Open Office Calc functions like COUNTIF or SUMIF:
=COUNTIF(A1:A10; “<“&B1)
THe above will count how many values in the range A1..A10 are less than the value contained in B1. So […]
-
Categories
- Android Development
- Bash
- C programming
- dpkg/apt-get
- drupal
- Emacs
- Git
- Java
- Linux administration
- Linux device drivers
- Linux Gaming
- Linux kernel
- Linux Networking
- Linux on Windows
- Linux printing
- Linux sound and ALSA
- Package Managers
- Programming
- RPM
- Shell and environment
- Tips and tricks
- Uncategorized
- VirtualBox
- Virtualization
- web development
- wine
- WMaker
- Wordpress Tips
- X Window System
- XFCE
-
Articles
- August 2020
- August 2019
- May 2019
- July 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- December 2015
- November 2015
- September 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- October 2014
- February 2014
- January 2014
- November 2013
- October 2013
- June 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
-
Calendar
June 2023 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 -
Meta
Cloud
audio bash boot compile C programming cups drupal emacs etc Fedora git grep how to httpd init kernel libc linux linux partition localtime login make mount mp3 mysql networking oracle package managers password phpMyAdmin programming rpm shell sql vbox version control system virtual box vm web server wordpress www xargs xfce xwin yum