tcpdump -p -s0 -w tcpdump_file.cap port not 22
Squid Proxy Cache mit Einbindung Windows AD
Der folgende Text wurde Quick&Dirty aus Word eingefügt, daher gibt es noch ein “hübscheres” PDF ngud.de – Squid Proxy Cache mit Einbindung Windows AD_anon Verwendete Software Debian Lenny 5.0.6 Linux 2.6.26-2-686 #1 SMP Mon Aug 30 07:01:57 UTC 2010 i686 GNU/Linux Squid 2.7.STABLE3 Samba 3.2.5-41 Kerberos krb5-config 1.22 / krb5-user 1.6.dfsg.4 Winbind 3.2.5-41 Für das [...]
create a cheap ssl certificate
Run the following command to create server.key and server.crt files for your apache $ openssl req -new -x509 -nodes -out /path/to/server.crt -keyout /path/to/server.key -days 3650 -day 3650 will make that certificate 10 years, should be enough These can be used as follows in your /etc/apache2/sites-enabled/website.conf file: SSLCertificateFile /path/to/server.crt SSLCertificateKeyFile /path/to/server.key Remember to chmod them.
Nice crontab generator
Here you find a very nice crontab generator. http://www.htmlbasix.com/crontab.shtml
Install VMware Tools on Debian Lenny VM
..was easy, no messing around with export CC=/usr/bin/gcc4.1. or something ESXi Server 4.0.0 Build 219382 VM Linux lenny2 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 UTC 2010 i686 GNU/Linux apt-get install build-essential autoconf automake linux-headers-`uname -r` Click ‘Install VMWare Tools’ on your VMconsole. mount /dev/cdrom /mnt/ cd /tmp/ cp /mnt/VMwareTools-4.0.0-219382.tar.gz /tmp tar -zxvf VMwareTools-4.0.0-219382.tar.gz cd [...]
good article to SSH without Password
HowTo SSH/SCP without a password. http://www.hostingrails.com/HowTo-SSH-SCP-without-a-password
Whitelist Clients in postfix / postgrey / amavis environment even thoug you are using zen.spamhaus.org
Say you have a virtual server somewhere, which has multiple domains on it. You’re a spam fighter using some blacklists. Everything is working fine. You realize that you want to send mails from your home opensolaris server (Dynamic IP) to your virtual server. Hmmm, what to do? Do the following: nano /etc/postfix/rbl_override 1.2.3.4 OK Ip.ad.re.ss [...]
Linux Console bg – Background
If you want to put a job in the Background, say a cp job 350GB, and you are tired of waiting – try the following: – start the process from the konsole – put it the background with Ctrl-Z and ‘bg 1′. – tell the shell to detach the process with the command ‘disown -a’ [...]
Linux ntpdate
this one works /usr/sbin/ntpdate -u -b -s 10.10.10.10
Disk Usage Linux Debian
Short du -sh /var/www/* shows the size of each subdir under /var/www