4 Steps to add Ubuntu Systems to Active Directory Setup

By abhishek | Fri, 02/05/2010 - 12:13

The IT environment today in any organization is a sort of a mixture where many different Operating Systems are used, and Windows Active Domain Controller exists in majority of such organization.

Below is a 4 step How to on "Connecting Linux (Ubuntu) Systems to Active Directory Setup"

1) Update the Software Repositories

sudo apt-get update

2) Install Required Packages (likewise-open)

sudo apt-get install likewise-open

3) Join The Domain using Domain Administrator Account, replace Administrator with Domain Administrator Username and fqdn..domain with the Fully Qualified Domain Name

sudo domainjoin-cli join fqdn.domain Administrator

4) Update the Startup Scripts

sudo update-rc.d likewise-open defaults
sudo /etc/init.d/likewise-open start

Thats it !! you have now joined the Domain, Log Off or preferably Restart the Machine.

Now you can login using Active Directory Credentials remember appending DOMAIN\ before your username

User Name to Login : DOMAIN\username
Password: domainpassword

This will also create a home Directory for Domain Users under /home/DOMAIN

Contributing to Wikipedia

By abhishek | Tue, 01/26/2010 - 14:21
This user is a Novice Editor and is entitled to display this Service Badge.

Wikipedia today has become an unparalleled source of content on virtually any topic and has grown with a great pace, The content available on wiki is all contributed by users like you and me and is available under a Creative Commons Attribution-ShareAlike Licence which allows reuse of this content in various forms by attributing in a manner specified by the author.

You can also be an author on wikipedia even if you are not so great in writing, still you can contribute to wikipedia by rectifying articles in which you have an understanding, you can correct mistakes done by various authors or even start a new article if it doesn't exist in the list which has now crossed 3,170,000 mark.

So what are you waiting for, start writing and correcting articles to build this free encyclopedia even better, but use this tool effectively do not edit any article in which you don't have any understanding, add articles only on topics where you have understanding always specify references while editing articles. Do not copy any content which is copyrighted it will be deleted for sure.

My Experiences while Editing Wikipedia

I have been using wikipedia since long as many of us and have edited various articles which i thought needed improvement and currently have more than 200 live edits on wikipedia. I have seen many of my edits being deleted for various reasons and i can safely say that there are users out there who continuously watch each edit and if its not up to the mark or violates any policies the edit is deleted within no time. I am currently watching articled related to Kashipur, Uttarakhand, Personalites from Uttarakhand and various topics of my intrest. The latest article i contributed is on Shree Moteshwar (Bheemashankar) Mahadev Temple. below is list of my Top 5 Edited/Contributed Articles

Lets gear up and contribute what all we can, and make Wikipedia Stronger

My Wiki User Contributions Page

GNUnify 2010

By abhishek | Mon, 01/18/2010 - 10:52

GNUnify 2010: A forum to unite Open MindsGNUnify is one of the biggest FOSS Event organized by the students of Symbiosis Institute Of Computer Studies & Research (SICSR) Pune & Pune GNU/Linux Users Group. GNUnify is entering in its 8th year with GNUnify 2010.

When: 19th & 20th Feb 2010

Where:  Symbiosis Institute of Computer Studies and Research, Atur Centre, Gokhale Cross Road, Model Colony, Pune-411016, Maharashtra, INDIA. Tel : +91-20-25675601

Event Website : http://gnunify.in

GNUnify Gallery: http://gnunify.in/gallery

LFU Update : Story in Linux for You March 2009 (pg 36)

Hope to see a great Event ahead

Domains in Your own language

By abhishek | Sat, 01/16/2010 - 21:21

I am sure that by now you would have at least seen one domain name which was written in a non-english language but still if you have not seen any such domain the screen shot below would explain the entire story. I would try to explain the mechanism behind these kind of Domain Names in this post

Domain in Hindi

Domain Names which can be viewed in a language-specific script are known as Internationalized Domain Names or IDNs. This concept was introduced in December 1996 and was first implemented in 1998 but ICANN issued guidelines for the use of IDNA only in June 2003 any by today most of the TLDs support IDNs.

The Working

As we all know that a domain name has to resolve to an IP Address to function, but as language-specific domain names contains NON-ASCII characters and there are various limitations in their use, to overcome this basic limitation an encoding mechanism for such names is implemented by which this collection of  NON-ASCII characters are used to prepare a suitable character set which can be used, lets check the process with the following example

http://काशीपुर.com  = http://www.xn--11b6bsw3bni.com/

now अभिषेक.com contains 2 parts अभिषेक and com in which com is already an ASCII string and hence left as it is, अभिषेक is processed by Nameprep and then converted to Punycode to get l1b6a6dvbzbxc which is a meaningless string for most of us, this output is prepended with xn-- to produce xn--l1b6a6dvbzbxc which becomes the first part of the domain name an entry for this (xn--l1b6a6dvbzbxc.com) is made in DNS to map these names with IP Addresses.

IDNs are registered with a limited number of registrars by using their ASCII equivalent strings, currently .com/.net/.info and various other ccTLD are available for registration .org is expected to be available by this month (January 2010) end, ccTLD .in is currently not available for IDNs.

Starting November 2009 ICANN have started registering language-specific TLDs as well and such TLDs are expected to hit the internet somewhere mid-2010, we may soon see some domains with  .भारत as TLDs soon if Indian Government applies for such a TLD :)

IDNs are not much popular in India currently but still the domain parking race have already begun for Hindi TLDs for instance domains like भारत.com, पुणे.com and various others are already gone

Use of IDN have opened up new ways for Localization and Internationalization but using IDNs have also raised various ASCII Spoofing concerns due to which various Browsers do not have all the IDN TLDs enabled by default for instance  the Newer Versions Firefox  does not support .com IDNs by default to enable the same you need to set a parameter "network.IDN.whitelist.com;true" in firefox configuration using about:config, please be careful while doing so this may not be always recommended due to various reasons check this for further information on this.

phpcamp 2010

By abhishek | Wed, 01/06/2010 - 10:48

phpcamp pune 2010: A gathering of php enthusiastphpcamp is Back and this time its even bigger.

What a start for the year, i see various major tech events lined up this month and later, to start with the biggest PHP unconference in India or maybe in Asia the phpcamp is scheduled on 9th January 2010

Attend PHPCamp Because learning from humans is much better than Google

Event Website : http://phpcamp.org

Event Date: 9th January 2010

Register ASAP: http://phpcamp.eventbrite.com/ The number of allowed participants are limited, organizers have already increased the number twice.

Venue: Symbiosis Center of Distance Learning, Model Colony, Pune, India


Year 2009 Memories

By abhishek | Thu, 12/31/2009 - 13:46

Year 2009 was a great experience for me as i started my Professional Career in February 2009 and Completed Post Graduation in June 2009, I had been working for various organizations till 2008 as a freelancer/consultant, but in the beginning of 2009 i started my Professional Life by joining Maybole Technologies Pvt Ltd as a System Engineer.

I am tring to list down a few of my memories of each month of Year 2009

Speaking @ Drupal Camp 2009January 2009

After completing the Semester III of my Masters i was in search of Internship/Job which would would lead to completion of my MSc (CA) Programme, Markets were on a all time low and this search was taking just too long but fortunately on 27th January i appeared for Maybole Technologies and was recruited. In January i was also a part of the Organizing Team on 2nd Drupal Camp India we successfully organized the Event on The 31st January, the event received appreciations from all and was attended by more then 250 people which we never expected.

In January 2009 i also migrated my major Websites to a new Hosting Service


February 2009

It was Feb 2nd when i joined Maybole Technologies, I was introduced to the staff and was assigned a temp desk and books to read and my first day ended reading several Redhat Books. I started working only on the Third Day, and witnessed many things/operations which i was just unaware about in the past.

GNUnify 2009 was scheduled in Mid February, i used to come to SICSR after my office hours and at sometimes in lunch hours as i was given the responsibility for maintaining GNUnify 2009 website, but unfortunately i was not able to be present for GNUnify on both the days. On Second Day of GNUnify i took a Workshop on Drupal which was a great experience for me as it was the first time i took a workshop, in GNUnify 2008 i had only presented a topic.

My Drupal CVS was approved.

March 2009

First Salary, i was excited, the month went in writing a few scripts and configuring Application Servers, I would remember March 2009 as i released Gamabhana on Drupal.org Gamabhana was developed by Mr Omkar Joshi but was not available on drupal.org for various reasons and i contacted Mr Joshi and were able to release the module with permission. Also went for the Annual Maybole Trip

April 2009

Third month on the job worked on various configuration to select the most appropriate version of it, tries various new and old systems. Drupal Hindi Translations for Drupal were in full swing with a few contributors coming on board, planned to release a hi package. Submitted my final report for MSc (CA) appeared in the viva.

May 2009

Huuh Busy in office not much additional activities seen server crashes......... Released hi Package on Drupal.org

June & July 2009

Freelancing yet again reltok......... project came in tries various modules and customized a few on worked on theming for the first time. reltoked for 2 months to gave it a shape excited over the project.

August 2009

This was a important month, recieved an offer from Symbiosis to join in as Web Administrator, resigned from Maybole and was loaded wil some additional work of documenting my work and train my  colleague regarding my responsibilities.... Applied for creating a hi project on localize.drupal.org on 24th August and Gabor created it for for on 26th Aug exported all translation collected using drupall10n.com to the new Drupal Translation Server.

August 31st my last day at Maybole,was excited to join Symbiosis yet again this time not as a student :) met all the fellow maybole staff complied a few memories from Maybole. Would never forget Mr Mahendra for all support and favor he provided me at Maybole

September 2009

I am back in Symbiosis, With meetings lined-up from Day 1, met the staff understanding how this organization works took me an entire month and even long i am still unaware of many things here. Took Drupal Association Membership, Planning and working for Drupal Sprint India Adison Berry is expected in the event, this has to be a big event for Indian Drupal Community

October 2009

Working on a few new activities for Symbiosis its fun working here, i am bit relaxed here as compared to the last organization and people are adaptable. Work for Drupal Sprint India is on fast pace, the event is in end of the month, i am looking over the website and managing other activities and promoting the event as much as i can. Drupal Sprint India a 2 day non stop went on quite well Few Documentation were comitted in Drupal.org. With Karunakar helping in Hindi Localization we added upto 1000 new translations in 2 days. the event was exciting and a learning experience.

October was a big month for me as Kashipur.in completed its 3 years.


November 2009

Symbiosis is now a bit active on Social Media, Convocation is next month Papa & Mummy coming for the Event, they would be in Pune for the first time.

December 2009

Convocation on the First Weekend Papa & Mummy coming on 5th December, i am eagerly waiting for them as have not gone to home since 6 months, And finally its day of Convocation left early with parents to SIU met friends all are excited for the Convocation Dr Shashi Tharoor is the chief guest for the Event, This Convocation is also important in the history of SIU as it was its first Convocation in its Lavala Campus. The Convocation Ceremony Started and after a series of motivating speeches the ceremony ended around 3 PM, Now I am officially a Post Graduate.

Took a 2 day leave from office and will be with parents, went to Bheema Shankar and then for a movie with Parents, it was fun to be with them after a long time. And i am back to work.

Released a new hi package once again with the new translation received in Drupal Sprint India2009, Montu Bhai (Mayank Nagar) is in Pune for a 2 days so met him over a lunch. In December went for a number of movies, i dont think that i would have seen these many movies in the last 11 months.

The Year was fun filled hoping a great year ahead.

Wising You all a Very Happy New Year.

Drupal for Education & E-Learning Review

By abhishek | Wed, 11/25/2009 - 11:28

Drupal for Education & E LearningTechnology is changing the way in which we do the normal day to day things, Libraries are changed to Digital Libraries, Educational institutions and corporate are moving to no paper offices. Building up a corporate Intranet System is the need of hour. 


Drupal for Education & E-Learning is a great work by Bill Fitzgerals which can be used to build your own intranet system.



The book gives a step by step guide to build up a complete intranet for your college/school and how to effectively use it for better communication


Use this book to build up an intranet systen which will provide your services like

  • Teachers & Students Blogs
  • Enrolling Students
  • Bookmarking Content
  • Podasting over the Intranet
  • Video Hosting
  • Forums
  • Social Networks
  • Student Progress Tracker


The book provides an excellent step by step guide to setup the entire System, Special Thanks to PACKT Publishing for providing the book for review. I highly recommend this book for Educational Institutions for building their own systems


Sample Chapter : Creating Student Blog

Drupal Sprint India 2009

By abhishek | Tue, 11/03/2009 - 22:46

Dexter introducing PLUG @ dsi2009

Drupal Sprint India was a 2 day event held on 30 & 31st October 2009 in Pune and was one of the biggest Drupal Sprints ever held in India, Sprinters from Kashmir, Karnataka, Delhi, Gujrat and almost all regions of India took part in making this event a huge success, this event was divided in mainly 3 parts Sprints, Talks & Workshops, Sprint was sub classified as Code Sprint, Documentation Sprint & The Translation Sprint.

Day 1)

Sprint @ dsi2009The event started half hour delayed with a welcome message from PLUG, which continued with a talk by Aradhana Sharma on "Customizing your Drupal website using RULES", and while she was delivering her talk few of us were getting ready the Sprinters Hall, in a hour time the Sprints started with Adisson Berry heading the Document Sprint. With Sprinters coming in the Sprints were running houseful and talks went on well.

