Lund Sponsor Message | |||||||||
|
|||||||||
|
|||||||||
January 1999 | |||||||||
How to Make
Posix Work on MPE/iX 5.5
|
|||||||||
By Michael D.
Hensley and readers of 3000-L This article contains almost everything you need to know to get Posix properly configured and working on HP 3000s under MPE/iX 5.5. A lot of this was stolen from 3000-L newsgroup posters. I tried to give credit where due but Im willing to take the blame for any errors. Use at your own risk, batteries not included. Commands preceded by a
: should be typed at the MPE/iX prompt; commands preceded by a
$ should be typed in the Posix shell. Restoring HFS files,
correcting file permissions and fixing up your etc/profile file are all
fixed with the 6.0 version of MPE/iX. Im also including suggested
changes to vi arrow keys and modifying HPPATH which arent
technically fixes but make Posix easier to use on HP 3000s. [This tip was supplied by John Dunlop] Some sites are completely missing all of the HFS files (this is usually caused by an incorrect reload). From the MPE CI, try :LISTFILE /bin/; if no files are found, you will need to restore them from the FOS tape. 1. Restore the following from
the FOS tape: 2. :STREAM I0036431.USL.SYS 3. After I0036431 finishes, All of the HP-supplied HFS files will be restored, and the directory structure and permissions set to the defaults. Note: if you just want to
restore all HFS files on a backup tape, try :RESTORE
/-@.@.@;SHOW;KEEP;OLDDATE;CREATE. [Thanks to Gilles Schipper for this
last item.] The file permissions are wrong on a lot of files. The first thing you will probably run into is the message
in response to various commands (tput, tabs, vi...). To fix this, log on with SM capability and do:
More incorrect file permissions There are still more permissions to fix, like /usr/man for non-SM users. Here is a workaround that can be used to fix up those odd 5.5 permissions [Thanks to Lars Appel of HP for this!]. 1. Restore hfsfiles.hp36431.support from the FOS tape. (This file will be used just to get a list of the files which we need to modify). 2. 3.
The quote mark which precedes tar and follows 57- in the above command is the backward quote usually found as the top-left key on a keyboard, and those surrounding the ^d are normal single quotes. 4. Fix up your /etc/profile file Finally, fix up your /etc/profile file which gets executed automatically whenever anyone invokes the shell [much of the following comes from Jeff Kell]: All of this is fixed (and even improved) in MPE/iX 6.0. If you implement the changes as shown, and put any additional local customizations you like in /etc/profile.local, then after the installation of MPE/iX 6.0 overwrites your /etc/profile, it will still continue to work! If you dont own Robelles QEdit (why not?), I hope you can use vi to edit bytestream files (if not, thats an experience in itself). Figure 1 below shows the revised /etc/profile, suitable for cut-and-pasting into your favorite text editor. I have posted notes on the changes at our Web site, at www.allegro.com/posix/pnpposix. txt.
The idea is that starting with MPE/iX 6.0, you shouldnt make changes to /etc/profile anymore; instead, put your local customizations into the file /etc/profile.local. This way, HP can replace /etc/profile without wiping out your local customizations! Arrow keys in vi Ok, now how about those pesky arrow keys in vi? [I stole this answer from Danny A. van Delft] Create a file named .exrc, which
contains the following: Note that ^V stands for
<CTRL>V and ^[ for <ESC>, all literal. You need the ^V to tell
ex that the next character should taken literally, not interpreted. (And
the leading : has nothing to do with MPE here.) You should add HPBIN.SYS to your path:
for a few handy UDCs. Getting a head start Starting with MPE/iX 6.0, the last thing /etc/profile does is call /etc/profile.local; this is where you should now put your local customizations.You should not modify /etc/profile, because it will be overwritten by future version. Figure 2 below is a full copy of the MPE/iX 6.0 /etc/profile file.
Move your local customizations to /etc/profile.local, and replace your /etc/profile with the new one now, and youll be much happier when you upgrade to 6.0. Congratulations to HP, by the way: This is a very elegant design. With these fixes and changes, Posix is ready to use under MPE/iX 5.5. So go pick up copies of GNU C++, Perl, Python and Java from the HP Jazz Web server or the Interex FREEWARE tape, and have fun! Michael Hensley is a developer with Allegro Consultants and creator of the FREEWARE tape of free utilities and programs for HP 3000s. |
|||||||||
|
|||||||||
Copyright 3000 NewsWire, all rights reserved |