0
|
1 |
"*
|
|
2 |
* $Header$
|
84
|
3 |
*
|
5
|
4 |
* sample startup configuration for host specific stuff -
|
|
5 |
*
|
|
6 |
* You should copy this file to h_<your_host_name>.rc
|
|
7 |
* and change it for your site.
|
0
|
8 |
*"
|
|
9 |
|
|
10 |
"*
|
8
|
11 |
* NNTPSERVER configuration (for newsReader)
|
|
12 |
*"
|
|
13 |
(OperatingSystem getEnvironment:'NNTPSERVER') isNil ifTrue:[
|
116
|
14 |
Stdout showCR:'please edit h_sample.rc for NNTPSERVER setup'.
|
|
15 |
"/ Stdout showCR:'setting NNTPSERVER to <your-NNTP-host-here>'.
|
8
|
16 |
"/ Smalltalk at:#NNTPSERVER put:'<your-NNTP-host-here>'.
|
|
17 |
].
|
|
18 |
!
|
|
19 |
|
|
20 |
"*
|
104
|
21 |
* printer configuration
|
0
|
22 |
* - uncomment the one you have
|
|
23 |
*"
|
69
|
24 |
|
116
|
25 |
Stdout showCR:'configuring printer ...'!
|
104
|
26 |
|
71
|
27 |
"/ PostscriptPrinterStream autoload.
|
|
28 |
"/ Smalltalk at:#Printer put:PostscriptPrinterStream.
|
69
|
29 |
|
|
30 |
"/
|
|
31 |
"/ HPLjetIIPrinterStream autoload.
|
|
32 |
"/ Smalltalk at:#Printer put:HPLjetIIPrinterStream.
|
|
33 |
"/
|
|
34 |
|
|
35 |
"/
|
|
36 |
"/ EpsonFX1PrinterStream autoload.
|
|
37 |
"/ Smalltalk at:#Printer put:EpsonFX1PrinterStream.
|
|
38 |
"/
|
|
39 |
|
104
|
40 |
"*
|
|
41 |
* define the printCommands presented in the launchers
|
|
42 |
* settings menu:
|
|
43 |
*"
|
|
44 |
"/ Printer defaultCommands:#('lpr' 'lpr -h' 'cat | rsh <host> lpr -h')
|
0
|
45 |
|
|
46 |
"*
|
104
|
47 |
* define the initial printCommand:
|
|
48 |
*
|
|
49 |
*
|
0
|
50 |
* this one for bsd-type real unixes
|
|
51 |
*"
|
69
|
52 |
"/
|
|
53 |
"/ Printer printCommand:'lpr'.
|
|
54 |
"/
|
0
|
55 |
|
69
|
56 |
"*
|
|
57 |
* this one specifies a printer
|
|
58 |
*"
|
|
59 |
"/
|
|
60 |
"/ Printer printCommand:'lpr -Pdali'.
|
|
61 |
"/
|
0
|
62 |
|
|
63 |
|
|
64 |
"*
|
|
65 |
* this one for sys5-type machines
|
|
66 |
*"
|
69
|
67 |
"/
|
|
68 |
"/ Printer printCommand:'lp'.
|
|
69 |
"/
|
|
70 |
|
0
|
71 |
|
|
72 |
"*
|
|
73 |
* or even more fancy:
|
|
74 |
*"
|
69
|
75 |
"/
|
|
76 |
"/ Printer printCommand:'lp -d letterquality'.
|
|
77 |
"/
|
|
78 |
|
0
|
79 |
|
|
80 |
"*
|
69
|
81 |
* and these are examples for remote printing
|
0
|
82 |
*"
|
69
|
83 |
"/
|
|
84 |
" /Printer printCommand:'rcmd ama lp -d letterquality'.
|
|
85 |
"/
|
|
86 |
"/
|
|
87 |
"/Printer printCommand:'rsh avalon ''cat >/dev/lp'''.
|
|
88 |
"/
|
|
89 |
|
|
90 |
"*
|
|
91 |
* ghostview viewing
|
|
92 |
*"
|
|
93 |
"/
|
|
94 |
"/ Smalltalk at:#Printer put:PostscriptPrinterStream.
|
|
95 |
"/ Printer printCommand:'cat > /tmp/psfile ; ghostview psfile'.
|
71
|
96 |
"/ Printer printCommand:'cat > /tmp/psfile'.
|
69
|
97 |
"/
|
|
98 |
|
|
99 |
|
|
100 |
Printer leftMargin:4.
|
|
101 |
|
0
|
102 |
!
|