| | | 2006.12.20-17:39.00
Howto re-read the partition table without reboot
apt-get install parted partprobe| Howto re-read the partition table without reboot | | 2006.11.04-10:58.00
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
| ipset ip_set | | 2006.10.19-14:35.00
Traffic shaping - tc filter.. divisor
divisor is a number of entries in given table,
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:
for (h = 0; h <= ht->divisor; h++) {
host:~# tc filter add dev eth1 parent 1: prio 0 handle 1: protocol ip u32 divisor 17 Illegal "divisor"
| Traffic shaping - tc filter.. divisor | | 2006.10.15-00:20.00
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* ....| Perl Win32 OpenSSL FTP/TLS | | 2006.08.08-09:10.00
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| Dziwne | | 2006.08.06-17:35.00
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| NX | | 2006.05.13-17:39.00
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/
| MoinMoin wiki, lighttpd webserver | | 2006.03.08-18:55.00
LAMP - Linux Apache Mod_perl/python/php PostgreSQL
Linux Apache Mod_perl/python/php PostgreSQL - LAMP.| LAMP - Linux Apache Mod_perl/python/php PostgreSQL | | 2006.03.07-18:36.00
gpg --export 010908312D230C5F -a | apt-key add - gpg --recv-key 010908312D230C5F| | | 2006.02.07-22:00.00
