From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bef1953c88e11e X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-07-12 19:06:11 PST Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!math.ohio-state.edu!caen!batcomputer!munnari.oz.au!metro!grivel!godel.une.edu.au!norm From: norm@godel.une.edu.au (Norman Gaywood) Newsgroups: comp.unix.osf.osf1 Subject: Re: Exporting /usr Message-ID: Date: 13 Jul 93 01:18:40 GMT References: <1293@grivel.une.edu.au> Sender: usenet@grivel.une.edu.au Nntp-Posting-Host: godel.une.edu.au luchini@ic.ac.uk (Dr Marco Luchini) writes: > However I prefer to mount /usr read-only so I also had to: A good idea. > 1) Move /usr/lib/X11/xdm/* to /var/lib/X11/xdm/* and edit S95xdm to > reflect this change (CONFIGFILE and xdm-pid location). Then modify > xdm-config.fs and xdm-config to reflect the change in path. Also add > the resource DisplayManager.authDir to reflect the new location. Make > sure the GID of /var/lib/X11/xdm is bin everywhere (use tar to copy it > across) otherwise xdm will not be able to write the authorization file > for the server, since I mount /usr ro. Yes this is a problem with my setup. I solved it in a similar fashion to you. I edited the first two lines of the files /usr/lib/X11/xdm/xdm-config and /usr/lib/X11/xdm-config to look like: DisplayManager.errorLogFile: /var/lib/X11/xdm/xdm-errors DisplayManager.pidFile: /var/lib/X11/xdm/xdm-pid I also made the directory /var/lib/X11/xdm. I didn't worry about the GID being bin. xdm is started and runs as root so it should be able to write where it wants. As far as I know, the above two files are the only files that xdm tries to write in /usr. > 2) Make sure that you have your lmf directory in /var/adm/lmf rather > than the default /usr/var. Remember to add "-d /var/adm/lmf" to > /sbin/init.d/startlmf so that you get the correct reset. Otherwise you > lose the licenses after a boot. This should not be a problem. lmf looks in /usr/var/adm/lmf as you say. However, in the setup I described, /usr/var points to /var so lmf will find its files in /var/adm/lmf. Of course it requires that /usr be mounted before lmf runs (which is the case). > Because of the different approach I also had to > > 3) Move /sbin/rc3.d/S26sia to /sbin/rc3.d/S09siaS26 or similar number. > This used to be necesary under BL10 and may have gone away since the > upgrade to BL12 but I didn't bother checking it since we should be > getting OSF1.3 soon with a DEC-approved dataless setup. I not sure why you had to do this mod. I am running BL10 and it seems to run OK. I wonder if the DEC approved dataless setup will be like their DMS setup under Ultrix. Whereas this did work quite well, it did comsume a lot of disk space. > Presumably Norman's setup cause problems with xdm's PID getting > overwritten. Yes it did. The solutions outlined above solve this though. At the end of my first message I pointed out that this trick may not work if your nfs mounts require routed to be running. Dave Cherkus (cherkus@zk3.dec.com) pointed out by email that /sbin/route exists. So it's possible to manually add the important routes by hand. -- Norman Gaywood. Department of Mathematics, Statistics and Computing Science. University of New England, Armidale, NSW 2351, Australia. Internet: norm@godel.une.edu.au, phone: +61 67 732412, fax: +61 67 733312