jump to navigation

Howto: Setup ssh authentication without password April 25, 2008

Posted by Mayank in ssh, ubuntu.
Tags: , ,
add a comment
    create rsa/dsa keys using ssh-keygen utility. run the comand ssh-keygen


    mayank@B2 /home/mayank
    $ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/mayank/.ssh/id_rsa):
    Created directory '/home/mayank/.ssh'.
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/mayank/.ssh/id_rsa.
    Your public key has been saved in /home/mayank/.ssh/id_rsa.pub.
    The key fingerprint is:
    a7:00:03:16:e3:31:69:6d:cf:e0:5e:b7:e6:91:2c:80 mayank@B2

    scp the generated public to the target machine under the home directory of the user to which you would like have a password-less login.

    @:~user_name/.ssh/authorized_keys2

Next Steps:

Now when you try to ssh to the remote machine, you will be prompted for the passphrase each time. To avoid this you can use keychain. More information about that is available at the following pages.

http://www.ibm.com/developerworks/library/l-keyc.html

http://www.ibm.com/developerworks/linux/library/l-keyc2/

http://www.ibm.com/developerworks/linux/library/l-keyc3/

Enjoyyy!!!

Useful Ubuntu download links December 19, 2007

Posted by Mayank in ubuntu.
Tags:
add a comment

CD Images – http://releases.ubuntu.com/

DVD Images – http://cdimage.ubuntu.com/releases/

Howto: Install IE on ubuntu July 13, 2007

Posted by Mayank in ie on ubuntu, ubuntu, wine.
add a comment

http://www.howtoforge.com/ubuntu_internet_explorer

Installing Borland Together for Eclipse on Ubuntu June 19, 2007

Posted by Mayank in borland together, ubuntu.
add a comment

When I tried installing Borland Together for eclipse on Ubuntu I got the following error:


kumarmay@kumarmaylap:/tmp $ Together_2006_R2_LINUX.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer…

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.7420/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $ /bin/ls
env.properties.6269 env.properties.6967 gconfd-kumarmay hsperfdata_kumarmay install.dir.6967 keyring-Y5queS mapping-kumarmay orbit-root tmp7CTleI virtual-kumarmay.qQxDDJ
env.properties.6590 env.properties.7420 gconfd-root install.dir.6590 install.dir.7420 libgksu-vNFzZW orbit-kumarmay ssh-JHnKKy5938 Together_2006_R2_LINUX.bin
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $ basename
basename: missing operand
Try `basename –help’ for more information.
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $ java -version
java version “1.6.0”
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $ echo $JAVA_HOME
/opt/jdk1.6.0
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $
kumarmay@kumarmaylap:/tmp $ ls /lib/libc.so.6 /lib/librt.so.1 /lib/libm.so.6
/lib/libc.so.6 /lib/libm.so.6 /lib/librt.so.1

After some research I found out that this was happening due to an export in one of the installation shell scripts. To rectify the problem modify the bin file using the following command and then rerun the installation :

cat Together_2006_R2_LINUX.bin | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Together_2006_R2_LINUX.bin.new

Speed up your Broadband – Part II June 10, 2007

Posted by Mayank in broadband, ubuntu.
add a comment

Here’s another tip to speed up your broadband connection..

Besides other operations, the DNS lookup operation is a very expensive operation. A fast dns lookup operations really improves your browsing experience.

There is an excellent article about speeding up your dns connection @ wordpress which describes how you can create a local dns cache. I’ve tried it out and really love the new experience :).

Have a nice time..

Happy Ubuntu(ing)!

Suspend/Resume support for wireless n/w in Ubuntu 7.04 June 9, 2007

Posted by Mayank in ubuntu.
add a comment

We have suspend/resume working … actually nearly working ! I just realised that the wireless network goes for a toss when we resume an OS session. As always, we have a solution for that 🙂 …

Check out the “Suspend Support” section @ https://help.ubuntu.com/community/WifiDocs/NetworkManager

Just in case that section is not available … it is reproduced here for your convenience ..

Suspend support

At this point your connection won’t survive suspend or hibernate. You have to create two files for that:

* /etc/acpi/suspend.d/07-network-manager.sh

#!/bin/sh
/etc/dbus-1/event.d/25NetworkManager stop

* /etc/acpi/resume.d/63-network-manager.sh

#!/bin/sh
/etc/dbus-1/event.d/25NetworkManager start

Thats it ! now you should have a fully functional suspend/resume support in Ubuntu 7.04 🙂

Happy Ubuntu(ing)!

How to speed up your Broadband connection June 9, 2007

Posted by Mayank in broadband, ubuntu.
add a comment

I recently switched to a new Broadband service. I noticed that it has very shaky DNS servers which suffer with 2 major problems:
1. Their response times are amazingly pathetic
2. Their reliability is certainly nothing much to talk about

After some googling I found a very good solution which has greatly improved my broadband’s performance. I added the following DNS servers to my /etc/resolv.conf (this is for the ubuntu/linux guys 🙂 )

nameserver 208.67.222.222
nameserver 208.67.220.220

This sets http://www.opendns.com as u’re dns server :), which happens to be much faster and much more stable then my provider’s DNS servers.

For the windows guys, just right click on u’re network icon in the system tray, go to properties, then TCP/IP properties and change the DNS server.

Enjoyyyy!!

Suspend/Resume problems with Ubuntu 7.04 (Feisty Fawn) June 8, 2007

Posted by Mayank in nw8440, ubuntu.
add a comment

I have been facing suspend/resume problems with Ubuntu 7.04. The Keyboard and touchpad lockup and do not respond after I resume back from a suspend.

After some research I came across a bug in launchpad.net.

When I tried one of the workaround suggested by Jeff Abbott over there, the keyboard and mouse started working.

The workaround was to plugin a usb keyboard after the resume and run the following commands:

sudo sh -c ‘echo -n “i8042” > /sys/bus/platform/drivers/i8042/unbind’
sudo sh -c ‘echo -n “i8042” > /sys/bus/platform/drivers/i8042/bind’

If this works for you too, then you can try creating a couple of scripts mentioned at http://ubuntuforums.org/showthread.php?t=361285&page=2

It works perfectly on my Compaq nw8440.

Haven’t found a fix for hibernate till now, still working on that.

Happy Ubuntu(ing)!

Installing Ubuntu 7.04 (Feisty Fawn) on Compaq nw8440 May 30, 2007

Posted by Mayank in nw8440, ubuntu.
add a comment

I have a Compaq nw8440 with the following configuration:
Intel Core Duo T2400 1.83 Mhz processor
512 MB DDR2 333Mhz RAM
80 GB HDD
ATI FireGL V5200 Graphics Card
Soundmax sound card

The Ubuntu 7.04 release has some problems with the graphics card drives/x-server because of which most of the users with some particular ATI graphics cards are not being able to boot using the Live CD.

The Live CD fails to startup xserver and restores the screen to the console. I also tried the alternate CD but faced problems with the kernel installation.

I finally succeeded in the installation by getting the graphics drivers during the installation. The steps to follow to get this done are :
1. Boot the laptop normally using the 7.04 Live CD.
2. When you reach the console prompt, run the following commands:
sudo apt-get update
sudo apt-get install xorg-driver-fglrx
sudo depmod -a
sudo aticonfig –initial
sudo aticonfig –overlay-type=Xv
sudo startx

3. This will install the closed source drivers for your ATI graphics card and start the x-server. You can now proceed with the installation :).

A couple of things to note,
1. You might need to be connected to internet using the ethernet cable because when the x-server crashes, the wireless connection does not seem to have been established. As of now I have no clue why, but if u’re connected using ethernet while booting off the live cd you’ll be able to run the apt-get commands.
2. After installation you might face the same problem with drivers, repeat the same procedure. This happens because the drivers which you installed the first time actually get installed on the RAM DRIVE.

Happy Ubuntu(ing) !

Format XML documents in linux May 24, 2007

Posted by Mayank in ubuntu.
4 comments

To format xml documents in linux you can use a utility called xmllint.


# set the indent
$> export XMLLINT_INDENT=" "

$> xmllint –format –recover <XML_File_name> > <New_file_name>