Familie van der Salm

  • Home
  • About

14

Dec

Dansguardian – clamd – el6 rpm

Posted by edmin  Published in Linux

I created some x86_64 dansguardian-rpm’s for EL6. You can download them here. All virusscanners are enabled, except clamav. As far as I know you should be using clamd, so that’s enabled instead. The SRPM is available to. Here you go:
dansguardian-clamd, dansguardian-clamd-debuginfo and dansguardian-clamd-srpm.
Tell me if it was of any use!

no comment

20

Apr

Howto prevent the clearing of boot messages (Redhat 6)

Posted by edmin  Published in Linux

I always like to see my boot messages. Well, that’s reason enough.
You have to change one file: /etc/init/tty.conf. Just change the last line, it says:
exec /sbin/mingetty $TTY
and should be changed to be:
exec /sbin/mingetty --noclear $TTY
The --noclear does the trick. For me this is will be the new default setting, at least, when using RH6.

Let me be a little more helpfull, just execute:
sed -i ‘s/\/mingetty /\/mingetty --noclear /g’ /etc/init/tty.conf

no comment

16

Apr

Lost discspace – where did it go?

Posted by edmin  Published in Linux

I hope to help somebody by posting this:
I had an 1G discpartition which was almost full. There was only 153Mb of free space while there was only 212Mb of files. So, where did it al go?

Well, my sollution->
– lsof | grep /var/log
Telling me there were some deleted files (deleted by hand) which were still in use by the syslog-service. So, somehow the files were gone out of the ls (and any other progs like du) but were still using space. A simple restart of the syslog service did the trick. 🙂 Since I ealier moved all big logfiles to another partition, there is 900Mb of available space!

But how did i do it? By deleting some logfiles while in use by the syslogserver and changing the rotate-settings at the same time. I can’t tell you the exact order to achieve this, but it must have been something like this.

I would like to hear it if it helped…

no comment

5

Apr

Leuke site

Posted by edmin  Published in Algemeen, ICT, Linux

Tja, soms kom je een site tegen die echt bedoeld is voor de IT-ers. Vandaan zag ik deze: Breaking systems for fun en dan nog iets, maar dit was voor mij trigger genoeg ;).
Ik vind het een erg inspirerende site.

no comment

16

Nov

BASH one-liners

Posted by edmin  Published in Algemeen, ICT, Linux

Een one-liner in BASH is altijd leuk. Deze one-liner heb ik zojuist gemaakt om smtp-verbindingen vanaf een nieuwe server te controleren:

for HOST in `cat transport |grep -v “^#” |grep “.”|cut -f 2 -d “[” | cut -f 1 -d “]”| sort -u`; do echo “$HOST 25”; exec 3<> /dev/tcp/$HOST/25; read -t 5 0<&3 && echo $REPLY || echo “Problemen met $HOST”; exec 3<&-; done > connections.txt

Deze nieuwe server moet mail gaan afleveren op de mailservers van klanten. Voordat ik mail op de server binnen laat komen moet ik wel zeker weten dat de mail door de firewall kan bij de klant. Hiervoor wordt het transport-bestand, welke ook gebruikt wordt door de mailserver, ingelezen en worden de diverse mailservers eruit gefilterd. Daarna volgt een controle van poort 25 met een melding als er een probleem is of, bij geen problemen, het antwoord van de externe mailserver.

Gebruikte bronnen: Bash netwerk programmeren en Bash socket programmeren.

no comment

Handige links

  • Webmail Roundcube
  • RHCSA/RHCE

Recent Posts

  • Er gebeurt hier niet veel…
  • Dansguardian – clamd – el6 rpm
  • Perl – Internal Server Error – suexec
  • Convergence
  • Howto prevent the clearing of boot messages (Redhat 6)

Categories

  • Algemeen (8)
  • ICT (4)
  • Linux (5)

Recent Entries

  • Er gebeurt hier niet veel…
  • Dansguardian – clamd – el6 rpm
  • Perl – Internal Server Error – suexec
  • Convergence
  • Howto prevent the clearing of boot messages (Redhat 6)
  • Lost discspace – where did it go?
  • Leuke site
  • Site ook bereikbaar via IPv6
  • BASH one-liners
  • Oude site weer deels in de lucht

Recent Comments

  • je broer in Site ook bereikbaar via IPv6
  • Joey in About
  • Ed in Site ook bereikbaar via IPv6
  • Random Selection of Posts

    • Er gebeurt hier niet veel…
    • Site ook bereikbaar via IPv6
    • Leuke site
    • Lost discspace – where did it go?
    • Convergence
    • Howto prevent the clearing of boot messages (Redhat 6)
    • BASH one-liners
© 2008 Familie van der Salm is proudly powered by WordPress
Theme designed by Roam2Rome