Sunday, March 22, 2009

OpenDNS in Ubuntu instead of local DNS along with automatic updater (inadyn) for dynamic IPs

Basically you need to change your network settings so that your DNS nameservers always point to the openDNS servers rather than those provided by your local ISP.

openDns nameservers are: 208.67.220.200 & 208.67.222.222

For the case of a DHCP client that is mobile or where you do not have control over the DHCP service configuration, the procedure is:

sudo gedit /etc/dhcp3/dhclient.conf


Add a prepend line or change the existing one to read:

prepend domain-name-servers 208.67.222.222, 208.67.220.220;


Restart networking with

sudo /etc/init.d/networking restart


Will be writing down how to use a local dns cache soon using dnsmasq

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now getting to the part where we need to dynamically update our openDns network if our IP is non-static. The solution for this is

1. wget https://www.opendns.com/account/ddns_files/inadyn.source.v1.99.zip
2. unzip -a inadyn.source.v1.99.zip
3. cd inadyn.source.v1.99/
4. sudo apt-get install build-essential
5. sudo apt-get install libcurl4-openssl-dev
6. make
7. gedit inadyn.conf
here put your information (username, password, alias). Make sure on the OpenDNS settings you enable "Set Up a Dynamic IP".
8. sudo cp inadyn.conf /etc/
9. /bin/linux/inadyn

^^^Steps taken from this link as well:

CREDITS GOTO:
answers.launchpad.net
ubuntuforums.com
ubuntu.wordpress.com ( referred to for the local dns entry)

Sunday, March 1, 2009

Get the new notifications to work on Intrepid

Jaunty Jackalope or Ubuntu 9.04 which will be out on 23rd April 09 will have a new notification system.

If some eager folks like me are interested in making them work on Intrepid, follow the instructions below:

$ sudo apt-get update


$ sudo apt-get install bzr gnome-common automake libdbus-glib-1-dev libgtk2.0-0 libgtk2.0-dev libgtk2.0-common libgconf2-dev libx11-dev libnotify-dev libnotify1 libnotify-bin libc6 libcairo2 libdbus-1-3 libdbus-glib-1-2 libgconf2-4 libglib2.0-0 libgtk2.0-0 libpango1.0-0 libpixman-1-0 libx11-6


bzr branch lp:notify-osd

cd notify-osd

./autogen.sh

make


Now you can start it:

killall notification-daemon ; ~/notify-osd/src/notify-osd

You can interrupt the new notifications system by hitting ctrl+C. That will automatically bring back the old ones.

How to test it ?

A test script is included, which will show a bunch of fake notifications. To test it, open a new terminal window and type:

~/notify-osd/src/send-test-notification.sh


Now a the test notifications should show. On the right upper corner of the window.

How to make it default ?

A simple way may be:

gedit ~/.new-notifications.sh


Then paste there this:

#!/bin/bash
killall notification-daemon ; /home/[username]/notify-osd/src/notify-osd


Then save, exit from gedit and..

chmod +x ~/.new-notifications.sh


Then go in System->Preferences->Sessions and add a new item with ~/.new-notifications.sh as the launching command.


CREDITS
Used the instructions from here, here and here

Follow this blog !!!