Tuesday, April 21, 2009

ScribeFire and Xobni

I have started using ScribeFire for blogging from Firefox. Its kinda cool.

Also I am using Xobni for my Outlook account at work. The stats feature is quite good .

Change mountpoints in Solaris 10

To change the mountpoints just edit the /etc/vfstab file and the mountpoint will change upon reboot.

The change remains active across reboots until you change it.



Friday, April 17, 2009

Set environment variables in Bourne shell (sh)

To set an environment variable use this

PATH=$PATH:/usr/local/bin (just an example)
export PATH

This will export the change to the environment variable.

To make persistent changes in Solaris 10 add these lines to /etc/profile file.

Enabling SSH on a Minimal Solaris 10 Install

After a core solaris 10 install I was having problems sshing into it.

So this is what i did.

1. FTP the SSH packages from the solaris CD/DVD to the solaris machine

root@srv-3 Product # cp -R SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr
SUNWsshu /home/srv-1/sshpkg/
root@srv-3 Product # cd /home/srv-1/sshpkg/
root@srv-3 sshpkg # ls
SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu
root@srv-3 sshpkg # tar -cf ../ssh.tar *
root@srv-3 sshpkg # tar -tf ../ssh.tar
SUNWsshcu/
SUNWsshcu/archive/
.
.
.
SUNWsshu/reloc/
SUNWsshu/reloc/usr/
SUNWsshu/reloc/usr/bin/
SUNWsshu/reloc/usr/lib/
SUNWsshu/reloc/usr/lib/ssh/
root@srv-3 sshpkg #

Make sure you DO NOT use a windows box to send the files as the solaris installer pkgadd is case sensitive and for some reason windows was making all the file names inside the DVD in uppercase.

2. On solaris side

tar -xf ssh.tar
pkgadd -d .
svcadm enable ssh
svcadm restart ssh

3. Still I was getting an error “no kex alg” on sshing as root

For this run
/lib/svc/method/sshd -c

It'll make rsa and dsa public and private key pairs

4. Restart ssh

svcadm restart ssh

5. Voila !! Done