Subject: Re: First Install
To: Albert Carter <SilverMoonTiger@wizzard.tiac.net>
From: Paul Goyette <paul@pgoyette.bdt.com>
List: port-mac68k
Date: 03/30/1997 12:59:12
You could always put the appropriate commands to modify your path in your
login file. It's ~/.cshrc if you use csh or tcsh, or ~/.profile if you
use sh. (And remember, ~ means your home directory, and filenames that
start with a . are by default not shown when you do a `ls' command.)
Also, the `export PATH' only applies to sh, while `setenv' only applies
to csh or tcsh.
It's obviously important to know which shell you're using. :)
On Sun, 30 Mar 1997, Albert Carter wrote:
> Ok I've done this, but now here's the problem for some reason it isn't
> saving the path of /usr/X11R6/bin. I've tried several things to do this.
> if I put in set path=($path /usr/X11R6/bin) it works find till I logout
> then it won't work. I've tried typing in export PATH=$PATH:/usr/X11R6/bin
> and it comes back with the error of "No underlying variables". so to find
> out if there needs to be any variables or options set I tried just typing
> in export and the error message "command not found" comes up. I've done
> this from both just the user and from su. Well X does come up great now
> but it gets tedious to type in set path=($path /usr/X11R6/bin) everytime I
> log out and log back in.
>
> X is also having problems redrawing it seems like whenever I use a man in
> one xterm window and then switch to another window the display gets all
> messed up.
>
> Oh also when I'm not working in X is there anyway of setting the background
> to be black and foreground to be white? If there is this would be much
> easier on my eyes. Doesn't seem to be as much of a problem in X with the
> white background and black forground, probably the full screen thing that
> causes it to be a problem. Oh also when not in X whenever I view a man and
> then hit <space> to go to the next page it comes up so the background just
> surrounding the letters is black and the letters are white, anyway of
> fixing this. This happens regardless of weather I'm using color or not
> before I boot unix.
>
> Thanks,
> Albert
>
>
> >> Actually neither one of them are in the readme. Here's the complete readme
> >> at: ftp.netbsd.org/pub/NetBSD/NetBSD-1.2/mac68k/X11/README
> >
> >Ah. This is the README I was talking about: (found on
> >ftp.macbsd.com:/pub/NetBSD/X/README--it's rather out of date on some
> >things, but not on this kind of thing... Search for PATH and ldconfig.)
> >
> >[ 14 March 1996 -- Updated description of ~/.xinitrc ("Tailoring your X
> > session" section). I hope it will provide the X and/or UN*X
> > newbies with a good place to start customizing their own X env-
> > ironment.
> > Added description for AppleExtended Mouse Protocol and supported
> > mice (though only known ones are Logitech MouseMan & TrackMan).
> > -- kn <kenn@remus.rutgers.edu>]
> >
> >[ 16 May 1995 -- Tres Hofmeister <tres@ncar.ucar.edu>
> > Info. on shared libraries and xmodmap(1).
> > See MORE-NOTES later in the file for these additions. ]
> >
> >[ 11 March 1995 -- new dist, substitute "X.11Mar95" for "X.122094"
> > below. Shared libraries exist, now, and all applications were built
> > with them whenever possible. Enjoy! -akb ]
> >
> >[ 22 December 1994 -- Original from
> > Brad Grantham (grantham@netcom.com). ]
> >
> >Now available: X11R6/Mono for NetBSD/Mac68k!
> >
> >Okay. I've been kind of ignoring it for several months, hoping I'd get
> >up enough initiative to work on color and multiple monitor support.
> >Aside from the fact that I don't have another monitor and the one I
> >*do* have is gray-scale, I've been kind of shying from any MacBSD
> >development.
> >
> >I'm going away now on holiday, but I thought I'd leave everyone with
> >what I've got, which works pretty well and maybe will make a fun
> >Christmas/Hannukha/Non-denominational-Holiday-Celebration gift.
> >
> >You should be able to find my X archive at (and "ncftp" will handle
> >this address):
> > ftp://acm.vt.edu/pub/NetBSD_Mac/X11R6/X.122094.tgz
> >
> >So here's what I've got!
> > - /usr/X11R6 from a working MacBSD 1.0 system
> > - works with three-button mice (my Animas MacPro, anyway)
> > - works well with the MRG kernels, but probably also
> > works with the 1.0 release kernel, although the 1.0
> > kernel doesn't have 3 button keyboard emulation.
> > - should work with any display "dt" works with
> > - missing xdm, but I think that's it
> > - the archive is 16 megabytes, compressed, and
> > - will come to 30-40 uncompressed on your hard disk
> > - must (should) be installed on a working MacBSD 1.0
> > (may work on -current, I dunno)
> >
> >Here are installation instructions for using the MacBSD Installer:
> > - Download X11R6.122094.tgz from wherever to your Mac
> > - Run MacBSD Installer
> > - Enter the "Mini Shell" using the "File" menu
> > - Type "cd /usr"
> > - Type "zinstall"
> > - Select the X11R6 tgz file from the Open File dialog
> > - When finished installing, type "quit"
> > - Select "Quit" from the File menu
> > - Launch MacBSD, log in as root
> > - log out of "dt" so you are using the raw console
> > - Type "set path=($path /usr/X11R6/bin)" or
> > "export PATH=$PATH:/usr/X11R6/bin"
> > - Type "startx"
> > - Enjoy!
> >
> >Here are installation intructions for using MacBSD directly:
> > - Download/FTP X11R6.122094.tgz
> > - type:
> > cd /usr ; tar xzvpf X11R6.122094.tgz
> > - log out of "dt" so you are using the raw console
> > - Type "set path=($path /usr/X11R6/bin)" or
> > "export PATH=$PATH:/usr/X11R6/bin"
> > - Type "startx"
> > - Enjoy!
> >
> >If you have any trouble, keep it to yourself until January 10th,
> >when I get back.
> >Possible problems you may encounter:
> > - 3-button mice may not work quite right...
> > - may not work with your XXX video card, especially if dt crashes,
> > but it *is* different code; can't hurt to try it if you
> > can spare 40M.
> > - If you don't know what you are doing, you may be able to
> > kill all the applications and get yourself stuck with
> > no way to exit X. If so, try this handy exit scheme:
> > 1) press debugger button
> > 2) type "call sync"
> > 3) type "call boot"
> > It will reboot you but your file system will be okay.
> > - i haven't tried it with an ordinary 1.0 kernel. There
> > may be problems with a possible timing bug in the
> > 1.0/non-MRG /dev/adb which causes screen flickers
> > and redraws because of random screensaver timeouts
> >
> >I'll try and make some time to clean this up in 1995.
> >
> >In order to access the other two mouse buttons, you can do one of two
> >things. If you'd like to use your keyboard and you have a one-button
> >mouse, these two keys map to mouse buttons:
> > <OPTION>+<left-arrow> middle mouse button (button 2)
> > <OPTION>+<right-arrow> right mouse button (button 2)
> >Or, if you have a three-button programmable mouse, you can set your
> >mouse buttons to the above key-sequences. My Animas MacPro 3-button
> >mouse seems to work fine for me with these settings. Make sure that you
> >can set the keys to
> > OPTION down
> > left-arrow down
> > left-arrow up
> > OPTION up
> >because that's what the driver expects.
> >(Sorry, I haven't provided keyboard alternatives for buttons 4 and 5. :)
> >
> >In addition to Brad's Animas MacPro 3-button mouse, there's been Apple
> >Extended Mouse Protocol support which provides multiple button pointing
> >devices. In particular, recent Logitech MouseMan and TrackMan support
> >the protocol thus work with Xmacbsd as 3-button mice. I'm using a
> >TrackMan and I love it ;-) -- kn <kenn@remus.rutgers.edu>
> >
> >MORE-NOTES:
> >
> >NetBSD/mac68k, X11R6, and Shared Libraries
> >
> > In order to run the shared library version of X11R6, you need
> >to tell ld.so (the dynamic loader) where the new shared libraries
> >reside. You have at least two options. As root:
> >
> ># ldconfig /usr/X11R6/lib
> >
> > You might as well add the above to /etc/rc.local while you're
> >at it, so that the dynamic loader's cache will be updated at boot
> >time. If for some reason you don't want to do this, you can instead
> >set the environment variable LD_LIBRARY_PATH to the directory. You
> >don't need to be root to do this:
> >
> >% setenv LD_LIBRARY_PATH /usr/X11R6/lib
> >
> > If you choose this solution, you might as well add the above to
> >your .cshrc, or the appropriate variation to the initialization file
> >for your shell of choice.
> >
> > If ld.so complains about shared library version mismatches or
> >undefined symbols, you need to get new shared libraries which are at
> >least as recent as those the X11R6 distribution was compiled against.
> >You can find newer libraries in a NetBSD/mac68k NetBSD-current base
> >set. Try one of the following:
> >
> >ftp://ftp.eskimo.com/wormey/netbsd/base.tar.gz
> >ftp://puma.bevd.blacksburg.va.us/pub/eskimo.copy/base.tar.gz
> >
> >Tailoring your X session
> >
> > You should creat ~/.xinitrc and edit it to suit your preference
> >and needs. .xinitrc file is a shell script which is executed when you
> >start your X session by invoking "startx" or "xinit" command (startx is
> >a slightly nicer front-end to more primitive xinit). For example, you
> >can have a .xinitrc file as follows:
> >
> >xterm -sb -geometry 80x24+0+26 -name 'my shell' &
> >xclock -geometry 24x24+0+0 &
> >xbiff -geometry 24x24+26+0 &
> >twm
> >
> >Note that the last command `twm' is not followed by `&'. Because .xinitrc
> >is a shell script, commands followed by `&' execute asynchronously (i.e.
> >xinit does not wait for the commands to exit), and when xinit finishes
> >executing all the commands in your .xinitrc, it simply terminates the X
> >session. Thus, you should not append `&' to the last command (or your X
> >session will terminate immediately after you start it), and you can choose
> >a program you want your X session to terminate when exits. In the above
> >example, your X session will terminate when you choose "Exit" item from
> >twm menu (it pops up when you hold down the left mouse button in the root
> >window, or the "desktop" following Macintosh terminology).
> >
> >Re-Enabling the Up/Down Arrow Keys
> >
> > You'll probably find that the up/down arrow keys no longer work
> >under X11R6. Try creating a .xmodmaprc file with the following
> >contents:
> >
> >! .xmodmaprc OTH 4/19/95
> >! Fix the Macintosh "Up" and "Down" keys.
> >keysym 0xffe8 = Up
> >keysym 0xffe4 = Down
> >
> > ...and adding the following to your .xinitrc file:
> >
> >xmodmap .xmodmaprc
> >
> >
> >--
> > Allen Briggs - end killing - briggs@macbsd.com
>
>
>
>
------------------------------------------------------------------------------
| Paul Goyette | PGP Public Key fingerprint: | E-mail addresses: |
| Network Consultant | 0E 40 D2 FC 2A 13 74 A0 | paul@pgoyette.bdt.com |
| and kernel hacker | E4 69 D5 BE 65 E4 56 C6 | paul_goyette@ins.com |
------------------------------------------------------------------------------