]>
Commit | Line | Data |
---|---|---|
7742e157 AF |
1 | |
2 | Files in /etc/sysconfig | |
3 | ======================= | |
4 | ||
5 | /etc/sysconfig/clock: | |
6 | ||
7 | deprecated values from earlier releases: | |
8 | ||
9 | CLOCKMODE=GMT indicates that the clock is set to UTC | |
10 | CLOCKMODE=ARC on alpha only indicates the ARC console's | |
11 | 42-year time offset is in effect | |
12 | ||
13 | currently correct values: | |
14 | ||
15 | UTC=true indicates that the clock is set to UTC; anything | |
16 | else indicates that it is set to local time | |
17 | ARC=true on alpha only indicates the ARC console's | |
18 | 42-year time offset is in effect; otherwise the normal | |
19 | Unix epoch is assumed | |
20 | ||
21 | ||
22 | /etc/sysconfig/keyboard: | |
23 | ||
24 | KEYTABLE=<keytable file> | |
25 | for example: KEYTABLE="/usr/lib/kbd/keytables/us.map" | |
26 | ||
27 | /etc/sysconfig/mouse: | |
28 | ||
29 | MOUSETYPE=microsoft|mouseman|mousesystems|ps/2|msbm|logibm|atibm| | |
30 | logitech|mmseries|mmhittab | |
31 | XEMU3=yes|no (emulate three buttons with two buttons whenever | |
32 | necessary, most notably in X) | |
33 | ||
34 | In addition, /dev/mouse points to the mouse device. | |
35 | ||
36 | /etc/sysconfig/network: | |
37 | ||
38 | NETWORKING=yes|no | |
39 | HOSTNAME=<fqdn by default, but whatever hostname you want> | |
40 | Note: for compatibility with some old software people might | |
41 | install (like trn), the /etc/HOSTNAME file should contain the | |
42 | same value as here. | |
43 | FORWARD_IPV4=yes|no (The current Red Hat Linux installation | |
44 | sets this to no by default for RFC compliance, but if | |
45 | FORWARD_IPV4 is not set at all, forwarding is *enabled* | |
46 | for compatibility with the configuration files used on | |
47 | Red Hat Linux versions 4.2 and earlier.) | |
48 | GATEWAY=<gateway IP> | |
49 | GATEWAYDEV=<gateway device> (e.g. eth0) | |
50 | NISDOMAIN=<nis domain name> | |
51 | IPX=yes|no | |
52 | IPXAUTOPRIMARY=on|off (note, that MUST be on|off, not yes|no) | |
53 | IPXAUTOFRAME=on|off (again, not yes|no) | |
54 | IPXINTERNALNETNUM=<netnum> | |
55 | IPXINTERNALNODENUM=<nodenum> | |
56 | ||
57 | All the IPX stuff is optional, and should default to off. | |
58 | ||
59 | /etc/sysconfig/static-routes: | |
60 | ||
61 | Contains lines of the form: | |
62 | ||
63 | <device> net <network> netmask <netmask> gw <gateway> | |
64 | ||
65 | <device> may be a device name to have the route brought up and | |
66 | down with the device, or "any" to have the correct devices calculated | |
67 | at run time. | |
68 | ||
69 | /etc/sysconfig/routed: | |
70 | ||
71 | SILENT=yes|no | |
72 | EXPORT_GATEWAY=yes|no | |
73 | ||
74 | /etc/sysconfig/pcmcia: | |
75 | ||
76 | PCMCIA=yes|no | |
77 | PCIC=i82365|tcic | |
78 | PCIC_OPTS=<socket driver (i82365 or tcic) timing parameters> | |
79 | CORE_OPTS=<pcmcia_core options> | |
80 | CARDMGR_OPTS=<cardmgr options> | |
81 | ||
82 | /etc/sysconfig/amd: | |
83 | ||
84 | ADIR=/.automount (normally never changed) | |
85 | MOUNTPTS='/net /etc/amd.conf' (standard automount stuff) | |
86 | AMDOPTS= (extra options for AMD) | |
87 | ||
88 | /etc/sysconfig/tape: | |
89 | ||
90 | DEV=/dev/nst0 | |
91 | Tape device. Use the non-rewinding one for these scripts. | |
92 | ||
93 | For SCSI tapes this is /dev/nst#, where # is the number of the | |
94 | tape drive you want to use. If you only have one then use | |
95 | nst0. | |
96 | ||
97 | For IDE tapes you use /dev/ht#, where # is the number of the tape | |
98 | drive you want to use (usually ht0). | |
99 | ||
100 | For floppy tape drives use /dev/ftape. | |
101 | ||
102 | ADMIN=root | |
103 | Person to mail to if the backup fails for any reason | |
104 | ||
105 | SLEEP=5 | |
106 | Time to sleep between tape operations. Some drives need a bit | |
107 | more than others, but 5 seems to work for 8mm, 4mm, and DLT | |
108 | ||
109 | BLOCKSIZE=32768 | |
110 | This worked fine for 8mm, then 4mm, and now DLT. An optimal | |
111 | setting is probably however much data your drive writes at one | |
112 | time. | |
113 | ||
114 | SHORTDATE=$(date +%y:%m:%d:%H:%M) | |
115 | A short date string, used in backup log filenames. | |
116 | ||
117 | DAY=$(date +log-%y:%m:%d) | |
118 | This is used for the log file directory. | |
119 | ||
120 | DATE=$(date) | |
121 | Regular date string, used in log files. | |
122 | ||
123 | LOGROOT=/var/log/backup | |
124 | Root of the logging directory | |
125 | ||
126 | LIST=$LOGROOT/incremental-list | |
127 | This is the file name the incremental backup will use to store | |
128 | the incremental list. It will be $LIST-{some number}. | |
129 | ||
130 | DOTCOUNT=$LOGROOT/.count | |
131 | For counting as you go to know which incremental list to use | |
132 | ||
133 | COUNTER=$LOGROOT/counter-file | |
134 | For rewinding when done...might not use. | |
135 | ||
136 | BACKUPTAB=/etc/backuptab | |
137 | The file in which we keep our list of backup(s) we want to make. | |
138 | ||
139 | ||
140 | ||
141 | Files in /etc/sysconfig/network-scripts/ | |
142 | ======================================== | |
143 | ||
144 | /etc/sysconfig/network-scripts/ifup: | |
145 | /etc/sysconfig/network-scripts/ifdown: | |
146 | ||
147 | Symlinks to /sbin/ifup and /sbin/ifdown, respectively. | |
148 | These are the only two scripts "in" this directory that should | |
149 | be called directly; these two scripts call all the other | |
150 | scripts as needed. These symlinks are here for legacy purposes | |
151 | only -- they'll will probably be removed in future versions, so | |
152 | only /sbin/ifup and /sbin/ifdown should currently be used. | |
153 | ||
154 | These scripts take one argument normally: the name of the device | |
155 | (e.g. eth0). They are called with a second argument of "boot" | |
156 | during the boot sequence so that devices that are not meant to | |
157 | be brought up on boot (ONBOOT=no, see below) can be ignored at | |
158 | that time. | |
159 | ||
160 | /etc/sysconfig/network-scripts/network-functions: | |
161 | ||
162 | Not really a public file. Contains functions which the scripts use | |
163 | for bringing interfaces up and down. In particular, it contains | |
164 | most of the code for handling alternative interface configurations | |
165 | and interface change notification through netreport. | |
166 | ||
167 | /etc/sysconfig/network-scripts/ifcfg-<interface-name> and | |
168 | /etc/sysconfig/network-scripts/ifcfg-<interface-name>-<clone-name>: | |
169 | ||
170 | The first defines an interface, and the second contains | |
171 | only the parts of the definition that are different in a | |
172 | "clone" (or alternative) interface. For example, the | |
173 | network numbers might be different, but everything else | |
174 | might be the same, so only the network numbers would be | |
175 | in the clone file, but all the device information would | |
176 | be in the base ifcfg file. | |
177 | ||
178 | The items that can be defined in an ifcfg file depend on the | |
179 | interface type. The really obvious ones I'm not going to | |
180 | bother to define; you can figure out what "IPADDR" is, I | |
181 | think... :-) | |
182 | ||
183 | Base items: | |
184 | DEVICE=<name of physical device (except dynamically-allocated PPP | |
185 | devices where it is the "logical name") | |
186 | IPADDR= | |
187 | NETMASK= | |
188 | GATEWAY= | |
189 | ONBOOT=yes|no | |
190 | USERCTL=yes|no | |
191 | BOOTPROTO=none|bootp|dhcp | |
192 | ||
193 | If BOOTPROTO is not "none", then the only other item that | |
194 | must be set is the DEVICE item; all the rest will be determined | |
195 | by the boot protocol. No "dummy" entries need to be created. | |
196 | ||
197 | Base items being deprecated: | |
198 | NETWORK=<will be calculated automatically with ifcalc> | |
199 | BROADCAST=<will be calculated automatically with ifcalc> | |
200 | ||
201 | Ethernet-only items: | |
202 | {IPXNETNUM,IPXPRIMARY,IPXACTIVE}_{802_2,802_3,ETHERII,SNAP} | |
203 | configuration matrix for IPX. Only used if IPX is active. | |
204 | Managed from /etc/sysconfig/network-scripts/ifup-ipx | |
205 | ||
206 | PPP/SLIP items: | |
207 | PERSIST=yes|no | |
208 | MODEMPORT=<device, say /dev/modem> | |
209 | LINESPEED=<speed, say 115200> | |
210 | DEFABORT=yes|no (tells netcfg whether or not to put default | |
211 | abort strings in when creating/editing the chat script and/or | |
212 | dip script for this interface) | |
213 | ||
214 | PPP-specific items | |
215 | DEFROUTE=yes|no (set this interface as default route?) | |
216 | ESCAPECHARS=yes|no (simplified interface here doesn't let people | |
217 | specify which characters to escape; almost everyone can use | |
218 | asyncmap 00000000 anyway, and they can set PPPOPTIONS to | |
219 | asyncmap foobar if they want to set options perfectly) | |
220 | HARDFLOWCTL=yes|no (yes imples "modem crtscts" options) | |
221 | PPPOPTIONS=<arbitrary option string; is placed last on the | |
222 | command line, so it can override other options like asyncmap | |
223 | that were specified differently> | |
224 | PAPNAME=<"name $PAPNAME" on pppd command line> (note that | |
225 | the "remotename" option is always specified as the logical | |
226 | ppp device name, like "ppp0" (which might perhaps be the | |
227 | physical device ppp1 if some other ppp device was brought | |
228 | up earlier...), which makes it easy to manage pap/chap | |
229 | files -- name/password pairs are associated with the | |
230 | logical ppp device name so that they can be managed | |
231 | together. | |
232 | ||
233 | In principal, I'm not aware of anything that would keep | |
234 | the logical PPP device names from being "worldnet" or | |
235 | "myISP" instead of ppp0-pppN) | |
236 | REMIP=<remote ip address, normally unspecified> | |
237 | MTU= | |
238 | MRU= | |
239 | DISCONNECTTIMEOUT=<number of seconds, default currently 5> | |
240 | (time to wait before re-establishing the connection after | |
241 | a successfully-connected session terminates before attempting | |
242 | to establish a new connection.) | |
243 | RETRYTIMEOUT=<number of seconds, default currently 60> | |
244 | (time to wait before re-attempting to establish a connection | |
245 | after a previous attempt fails.) | |
246 | ||
247 | /etc/sysconfig/network-scripts/chat-<interface-name>: | |
248 | ||
249 | chat script for PPP or SLIP connection intended to establish | |
250 | the connection. For SLIP devices, a DIP script is written | |
251 | from the chat script; for PPP devices, the chat script is used | |
252 | directly. | |
253 | ||
254 | /etc/sysconfig/network-scripts/dip-<interface-name> | |
255 | ||
256 | A write-only script created from the chat script by netcfg. | |
257 | Do not modify this. In the future, this file may disappear | |
258 | by default and created on-the-fly from the chat script if | |
259 | it does not exist. | |
260 | ||
261 | /etc/sysconfig/network-scripts/ifup-post | |
262 | ||
263 | Called when any network device EXCEPT a SLIP device comes | |
264 | up. Calls /etc/sysconfig/network-scripts/ifup-routes to | |
265 | bring up static routes that depend on that device. Calls | |
266 | /etc/sysconfig/network-scripts/ifup-aliases to bring up | |
267 | aliases for that device. Sets the hostname if it is not | |
268 | already set and a hostname can be found for the IP for that | |
269 | device. Sends SIGIO to any programs that have requested | |
270 | notification of network events. | |
271 | ||
272 | Could be extended to fix up nameservice configuration, call | |
273 | arbitrary scripts, etc, as needed. | |
274 | ||
275 | /etc/sysconfig/network-scripts/ifup-routes | |
276 | ||
277 | Set up static routes for a device. | |
278 | ||
279 | /etc/sysconfig/network-scripts/ifup-aliases | |
280 | ||
281 | Bring up aliases for a device. | |
282 | ||
283 | /etc/sysconfig/network-scripts/ifdhcpc-done | |
284 | ||
285 | Called by dhcpcd once dhcp configuration is complete; sets | |
286 | up /etc/resolv.conf from the version dhcpcd dropped in | |
287 | /etc/dhcpc/resolv.conf | |
288 | ||
289 | /etc/sysconfig/i18n | |
290 | ||
291 | LANG= can be any two letter ISO language code | |
292 | LINGUAS= can be a : separated list of language codes | |
293 | SYSTERM= use to set default TERM environment variable | |
294 | ||
295 | The above three variables are used in rc.sysinit. | |
296 | ||
297 | SYSFONT= any font with is legal input to the 'setfont' command (see | |
298 | kbd package) | |
299 | ||
300 | The above is used by the /sbin/setsysfont command (which is run | |
301 | by rc.sysinit at boot time). | |
302 | ||
303 | ||
304 | ##### ONLY IN POLISH (someone wants translate it to english ?) ########### | |
305 | ||
306 |