Friday, 31 May 2013

VNC configuartion in solaris


Install & configure Xvncserver on Solaris10 OS

You will find SUNWxvnc package from Solaris10 companion-i386-sol10 CD You can download it from

bash-3.00# pkgadd -d . SUWxvnc

and after install vncserver on Solaris you will have service FMRI for it

bash-3.00# svcs -a | grep x11

online          3:25:55 svc:/application/x11/xfs:defaultand

svcadm enable svc:/application/x11/xvnc-inetd:default

sceern resoultion before change

bash-3.00# more .vnc/xstartup.orig

#!/bin/sh

 

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

twm &

 

sceern resoultion after change

 

bash-3.00#

 

 

bash-3.00# more .vnc/xstartup

#!/bin/sh

 

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 1020x1200+10+10 -ls -title "$VNCDESKTOP Desktop" &

twm &

bash-3.00#kill services and start it again .( disable X11 service & start again)

 

 

 

 

Thursday, 30 May 2013

The savemail panic



The savemail panic message is noted when sending mails.


Below messages are found in syslog.


(sunstation1:/)# tail /var/log/syslog
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 577507 mail.debug] tid= 1: serverAddr=45.222.28.206:20389
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 939703 mail.debug] tid= 1: AuthType=1
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 142272 mail.debug] tid= 1: TlsType=0
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 537450 mail.debug] tid= 1: SaslMech=0
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 625532 mail.debug] tid= 1: SaslOpt=0
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 639905 mail.debug] tid= 1: userID=cn=proxyagent,ou=profile,dc=dev,dc=mobile,dc=belgacom,dc=be
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 801593 mail.info] p588K1BN001067: p588K1BO001067: return to sender: aliasing/forwarding loop broken
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 801593 mail.notice] p588K1BO001067: setsender: : invalid or unparsable, received from localhost
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 801593 mail.alert] p588K1BN001067: Losing ./qfp588K1BN001067: savemail panic
Jun 8 10:20:01 sunstation1 sendmail[1067]: [ID 801593 mail.crit] p588K1BN001067: SYSERR(root): savemail: cannot save rejected email anywhere

(sunstation1:/)# mailx -s "Test" <mailid>
EOT
(sunstation1:/)# Jun 8 10:33:35 sunstation1 sendmail[15981]: [ID 801593 mail.alert] p588XZAI015981: Losing ./qfp588XZAI015981: savemail panic



Can be rectified by removing the ldap datasource from nsswitch.conf file.

(sunstation1:/)# cat /etc/nsswitch.conf | grep ali
aliases: files ldap
(sunstation1:/)#


automount: files ldap
aliases: files
"/etc/nsswitch.conf" 49 lines, 1416 characters
(sunstation1:/)#



Restart sendmail services

(sunstation1:/)# svcs -a | grep sendmail
online Mar_28 svc:/network/smtp:sendmail
online Mar_28 svc:/network/sendmail-client:default
(sunstation1:/)#

(sunstation1:/)# svcadm restart svc:/network/smtp:sendmail
(sunstation1:/)# svcadm restart svc:/network/sendmail-client:default

(sunstation1:/)# mailx -s "Test" <mailid>
EOT
(sunstation1:/)#