--- a/debian-apt.rst Fri Jun 19 11:43:27 2009 +0300
+++ b/debian-apt.rst Tue Jun 23 11:54:38 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) <ftpmaster@debian.org>" 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/latex.rst Tue Jun 23 11:54:38 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
--- a/locale.rst Fri Jun 19 11:43:27 2009 +0300
+++ b/locale.rst Tue Jun 23 11:54:38 2009 +0300
@@ -22,6 +22,10 @@
$ sudo apt-get install locales-all
+**** Generate locales.
+
+ $ sudo dpkg-reconfigure locales
+
* FreeBSD.
** How see current locale settings?
--- a/net.rst Fri Jun 19 11:43:27 2009 +0300
+++ b/net.rst Tue Jun 23 11:54:38 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".
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/terminal.rst Tue Jun 23 11:54:38 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/virus.rst Tue Jun 23 11:54:38 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