॥ स्वक्ष ॥

To content | To menu | To search

Tag - Linux

Entries feed

2011 May 3 [Tuesday]

Building packages from source tutorial by DebianWomen

DW is conducting a packaging tutorial. Do note, this is not a tutorial for upstream package building from source, but still, its worth listening to. Here is Marga's announcement::

Are you enthusiastic about Debian and thinking about contributing? We want to guide you with the basics.

We are convinced that there are a lot of people out there that want to get involved with Free Software but don't know where to start.  For Debian, the most common task you'll do as a contributor is rebuilding a package.

The Debian Women project, in collaboration with the OpenHatch project, will be holding an IRC event to help people that want to compile their first Debian package from source, and apply their first patch.

The event

On Saturday May 7th, two tutorial sessions will be held on #debian-women on irc.debian.org to help people rebuild a package for the first time.
The earlier session, suggested for those that live in Oceania, Asia, Africa and Europe, will be held at 11:00 UTC. 

The later session, suggested for those that live in the Americas, will be held at 22:00 UTC. You can find out the exact time in your timezone by using the timezone converter: http://www.timezoneconverter.com/cgi-bin/tzc.tzc

There will be people available to answer questions and generally help out with any difficulties that might arise all along the day.

More info at http://wiki.debian.org/DebianWomen/BuildItEvent

Intended audience

This event is aimed to anyone who wants to rebuild a Debian package for the first time, it's a simple task that doesn't require any previous knowledge, only a working installation of Debian (or Ubuntu, or other Debian-derived system).  We want to particularly encourage women who want to get involved, to take their first steps in
contributing to Free Software, but everybody is welcome.

More about IRC

IRC is a real-time chat system you can use to get in touch with members of the Debian community. You can connect to IRC through lots of different clients, including xchat, pidgin and konversation.

About Debian Women

The Debian Women project seeks to balance and diversify the Debian Project by actively engaging with interested women and encouraging them to become more involved with Debian. http://women.debian.org

About OpenHatch

OpenHatch is an open source community aiming to help newcomers find their way into free software projects. It works towards this goal through on-line and outreach events. This event is a reappropriation of the OpenHatch "Build it" events.


2010 June 2 [Wednesday]

Pbuilder installation on UbuntuHardy

Pbuilder, constructs a chroot system and builds a package inside the chroot. It is an ideal system to use to check that a package has correct build dependencies and to build clean packages to be tested and distributed. Debian uses pbuilder for packaging and they have lotsa manuals...




Pbuilder manual - Junichi Uekawa


Ubuntu also uses Pbuilder for all their packaging work. Ubuntu has a Packaging Guide but i was following the instruction on the Ubuntu wiki page while trying to install it on hardy. Installed the dependencies and tried to create it.

$sudo pbuilder create --distribution hardy --othermirror "deb http://archive.ubuntu.com/ubuntu hardy main restricted universe multiverse"

Error!! "Command line parameter [.dsc] is not a valid .dsc file name"

The .pbuilderrc file was supposed to be created automagically but it wasnt.


But it was nigelb and geser to the rescue and its the real-time responses that makes me addicted to IRC but I find it amusing that we use cryptic and terse mode of communication on irc as compared to complete sentences in email/forums. hmmm...not sure if this is good or bad in the long runbut switching modes suddenly makes it kinda weird.

$sudo pbuilder create

$sudo pbuilder update --override-config

Upgrading for distribution hardy
Building the build Environment
extracting base tarball [/var/cache/pbuilder/base.tgz]
creating local configuration
copying local configuration
Installing apt-lines
mounting /proc filesystem
mounting /dev/pts filesystem
policy-rc.d already exists
Refreshing the base.tgz
upgrading packages
Hit http://archive.ubuntu.com hardy Release.gpg
Hit http://archive.ubuntu.com hardy Release
Hit http://archive.ubuntu.com hardy/main Packages
Reading package lists... Done
dpkg - warning: ignoring request to remove lilo which isn't installed.
Obtaining the cached apt archive contents
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
dpkg-dev is already the newest version.
apt is already the newest version.
aptitude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copying back the cached apt archive contents
unmounting dev/pts filesystem
unmounting proc filesystem
creating base tarball [/var/cache/pbuilder/base.tgz]
cleaning the build env
removing directory /var/cache/pbuilder/build//15479 and its subdirectories

...and pbuilder was ready to be used.

$sudo apt-get update

Next it was pulling a package to build and source it via wget, apt-get, or dget for the .dsc file from packages.ubuntu.com -- only for packages in the ubuntu repo. If your code sits as a branch on your cvs, it wont be pulled from packages.ubuntu.com.

The 'Packaging from Scratch' section asks you to create a directory before using wget but its a different method when you are using a cvs. If its hosted on LP, use bzr to pull it::

$sudo bzr export -r73 /dest/dir lp:~systers/systers/stable

and make sure you dont create the "/dest/dir" by hand as bzr will protest that the file exists in the target directory but the target dir will be empty. Bzr export needs a non-existing destination as it will create the directory owned to root. Somewhere in the middle of changing the ownership it simply locked me out ...wtf? and the next steps failed quite obviously. Then I had to waste a lot of time deleteing each file and folder.

In between this, Bescom decided to be the royal pita that they usually are, conked off power for half the day-- they had some work being done at the supplying station and the engineer was even kind enough to warn the residents of our area that an electric pole was going to be replaced in the street this week so be prepared for power outages at intermittent intervals of 10-15 minutes outage all day as they would be testing. WTF? Telling him that electrical appliances dont tolerate this well got the stock reply "install an UPS". How kind of him to enlighten us. Dont I just love the way our government servants treat the tax-paying citizens.

Adding to the annoyance, nothing worked after that. dh_make, used to create a template for packaging would not be invoked and I recall reading somewhere that dh_make was supposed to be done right the first time, else it would not work. 

