Wed, 20 Dec 2006

server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:49 CET 2006 server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:49 CET 2006 server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:50 CET 2006 server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:50 CET 2006 server4 root 17:34 /etc/thewall # server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:49 CET 2006 server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:49 CET 2006 server4 root 17:34 /etc/thewall #date Wed Dec 20 17:34:49 CET 2006 server4 root 17:34 /etc/thewall #
[] permanent link

Sat, 04 Nov 2006

Howto re-read the partition table without reboot

apt-get install parted partprobe
[] permanent link

Thu, 19 Oct 2006

ipset ip_set

  • ipset utility (backport from sid)
  • ipset-patched kernel (2.4.33-bsd33c+)
  • modprobe ip_set
  • ipset -N server ipmap --network 192.168.0.0/16
  • ipset -A server 192.168.16.16
  • ipset -L
    
    
  • iptables -A FORWARD -m set --set server dst,dst -j ACCEPT
    

[] permanent link

Sun, 15 Oct 2006

Traffic shaping - tc filter.. divisor

divisor is a number of entries in given table,
for (h = 0; h <= ht->divisor; h++) {
where h is 'unsigned', this suggests 65535 max, but it seems that in reality it's limited to 255 Apparently, it must be in form of 2^x (1,2,4,8,16...256), otherwise you get:

host:~# tc filter add dev eth1 parent 1: prio 0 handle 1: protocol ip u32 divisor 17
Illegal "divisor"

[/Howto] permanent link

Tue, 08 Aug 2006

Perl Win32 OpenSSL FTP/TLS

1) OpenSSL 2) CamelPack 3) cd c:\openssl\perl\5.8\Net* install.bat cd c:\openssl\perl\5.8\Cry* ....
[] permanent link

Sun, 06 Aug 2006

Dziwne

desktop:/fs/mm/tmp/dvd-tmp# ls -al total 5242892 drwxr-xr-x 2 root root 125 Aug 6 15:17 . drwxr-xr-x 9 eyck root 4096 Aug 6 14:59 .. -rw-r--r-- 1 root root 1073741824 Aug 6 15:04 dev.tar.7z.part1 -rw-r--r-- 1 root root 1073741824 Aug 6 15:14 dev.tar.7z2.part1 -rw-r--r-- 1 root root 1073741824 Aug 6 15:16 dev.tar.7z2.part2 -rw-r--r-- 1 root root 1073741824 Aug 6 15:17 dev.tar.7z2.part3 -rw-r--r-- 1 root root 1073741824 Aug 6 15:19 dev.tar.7z2.part4 desktop:/fs/mm/tmp/dvd-tmp# du -sh . 5.1G . desktop:/fs/mm/tmp/dvd-tmp# du -sh * 1.1G dev.tar.7z.part1 1.0G dev.tar.7z2.part1 1.0G dev.tar.7z2.part2 1.1G dev.tar.7z2.part3 1.0G dev.tar.7z2.part4 desktop:/fs/mm/tmp/dvd-tmp# du -sh * 1.1G dev.tar.7z.part1 1.0G dev.tar.7z2.part1 1.0G dev.tar.7z2.part2 1.1G dev.tar.7z2.part3 1.0G dev.tar.7z2.part4
[] permanent link

Sat, 13 May 2006

NX

To get two nxproxy's talking: 1) On the remote machine, run: nxproxy -C 2) If the above says it's on 4008, then run the following on the local machine: nxproxy -S seki.nac.uci.edu:8 ..be sure to unblock tcp 4008 or whatever in your firewall, if any. http://dcs.nac.uci.edu/~strombrg/NX-notes.html
[] permanent link

Wed, 08 Mar 2006

MoinMoin wiki, lighttpd webserver

fakeroot apt-get source -b moin
apt-get install libcfg-dev
fakeroot apt-get source -b lighttpd
fakeroot apt-get source -b lsb-base
/etc/moin/mywiki.py -> datadir
	data_dir = '/var/spool/moin/mywiki/data/'
	data_underlay_dir = '/var/spool/moin/mywiki/underlay/'
	cp -a  /usr/share/moin/data/* /var/spool/moin/mywiki/data/
	cp -a  /usr/share/moin/underlay/* /var/spool/moin/mywiki/underlay/
	chown -R www-data.www-data /var/spool/moin/mywiki/*/*
	chmod -R ug+rwx /var/spool/moin/mywiki/
	chmod -R o-w /var/spool/moin/mywiki/
/etc/lighttpd/mods-enabled/50-moin.conf
server.modules  += ( "mod_cgi" )
server.modules  += ( "mod_simple_vhost" )

$HTTP["host"] == "moin.mywiki.com.pl" {
	server.name = "moin.mywiki.com.pl"
	server.document-root = "/var/www/moin"
	cgi.assign  = ( ".cgi" => "/usr/bin/python" )
	alias.url = (
	"/wiki" => "/usr/share/moin/htdocs/",
	"" => "/var/www/moin/moin.cgi",
	)
}
where moin.cg: ln -s /usr/share/moin/server/moin.cgi /var/www/moin/
[] permanent link

Tue, 07 Mar 2006

LAMP - Linux Apache Mod_perl/python/php PostgreSQL

Linux Apache Mod_perl/python/php PostgreSQL - LAMP.
[] permanent link

Tue, 07 Feb 2006

gpg --export 010908312D230C5F -a | apt-key add - gpg --recv-key 010908312D230C5F
[] permanent link
September 2007
Sun Mon Tue Wed Thu Fri Sat