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.
Friday, April 17, 2009
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
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
Sunday, December 7, 2008
Monday, November 10, 2008
Programming Songs
Got them in an e-mail
1.Two Recursive functions calling each other
Mujhe kuchh kehna hein
mujhe bhi kuchh kehna hein
pehle tum, pehle tum
2. The debugger
Jab koi baat bigad jaye
Jab koi mushkil pad jaye
Tum dena saath mera hamnawaz
3. From VC++ to VB
Yeh haseen vaadiyan
Yeh khula asmaan
Aa gaye hum kahan
4. Untrackable bug --
aye ajnabi, tu bhi kabhi,
awaaz de kahin se
5. Unexpected bug (esp. during presentation to client)
Ye kya hua, Kaise hua, Kab hua, Kyon hua
6. And then to the client
Jab hua, Tab hua, O chhodo, ye na socho
7. Load Balancing
Saathi haath badhana
ek akela thak jayega
mil kar bojh uthana
8. Modem - talk on a busy connection
suno - kaho,
kaha - suna,
kuch huwa kya?
Abhee to nahin...
kuch bi nahin
9. Windows getting open sourced
Parde mein rahne do
parda na uthao
parda jo uth gaya to bhed khul jayeha
allah meri tauba, allah meri tauba
10. Local variable
Jeena Yahan Marna Yahan,
Iske siva Jana kaahan.
11. Global variable
Musafir hoon yaaron,
na ghar hai na thikana
12. Null pointers
Mera jeevan kora kagaz kora hi reh gaya ..
13. Dangling pointers
Maut bhi aati nahi jaan bhi jati nahin.
14. GOTO
Ajeeb dastan hai yeh
Kahan shuru kahan khatam
Ye manzilen hain kaun si
Na woh samajh sake na hum
15. Hidden or Private scope Variable/value
Jaanejan dhoondta phir raha,
Hoon tujhe raat din,
main yahan se wahan
1.Two Recursive functions calling each other
Mujhe kuchh kehna hein
mujhe bhi kuchh kehna hein
pehle tum, pehle tum
2. The debugger
Jab koi baat bigad jaye
Jab koi mushkil pad jaye
Tum dena saath mera hamnawaz
3. From VC++ to VB
Yeh haseen vaadiyan
Yeh khula asmaan
Aa gaye hum kahan
4. Untrackable bug --
aye ajnabi, tu bhi kabhi,
awaaz de kahin se
5. Unexpected bug (esp. during presentation to client)
Ye kya hua, Kaise hua, Kab hua, Kyon hua
6. And then to the client
Jab hua, Tab hua, O chhodo, ye na socho
7. Load Balancing
Saathi haath badhana
ek akela thak jayega
mil kar bojh uthana
8. Modem - talk on a busy connection
suno - kaho,
kaha - suna,
kuch huwa kya?
Abhee to nahin...
kuch bi nahin
9. Windows getting open sourced
Parde mein rahne do
parda na uthao
parda jo uth gaya to bhed khul jayeha
allah meri tauba, allah meri tauba
10. Local variable
Jeena Yahan Marna Yahan,
Iske siva Jana kaahan.
11. Global variable
Musafir hoon yaaron,
na ghar hai na thikana
12. Null pointers
Mera jeevan kora kagaz kora hi reh gaya ..
13. Dangling pointers
Maut bhi aati nahi jaan bhi jati nahin.
14. GOTO
Ajeeb dastan hai yeh
Kahan shuru kahan khatam
Ye manzilen hain kaun si
Na woh samajh sake na hum
15. Hidden or Private scope Variable/value
Jaanejan dhoondta phir raha,
Hoon tujhe raat din,
main yahan se wahan
Thursday, September 18, 2008
Donut Hour Sponsor Message
Bill Gates: Hi, I am a Mac
Steve Jobs: Hi, I am a PC
Scott McNealy: Hi, I am Linux
Linus Trovalds: Hi, I am Solaris
Bill: Dudes, u should see this ... Mac rocks dooods !!
Steve: Huh, Not as good as vista man ! Vista rules !!
Scott: Gimme a break ! U guys copy from me. Linux is the innovator. Linux Owns.
Linus: Oh shut it ! Solaris runs the world. Solaris Pwns.
Bill: I'm hungry. Mac makes me hungry. Wonder y that is ?
Steve: Yeah right! Me too doood. I'm hungry myself. Vista makes me hungry.
Scott: I think its a virus which induces hunger in the users.
Linus: Ah ! The first symptom of Machines taking over us. They'll force us to eat until we explode and take over our world.
Neo: Oracle told me about this. Our only chance of survival is by eating a donut which contians the antidote. I am "THE ONE" and I will make those donuts tonight.
All those who are infected by this cross-platform virus must come and get treated at Comp Sci lounge on friday 19th Sep 2008 at 3:30. Vaccination is the only cure.
Abhishek Dhamija
P.S. - Please dont tell anyone that Neo works at Dunkin Donuts.
Steve Jobs: Hi, I am a PC
Scott McNealy: Hi, I am Linux
Linus Trovalds: Hi, I am Solaris
Bill: Dudes, u should see this ... Mac rocks dooods !!
Steve: Huh, Not as good as vista man ! Vista rules !!
Scott: Gimme a break ! U guys copy from me. Linux is the innovator. Linux Owns.
Linus: Oh shut it ! Solaris runs the world. Solaris Pwns.
Bill: I'm hungry. Mac makes me hungry. Wonder y that is ?
Steve: Yeah right! Me too doood. I'm hungry myself. Vista makes me hungry.
Scott: I think its a virus which induces hunger in the users.
Linus: Ah ! The first symptom of Machines taking over us. They'll force us to eat until we explode and take over our world.
Neo: Oracle told me about this. Our only chance of survival is by eating a donut which contians the antidote. I am "THE ONE" and I will make those donuts tonight.
All those who are infected by this cross-platform virus must come and get treated at Comp Sci lounge on friday 19th Sep 2008 at 3:30. Vaccination is the only cure.
Abhishek Dhamija
P.S. - Please dont tell anyone that Neo works at Dunkin Donuts.
Subscribe to:
Posts (Atom)

