File: notes-solaris2

package info (click to toggle)
workman 1.3a-8
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 944 kB
  • ctags: 745
  • sloc: ansic: 9,810; makefile: 137; sh: 27
file content (156 lines) | stat: -rw-r--r-- 7,236 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

                                Solaris 2 notes
                                       
   _Contents:_
    1. [1]Compiling WorkMan for Solaris 2
         1. [2]Using gcc
    2. [3]Using the volume manager
         1. [4]Avoiding the volume manager
    3. [5]Getting sound via the SPARCstation audio output
       
Compiling WorkMan for Solaris 2

   WorkMan should compile without modification on Solaris 2.x, provided
   you make sure the three relevant lines indicated in the Makefile are
   uncommented. The LIBLOC line is necessary to get it to run properly in
   conjunction with the volume manager (vold) found in Solaris 2.2 and
   later.
   
   If you're using the SPARCworks compilers from Sun, make sure your
   search path is set so that "/opt/SUNWspro/bin" (or whatever directory
   the compilers are in) is searched before "/usr/ucb". Otherwise you'll
   be using a different set of libraries and include files, and WorkMan
   won't compile properly.
   
   If you get a message like "language optional software package not
   installed," your machine probably does not have SPARCworks, and you
   should talk to your system administrator about getting gcc.
   
Using gcc

   You should be able to compile WorkMan using gcc. Just uncomment the
   "CC=gcc" line in the Makefile and comment out (or remove) "CC=cc".
   
   Gcc version 2.6.0 is known to compile WorkMan on Solaris 2.4 without
   any special handholding; older versions of Solaris and/or gcc
   apparently have some trouble with the include files in
   /usr/openwin/include. If you get compiler errors about OpenWindows
   include files, you should probably run the "fixincludes" utility that
   comes with gcc, giving it the correct command line arguments so it
   fixes /usr/openwin/include.
   
Using the volume manager

   If you're running the volume manager -- you probably are -- you can
   get it to start WorkMan when you insert a music CD. Assuming you've
   installed WorkMan in /usr/openwin/bin, add the following line to
   /etc/rmmount.conf, _before_ the action_filemgr line:
   
     action cdrom action_workman.so /usr/openwin/bin/workman
     
   You should already have "action_workman.so" -- it comes with Solaris.
   With that line in place, a WorkMan window should appear on your screen
   when you insert a CD.
   
   Note that the volume manager doesn't know whether you're running a
   window system, so if you put in a music CD when you're not running
   OpenWindows (or there's one in the drive when the system boots up)
   you'll have to eject it with the "eject" command and reinsert it to
   get the WorkMan window to appear.
   
   Also, WorkMan will be running as root or as nobody, not as you, since
   the volume manager runs without regard to who happens to be logged in
   on the console. As a result, you'll probably want to edit your
   .Xdefaults file and add the "workman.db.shared" and
   "workman.db.personal" resources to tell WorkMan where to find its
   database files. For example, if /users/jane is your home directory,
   you'd probably add:
   
     workman.db.shared: /users/jane/.workmandb
     workman.db.personal: /users/jane/.workmanrc
     
   Then run "xrdb -merge $HOME/.Xdefaults" to load the new settings into
   your X server. You should only have to run that command once;
   .Xdefaults is read automatically when you start the window system.
   
   If you do use the volume manager to start WorkMan, you may find you
   have to run "xhost hostname" (where hostname is the name of your
   machine) to give root-owned processes the right to connect to your X
   server.
   
   You'll also find that setting environment variables has no effect on
   WorkMan when it's started by the volume manager, even if you set them
   before you start the window system. To see why, realize that
   environment variables are inherited by new processes from their
   parents. The volume manager is started at system boot time, before
   you've logged in; it's what runs WorkMan, so WorkMan only gets
   whatever variables were set when vold was started. Setting variables
   in your .cshrc, or manually in a window, does not magically cause them
   to be set in preexisting processes or those processes' children.
   
Avoiding the volume manager

   If all that sounds too confusing and you'd like to avoid the volume
   manager altogether, you can start WorkMan by hand as long as you do it
   after you've inserted a CD.
   
Getting audio output from the workstation

   (Note: This section only applies to the SPARCstation 5, and possibly
   the 20. On other machines, hook up a cable from the CD player's
   headphone jack to the computer's microphone input.)
   
   Version 1.3 of WorkMan adds code to control the audio hardware on the
   SS5. It only works if there is a physical connection inside the
   machine between the CD player's internal audio output and the internal
   audio input on the workstation. Instructions for making that
   connection are included with the CD-ROM drive; don't ask me.
   
   The code was added by <stevep@ctc.ih.att.com>, who has this to say:
   
     I'm sure there will be problems with it, as people use hardware
     configurations I didn't imagine. I'll be happy to try to deal with
     them.
     
     The use of audiocontrol, audiotool, gaintool, or the like in
     conjunction with this is highly recommended. Upon initialization,
     it switches the codec input to the internal CD player, and turns
     the monitor gain up to full (necessary). Thereafter, anytime
     WorkMan begins a play operation, it checks the state of the codec
     and enforces the following conditions:
     
     channels: 2
     encoding: linear
     precision: 16 bits
     sample rate: 44100
     monitor gain: max
     input port: internal cd player
     
     It does NOT "own" /dev/audio, nor does it check state other than
     when beginning a "play". This allows other processes to do things
     with the audio system. Please note that most other things will
     leave the chip in a relatively pathetic state (8-bit ulaw mono at
     8000 samples/sec); pausing and resuming will correct this.
     
     This all comes about because the headphone jack on the CD drawer
     sounds awful (lots of processor noise; apparently, Sun doesn't
     believe in shielding). The headphone jack out the back sounds MUCH
     better, but one has to go through the audio chip to get there.
     
   Please send mail directly to him if you have problems with this aspect
   of WorkMan.
   
     _________________________________________________________________
                                      
   [6]To the install page
   
      Last update: 02 Jun 1995

References

   1. file://localhost/home/woodstock/koreth/wm/workman/HTML/notes-solaris2.html#compile
   2. file://localhost/home/woodstock/koreth/wm/workman/HTML/notes-solaris2.html#gcc
   3. file://localhost/home/woodstock/koreth/wm/workman/HTML/notes-solaris2.html#volmgr
   4. file://localhost/home/woodstock/koreth/wm/workman/HTML/notes-solaris2.html#avoid
   5. file://localhost/home/woodstock/koreth/wm/workman/HTML/notes-solaris2.html#audio
   6. file://localhost/home/woodstock/koreth/wm/workman/HTML/install.html