howto disable laptop touchpad, trackpoint, power button and more

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 […]

By |June 4th, 2013|Hardware, Window manager|Comments Off on howto disable laptop touchpad, trackpoint, power button and more

Disable .pdf DRM write protection on ubuntu linux

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 […]

By |May 19th, 2013|Desktop applications|Comments Off on Disable .pdf DRM write protection on ubuntu linux

Setting the keyboard layout for the x-server or a terminal

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 […]

By |May 14th, 2013|Window manager|Comments Off on Setting the keyboard layout for the x-server or a terminal

changing or adding cryptsetup LUKS password or keyfile

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
WARNING!
========
This will overwrite data on crypt_file.img irrevocably.

Are […]

By |December 18th, 2012|Hardware, Linux distributions|Comments Off on changing or adding cryptsetup LUKS password or keyfile

Beeping high pitch sound during times of idle CPU on lenovo thinkpads

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 […]

By |December 12th, 2012|Hardware|Comments Off on Beeping high pitch sound during times of idle CPU on lenovo thinkpads

Howto move xmpp account buddies to a new account

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 […]

By |November 12th, 2012|Unsorted|3 Comments

Basic check if your ruby on rails application will run in production environment

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 […]

By |November 12th, 2012|Ruby on Rails|1 Comment

cloning debian / ubuntu apt packages to new hardware installation

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 […]

By |November 12th, 2012|Linux distributions|2 Comments

Using :path in Gemfile to set the path to a local .gem

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 […]

By |November 12th, 2012|Ruby on Rails|1 Comment

Reset mysql root or user password

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 […]

By |November 8th, 2012|MySQL|6 Comments