12 Nov 2007

VIM: Slow to startup

Vim takes a long time to start.

Check your $DISPLAY variable is pointing to a valid X-Host.

08 Oct 2007

smbclient 2 Windows 2003 server. Quicky

1.) Update smb.conf file: Global section.
# Global parameters
[global]
workgroup = DOMAIN-NT
security = DOMAIN
server string = Samba %v on %h - Wacky
max log size = 65536
preferred master = No
local master = No
domain master = No
wins server = 192.167.0.4, 192.168.0.6
password server = 192.168.0.4, 192.168.0.6
idmap uid = 20000-29999
idmap gid = 20000-29999
template homedir = /dev/null
winbind enum users = Yes
winbind enum groups = Yes

restrict anonymous = 2
syslog = 1

;client schannel = no
;winbind use default domain = Yes

msdfs proxy = no

2.) Join the domain.

/usr/local/samba/bin/net RPC join -U username
And then
/usr/local/samba/bin/net rpc testjoin

3.) Connect.

smbclient //server/share -U username%password -W DOMAIN-NT
Domain=[DOMAIN-NT] OS=[Windows Server 2003 3790] Server=[Windows Server 2003 5.2]
smb: \>

Done.

20 Jul 2007

Mount an ISO image

lofiadm -a /export/temp/software.iso /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 /mnt
mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt

mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt



Source: http://www.tech-recipes.com/solaris_system_administration_tips218.html

10 Jul 2007

Cron log: Bad user

This happend on Solaris 10 when the user account is locked out.
Change the entry in the shadow file from LK to NP

30 Apr 2007

Performance Tuning

iostat -xnc 10


     cpu
us sy wt id
25 12 14 49
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.3 0.9 3.2 7.9 0.0 0.0 6.0 16.6 1 1 d1
16.3 102.6 3011.8 960.0 0.5 1.0 4.3 8.3 0 48 c4t600C0FF000d0



I/O-Bound System

Field Value sar Option

%busy (% time disk is busy) >85 sar -d

%rcache (reads in buffer cache) low, <85>30 sar -u
fileserver >80

Excessive Swapping/Paging

bswot/s (ransfers from memory to disk swap area) >200 sar -w

bswin/s (transfers to memory) >200 sar -w

%swpocc (time swap queue is occupied) >10 sar -q

rflt/s (page reference fault) >0 sar -t

freemem (average pages for user processes) <100>2 sar -q

%runocc (% run queue occupied and processes not executing) >90 sar -q


Good reference site.


02 Jan 2007

OK Prompt

OK Prompt

Get to the OK prompt from Solaris.

Enter "~ctrl_b"

From the Lom> prompt type "break" and enter.