Abhishek Nagar @ dsi2009The first day talks included talks on


People were busy in listening to talks and beginners were busy with the workshop while Sprinters were# Customizing your Drupal website using RULES by Aradhana Sharma contributing the first Contribution came from Mr Prasad Shirgaonkar in the form of a Documentation for Localization which was highly appreciated, Sprinters worked on porting different Modules from Drupal 6 to Drupal 7.

The day came to an end for the Talks around 5:30 PM, but the sprints continued whole night, with sprinters working on various Modules. Documentation and Translations

Prasad Shirgaonkar @ dsi2009

Ankur Saxena @ dsi2009

Mir @ dsi2009

Gaurav @ dsi2009

Day 2)

Sprinters were on work for the whole night the first tweet for the ay 2 came around 3:00 AM :), Day 2 witnessed a drop in the audiance in talks but the Sprints continued housefull.

The second day talks included

  • Drupal 7, Anatomy of a killer release by Dipen Chaudhary
  • Do it with Drupal - The M3 Serve Platform by Gaurav Kumar
  • A Case Study of www.openthemagazine.com: How to make beautiful and featureful news and magazine websites in Drupal  by Sidharth Kshatriya
  • Building Indian Language based Social Networking Site with Drupal! by Prasad Shirgaonkar
  • Brightcove Integration with Drupal by Ravi Gupta
  • Workshop by Prasad Shirgaonkar on Quick & Easy Drupal Theme Creation!
  • The event schedule was reshuffled as one of the Speakers coming from a different location was unable to reach the venue due to some reasons.

The Sprinters were working hard with the sprints lot many bugs were fixed and reported, more than 500 Translations were done and uploaded to http://localize.drupal.org/languages/hi

Bhaskaracharya PratishtanFxing up the internetdsi Tshirt

Pre Event (Last minute arrangements)

Upgrading of the available bandwidth from 256Kbps to 8Mbs was a huge task and fortunately this was completed just one day before the event, Arrangement of event T-shirts just finished in time, setting up of Wifi at the Venue was the final task for 29th October 2009

For more images visit http://www.flickr.com/photos/tags/dsi2009/

Restrict Multiple Logins in Domain (AD)

By abhishek | Thu, 10/22/2009 - 12:00

I have always asked this question to my colleagues as to "How do i restrict Multiple Logins in an Active Directory Setup"

So here is the answer

Create a file when a user login and check for such file each time the login request is received  if file exists logoff, if file is not present Login and create the file. Its that simple

Below is the step by step process to achieve this using Group Policy


  1. Windows 2003 AD is being used
  2. //<server>/logon is shared and write access is given to everyone

The Steps

Step 1) Create 2 batch files in C:\WINDOWS\SYSVOL\sysvol\domain.name\scripts\logon

File 1: login.bat

If Exist \\server\logons\%username%.txt Goto notlogon
Echo %username% logged in from %computername% > \\server\logons\%username%.txt
Echo %username% logged in from %computername% > \\server\logons\%computername%.txt
Goto end

File 2: logout.bat

If Not Exist \\server\logons\%computername%.txt goto notlogon
Del \\server\logons\%username%.txt
Del \\server\logons\%computername%.txt
Goto end

Step 2) Modify Group Policy

Edit the Group Policy related to the OU where you want to disable multiple logins, In Group Policy Object Editor locate to

User Configuration > Windows Settings > Scripts (Logon/Logoff)

Add the login.bat created earlier in Logon and logout.bat in Logoff

Adding Login Script on Group Policy

thats it now when you login a file would be created in //<server>/logon with the username and computername of the loggedin user and he/she will not be able to login to other computer and once he logoff these would be automatically deleted and the user will be allowed to login on any Client.

This was simple

Random Link for Wordpress Blogs

By abhishek | Mon, 10/19/2009 - 18:54

I recently started my Photo Blog, after various considerations i choosed Wordpress for it, currently i have more than 20 photos posted on it which is not actually a big number but i found that the older images or posts will never be seen to the readers as they don't appear on the frontpage for more than 4-5 days, which created a requirement of creating a Random Link on frontpage to show a Random post to the user if he wants to and this began search for a module or a plugin as its said in wordpress.

But No Luck i found various plugins but i needed something very very simple so i thought going by the code which lead me using the following code in my header.php to create a Random Post link

$randomPost = $wpdb->get_var("SELECT guid FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY rand() LIMIT 1");
echo '<a href="'.$randomPost.'">>>Random Image<<</a>';

The above code is quite simple and does exactly what is needed to generate a random post link for your wordpress blog.