Tips

disable remap a keyboard key in Linux

FAQ: How to disable/remap a keyboard key in Linux?

Q: How can I disable one or several keys on my laptop keyboard in Linux? When I press the DELETE key, it gets stuck and deletes everything 🙂

A: No problem! You can use the following command to remap or disable any key of your keyboard:

xmodmap -e 'keycode <value>=<action>'

For example, you could run the following command to disable your DELETE key:

xmodmap -e 'keycode 107='

How to get the correct keycode

You can get the keycode that corresponds to a specific keyboard button in one of two ways.

The first method is by using the simple command xev. xev opens a window and then monitors “events” such as keystrokes. It is suitable when you are running a GUI.

xev

The second method, which can be run with only the console, is showkey. This command will monitor for keystrokes for 10 seconds, or until a SIGTERM signal is received.

List of all keycodes

The full list of available keycodes and actions assigned to them on UK keyboard is below…
Read More »FAQ: How to disable/remap a keyboard key in Linux?

command line

Wget with Proxy

Wget is an elegant command line tool for downloading files over HTTP, HTTPs or FTP. Many of us are using it to just to get or reget files (reget means continue downloading of partially-downloaded file), save web pages with all contents (known as recursive download).… Read More »Wget with Proxy

Sendmail for virtual users with procmail, spamassassin and dovecot

Today I’d like to describe setup of sendmail that allows to establish receiving of e-mails for certain domain and sort incoming messages between virtual users. Those users must be able to fetch received e-mails via POP3 or IMAP protocols with or without TLS encryption. The… Read More »Sendmail for virtual users with procmail, spamassassin and dovecot

Ubuntu (featured logo)

youtube-dl: download youtube videos in Ubuntu using command line

If you use Ubuntu (or other Linux distribution) and you wish to download some video from youtube.com into .flv file you can try using youtube-dl command line utility. It just downloads videos without any online applications, converters or etc. Type the following command in terminal… Read More »youtube-dl: download youtube videos in Ubuntu using command line