Showing posts with label Solaris. Show all posts
Showing posts with label Solaris. Show all posts

Thursday, February 28, 2013

Solaris 11 update with Oracle support repo

Was having lots of problem doing pkg update on Solaris 11 (SRU 7.5)

The whole download and creating of BE will work and then bootadm will fail, and won't be able to boot into new BE.

Solution: update to SRU10.5 first
pkg update --accept entire@0.5.11,5.11-0.175.
Then update pkg:
pkg update pkg:/package/pkg
Then only do the patch proper to update to Solaris 11.1
pkg update --be-name s11.1ga --accept

Crossing my fingers hoping it works.

Monday, March 5, 2012

Force user logout

Just discovered a convenient way to kill (force logout) users in linux/unix.

pkill -KILL -i user

Friday, February 24, 2012

Solaris slow login script

Recently, I have a consistent complain from a user about very slow SSH logins to Solaris 10.

I've tried various method to debug, looking into all sort of possible network issues. I set LookupClientHostnames to no. I even tried UseDNS no but the SSH that came with Solaris 10 doesn't recognize that command. BEWARE!! UseDNS in your sshd_config file will cause SSH to not be able to start!

At the end, I decided to time my startup script in /etc/profile

It appears that /usr/sbin/quota takes more than 20s to run. So the solution was to either modify /etc/profile and /etc/.login, or to do a touch .hushlogin in the user's home directory.

I opted for the latter.