Tuesday, October 23, 2012

ssh/su Hung ubuntu

Problem: ssh/su hung on ubuntu:


debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/sajan.tharayil/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.

Answer:

This is because of the high CPU utilization of console-kit-daemon on the machine which you are log on to. This is a Bug filed in ubuntu developers forum and fixed in release Jaunty. (Please See Bug). This can be fixed by restarting /etc/init.d/dbus temporarily.

#sudo /etc/init.d/dbus restart

Tuesday, October 16, 2012

Build Debian Packages from source with dh make

I am trying to create a deb package for graphite-web-0.9.9. I followed the steps below:

1. Install dh-make
   apt-get install dh-make
2.  Download graphite-web-0.9.9
   wget http://launchpad.net/graphite/0.9/0.9.9/+download/graphite-web-0.9.9.tar.gz
3. Create the Directory strucure. We have to create the directory as same as the package name with version as in the tar ball. Here "graphite-web-0.9.9.tar.gz" tar ball name and the directory will be "graphite-web-0.9.9":
    mkdir graphite-web-0.9.9
4. Run dh_make inside the directory:
   cd graphite-web-0.9.9; dh_make -f ../graphite-web-0.9.9.tar.gz
5. Edit what ever needed in "./debian" directory. Atleast the control file with maintainer and package version
6. Run "dpkg-buildpackage -rfakeroot"  and your package is ready!