Polskie znaki na klawiaturze UK w Ubuntu
Na podstawie opisu z http://www.doink.ch/an-x11-keyboard-layout-for-scholars-of-old-germanic/
Do zmiany plik:
/usr/share/X11/xkb/symbols.gb
Na końcu pliku trzeba dodać definicje klawiszy (sekcja “ukpl”).Gotowy pliczek można ściągnąć tutaj
oraz plik:
/usr/share/X11/xkb/rules/evdev.xml
w sekcji “uk” trzeba dodać na przykład za układem “colemark” kilka linijek xml’a jak poniżej:
<variant>
<configItem>
<name>ukpl</name>
<description>United Kingdom - PL</description>
</configItem>
</variant>
tutaj można przejrzeć gotowy plik i zobaczyć gdzie znajduje się ww sekcja
Testowane na Ubuntu 9.10 i 10.04.
backup MySQL
MySQL backup
Mysql dump …
(more…)
backup excercises
Couple of commands useful for backup.
Starring: immortal command tar and also dd, split, cat, openssl, ssh
and of course: gzip, echo, date, du, df
The post is mainly for myself because I realized, every time I’m starting write a backup script I’m always re-discovering the wheel again, searching in google and digging in man pages. Anyway I’ve tried to make the post more “reader friendly” not only for myself.
Check md5 sum
This script checking files integrity/changes in Linux filesystem by md5sum command. By default, a signatures file is stored on a floppy disk, but that parameter is configurable by changing “DEVICE” variable. During the first use, you must specify “init” parameter, to generate signatures base. To check/compare with database records specify “check” parameter.
(more…)
Jabber and Nagios in Debian
How to set up alerts via jabber protocol, generated by Nagios (quick descr.)
Install and configure nagios, make sure is running and sending alerts. Install jabber libraries for perl:
server:~# apt-get install libnet-jabber-perl
download and install jabber_alert.pl
server:~# cd /usr/bin
server:~# wget http://jabberd.jabberstudio.org/2/docs/tools/jabber_alert.pl
server:~# chmod 755 jaber_alert.pl