3.17.2007

make Firefox in Ubuntu look much better

The look and feel of web pages in FireFox in Ubuntu (possibly other Linux distros) by default stinks (in my opinion).  Trying to convert myself from Windows solely to Linux, this has been hard, but I found a way to make the fonts look really good in Firefox (improves the entire experience):
http://www.ubuntuforums.org/archive/index.php/t-91280.html

Change the fonts in preferences:

where it says, serif, select 'Bitstream Vera Serif'
where it says, Sans-serif, select 'Bitsteam Vera Sans
where it says, Monospace, select 'Bitsteam Vers Sans Mono'

how to: switch from Windows to Linux

My switch from Windows XP to Ubuntu Linux:

convert RPM to DPKG for installing:  install the package called 'alien'

http://diveintomark.org/archives/2006/06/26/essentials-2006

powerfail scsi messages in syslog

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=15842&admit=-682735245+1161469244473+28353475

ll /dev/dsk | grep 052200

0x1f052200
The First two hex digits (1f - 31 decimal) denote the major device number. If you do an lsdev, you will note that 31 is the scsi disk block device.

After that it decodes as follows the following hex digits:
05 - c5
2 - t2
2 - d2
00 - the last two minor device digits are driver specific
But yours is: SCSI Block Disk Device, c2t2d2

the last 6 digits are the minor number of the device.

OVO agent: opcagt error on start

hostname.root /$ /sbin/init.d/opcagt start
Error opcctla   (Control Agent)(21829) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Error parsing source file /var/opt/OV/conf/OpC/agtreg - syntax error in line 1. (OpC30-2604)
ERROR:   Problems with starting OpC Agent processes or none configured.

hostname.root /$ /var/opt/OV/conf/OpC/agtreg
hostname.root /$ /sbin/init.d/opcagt start
hostname.root /$
hostname.root /$

hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg

hostname.root /$ /sbin/init.d/opcagt start
Error opcctla   (Control Agent)(22144) : Errors occurred during the read of the
ITO subagent registration file. (OpC30-1250)
Can't open configuration file '/var/opt/OV/conf/OpC/agtreg' for reading.
No such file or directory (OpC20-202)
ERROR:   Problems with starting OpC Agent processes or none configured.

hostname.root /$ rm /var/opt/OV/conf/OpC/agtreg
hostname.root /$
hostname.root /$

hostname.root /$ /opt/OV/bin/OpC/opcagtreg -add /opt/OV/bin/OpC/install/itoagt.reg
hostname.root /$ /sbin/init.d/opcagt start
OpC Agent processes successfully started.


lock / unlock account user id on HP-UX trusted system

/usr/lbin/getprpw useraccount
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount

lock / expire password:
/usr/lbin/modprpw -e useraccount

Do not use a capital E, as it will expire the password on all user accounts.

nfs / rcp / CDE issue

This problem seems to keep happening since this box was upgraded to 11.11.  The rpc/nfs daemons seem to restart at 00:05.  Killed all fin_wait_2 connections and restarted nfs/rpc daemons.:

stuff=$(/usr/bin/printf "%.2x%.2x%.2x%.2x%.4x%.2x%.2x%.2x%.2x%.4x\n" \
$(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | \
/usr/bin/awk '{print $4,$5}' | /usr/bin/sed 's/\./ /g'))

for x in $stuff
do
/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr $x
done


 /sbin/init.d/nfs.server stop ; /sbin/init.d/nfs.client stop ; /sbin/init.d/nfs.core stop
 /sbin/init.d/nfs.core start ; /sbin/init.d/nfs.client start  ; /sbin/init.d/nfs.server start


solution:  It was being caused by a cronjob stopping and starting rpc, but was not doing it correctly.

3.16.2007

NFS exports to PC clients on EMC Celerra

Doing NFS exports to a PC client normally requires and authentication daemon running on the host system: pcnfsd on unix systems, just referred to as pcnfs on EMC Celerra   So it's more complicated than setting up NFS for Unix clients.

do a powerlink (powerlink.emc.com) search for: pcnfs celerra
look for a pdf document titled: Configuring NFS on Celerra
one of the appendixes: NFS Authentication for PC Clients

There's also a primus article regarding pcnfs: emc43806, below is the gist of the article:

# Set up a user account.
#     Open the /nas/server/server_x/netd file with a text editor, add pcnfs on a separate line, and save the file.
#     Where x is the number of the Data Mover.
#     Reboot the Data Mover.
#     Export a file system for the user(s) to access.
#     On the PC, launch the PC-NFS. Refer to the vendor's respective user manual for details on what is required
          at this point for setup and/or login.
#     Enter the username and password as required by the software package.

3.11.2007

update DST for Linux and BSD (freebsd, openbsd, etc)

Here's a good article on how to update your timezone information files for the new Daylight savings time rules for 2007:  http://articles.techrepublic.com.com/5100-10877_11-6163042.html?part=rss&tag=feed&subj=tr

The proper file to download is tzdata2007 c.tar.gz   not the tzdata2007b.tar.gz noted in the article.