1. BGP announcing default route

    Advertising default route with BGP

    If you want to announce the default route which is statically routed then you have to add following commands to the working BGP configuration:

    ip route 0.0.0.0 0.0.0.0 192.168.1.1
    router bgp 65001
    network 0.0.0.0
    default-information originate
    

    when you then clear the ip bgp routing softly (so the current connecting will not be broken)

    clear ip bgp soft in
    clear ip bgp soft out
    

    you should see that the default route is will be advertised:

    sh ip bgp summary
    sh ip bgp neighbors IP …

  2. Apple remote (A1156) - MacBook Pro 3.1 & Ubuntu 10.04

    It isn't supported by default using Ubuntu but it's as handy as hell, the apple infrared remote control. After some mayor headaches I finally succeeded to configure it manually on my MacBook Pro 3.1 running Ubuntu 10.04.

    It's quite easy once you know how.

    Installation of the lirc library:

    $ sudo apt-get install lirc
    

    Adapting the configuration files (make sure to backup them first!):

    $ sudo cp /old/file /new/file.bak
    

    /etc/lirc/hardware.conf

    # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Apple Mac mini USB IR Receiver" REMOTE_MODULES="uinput" REMOTE_DRIVER="macmini" REMOTE_DEVICE="/dev/usb/hiddev0" REMOTE_SOCKET="" REMOTE_LIRCD_CONF …

  3. Symbolic linux links

    It's rather simple, but I used to look for it a while when writing my first bash/python scripts. Wanted to typing in one command so I would need to type in every time the whole path to my newly written script.

    That way routine tasks could be called much faster and easier. This can be done by creating a symlink to your /usr/bin directory:

    ln -s /path/to/your/script /usr/bin/nameOfTheOverallCommmandYouWantToUseForYourScript
    

  4. Permissions website

    The most recommended permissions for files and directories on the web are 0755 and 0644. If you have shell access to your webserver you can set those permissions using those commands:

    find -type d -print0 | xargs -0 chmod 755
    find -type f -print0 | xargs -0 chmod 644
    

  5. Conky

    To monitor the different resources of my local system I use conky. After you installed the conky software you can start with the configuration of it.

    $ apt-get install conky conky-colors
    

    After I adapted the configuration my desktop became like this:

    Desktop image

    At the left side there is a pane which only monitors my system resources. The config file for it, conkyrc should be placed in your home directory as a hidden file (naming it .conkyrc).

    When you now type in conky in your terminal, you should see appearing the pane on your desktop:

    Left panel

    On the right bottom I created an rss …


  6. Showing birthdays using php

    For our local scouting group it seemed nice to write a birthday script which displays for every member on the day of his/her birthday the name and age on our homepage.

    Something like "We wish XXX a happy # anniversary!'

    To accomplish this I wrote a php script which gets the data of our members from a mysql db and shows the messages on the right day on our website. In the meantime also an automatic mail will be send to the person with some sort of 'personal' message.

    database connection (db_connectPear.php)

    < ?php
    $dsn = array(
     'phptype' => 'mysql',
     'username' => 'DBUSERNAME' …

Page 8 / 8