📄 00000020.htm
字号:
新软件。
<BR> 如要设定dvips, 则须编辑/usr/lib/texmf/texmf/dvips/ <BR>config/config.ps。注意:有关默认分辨率的叁数也
<BR> 影响 xdvi的运行;如果每次运行时发现都要创造字体, <BR>则可改动 .Xdefault的内容如下:
<BR>
<BR> XDvi*mfmode:
<BR>
<BR> 这应有所帮助。
<BR>
<BR> 3.8 PPP
<BR>
<BR> 目前Linux的内核几乎都已编入了PPP + TCP/IP功能,设定了回 <BR>送地址(loopback)和正确安装了pppd软件。
<BR> 那麽有两种方式可使PPP正常运作:(a)手动设定;和(b)利 <BR>用一个程式自动设定。首先,试试手动设定。
<BR>
<BR> 假定ISP的资料如下:
<BR>
<BR> Phone number: 1234567 --电话号码
<BR> Name server: 123.231.112.111 --域名伺服器地址
<BR> Mail server: mbox.supernet.edu --邮件伺服器地址
<BR> Domain: supernet.edu --域名
<BR> Remote hostname: www.supernet.edu --远程主机名称 <BR>
<BR> Your username: John --用户姓名
<BR> Your password: _Loo%ny --用户密码
<BR>
<BR> 手动设置PPP联网的方式为:
<BR>
<BR> 编制 /usr/local/bin/ppp-on档,将用于与ISP连接:
<BR>
<BR> #!/bin/sh
<BR> # ppp-on: script to connect to an ISP --连接 <BR>ISP的程式
<BR> INIT=ATX3 # or whatever your modem wants -- <BR>或符合特定数据机启动的设置
<BR> PHONE=1234567
<BR> /usr/sbin/pppd connect "/usr/sbin/chat '' <BR>$INIT OK ATDP$PHONE \
<BR> CONNECT '' " user John
<BR>
<BR> 然後运行chmod 755 /usr/local/bin/ppp-on使其成为可 <BR>执行档。如果ISP不使用PAP协议,则可用下列程
<BR> 式:
<BR>
<BR> #!/bin/sh
<BR> # ppp-on: script to connect to an ISP ----连 <BR>接ISP的程式
<BR> INIT=atx3 # or whatever your modem wants <BR>----或符合特定数据机启动的设置
<BR> PHONE=1234567
<BR> /usr/sbin/pppd connect "/usr/sbin/chat '' <BR>$INIT OK ATDT$PHONE \
<BR> CONNECT '' 'ogin' John 'word' _Loo%ny ''" <BR>/dev/modem 38400 \
<BR> modem defaultroute
<BR>
<BR> 编制/usr/local/bin/ppp-off用于结束PPP连接:
<BR>
<BR> #!/bin/sh
<BR> # ppp-off --文档名称
<BR> DEVICE=ppp0
<BR> if [ -r /var/run/$DEVICE.pid ]; then
<BR> kill -INT `cat /var/run/$DEVICE.pid`
<BR> if [ ! "$?" = "0" ]; then
<BR> echo "removing stale $DEVICE pid file."
<BR> rm -f /var/run/$DEVICE.pid ; exit 1
<BR> fi
<BR> echo "$DEVICE link terminated" ; exit 0
<BR> fi
<BR> # link not active
<BR> echo "$DEVICE link is not active" ; exit 1
<BR>
<BR> 运行chmod 755 /usr/local/bin/ppp-off,使其成为可执 <BR>行档。
<BR> 编写/etc/ppp/options:
<BR>
<BR> # /etc/ppp/options --文档名称
<BR> /dev/modem
<BR> 38400
<BR> lock
<BR> crtscts
<BR> modem
<BR> asyncmap 0
<BR> remotename www.supernet.edu
<BR> defaultroute
<BR>
<BR> 如果ISP使用PAP协议(多数ISP都使用),则编制 <BR>/etc/ppp/pap-secrets:
<BR>
<BR> # /etc/ppp/pap-secrets --文档名称
<BR> # username remotehost secret
<BR> # 用户姓名 远程主机名称 用户密 <BR>码
<BR> John www.supernet.edu _Loo%ny
<BR>
<BR> 编辑 /etc/resolv.conf:
<BR>
<BR> # /etc/resolv.conf --文档名称
<BR> search supernet.edu
<BR> nameserver 123.231.112.111
<BR>
<BR> 编辑 /etc/sendmail.cf。寻找以DS开始的一行,并更改 <BR>如下:
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -