Thursday, August 13, 2009

Installing Emacs 23 on Debian lenny :-)

This is as simple as that. We are going to get the latest Emacs(ie Version 23)
source from the sid repos and build .deb's from that. Installing those resultant .deb's through dpkg is fine. But we are going to follow a cool solution in which synaptic will handle that for us :-) So here goes the entire step by step documentation.

Note: You need to do all the following steps with root privileges.

1)edit your sources.list to add sid repository. Add only the deb-src.
cd /etc/apt
gedit sources.list


2)add the following line to the sources.list file.
deb-src http://ftp.debian.org/debian/ sid main


3)now run the following commands in the terminal

apt-get build-dep emacs23
apt-get -b source emacs23

This will create the .deb packages needed to install Emacs 23. Whooa!! :-)
but wait, the Emacs 23 depends on latest texinfo package. So now you have to back port that too.
Repeat the same steps for texinfo. i.e
apt-get build-dep texinfo
apt-get -b source texinfo

Now we are done with all the .deb's needed to install Emacs 23.

4) You may install those directly from command line through dpkg. But as i said earlier the coolest part will be doing that by synpatic :) So, copy all the .deb packages built to /home/user_name/packages. See change the user name to your user name.

cp *.deb /home/user_name/packages/
cd /home/user_name/packages


5)Now do the following command to create the Packages.gz file that is needed to for Synaptic to “see” your repository
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Be sure to install the build-essential package (aptitude install build-essential) before running the above command.

6)Now its time to open the sources.list again. Open it and add the following line.
deb file:/home/user_name/packages/ /


7) You are done :-) Just run
apt-get update

Once its over you can install Emacs 23 from synaptic.:D Install it.
Enjoy PDF-viewing, anti-aliased fonts,Unicode suport and many more. Have fun !

Thanks to an african blogger and gravity(nick) who replied to my queries in #debian IRC channel.

Friday, August 7, 2009

1.. 2.. 3..

Well, I have completed the topics i was instructed to learn by my mentor. They include,

1) Read the communication/project guidelines to be followed while doing F/OSS project.

Read and understood with the help of wonderful materials here
  1. Read mailing list guidelines
  2. Read Communication Guidelines
  3. Read i-want-2-do-project-tell-me-wat-2-do
  4. Read GNU Coding Guidelines
2) Basic commands in Linux(ownership,permissions,grep).

This i am familiar with already, as i am using Linux for more than a year now.

3) Emacs

I have used this pretty cool editor at times before and didn't take much time.

Cheat sheet for emacs -Emacs-a-day-keeps-the-vi-zing-away
4) Version Control system(GIT)

I am already used to SVN, and now have learnt about git and its usage.
Hmmm., anyway i think SVN was more easy for me as of now. Things might change after i get my hands dirty with Git.

I was instructed previously to learn bash scripting also, but that was put on hold for some time now. Other than that, am done with the remaining. :-)

Thursday, August 6, 2009

Hello world :-)

A traditional first post. :-)

I was instructed by my mentor to create a blog to update my activities in the project.

I do already have a personal blog. I don’t want to mess it up with this because, if more people will be visiting to this blog then all my personal junk will be thrown all over the search engines. Grrr.

So, decided to start a new one for sharing my technical experiences. I will also be updating my status and work done regarding my project in this space.

OK. Now, whats the project am going to do?? Well, that’s yet to be decided.

These are some preliminary preparations i have to do :-)

Meet you soon with an update:-D