NX and Freenx tarball for Solaris 10 SPARC

After doing the slackware build, i felt i could do the solaris 10 build… it required some tweaking on the freenx scripts to
make it all work. This is both freenx 0.7.0 and the nomachine NX libraries version 2.1.0-2.
nx-sol10-sparc.tar.gz
place it in your server at /, and uncompress.
# cd /
# gunzip nx-sol10-sparc.tar.gz
# tar xvf nx-sol10-sparc.tar
Then run the nxinstall script, which will check for the required packages. all of them from blastwave.org.
VERY
IMPORTANT: if these are missing, install them!!!! nx+freenx won’t work
without ggetopt, expect, gmd5sum, gfind, ggetopt,netcat from blastwave
at /opt/csw/bin!!!
# nxinstall
this
After this, you’ll be ready to use any nx client on another computer to connect to your Solaris 10 SPARC
freenx server!
Then install the client on your PC from:
http://www.nomachine.com/download-package.php?Prod_Id=65
And connect to your solaris server 🙂
ENJOY
NX + freenx Slackware 12 package
After having a hard time to make it all work, i built a package to install both freenx 0.7.0 and the nomachine NX libraries
version 2.1.0-2.
freenx_0.7.0_nx_2.1.0-2.tgz
It is a SLACKWARE 12 package. Once you downlad it do a:
180/433
# installpkg freenx_0.7.0_nx_2.1.0-2.tgz
# nxsetup –install
And connect to your linux server using the client downloaded from:
http://www.nomachine.com/download-package.php?Prod_Id=65
ENJOY
181/433

To wipe out all disks

Sometimes you need to delete all info in your disks, perhaps because it contains private data. You can effectively do this
by erasing the first 1024 blocks on the disk. After doing this the disk will lose its label and the partition schema. You can
run the next script to obtain the list of commands that will do it on your server:
#!/bin/ksh
format < /dev/null| egrep “cyl” | while read l;do
D=`echo $l | awk ‘{ print “dd if=/dev/zero of=/dev/dsk/”$2″s2 count=1024” }’`
echo $D
done
Thanks to Alejandro Siller
108/433

Solaris password expiry explained with words

If we check this “passwd -sa” output:
bash-3.00# passwd -sa | egrep ‘rdircio|root’
root PS
rdircio PS 12/21/09 14 56 14
It means that root’s password never expires since it doesn’t have any expiry rule. rdircio’s password was last
changed 12/21/09, the system won’t let me change it but 14 days after 12/21/09, it will expire and need be
changed 56 days after 12/21/09, i will be warned 14 days before it expires that i need to change it
44/433

get a table with HBA info without fcinfo

We want a table that maps cX to its wwn and to its device path, like
ControllerWW port name
WW node name
Device Path
c1
p:210100e08b27e1 c7 n:200100e08b27e1 c7/pci@9,700000/pci@4/SUNW,qlc@4
So we wrote a script for it, hbainfo.ksh:
#!/bin/ksh
prtpicl -v -c scsi-fcp | egrep ‘ww|devfs’ | sed ‘s/:node-wwn//g; s/:port-wwn//g;s/:devfs-path//g; s/ //g’ | nawk
‘ORS=NR%3?” “:”n”‘ > /tmp/piclmap.$$
(for c in `cfgadm -al | grep “fc-” | awk ‘{ print $1 }’`;do
/usr/ucb/echo -n $c;
luxadm -e dump_map /dev/cfg/${c} | grep Adap |while read l;do
for w in `echo $l`;do
WC=`echo $w|wc -c`
if [ $WC -eq 17 ];then
/usr/ucb/echo -n ” $w ”
fi
done
echo “”
done
done
) | while read l;do
W=`echo $l |awk ‘{ print $2 }’`
L=`echo “$l ” | awk ‘{ print $1 ” p:” $2 ” n:”$3 }’`
/usr/ucb/echo -n “$L ”
grep $W /tmp/piclmap. $$ | awk ‘{ print $3 }’
done
rm /tmp/piclmap. $$
Thanks to Hiram Ruiz for the commands
133/433