Category: Tech

  • Allowing +trace in Unbound

    By default, +trace works when querying Bind server as it returns root hints as NS-list for “.”. However, +trace disables RD flag and the first query (dig +norecurse NS .) is REFUSED by unbound. The fix: In unbound.conf, change access-control: 10.0.0.0/8 allow to access-control: 10.0.0.0/8 allow_snoop Change allow to allow_snoop for all subnets served by…

  • Ubuntu – GRE Tunnel

    Creating a tunnel on Ubuntu Edit /etc/network/interface file and add this code auto gre1 iface gre1 inet static address netmask pointopoint pre-up iptunnel add gre1 mode gre local remote ttl 255 up ifconfig gre1 multicast post-down iptunnel del gre1 You might also need to “modprobe ip_gre” in some cases before activating the tunnel.

  • Ubuntu – disable USB automount

    Hate it when Ubuntu unnecessarily mounts USB drives when you are doing some R&D. Here’s a quick way to disable it. $ gconftool-2 –type bool –set /apps/nautilus/preferences/media_automount false You can also use gconf-editor to set it to false. Once done, just set it to true again to make it auto-mount.

  • Ubuntu – reset root password

    If you forgot your root password or to login to Ubuntu (for recovery) without the root password, follow these simple steps: While the computer boots, press ‘Esc’ as soon as the Grub loads to go into the menu. Press ‘e’ to edit the boot menu Select the kernel line and again press ‘e’ remove the…

  • Hide Apache Server Signature

    To hide the detailed information about your Apache web server, OS and plugins, you disable the ServerSignature directive by modifying your Apache configuration file: On CentOS vi /etc/httpd/conf/httpd.conf On Ubuntu vi /etc/apache2/apache2.conf Search for ServerSignature and change it to off ServerSignature Off Save the config and reload Apache to apply the change: On CentOS service…

  • OSX Startup keys

    Some useful startup keys for Mac: C : Force boot from the CD-Rom drive D : Force boot from the internal hard drive Option : System picker show all bootable disks Space Bar : Apple extension manager Command-S : Boots Mac OS X into “Single User” mode Command-V : Boots Mac OS X into “Verbose…

  • Major fiber cut in KTM

    Thursday evening’s brief fire on a pole was much more severe than I would have imagined. It severed dozens of fiber and other cables. It took the ISPs whole night plus the following day to fix the mess. If you’ve noticed the way the cables are pulled across the city, it won’t take you much…

  • RoundCube

    Playing with RoundCube, so far looking good. Open Source, Ajax, no frame, cool interface, nice layouts and pretty easy to install. Beginning to think about migrating from Squirrelmail to RoundCube.

  • IPv6 quickstart

    6to4 is the most common way to get your computer connected to the IPv6 Internet until your ISP provides you native IPv6 connectivity. It is a special tunnel that carries IPv6 packets between your computer and a 6to4 relay over existing IPv4 Internet. The relay router forwards your IPv6 packets to the IPv6 Internet and…