Wednesday, July 27, 2011

DNS and DNS flushing in Ubuntu

The Domain Name System (DNS) is a hierarchical naming system built on a distributed database for computers, services, or any resource connected to the Internet or a private network. Most importantly, it translates domain names meaningful to humans into the numerical identifiers associated with networking equipment for the purpose of locating and addressing these devices worldwide. (Wikipedia)

Translating URL's to point at the IP addresses of servers is an important portion of the Internet browsing. There could be multiple levels of DNS resolutions happening to expedite the browsing experience of users.

On a GNU/Linux machine, if the user is aware of the URL and IP address of a host, he/she can make a manual DNS entry on the /etc/hosts file.


To view and add the DNS servers the host machine is using, the file to look at is
/etc/resolv.conf

Further, caching the DNS entries ( mapping of URL's to IP addresses) is a feature used to avoid the repeated Domain Name resolution iterations. But sometimes, when a single URL points to multiple servers ( like google mail etc..), and when secure sessions on different servers are established the chances that one of the servers would not resolve might occur.


During such instances, the DNS cache has to be flushed. The first and simple command which has to be manually run to flush the DNS cache is dns-clean.
It can be invoked by the following command:

raghu@fossphosis:~$ sudo /etc/init.d/dns-clean


But, repetitive invoking of this command might get on to the nerves of the users, and a daemon to automate this task is NSCD (Name Server Cache Daemon).
NSCD automates the DNS table flushing and refreshing process at the back end.
NSCD on Ubuntu can be installed by the following apt-get command.

raghu@fossphosis:~$ sudo apt-get install nscd

Fine tuning of the refresh rate and time-to-live of the DNS entries can be altered by changing the values in the configuration file /etc/nscd.conf

Wednesday, July 6, 2011

FSMK Newsletter Revamped and back!

FSMK Newsletter is back, and will get better.


Please share and spread this Newsletter to as many people as possible.
For, Sharing is Growing :)

Do send in your articles for the coming editions...

http://www.fsmk.org/node/79

http://fsmk.org/sites/default/files/FSMK_Issue8_July_2011.pdf

Tuesday, June 28, 2011

Reinstating freedom in the Internet

The Internet when conceived was an autonomous conglomeration of end user machines present at the edge of the network. These terminal machines were talking to each other using the infrastructure provided by the Internet Service Providers (ISP's). The only arbitrators in the Internet were the standards organization (like ISO, IEEE), which made the nodes on the Internet to follow universal protocols for intercommunication.
The Internet was simply 'decentralized'.
P2P networks

The Internet has been the grandest manifestation of democracy of the users. It has been free (free as in freedom ) and neutral (as in unbiased) until the late 1990's. Starting  then, the Governments, primarily of the developed countries, in the name of making the Internet safer and secure have tagged with some of the big profit seeking corporations in the world wide web to monitor and influence the way the Internet works. The Internet today is no longer neutral and/or free; From being decentralized it is steadily converging to become a Centralized infrastructure with little or no freedom to the end users.

Centralised Server based networks
The closest to what the Internet should be resembling in the current scenarios is the Peer-to-Peer mode of networking. In this architecture, every end user apart from being a client, is also a server.  This is in contrast with the rest of the services in the Internet where we have the Single Server- Multiple Client model. This model is called the Centralized model, where the online transactions occur between the mandating, giant servers and the helpless end users. This deterioration of the democracy in the Internet reflects a major invasion into the privacy of the users and more importantly infringement of the political freedom of the users as well. The case when the Internet services for Wikileaks was withdrawn by the corporations succumbing to the pressure of their Government is a direct manifestation of the impact that Centralization of the Internet can have.

As users, the point we need to be concerned about is the safety of the data we entrust to the biggies in the Internet. Every time we are online, there is almost a certain chance that either we are being spied, or our data is being used for increasing the business on the Internet.

One prospective solution to reinstate freedom in the Internet is, by the decentralization of servers, and giving the full control back to users. Decentralized Internet will comprise of not few servers where all the users will have to mortgage their data, but when fully decentralized, every user will end up having a small, cell phone charger sized Open Plug servers like the FreedomBox.
The FreedomBox again has been an initiative instigated by Prof.Eben Moglen of the Software Freedom Law Centre and now the Debian Community of Free Software developers have kick started the project to set the Internet free.

To visualize it better, consider the current model of online Social Networking: About 500 million users on one famous Centralized Social Networking site have handed over all of their data to a single bunch of servers, after endorsing heavily privacy invading terms and conditions. Statuses, chats, pictures and the private interaction between users on the network is all under the scanner of on single Corporation.

To tackle such hegemony in the Internet, a new model of social networking is being tested. Distributed or Federated Social Networks, like Diaspora will decentralize the way online social networking will happen. Instead of all the users handing over their data to a server farm belonging to a single corporation, users can now put their data on smaller, independent servers like campus servers (called Pods) and get networked with other pods. In this way, the centralization can be reduced from a single hegemonic server cluster to decentralized, independent servers. The best part of this decentralization is that this decentralization can trickle down to the last of the users.



Using the Plug servers such as FreedomBox, individual users can run their own Diaspora Pods, with all the data residing in their personal mobile servers, which will communicate with other pods. Users will have total control over the data, and the extent of its availability to other users and even to the Internet.

This model of decentralization using FreedomBox like open plug servers will not only increase the privacy and security in social networking, but in near future will be applicable to mails, voice-over-internet phone calls, making the Internet neutral and democratic, reinstating freedom back to the users.

PS: The initial writeup for the recently published article in The Hindu , which was later optimized to concentrate mainly on Diaspora*.
http://www.thehindu.com/news/cities/Bangalore/article2132236.ece



Tuesday, June 21, 2011

Swecha Free Software Workshop

Swecha does it all in the big way.

 The ongoing 15 days Free Software Summer Camp in Hyderabad is by itself the first of its kind in India. The workshop is targeting students pursuing technical education and to enable them with the gamut of Free Software technologies which are in use in Industry.  Swecha team claims to have a modest number of about 600  students gathered for the 15 days Free Software Workshop happening in CBIT-MGIT, Hyderabad.

Swecha is the senior counterpart of the Free Software Movement - Karnataka (FSMK); both being part of the Free Software Movement India(FSMI), have everything but the regional geography in common.

Free Software in the air by alone was sufficient to draw someone like me into the ambiance of the workshop, but adding to it was Swecha as the host. I did pull one of our budding activists along this time, and I'm hoping he did get motivated further to carry on his work. The warm and amicable team with my fellow activists there is always an occasion not to be missed. And it proved right yet again. By the way, the experience of organizing an event of this scale is by itself a huge learning experience.












 Comprehensive theory sessions to start the day, followed by marathon lab sessions in about 20 labs all running Debian has been the routine everyday. Although the network has been something less than an adequate one, machines have been arranged for evey participant to work on.

The fifteen days are divided into five three-day modules to enhance the focussed exposure students would be getting on the technologies.
  • Making of a Computer Suite  
  • Programming using Software Carpentry aspects 
  • Mobile Computing 
  • Multimedia 
  • Content Management Systems      
Each of the days, after the regular sessions and labs,some important complimentary sessions have been organised to enable students on the non-technical aspects of the gamut of technologies they were handling in the evening. Sessions on the philosophy, policies, licensing and social ramifications of the technology are being held on a daily basis, which are equally important when compared to the technologies.

 









On these lines, I handled a session on Distributed Social Networking, taking Diaspora as an example. The importance of Internet to become decentralised and for the users to have control over their data in the current context of Internet technologies were touched upon in my talk. The overall reception of the talk was good, and there was some good interaction about the same all through the day.
 

Apart from serious tech sessions, labs and talks, a bunch of team-events and culturals are also in the line up for the days to come. There have already been a couple of team events which got all the participants enthusiastically engaged.

My stay at the camp was for less than 48 hours, nonetheless was a very good experience. There are better and more exciting sessions,talks and interactions in the days to come. Speakers of the likes of Prabhir Purkayastha, P Sainath will be participating in the camp, and I so did not want to miss them.

Now that I'm back in Bangalore, FSMK is working on a scaled down version of a workshop of this kind. Will keep you all posted about the updates from FSMK.

Monday, June 20, 2011

Running SMTP server on two ports concurrently in Ubuntu

The Simple Mail Transfer Protocol(SMTP) server in Ubuntu is available via the package "Postfix", which is the most widely used SMTP server in UNIX-like systems including AIX, BSD, HP-UX, Linux, MacOS X, Solaris, and more environments.

SMTP as a service runs on Port 25.


fossphosis@fossphosis:~$ cat /etc/services | grep smtp
smtp         25/tcp          mail
ssmtp        465/tcp        smtps        # SMTP over SSL

To get Postfix running on Ubuntu, all one needs to do is apt-get the package.

fossphosis@fossphosis:~$ sudo apt-get install postfix

Once, Postfix is installed, in case of configurations apart from the default ones, reconfigure the settings by running the dpkg-reconfigure, to set the parameters matching the network requirements.

fossphosis@fossphosis:~$ sudo dpkg-reconfigure postfix

I wanted my SMTP instance available on the local network for all the machines on the 192.168.1.X subnet. To accomplish this the only change, or the appendage to the existing default configuration is to add the subnet in the entry, as shown below:
Adding 192.168.1.0/24 subnet for reachability of the SMTP server on my network
In case of applications, like the one I was faced with, where i wanted the SMTP to run on an alternate port other than Port 25  parallely, all you need to do is add the port entry in the following postfix configuration file.

Edit /etc/postfix/master.cf,

I wanted SMTP to run on port 2525, so added the following entry just, as shown below:

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
2525      inet  n       -       -       -       -       smtpd

Once editing is done, restart the Postfix server

fossphosis@fossphosis:~$ sudo service postfix restart
[sudo] password for fossphosis:
 * Stopping Postfix Mail Transport Agent postfix           [ OK ]
 * Starting Postfix Mail Transport Agent postfix           [ OK ]

To verify if SMTP is running on both the ports,perform a basic telnet to the ports.
Testing on port 25
fossphosis@fossphosis:~$ telnet localhost 25
Trying ::1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 Comp ESMTP Postfix (Ubuntu)


Testing on port 2525

fossphosis@fossphosis:~$ telnet localhost 2525
Trying ::1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 Comp ESMTP Postfix (Ubuntu)

And, that's it!


Monday, May 9, 2011

FSMK General Body Meeting

The first annual General Body meeting of Free Software Movement-Karnataka was convened at the FSMK office on the 7th of May,2011.
It was presided over by Dr.Chidananda Gowda, eminent Kannada literary figure, former Vice Chancellor of Mysore University who also formally inaugurated the new FSMK Office in Wilson Garden, Bangalore.


As the host for the event Senthil mentioned, of all the guests we've had for our FSMK events, Dr.Chidananda Gowda spoke the most fitting to the context of Free Software, with his experiences in the domain of Free Software and Governance.


With the formal inauguration done, followed by the
culture of lighting of the lamp, indicating the conquest of photons (knowledge) over darkenss (ignorance), the General Body Meeting had begun on the 7th of May,2011.



The FSMK General Body comprises of 50 members, and has Free Software activists from varied backgrounds:Students, teachers, scientists, researchers, IT professionals, slum computing centre kids and writers. This mixed diaspora of Free Software enthusiasts gives the much needed multi-facetedness to take Free Software into the different realms of lives.




During the course of the three hour meeting, Prof.Chidananda Gowda's address comprised of him sharing with us the Proposal he had presented to the Government of Karnataka, to include and implement Free Software in the functioning of the State Government, as implemented by the Kerala Government. He very well understands the dynamics and importance of Free Software, upto the level that he had proposed individual Free Software alternatives to the most widely used proprietary utilities.
Senthil presented the activities conducted by FSMK post the National Conference in 2010, until the latest State Level Convention for Academicians by asking the respective coordinators from the GB to talk about the events for a couple of minutes. St.Jospeh's college Free Software course, IISc Open Day, NCAR in Hyderabad, numerous other talks and technical sessions through the year were briefly chronicled.

This was followed by the presenting of the accouts of FSMK to the General Body by Jayakumar.

The most important aspect of the GB was to give a structure to the adhocism to the functioning of FSMK without mellowing down the spirit of the team.
In this regard, an advisory panel for FSMK comprising of Prof.Chidananda Gowda, Baraguru Ramachandrappa and Chandrashekhara Kambara was proposed and was welcomed by the General Body.  A fourteen member Executive from the General Body was proposed and was wholeheartedly endorsed  by the GB.
Prof.Gopinath from IISc has been elected the President,FSMK activists Rameez and Surendra as the Vice-President, Jayakumar as the General Secretary, Naveen and Karthik as Joint Secretaries and Senthil as Treasurer were the chosen Office Bearers.

Seven committees directed at specific Free Software activities have been proposed for the systematic functioning of FSMK as an organization to build the Free Software Movement in Karnataka.

Students committee, Academicians committe, Localisation committee, Journal and Website committee, Slum Computing Centre committee, Schools committee and the Office Maintainance Committee are being formed to channelize efforts and coordinate the resources for better efficacy in the functioning of FSMK. Each of these committees will have a member from the Executive to keep the action going.

Finally, the GB meeting was concluded with a talk from Dr.Chatterjee which was an aspirational one for FSMK,talking about certain implementations we might want to take up in future, and then a talk by me on an upcoming campaign by FSMK on Web Democracy and Wikileaks.




Free Software is more than just community produced software; It is the arsenal of digital implements, using which freedom in the Internet and digital world will have to be sustained and perpetuated.

Tuesday, May 3, 2011

RMS does an MJ!

Boot It!

(This filk uses the tune of "Beat it". RMS wrote it in 2001.)

When your computer doesn't do what you type,
And half the screen is covered with a big white stripe,
The vendor won't pay any mind to your gripe,
So boot it. Just boot it.

When you discover that a process won't die,
If kill -9 won't work there's nothing else to try.
Your jobs are dead meat, so kiss 'em goodbye
And boot it. 50 hours of work,
Just boot it, boot it.
And if you can't boot it, shoot it!

When you reboot it, work will be lost.
It doesn't matter what this will cost.
Just boot it. Just boot it.
Just boot it. Just boot it.

When all the characters are coming out weird,
And won't come back right even when the screen is cleared,
You can't fix such things by tugging your beard
So boot it. Just boot it.

If your computer still is running Windows,
And every time it crashes your frustration grows.
When the system's not free, you will always be hosed.
Just boot it. Put a GNU system on,
And boot it, boot it.
Or put it in your horn, and toot it!

It doesn't matter what was to blame.
Till you reboot it, your machine's lame.
Just boot it. Just boot it.
Just boot it. Just boot it.
It doesn't matter what you did wrong.
Till you reboot it, your machine's gone.
Just boot it. Just boot it.
Just boot it. Just boot it.

http://stallman.org/doggerel.html#BootIt
Copyright (c) 2001 Richard Stallman Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.