📄 00000002.htm
字号:
rdev -R /dev/fd0 1 <BR> <BR>If you boot from a bootkernel disk, or with Loadlin, you can add the 'ro' <BR>flag. <BR> <BR>This will fix the problem *AND* eliminate this annoying message. :^) <BR> <BR>EOF <BR> echo -n "Press ENTER to continue. " <BR> read junk; <BR> fi <BR>fi <BR> <BR># <BR># remove /etc/mtab* so that mount will create it with a root entry <BR># <BR>/bin/rm -f /etc/mtab* /etc/nologin /var/adm/utmp <BR> <BR># <BR># Looks like we have to create this. <BR># <BR>cat /dev/null >> /var/adm/utmp <BR> <BR># <BR># mount file systems in fstab (and create an entry for /) <BR># but not NFS because TCP/IP is not yet configured <BR># <BR># mount所有定义在/etc/fstab内的档案系统,但nfs除外。因为 <BR># tcp/ip环境的设定是在後面rc.M内完成。 <BR># <BR> <BR>/sbin/mount -avt nonfs <BR> <BR># <BR># Configure the system clock. <BR># This can be changed if your system keeps GMT. <BR># <BR>if [ -x /sbin/clock ]; then <BR> /sbin/clock -s <BR>fi <BR> <BR># <BR># Setup the /etc/issue and /etc/motd to reflect the current kernel level: <BR># THESE WIPE ANY CHANGES YOU MAKE TO /ETC/ISSUE AND /ETC/MOTD WITH EACH <BR># BOOT. COMMENT THEM OUT IF YOU WANT TO MAKE CUSTOM VERSIONS. <BR># <BR># 这一段程式会在每次重新开机时,将/etc/motd、/etc/issue这两 <BR># 个档写入Slackware的内定值。 <BR># <BR>#echo > /etc/issue <BR>#echo Welcome to Linux `/bin/uname -a | /bin/cut -d\ -f3`. >> /etc/issue <BR>#echo >> /etc/issue <BR>#echo "`/bin/uname -a | /bin/cut -d\ -f1,3`. (POSIX)." > /etc/motd <BR> <BR># <BR># Run serial port setup script: <BR># (CAREFUL! This can make some systems hang if the rc.serial script isn't <BR># set up correctly. If this happens, you may have to edit the file from a <BR># boot disk) <BR># <BR># 执行设定serial port的程式 <BR># <BR>/bin/sh /etc/rc.d/rc.serial <BR> <BR># end of /etc/rc.d/rc.S <BR> <BR>* 上表除中文说明外,节录自slackware 2.1.0之/etc/inittab <BR> <BR> <BR> 在内定的情形下,我们会以runlevel 5进入系统,因此接著执行 <BR>/etc/rc.d/rc.M。 <BR> <BR> <BR>#!/bin/sh <BR># <BR># rc.M This file is executed by init(8) when the system is being <BR># initialized for one of the "multi user" run levels (i.e. <BR># levels 1 through 6). It usually does mounting of file <BR># systems et al. <BR># <BR># Version: <A HREF="mailto:@(#)/etc/rc.d/rc.M">@(#)/etc/rc.d/rc.M</A> 2.02 02/26/93 <BR># <BR># Author: Fred N. van Kempen, <<A HREF="mailto:waltje@uwalt.nl.mugnet.org>">waltje@uwalt.nl.mugnet.org></A> <BR># Heavily modified by Patrick Volkerding <BR><<A HREF="mailto:volkerdi@ftp.cdrom.com>">volkerdi@ftp.cdrom.com></A> <BR># <BR> # <BR> # Tell the viewers what's going to happen... <BR> # <BR> echo "Going multiuser..." <BR> <BR> # <BR> # Screen blanks after 15 minutes idle time. <BR> # <BR> # 设定在15分钟内没有任何动作时,自动关闭萤幕显示 <BR> # <BR> /bin/setterm -blank 15 <BR> <BR> # <BR> # Start crond (Dillon's crond): <BR> # If you want cron to actually log activity to /var/adm/cron, then change <BR> # -l10 to -l8 to increase the logging level. <BR> # <BR> # 每个user都可用crontab -e建立一张表格,指定在特定的时间 <BR> # 执行某些程式,这是由下面的程式来监控 <BR> # <BR> /usr/sbin/crond -l10 >>/var/adm/cron 2>&1 <BR> <BR> # <BR> # If there's no /etc/HOSTNAME, fall back on this default: <BR> # <BR> # 如果没有设定主机名称,下面这段程式会填入内定值 <BR> # <BR> if [ ! -r /etc/HOSTNAME ]; then <BR> echo "darkstar.frop.org" > /etc/HOSTNAME <BR> fi <BR> <BR> # <BR> # Initialize the NET subsystem. <BR> # <BR> # 设定网路系统,後面会再作较详细的介绍 <BR> # <BR> if [ -x /etc/rc.d/rc.inet1 ]; <BR> then <BR> /bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .` <BR> /bin/sh /etc/rc.d/rc.inet1 <BR> /bin/sh /etc/rc.d/rc.inet2 <BR> else <BR> /sbin/hostname_notcp `cat /etc/HOSTNAME | cut -f1 -d .` <BR> /usr/sbin/syslogd <BR> /usr/sbin/klogd <BR> /usr/sbin/lpd <BR> fi <BR> <BR> # <BR> # Remove stale locks (must be done after mount -a!) <BR> # <BR> /bin/rm -f /var/spool/locks/* /var/spool/uucp/LCK..* /tmp/.X*lock 1> <BR>/dev/null 2> /dev/null <BR> <BR> # <BR> # Remove stale hunt sockets so the game can start. <BR> # <BR> if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then <BR> echo "Removing your stale hunt sockets from /tmp..." <BR> /bin/rm -f /tmp/hunt* <BR> fi <BR> <BR> # <BR> # Update all the shared library links automatically <BR> # <BR> /sbin/ldconfig <BR> <BR> # <BR> # Start the sendmail daemon: <BR> # <BR> # 启动信件收发处理程式,每15分钟处理一次待送信件 <BR> # <BR> if [ -x /usr/sbin/sendmail ]; then <BR> echo "Starting mail daemon ( sendmail -bd -q 15m )..." <BR> /usr/sbin/sendmail -bd -q 15m <BR> fi <BR> <BR> # <BR> # Load a custom screen font if the user has an rc.font script. <BR> # <BR> # 载入自定的萤幕字型 <BR> # <BR> if [ -r /etc/rc.d/rc.font ]; then <BR> /etc/rc.d/rc.font <BR> fi <BR> <BR> # <BR> # Start the local setup procedure. <BR> # <BR> /etc/rc.d/rc.local <BR> <BR> # end of /etc/rc.d/rc.M <BR> <BR>* 上表除中文说明外,节录自slackware 2.1.0之/etc/inittab <BR> <BR> <BR> 其他系统档案 <BR> <BR> 1. /etc/issue <BR> <BR> 这个档案的内容会在系统显示login:提示之前出现在使用 <BR> 者的virtual console或终端机上。如果是telnet时,系统 <BR> 是显示/etc/issue.net。 <BR> <BR> 2. /etc/motd <BR> <BR> 即message of today,会在使用者进入shell之前显示,通 <BR> 常是放系统的最新通知事项。 <BR> <BR> 3. /etc/mtools <BR> <BR> slackware有一组指令包括mdir,mcopy等,可直接读取DOS <BR> 的磁片、硬碟内档案,这档内必须定义软碟机、硬碟机参 <BR> 数。 <BR> <BR># <BR># Parameters for the /usr/bin/mtools utilities <BR># <BR> <BR>A /dev/fd0 12 0 0 0 # Generic autodetect <BR>B /dev/fd1 12 0 0 0 # Generic autodetect <BR> <BR># end of /etc/mtools <BR> <BR> <BR> <BR>* * <BR>* 本文除所注明之Slackware范例外,著作权属陈建业 * <BR>* * <BR>* 1. 未经作者同意,本文不得任意转载 * <BR>* 2. 在不得任意修改条件下,个人可任意使用本文件 * <BR>* 3. 在取得作者同意下,欢迎公开陈列本文件 * <BR>* * <BR>* 如有任何建议或更正,欢迎email到<A HREF="mailto:vc0328@tpts1.seed.net.tw">vc0328@tpts1.seed.net.tw</A> * <BR>* * <BR>* * <BR>* 祝大家新年愉快!!! * <BR> <BR> <BR> <BR> <BR> Vincent Chen <BR><A HREF="mailto:vc0328@tpts1.seed.net.tw">vc0328@tpts1.seed.net.tw</A> <BR> Taipei, Taiwan, R.O.C. <BR> <BR>-- <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 162.105.184.91] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -