/dev/null

the other side of life

Follow me on TwitterRSS Feeds

  • Home
  • IPv6
  • Thinkpad
  • About

Apache Tomcat & logrotate

Aug 31st

Posted by rmichel in Linux

No comments

Some linux distribution are shiped without a config for the catalina.out (Tomcat application server) ;)

$ cat /etc/logrotate.d/tomcat
/var/log/tomcat/base/catalina.out {
	compress
	copytruncate
	create 644 tomcat tomcat
	rotate 30
	size 4M
}

The catalina.out will be rotated after 4 mb and stored for 30 days (/var/log/tomcat/base/catalina.out.1; /var/log/tomcat/base/catalina.out.2.gz and so on)

Linux routing basics

Aug 27th

Posted by rmichel in HowTo

No comments

You getting from your ISP a subnet like this 172.30.26.16/28,
and your router has the ip 172.30.26.17 !

You need to enable the ip forwarding in the kernel

sysctl -w net.ipv4.ip_forward=1

And we need to enable proxy arp! This is necessary because your router must answer all arp request for hosts other than itself ;)

sysctl -w net.ipv4.conf.eth0.proxy_arp=1
sysctl -w net.ipv4.conf.eth1.proxy_arp=1

Edit your /etc/sysctl.conf !

net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.proxy_arp = 1
net.ipv4.conf.eth1.proxy_arp = 1

If your router has no external ip on the internal nic, you need to setup routes like

route add -host 172.30.26.20 gw 192.168.10.20 eth1

Ubuntu PHP hardening with Suhosin

Jul 28th

Posted by rmichel in HowTo

No comments

Ubuntu includes the php suhosin patches….

Install suhosin extension

aptitude install php5-suhosin

/etc/php5/{apache2,cli,cgi}/php.ini

; suhosin parameters
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = On
suhosin.executor.disable_emodifier = On
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On

Restart apache

service apache2 restart

Sometimes it could be necessary to set suhosin.session.encrypt to off for some login scripts.

Postfix as relayhost with SASL auth

Jul 21st

Posted by rmichel in Linux

No comments

Client configuration (notebook, workstation what ever)

  1. Edit your /etc/postfix/main.cf
  2. # TLS client parameter
    smtp_use_tls = yes
    smtp_enforce_tls = yes
    # for postfix < 2.3
    # smtp_tls_security_level = secure
    smtp_sasl_tls_security_options = $smtp_sasl_security_options
    smtp_tls_CAfile = /etc/ssl/certs/cacert.org.pem
    smtp_tls_loglevel = 0
    [...]
    relayhost = [mx1.example.com]:587
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    inet_interfaces = loopback-only
    [...]
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwords
    smtp_sasl_security_options = noanonymous
    

    Setting [ and ] prevent the client from looking up the MX record for the domain. The port 587 is reserved for email clients. Some ISPs block port 25 ;)

  3. Create your passwordmap – /etc/postfix/sasl_passwords
  4. [mx1.example.net]:587 username:password
  5. Run postmap for /etc/postfix/sasl_passwords
  6. postmap /etc/postfix/sasl_passwords; rm /etc/postfix/sasl_passwords

Server configuration

  1. Nothing if you have already a working mail server. That the user (/etc/postfix/sasl_passwords) must exists on the server is plausible ? Check your smtpd_*_restrictions on the mail server if the client won’t use sasl :)

Lenny Linux rockz…

Jun 30th

Posted by rmichel in Life

No comments

Watch it !

http://www.youtube.com/watch?v=6gbNZK60Xe4

YouTube – “This video is no longer available due to a copyright claim by Alley Music Corp..” – :(

http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg&ved=0CCIQp

z-push, imap server and *irony* a user-friendly Debian whatever *irony*

May 9th

Posted by rmichel in Linux

No comments

If you want to use z-push with your imap server (which requires php5-imap) you must add to following line to you /etc/php5/apache2/conf.d/imap.ini file

# configuration for php IMAP module
extension=imap.so

Why is that not set Debian ?

Nr. 5 lebt…

Apr 11th

Posted by rmichel in Life

1 comment

Nr. 5 lebt !

Nach meinem Absturz vor gut 2 Wochen, konnte ich heute endlich mal wieder fliegen :D  Natürlich mit GPS, sonst hätte ich auch nicht das Foto machen können. More >

Mikrokopter / Quadrokopter – Rahmen (und noch mehr)

Feb 27th

Posted by rmichel in Holidays

No comments

Quadro was ? Wer keine Idee hat was das überhaupt ist – MK / UAVP oder auch in der Wikipedia (hier garantiere ich nicht, wie lange der Artikel noch da ist ;) )

Da ich beruflich viel unterwegs bin, und abends teilweise zuviel Zeit habe (und das Internet einfach zu klein ist) musste eine Beschäftigung her. Preislich hat mich der MK immer abgeschreckt…aber naja ;) Also fing ich mit dem Rahmen an. Alu-Vierkant 10mm und als Centerplate 2x 100x100x1 aus Hartpapier. Die Centerplate ist auch was geworden, nur leider der Rahmen irgendwie nicht :( Die Bohrungen für die Centerplate liegen leider nicht genau übereinander. Kommt davon wenn man versucht das mit der Hand zu bohren. Der Neubau ist schon in Planung.

Weil ich es als zu einfach empfand, alles bestück zu bestellen, habe ich alle vier Bl-Ctrl selber gebaut – mit Erfolg ! Lediglich ein Atmega8 musste dran glauben ;)

Momentan bastel ich gerade eine Akkuhalterung. Das Problem ist, meine Sternverteiler liegen unten, also einfach Klettband nehmen geht nicht, weil ich gut 1cm überbrücken muss. Morgen mal zum großen C gehen, und schauen was dort alles geht. Zumal mir auch noch Platinen für die KSQ fehlen.

Beim Testen der Bl-Ctrl, war ich beeindruckt von dem Schub, welchen schon ein Motor schafft. Eigentlich kann ich es nicht erwarten endlich die FC 2.0 zukaufen und endlich zu fliegen. Aber noch sind nicht alle Details fertig.

Hat jemand zufällig eine Fräse (Raum Köln bzw. Rügen ?)

[Bilder vom jetzigen Rahmen, mit Motoren und den BL-Ctrls kommen.]

How to delete a command from the bash history / Hide an command from the bash history

Feb 14th

Posted by rmichel in HowTo

2 comments

Hide an command from the bash history:
Start a terminal and try

wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$;

Now you can check your history ;)

How to delete a command from the bash history:
If you have already such an entry, you can use history to delete it.

history
# [...]
# 849 uname -a
# 850 wget user:passwd@ftp.example.com/secret.tar.gz
# 851 ping blog.devnu11.net
# [...]

Now you can delete your history with history -d 850 this line.

history -d 850

And see…

history
# [...]
# 849 uname -a
# 850 history
# 851 ping blog.devnu11.net
# [...]

Or simply add a blank before the command ;)

$  wget user:passwd@ftp.example.com/secret.tar.gz

SLES11, SLES10 SP3, grml64 on HP DL360-G6

Feb 11th

Posted by rmichel in Linux

3 comments

Wozu gibt es zertifizierte Hardware(listen), wenns dann doch nicht geht ?

Ein HP DL360-G6 mit einer NetXtreme BCM5709 Netzwerkkarte soll unter SLES10 (SP3) und SLES11 (GM) funktionieren (Quelle: HP und Novell). Aber irgendwie gehts dann doch nicht :( Selbst mit dem HP ProLiant Support Pack (Version 8.30) ging es nicht. Auch die md5sum vom bnx2.ko Modul, die HP angibt, stimmt.

Als letzter Versuch war dann noch grml64 2009.10 (x86_64 & i386) dran, nur leider ging es hier auch nicht. Alle melden nur “Firmware not running. Aborting…” Super! Ich muss leider zugeben, ich konnte auch nicht alles testen z.B. Firmware patchen konnte ich nicht, da es nur eine Leihgabe aus einem anderen Fachbereich war.

Mal sehen wann ich wieder eine in die Finger bekomme….

12345»...Last »
  • Archives

    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • July 2009
    • June 2009
    • March 2009
    • January 2009
    • December 2008
    • November 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
  • Categories

  • Tags

    Apple Bash Cluster DD-WRT Debian drbd8 Fahrradtour Found Free Fun GPS GPS Tour Grub HowTo HTC Polaris HTC Touch Cruise Husky IPv6 Jack Wolfskin Kernel Linux Luks Mikrokopter Music mysql Nagios3 Neubrandenburg ocfs2 OSX pound RADIUS Security Server SixXS SLES10 SP2 Sweden Tatonka Thinkpad R61 Torrent Urlaub Wechsel Windows Mobile XDA orbit 2 XEN Zelte
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Links

    • C&W Looking Glass
    • DE-CIX Looking Glass
    • DTAG Looking Glass
    • NC Looking Glass
    • RIPE BGPlay
    • robtex
  • IPv6 ready!
Top