$dpkg-source -x *.dsc
dpkg-source: error: cannot open .dsc file ./*.dsc: No such file or directory

Oh ok, now I need to find out a solution for that as well as how to create a .dsc file for the source pulled from LP.

2010 January 8 [Friday]

bengaluru lug january meet

Here is an update on the Bengaluru LUG meetup tomorrow:

From, http://groups.google.com/group/ilug-bengaluru/browse_thread/thread/e276d78bb443394f

ILUG Bengaluru Meetup - Saturday 9th January 2010

Time:  1630 Hrs onwards.

       ThoughtWorks Technologies
       2nd Floor, Tower C, Corporate Block,
       Diamond District, Old Airport Road


       Neo Freerunner

               - state of neo freerunner/ open hardware
               - state of the software/firmwares openmoko/android etc.
               - personal experiences of various users

       Anything goes session

       Will be an unstructured/open format meetup.

Regular Activities:

       GPG keysigning - http://www.debian.org/events/keysigning

For newcomers

The meet itself will last ~1-2hrs, but usually a smaller group tends to move
to other locations for extended discussions which can potentially last until
way past dinner :-)


2009 November 17 [Tuesday]

bangpypers lug meetup

Date and Time : At 16:00 hrs on 2009Nov22 (Sunday).

Venue :  ThoughtWorks Technologies ; 2nd Floor, Tower C, Corporate Block ; Diamond District, Old Airport Road ; Bengaluru

Proposed agenda: R.Mahadevan's talk on python bindings for llvm.

2009 June 21 [Sunday]

fosscomm delhi meetup

The Fosscomm.in coalition of like-minded volunteers, NGO's and individuals is planning a meeting of the FOSS COMMunity of India in Delhi, to discuss key issues facing the community and strategies for dealing with them. All are welcome. Details below :

Date and Time : On Saturday 2009July04, the meetup will start at 10.00 AM and is planned for the whole day.

Venue : JNU, South Delhi. (exact venue within JNU is awaited)

Proposed agenda:

1. Reporting on the Bengaluru FOSSCOMM first meeting and follow up. Here is an update.

2. “Open Standards” Follow up on the Department of IT's draft policy on open standards

3. FOSS in Education What the FOSS community can do in : a) School Education ,b) Higher Education

4. Open formats and open standards

5. Legal issues

6. Building political consensus around FOSS as India's best bet for development.

The travel costs as well as the cost of stay will have to be borne by the participants.

Outstation folks who require accommodation should contact Prof. Andrew Lynn <lynn.andrew at gmail.com> and  "rajesh kalithody" <myidrajesh at gmail.com>. Lunch will be provided at the venue.

[/Updated : 20090703]

2008 November 26 [Wednesday]

Linuxchix and Bangalore LUG dinner

IndiChix and Ilug-Bengaluru are having yet another dinner meetup at MG road today. An earlier meet was at the ThoughtWorks office and I hope they are kind enough to allow us to use the place in future too !! Granted, last week its was a farewell dinner but the fact that this is the fourth meetup in one month is a good sign of a live 'n kickin group !

Date: Wednesday 26th November 2008
Time: 1900hrs (That's 7o'clock in the evening!)
Place: Hotel Shelton Grand - MG Road/ Church Street @ 24hr Coffee Shop - BTDT (Been There Done That)
Food: All you can eat Buffet for INR.199+taxes = INR.235 (all inclusive)

Directions to the Dinner meet : The Shelton Grand entrance on MG Road is right next to the Deccan Herald office and they have a vertical neon light which should be viewable from a distance. They also have an entrance on church street in case you want to park on Church Street/Museum Rd/Resthouse Rd and walk to the venue.

The IndicChix mailing list has the map details so go register using the link therein. Feel free to join us and pass the word around....See you there !!!

2008 October 19 [Sunday]

HDD health with Smartmontools

Noel wrote a nice article on smartmontools, a tool to detect and warn of impending disk failures, a must have if you like to maintain your system.

Adding the line "sudo hdparm -B 254 /dev/sda" in my /etc/rcS.d file to reduce the Load_Cycle_Count (ID#193) results in the Temperature overshooting the limit (it should not be more than 45ºC). This is apparently not good for the disk health. Activating laptop-mode means it fails to function in the battery mode....not nice either!!

According to Noel :

hdparm -B 254 /dev/sda causes that your disk can NOT spin down nor make any kind of power management. Remember always that every single KiloWatt-hour you spend in your computer (or any piece of it, like a hard disc) is a KiloWatt-hour that turns into heat and a KiloWatt-hour you must manage with the cooling system. I strongly suggest against that kind of aggresive performance setting except for dedicated servers in 24×7 attended rooms.

I suggest changing the hdparm value to 127 (or simply to delete that line) AND to better ventilate the disc.

It seems, folks at seagate forums have been complaining about it too...  So is there another solution available to protect laptop disks from frequent head (un)parking AND managing temperature at the same time or are they mutually not feasible in SMART?

Forgot to add about the Bengaluru LUG met yesterday (which was my first LUG meet in this city, the earlier meets being FSUG meets) with Sriram, Kingsly, Rajshekhar, Sandip Bhattacharya, Deepika and me in attendance. The tasty lunch kept up an interesting exchange on a lazy Saturday afternoon and I need to find a way to stay away from Cauvery on MGRoad.

2008 September 15 [Monday]


Its fantastic to see an idea grow and carried forward because other people believe in it. Thrilled to announce that we have a new addition to the LC family -- Labs in DELHI :-) YAY !!

FAT-net has agreed to host the space and bandwidth and its open to women learners only but men are allowed to conduct technical talks. Check the 'fat-net.org' website for their addres. Contact Hassath [hassath gmail com] and AjayKumar [ajuonline gmail com]for more details. With Delhi its 4 Indian metros covered ...the others being :

2.MUMBAI: At the Bigadda office in Malad. Contact Jayashree Pare [Jayashree DOT Pare # GMAIL DOT] or Warren Noronha - Email: warren.noronha AT gmail.com { Phone: +91-989-280-6204}

3.PUNE :  Contact Swatee Karpe (swateekarpe # GMAIL dot COM) for further details.

4.BANGALORE : DeepRoot Linux Pvt. Ltd., #93/4, First Floor, Nandidurga Road, Bangalore - 560 046 INDIA Phone: +91 (80) 4112 4781 / 82 / 85. Contact Mr. Abhas Abhinav or me.

2008 September 7 [Sunday]

FSF bengaluru meetup

FSF-India (aka gnu.org.in) is the force behind fending off the pro-software patent lobby in India. Thus far they have done a very good job of resisting the legislation of software patents. This was the first agenda, among other things, discussed in the planning meeting to celebrate Software Freedom Day/Week from Sep20-27.

FSUG-Bangalore met at Sunil's office and he pampered us with drinks, pastries and snacks :). If i recall all the names correctly it was Edwin, Jayakumar, Renukaprasad, Sujith, Abhas, Senthil, Anivar, Sunil, Sreedhar, and me attending yesterday..... Did I miss 2 names? sorry :-/

Among other things we had suggestions for :

0] Celebrating GNU's 25 b'day.

1] Statewide contest,

2] Say No to Software Patent Campaign debate

3] Install fests,

4] Celebrating SFD with BMS, RV, Christ, St.Joseph's college students at multiple venues.

5] Banners, posters , etc... Corporates pitching in are always welcome.

AND more ....Over the next few days things will fall into place.

- page 1 of 4