# HG changeset patch # User Oleksandr Gavenko # Date 1245867609 -10800 # Node ID 273697a58117c4037c27935a6b4edd552c50852a # Parent 71b552d3cd0b91c95a1d9c49d899505b3b9929db# Parent 3ae3569e80bb75f881265f82373defdf23d65169 Automated merge with file:///srv/hg/admin-doc diff -r 3ae3569e80bb -r 273697a58117 debian-apt.rst --- a/debian-apt.rst Wed Jun 24 21:20:03 2009 +0300 +++ b/debian-apt.rst Wed Jun 24 21:20:09 2009 +0300 @@ -26,3 +26,24 @@ deb http://www.backports.org/debian/ etch-backports main contrib non-free +* Getting new keys for packages. + + $ sudo apt-get update +... +W: There is no public key available for the following key IDs: +9AA38DCD55BE302B +W: GPG error: http://http.us.debian.org etch Release: The following signatures +couldn't be verified because the public key is not available: NO_PUBKEY +9AA38DCD55BE302B +... + + $ gpg --keyserver pgp.mit.edu --recv-key 9AA38DCD55BE302B \ +--keyserver-options http-proxy=http://user:pass@192.168.1.1:3128 +gpg: requesting key 55BE302B from hkp server pgp.mit.edu +gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) " imported +gpg: no ultimately trusted keys found +gpg: Total number processed: 1 +gpg: imported: 1 (RSA: 1) + + $ gpg --export 9AA38DCD55BE302B | sudo apt-key add - +OK diff -r 3ae3569e80bb -r 273697a58117 latex.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/latex.rst Wed Jun 24 21:20:09 2009 +0300 @@ -0,0 +1,12 @@ +-*- outline -*- + +* Compact slides for nice printing. + +Installing: + + $ sudo aptitude install pdfjam + +Using: + + $ pdfnup --nup "2x3" --offset ".25cm .25cm" --delta ".25cm .5cm" \ + --frame true --scale 0.9 slides.pdf diff -r 3ae3569e80bb -r 273697a58117 locale.rst --- a/locale.rst Wed Jun 24 21:20:03 2009 +0300 +++ b/locale.rst Wed Jun 24 21:20:09 2009 +0300 @@ -22,6 +22,10 @@ $ sudo apt-get install locales-all +**** Generate locales. + + $ sudo dpkg-reconfigure locales + * FreeBSD. ** How see current locale settings? diff -r 3ae3569e80bb -r 273697a58117 net.rst --- a/net.rst Wed Jun 24 21:20:03 2009 +0300 +++ b/net.rst Wed Jun 24 21:20:09 2009 +0300 @@ -20,6 +20,10 @@ $ sudo update-modules +Another way is adding to /etc/modprobe.d/blacklist.local lines + + blacklist ipv6 + You can safely wipe out any IPv6 reference in "/etc/hosts" and "/etc/network/interfaces". diff -r 3ae3569e80bb -r 273697a58117 terminal.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/terminal.rst Wed Jun 24 21:20:09 2009 +0300 @@ -0,0 +1,14 @@ +-*- outline -*- + +* X window pseudo terminal. + +** luit. + +Luit is a filter that can be run between an arbitrary application and a UTF-8 +terminal emulator. It will convert application output from the locale’s +encoding into UTF-8, and convert terminal input from UTF-8 into the locale’s +encoding. + +Example: + + $ luit -encoding ’ISO 8859-1’ emacs -nw diff -r 3ae3569e80bb -r 273697a58117 thunderbird.rst --- a/thunderbird.rst Wed Jun 24 21:20:03 2009 +0300 +++ b/thunderbird.rst Wed Jun 24 21:20:09 2009 +0300 @@ -34,7 +34,6 @@ * Customization. - These files do not exist by default, so you need to create it before you can start adding your preferences: @@ -54,3 +53,9 @@ ** user.js This is the additional preferences file for Thunderbird. + +** Make newsgroup names appear expanded, not abbreviated. + +The newsgroup server names appear abbreviated in the folder pane. To display +the full name, use the Config Editor to change the value of the preference +'mail.server.default.abbreviate' to 'false'. diff -r 3ae3569e80bb -r 273697a58117 virus.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/virus.rst Wed Jun 24 21:20:09 2009 +0300 @@ -0,0 +1,29 @@ +-*- mode: outline; coding: utf-8 -*- + +* Rootkit. + +** Debian. + + $ sudo apt-get install rkhunter chkrootkit + +*** rkhunter. + + $ sudo rkhunter -c +... + + http://www.rootkit.nl/projects/rootkit_hunter.html + +*** + + $ sudo chkrootkit +... + +* Virus. + +** Debian. + +*** ClamAV. + +anti-virus utility for Unix. + + $ sudo apt-get install clamav