Doorgaan naar hoofdcontent

Add Custom Keyboard to Linux console

Step 1:
su
cp /usr/share/kbd/keymaps/i386/dvorak/dvorak-programmer.map.gz .
chmod 777 dvorak-programmer.map.gz
mv  dvorak-programmer.map.gz  dvorak-wim.map.gz 

gzip -d dvorak-wim.map.gz

Step 2:
edit the file and change row 5
! --------------------------------------------------------------------------
! Row 5
! --------------------------------------------------------------------------
keycode  42 = Shift
keycode  44 = z
keycode  45 = x
keycode  46 = c
keycode  47 = v
keycode  48 = j
keycode  49 = b
keycode  50 = m
keycode  51 = w
keycode  52 = q
keycode  53 = apostrophe     quotedbl
keycode  54 = Shift

And

keycode  23 = k

Save it!

gzip dvorak-wim.map
cp dvorak-wim.map /usr/share/kbd/keymaps/i386/dvorak/dvorak-wim.map.gz
chmod 644  /usr/share/kbd/keymaps/i386/dvorak/dvorak-wim.map.gz



To use it, type
loadkeys dvorak-wim


To make it permanent
edit /etc/vconsole.conf

change or add: KEYMAP=dvorak-wim


Reacties

Populaire posts van deze blog

Add Costum Keyboard Layout to XFCE

How to create this keyboard layout for Xfce : Works also on Mate!!!!   It is a lightly modified version of the dvorak programmers layout. I changed the lower left row. So you can easily undo, cut, copy & paste         with your left hand and keep the other hand on your mouse. Step 1. Edit file: /usr/share/X11/xkb/symbols/us Insert this snippit: // programmer Dvorak wim's style, by Wim Stockman <wim.stockman at gmail dot com> // Main features: Numbers are in shift position (like French), symbols have been // switch position of z x c v to the bottom left for easy shortcut handling partial alphanumeric_keys xkb_symbols "dvp-wim" { include "us(dvorak)" name[Group1] = "English (programmer Dvorak Wims style ZXCV)"; // Unmodified Shift AltGr Shift+AltGr // symbols row, left side key <TLDE> { [ dollar, asciitilde, dead_tilde ] }; key <AE01> { [ ampersand, percent ] }; key <AE02> { [ bracketleft, 7, currency ],...

Passing e-mails to a shell script [1/2] with Postfix E-Mail Server to process attachments

1] Passing e-mails to a shell script opens up a brave new world of possibilities If you have a Postfix mail server setup and running as MTA(Mail Transfer Agent), or even as a LDA (Local Delivery Agent) it is really easy to pipe a mail to your shell script. you open up the aliases file mostly it is in /etc/aliases: mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: user1 www: user1 ftp: user1 abuse: root   So you see you have a bunch of aliases the first part is the email address you sent to e.g : www@yourdomain.org after the ":" is where the mail gets delivered so in our example the mail will be delivered to user1 if you want to redirect to your script change line 8 of the aliases file into: www : |"/home/user1/myscript.sh/" user1 this will pipe all emails addressed to  "www"  to your script 2] Use Munpack to save the attachments of e-mails One great use of the redirection is to ex...

Working with pdf files on the command line

PDFTK great tool for rearranging your pdf file. Howto join multiple pdf's together: e.g. you want to join the files: BRO_001.pdf BRO_002.pdf BRO_003.pdf the command is 'cat' from concatenate pdftk BRO_001.pdf BRO_002.pdf BRO_003.pdf cat output Joined.pdf Or even faster pdftk BRO_00* cat output Joined.pdf the cat command accept page ranges 1-end  (the whole document) 6-4-2  pages 6 4 2 in that order even odd r1-r2  last page and second last page