To disable the touchpad, trackpoint or touchscreen of a laptop, use the tool xinput to list the devices currently known to the X window system.
blu@aptenodytes:~$ xinput list
⎡ Virtual core pointer […]
PDF Files are sometimes delivered with write protection. You can configure okular to not obey them, or you can use the cli tool qpdf to disable DRM on the files completely.
Via a graphical user interface for single files
Install the pdf view- and editor tool “okular” and click:
Settings – Configure Okular – Obey DRM Limitations
For multiple […]
On a graphical desktop manager
If you are running an xserver, as in if you are using a graphical desktop manager like gnome, kde, xfce, awesome, xmonad, i3wm or whatever else, enter the following. On ubuntu, setxkbmap is included in the package “x11-xkb-utils”.
setxkbmap -layout de # for german layout
setxkbmap -layout us # for us layout
In a […]
Devices encrypted with luks support more than one passphrase. Here an example with a normal 5MB file. Just replace the “crypt_file.img” with /dev/sdX or whatever device you have encrypted.
user@host:~$ dd if=/dev/urandom bs=5M count=1 of=crypt_file.img
1+0 records in
1+0 records out
5242880 bytes (5.2 MB) copied, 0.507585 s, 10.3 MB/s
sudo cryptsetup luksFormat crypt_file.img
This will overwrite data on crypt_file.img irrevocably.
You might have noticed the beeping sound in recent thinkpads (my friends thinkpad T61 had this and my just bought x301 seems to have this too). That high pitch noise appears when your Thinkpad is idle, as in has “nothing” to do. I noticed it disappear when I moved the mouse for example. That is […]
Moving xmpp account contacts to a new account is possible on Linux with the pidgin plugin listhandler. This can be done with a graphical user interface, no command line usage is required. The pidgin plugin is also available via apt: `sudo apt-get install pidgin-plugin-pack`.
Install the package and exit pidgin via `Buddies` -> `Quit`. Start pidgin […]
You are wondering if your app will work out if you deploy it to production? Do the following on your local workstation to see if all it works out:
Edit the database.yml and make sure that you have sane credentials for the production blog for your local workstation. Make sure that you also use mysql (not […]
Using the following method to clone all installed packages to a new installation requires the new operating system to be the same as the original (as in debian 7 => debian 7). Apt-clone will also copy the /etc/apt/sources.list. If you did install software via for example dpkg -i skype_0.8.15.deb, the switch –with-dpkg-repack will try to […]
Here is how you can use gems in your gemfile by specifying the path to the file.
Setting the path to the plain gem that doesnt seem to work and you will get errors like:
The path `/path/to/paperclip` does not exist.
That is because the :path thing actually wants you to point it to a folder where […]
Reset the mysql root user password
Stop the mysql server:
sudo service mysql stop
Start mysql in save mode and make it skip evaluating the grant tables (thats where password hashes are stored):
/usr/bin/mysqld_safe –skip-grant-tables &
Now you can login as root without a password, using the database mysql:
mysql -u root mysql
I prefer to generate passwords via the […]