1) Try Janice Windsor's book "Solaris system administrator's guide", from
SunSoft press. It includes a good listing towards the end of command
conversions.
2) The Answerbook under Solaris has a Transition Guide that contains 50+
page tables of exactly that, comparing not only commands, but system
calls and library calls.
3) The latest Solaris 2 FAQ, including an HTML version, and some other
goodies can be obtained through ftp from ftp.fwi.uva.nl:/pub/solaris.
Maintained-by Casper Dik .
4) Suite of tools, in the AdMigration-2.2a Toolkit, expedites migration
ofrom Solaris 1.0 to Solaris 2.x
------------------------------------------------------------------------------
Differences between BSD SunOS 4.1.X and System V Solaris 2.X 1995 Mar
------------------------------------------------------------
> b -sw <-> ok init s
/dev/sd0a / <-> /dev/dsk/c0t3d0s0 /
/dev/sd0b swap <-> /dev/dsk/c0t3d0s1 swap
/dev/sd0d /var <-> /dev/dsk/c0t3d0s3 /var
/dev/sd0e /home <-> /dev/dsk/c0t3d0s4 /home
/dev/sd0f /??? <-> /dev/dsk/c0t3d0s5 /opt
/dev/sd0g /usr <-> /dev/dsk/c0t3d0s6 /usr
/dev/sd0h /usr/openwin <-> /dev/dsk/c0t3d0s7 /usr/openwin
/dev/sr0 /cdrom <-> /vol/dev/dsk/c0t6/ /cdrom
/dev/fd0 /pcnfs <-> /vol/dev/diskette0/ /floppy
/dev/rst0 <-> /dev/rmt/0l 1st QIC150, 8200
/dev/nrst0 <-> /dev/rmt/0ln
/dev/rst1 <-> /dev/rmt/1l 2nd QIC150, 8200
/dev/nrst1 <-> /dev/rmt/1ln
/dev/rst8 <-> /dev/rmt/0m 1st QIC150, 8500
/dev/nrst8 <-> /dev/rmt/0mn
/dev/rst9 <-> /dev/rmt/1m 2nd QIC150, 8500
/dev/nrst9 <-> /dev/rmt/1mn
For more info: man st
/usr/etc/halt <-> /sbin/init 0
/usr/etc/reboot <-> /sbin/init 6
/usr/etc/shutdown <-> /sbin/init s
- end up in single user mode
/usr/etc/shutdown +5 <-> /usr/sbin/shutdown -y -g300
- shutdown in 5 minutes
/etc/group XXX /etc/group (different entries)
/etc/secuity/group.adjunct XXX no equivalent file
/etc/passwd XXX /etc/group (different entries)
/etc/secuity/passwd.adjunct XXX /etc/shadow (different layout)
/usr/bin/hostname <-> /usr/bin/uname -n
/usr/bin/arch <-> /usr/bin/uname -m
/usr/bin/mach <-> /usr/bin/uname -p
/usr/bin/hostid <-> /usr/sbin/sysdef -h
/etc/hosts <-> /etc/inet/hosts
/etc/host.equiv <-> /etc/host.equiv
/etc/host.lpd <-> n/a
/etc/hostname.le0 <-> /etc/nodename
/etc/magic <-> /etc/magic
/etc/ethers <-> /etc/ethers
/etc/resolv.conf <-> /etc/resolv.conf
/etc/fstab <-> /etc/vfstab
/etc/exports <-> /etc/dfs/dfstab
/etc/auto.master <-> /etc/auto_master
/etc/auto.direct <-> /etc/auto_direct
/etc/auto.mnt <-> /etc/auto_mnt
/usr/etc/exportfs <-> /usr/sbin/share
/usr/etc/exportfs -a <-> /usr/sbin/shareall
/usr/etc/exportfs /??? <-> /usr/sbin/share -F nfs /???
/usr/etc/exportfs -u /??? <-> /usr/sbin/unshare -F nfs /???
/usr/etc/mount -a <-> /usr/sbin/mountall
/usr/etc/mount -a -t nfs <-> /usr/sbin/mountall -F nfs
/usr/etc/umount -a <-> /usr/sbin/umountall
/usr/etc/umount -a -t nfs <-> /usr/sbin/umountall -F nfs
/usr/etc/showmount <-> /usr/sbin/dfmounts
mount /dev/sd0a / <-> mount /dev/dsk/c0t3d0s0 /
mount /dev/sd0g /usr <-> mount /dev/dsk/c0t3d0s0 /usr
mount -t nfs zeus:/usr /usr <-> mount -t nfs zeus:/usr /usr
/usr/ucb/lpr FILE <-> /usr/bin/lp FILE
/usr/ucb/lpr -P PRINTER FILE <-> /usr/bin/lp -d PRINTER FILE
/usr/ucb/lpq -P PRINTER /usr/bin/lpstat -d PRINTER
OR <-> /usr/bin/lpstat -o PRINTER
/usr/etc/lpc status PRINTER /usr/bin/lpstat -u USER
/usr/ucb/lprm -P PRINTER JOB# <-> /usr/bin/cancel PRINTER-JOB#
/usr/bin/cancel -u USER PRINTER
/usr/etc/lpc disable PRINTER <-> /usr/sbin/reject PRINTER
/usr/etc/lpc stop PRINTER <-> /usr/bin/disable PRINTER
/usr/etc/lpc enable PRINTER <-> /usr/sbin/accept PRINTER
/usr/etc/lpc start PRINTER <-> /usr/bin/enable PRINTER
/usr/etc/lpc restart PRINTER
no BSD equivalent <-> /usr/bin/lpmove PRINTER-JOB# NEW_PRINTER
ps -aux | grep lpd ... kill <-> /etc/init.d/lp stop
/usr/lib/lpd <-> /etc/init.d/lp start
vi /etc/printcap <-> /usr/sbin/lpadmin -x PRINTER
- remove unwanted printer
/usr/bin/ps -aux | grep lpd <-> /usr/sbin/lpshut
/usr/bin/kill LPD_PIDS
/usr/lib/lpd <-> /usr/lib/lp/lpsched
default printer = $PRINTER <-> default printer = $LPDEST
/usr/bin/ps -aux | more <-> /usr/bin/ps -fe | more
/usr/bin/ps -aux | grep USER <-> /usr/bin/ps -fu USER
/usr/bin/ps -tcon <-> /usr/bin/ps -t console
/usr/bin/ps -tp1 <-> /usr/bin/ps -t pts/1
/usr/bin/ps -t01 <-> /usr/bin/ps -t ???
/usr/bin/df <-> /usr/sbin/df -k
/usr/etc/dump <-> /usr/sbin/ufsdump
/usr/etc/restore <-> /usr/sbin/ufsrestore
/usr/lib/Profile <-> /etc/skel/local.profile
/usr/lib/Cshrc <-> /etc/skel/local.cshrc
/usr/lib/Login <-> /etc/skel/local.login
system-wide startup files: system-wide startup files:
(sh users) /etc/profile (sh & ksh users)
(csh users) /etc/.login (csh users)
user startup files: user startup files:
$HOME/.profile (sh users) $HOME/.profile (sh & ksh users)
$HOME/.cshrc (csh users) $HOME/.cshrc (csh users)
$HOME/.login (csh users) $HOME/.login (csh users)
$HOME/$ENV (ksh users)
$ENV is usually ~/.kshrc
printenv <-> env
~/.Xdefaults <-> ~/.OWdefaults
~/.openwin-menu - syntax is the same but must use the lastest
'/usr/openwin/lib/open-menu' then add changes.
~/.openwin-init - syntax is the same but very different
rename your old .openwin-init file then do a
(save workspace) command then add changes to
new .openwin-init.
default printer = $PRINTER <-> default printer = $LPDEST
/usr/etc/devinfo <-> /usr/sbin/prtconf
/usr/bin/mail <-> /usr/bin/mail
/usr/ucb/mail <-> /usr/bin/mailx
/var/spool/mail <-> /var/mail
/usr/spool/mail <-> /usr/mail
/var/spool/cron/crontabs/* <-> /var/spool/cron/crontabs/*
Sunday=7 Sunday=0
From sun-managers-request@newcastle.ac.uk Sat Aug 19 14:27:24 1995
Received: from cheviot.ncl.ac.uk by bowes.ncl.ac.uk; Sat, 19 Aug 95 14:27:23 BST
Received: by cheviot.ncl.ac.uk id
(8.6.12/ for ncl.ac.uk); Sat, 19 Aug 1995 14:26:41 +0100
Received: from sun3.nsfnet-relay.ac.uk by cheviot.ncl.ac.uk id
(8.6.12/ for ncl.ac.uk) with SMTP; Sat, 19 Aug 1995 14:26:40 +0100
Received: from ra.mcs.anl.gov by sun3.nsfnet-relay.ac.uk with Internet SMTP id ; Sat, 19 Aug 1995 14:23:05 +0100
Received: (from daemon@localhost) by ra.mcs.anl.gov (8.6.10/8.6.9) id MAA12282 for sun-managers-outbound; Thu, 17 Aug 1995 12:59:15 -0500
Original-Sender: sun-managers-relay@ra.mcs.anl.gov
Received: from tigger.jvnc.net (tigger.jvnc.net [128.121.50.145]) by ra.mcs.anl.gov (8.6.10/8.6.9) with SMTP id MAA12275 for ; Thu, 17 Aug 1995 12:59:03 -0500
Precedence: junk
Received: from edi.jvnc.net by tigger.jvnc.net with SMTP id AA08957
(5.65c/IDA-1.4.4 for sun-managers@ra.mcs.anl.gov); Thu, 17 Aug 1995 14:07:53 -0400
Received: by edi.jvnc.net (5.0/SMI-SVR4)
id AA28551; Thu, 17 Aug 1995 13:11:40 -0500
Date: Thu, 17 Aug 1995 13:11:40 -0500
From: jjr2@edi-nola.com (Jack Reiner)
Reply-To: jjr2@edi-nola.com (Jack Reiner)
Followup-To: junk
Message-Id: <9508171811.AA28551@edi.jvnc.net>
To: sun-managers@ra.mcs.anl.gov
Subject: SUMMARY: Keyboard remapping
X-Sun-Charset: US-ASCII
Content-Length: 2816
Sender: sun-managers-request@newcastle.ac.uk
Status: RO
SUMMARY: Keyboard remapping
Original post:
>Hello All,
>
>I need to remap X-terminal Function keys to act as the SUN-4 keyboard
>Front, Open, Copy, and Paste keys.
>
>These X-terminals are booting from a 1000 running Sol 2.3, OpenWindows 3.3.
>
>Answerbook and man pages did not appear to contain the pertinent information.
>
>If anybody can point me in the right direction, or better yet knows how to
>do this, please let me know.
>
>Thank you.
What a great bunch of people on this list! Give yourselves a hand!
xmodmap is the unanimous winner.
I created the following file named .xmodmaprc
keycode 117 = Home
keycode 114 = End
keycode 121 = Insert
keycode 134 = Prior
keycode 131 = Next
keycode 122 = Delete
!
! Sun Cut
keycode 112 = F20
! Sun Paste
keycode 120 = F18
! Sun Copy
keycode 119 = F16
! Sun Undo
keycode 118 = F14
! Sun Find
keycode 110 = F19
! Sun Front
keycode 109 = F15
Then, at the beginning of the users' .cshrc files, I added this line:
xmodmap $HOME/.xmodmaprc
The keyboard is a PC 101-style layout. The users wanted to use the six
"Insert,Home,Page-Up,Delete,End,Page-Dn" keys, located above the arrow
keys, for "Cut,Copy,Paste,Front,Find,Undo" and did not care about the
remaining Sun "L" keys.
Some special notes:
The Sun "L" keys are actually F11-F20. Special thanks to
steve@ma.hw.ac.uk (Steve Mowbray) for specifically mentioning this.
" [xmodmap] changes the mapping of X key events to keysyms for a given X
display. That is, its effects are global to that display, rather than
set up per client. This may be an advantage or a disadvantage in your
particular case." Special thanks to Dan Razzell
A search for xmodmap in AnswerBook returned zero entries, although
man pages had a lengthy entry.
The hardware involved:
HP 700RX x-terminals booting from SPARCserver 1000 running Sol 2.3,
OpenWindows 3.3 and HP's Enware 5.1 (boot software for the xterms that
runs on the SPARCserver).
And a big THANK YOU to all who responded:
Boyd Fletcher
heggli@htl-bw.ch (Heggli Beat)
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})
steve@ma.hw.ac.uk (Steve Mowbray)
"Srinivasa R. Yalavarthy"
nlf@aluxpo.att.com (Nelson Fernandez)
"Jeff J. Dingbaum"
kevin@virtual.virtual.com (Kevin Sampron [Systems Engineer - Advanced
billh@dcvast.com (Bill Holzapfel)
Khanh Vo khanh.t.vo@bagate.bell-atl.com
Dan Razzell
-----------------------------------------------
Regards, Structural Analysis Computer System
Jack Reiner Engineering Dynamics, Inc.
jjr@edi-nola.com 2113 38th Street
(504) 443-5481 Kenner, LA 70065 USA