Author: nsc

  • Squirrelmail hangs forever (DNS cache problem)

    by

    in

    Noticed that one squirrelmail sometime hangs. It contained default directadmin installation configs. Straced proccess, and found that it queries DNS servers for a quite long time (only snippet):

  • MX backup server with postfix on debian

    by

    in

    Not to lose mails when main mail server is down, best solution is – mx backup server. This is configuration to have backup mx server set up and running. myhostname = mx2.loginroot.com mynetworks = 127.0.0.0/8 maximal_queue_lifetime = 120d smtpd_banner = $myhostname ESMTP relay_domains = hash:/etc/postfix/relaydomains transport_maps = hash:/etc/postfix/transportmaps smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination

  • RC car steering solution?

    One solution came in mind for RC car steering. Control servo (planned or RC car steering) with potentiometer. Testing setup is very simple. Servo setup: +, – and control pin. Same as here: Simple servo setup Potentiometer will work as voltage divider. Here is more info about it: Voltage divider.

  • New project idea – RC car

    by

    in

    One day thought that would be nice to make a RC car controlled with arduino. Unfortunately I don’t know how make such hardware, I needed to to find any car, that has possibility to turn front wheels to both sides. After few days of searching (all of them were expensive or front wheels were “fixed”…

  • Arduino + servo simple setup

    by

    in

    Using servo with arduino is pretty easy. Here is my setup:

  • Exim mail via different IP

    by

    in

    In /etc/exim.conf You need to change: remote_smtp: driver = smtp to remote_smtp: driver = smtp interface = 11.22.33.44

  • CP2102 + Arduino pro mini HOW TO

    by

    in

    One day I noticed, that arduino pro mini are quite cheap for everyday stuff. It’s very small, and to keep lower price, this Arduino does not have USB interface. On ebay it’s ~3$:

  • New toy arrived!!!

    Recently, a new toy arrived: So it’s a good opportunity to create new category

  • Openvpn centos 6.4 x64 with certificates

    by

    in

    Renewed POST with new info, as openvpn package changed, not everything in old tutorial is true now :) This tutorial is based by old one Default centos repositoryt doesn’t have openvpn package, so lets add epel repository first. I downloaded it from this mirror here. yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm (link may be different depending on latest…

  • bandwidth monitoring script for nagios (CentOS) – bw_watch.sh

    by

    in

    Bash script for nagios, that monitors bandwidth usage on remote host. # usage ./bw_watch bw_warning bw_critical pkt_warning pkt_critical It takes momentary 5 secs average bandwidth from “vnstat”, and returns value for nagios. bc and vnstat packages at host side are necessary. bc package should be in default centos repository, vnstat and nrpe You can find…