【正文】
d Tape── Add/remove tapedrive Pseudo ttys──Add/remove pttys Printer── Add/remove printer Parallel ──Add/remove parallel Card_Serial── Add a serial card Eccd── Configure ecc daemon Mouse── Add a mouse 選擇 Card _Serial── Add a serial card ,進(jìn)入 Serial Board Initialization界面。 i) install a new serial board r) remove an existing board 17 q) quit 鍵入 i【 CR】 You would like to install a: 1【 CR】 ( 1── 1 port card) The card is configured as: 2【 CR】 ( 2── 2) Which card do you have( the following are supported)? 2【 CR】 ( 2── IBM— COM2 base address 0x2f8) Please enter the baud rate to be used on the modem devices:9600【 CR】 The following /etc/gettydefs( F) entries support 9600 baud lines: 6【 CR】 ( 6── m) You must create a new kernel to effect the driver change your specified. Do you wish to create a new kernel now?( y/n) y【 CR】 Do you want this kernel to boot by default?( y/n) y【 CR】 Do you want this kernel environment rebuilt?( y/n) y【 CR】 重連核心之后,按 ESC 鍵逐層退出,最后選 Quit 退出。 init 6 重啟系統(tǒng)。 第四節(jié) 并口的配置 下面說明了 SCO Open Server 下,計算機(jī)并口的詳細(xì)配置。 開機(jī)進(jìn)入單用戶,鍵入 sysadmsh 【 CR】,進(jìn)入 sysadmsh 菜單。 System Backups Accounts Printers Media Jobs Dirs/Files Filesystems User Quit 選擇 system 【 CR】,進(jìn)入 system 菜單。 Report Configure Hardware Software Audit Execute Terminate 選擇 Hardware 【 CR】,進(jìn)入 Hardware 菜單。 HardDisk── Add a hard disk Video── Configure video card Tape ── Add/remove tapedrive Pseudo ttys ──Add/remove pttys Printer── Add/remove printer Parallel── Add/remove parallel Card_Serial── Add a serial card Eccd── Configure ecc daemon Mouse── Add a mouse 選擇 Parallel── Add/remove parallel,進(jìn)入 Parallel port Initialization 界面。 Do you wish to 1【 CR】 ( 1Add a parallel port) Please select the I/O address for the adapter: 1【 CR】 ( 1Serial/Parallel adapter 1: address=37837f) Should this port use interrupt( default[7]):【 CR】 (缺省中斷 7) You must create a new kernel to effect the driver change your 18 specified. Do you wish to create a new kernel now?( y/n) y【 CR】 Do you want this kernel to boot by default?( y/n) y【 CR】 Do you want this kernel environment rebuilt?( y/n) y【 CR】 重新連核心之后,按 ESC 鍵逐層退出,最后選 Quit 退出。 init 6 重啟系統(tǒng)。用 hwconfig 命令可查看并口信息。 第五節(jié) 后臺打印機(jī)的配置 下面說明 SCO Open Server 后臺打印機(jī)的配置步驟, SCO UNIX 安裝完成后,后臺打印機(jī)并不能自動安裝,需在操作系統(tǒng)中進(jìn)行如下配置。 開機(jī)進(jìn)入單用戶,鍵入 sysadmsh 【 CR】,進(jìn)入 sysadmsh 菜單。 System Backups Accounts Printers Media Jobs Dirs/Files Filesystems User Quit 選擇 system 【 CR】,進(jìn)入 system 菜單。 Report Configure Hardware Software Audit Execute Terminate 選擇 Hardware 【 CR】,進(jìn)入 Hardware 菜單。 HardDisk── Add a hard disk Video── Configure video card Printer── Add/remove printer Parallel── Add/remove parallel Tape ── Add/remove tapedrive Pseudo ttys ──Add/remove pttys Card_Serial── Add a serial card Eccd── Configure ecc daemon Mouse── Add a mouse 選擇 Printer── Add/remove printer,進(jìn)入 Printers 窗口。 Configure Schedule Request Auxiliary Priorities Quit 選擇 Configure,進(jìn)入 Configure 菜 單。 Add Modify Remove Default Parameters Errors Content Users 選擇 Add,進(jìn)入 Add a Printer 窗口。 Printer name [printer ] ment [ ] class name [ ] User printer [ ] Name of interface [standard ] Connection 選 [Direct] Call_up Device name [/dev/lp0 ] Dial_up information Device 選 [Hardwired] Login Require banner Yes 選 [NO] 返回上級 printers 菜單 選擇 Schedule【 CR】 ,進(jìn)入 Schedule 菜單。 Begin Stop Accept Reject Enable Disable 選擇 Begin【 CR】 ,進(jìn)入 Begin 菜單。在 start the Print Scheduler窗口中,選擇 Proceed 繼續(xù)。出現(xiàn) Print services started 及 press any key to continue 時,按回車鍵。返回 Schedule 菜單。 選擇 Accept, 進(jìn)入 Allow Requests for Destination 窗口。 19 Destinations [printer] [ ] [ ] [ ] [ ] [ ] 做如上的選擇后,出現(xiàn) press any key to continue,按回車鍵。返回Schedule 菜單。 1選擇 Enable,進(jìn)入 Enable Printers 窗口。 Destinations [printer] [ ] [ ] [ ] [ ] [ ] 做如上的選擇后,出現(xiàn) press any key to continue,按回車鍵。返回Schedule 菜單。 1按 ESC 鍵,退出 Schedule 菜單,返回上級 Printers 菜單。選擇 Configure,進(jìn)入 Configure 菜單。 1選擇 Default,進(jìn)入 Change System Default Destination窗口。 Destinations [printer] 做如上的選擇后,出現(xiàn) press any key to continue,按回車鍵。返回Schedule 菜單。 1按 ESC 鍵,返回 Printers 菜單。選擇 Quit,進(jìn)入 Quit 菜單,選擇 yes,進(jìn)入 printer 窗口。按 ESC 鍵,返回 SysAdmsh 菜單。選擇Quit,進(jìn)入 Quit 菜單,選擇 yes,返回至單用戶的命令行狀態(tài)。 關(guān) 機(jī)重啟,用 lp 命令檢測打印機(jī)設(shè)置是否正確。打印機(jī)如不能正常工作,請檢查 CMOS 中并口設(shè)置;應(yīng)用軟件中不能打印,請檢查/dev/lp0 的權(quán)限是否正確。 chmod 660 /dev/lp0 第三章 unix 的操作指令 第一節(jié) 目錄操作 這部分給出的命令都關(guān)系到 unix 的目錄操作。它們能夠完成顯示當(dāng)前路徑、改變路徑、把目錄名字或文件名字列表、建立目錄和刪除目錄以及移動目錄等等。這些都是使用 unix 系統(tǒng)是最經(jīng)常、最基本的操作。 顯示當(dāng)前的工作目錄 —— pwd 查看當(dāng)前目錄下的文件和目錄 —— ls 族 ls 族命 令包括 l、 ls、 lf、 lc、 lr、 lx,它們所完成的工作也是不一樣的,其中最常用的是: l、 lf,下面逐個介紹: l —— 以長格式在每行顯示目錄或文件的詳細(xì)信息 例如: l drwxrxrx 3 bin bin 48 Mar 16 1996 C rwrwr 1 bankster bank 100 Mar 15 1997 bankcenter 每一行顯示內(nèi)容的組成部分包括: 權(quán)限 :連接數(shù) :文件主 :文件組 :長度 :建立或修改時間 :目錄或文 件名 權(quán)限字段中,第一個字符表示文件的類型,具體的說: 表示一個普通文件 d 表示這是一個目錄 l 表示一個符號連接文件 20 b 表示一個特殊文件,一次以一個塊( block)為處理單位 c 表示一個特殊文件,一次以一個字符( character)為處理單位 p 為 FIFO( FirstIn/Firstout)的特殊文件,作為內(nèi)部程序間的聯(lián)系通道 lc —— 以短格式顯示目錄或文件名 例如: lc .lastlogin .utillist2 dev lib opt unix .mailrc app dos lost+found sfmt 此命令不能分辨出哪個是文件哪個是目錄。 lf ——以短格式顯示目錄或文件名 這條命令是 lc 命令的變種 ,不同之處是在顯示目錄或文件名字的同時,分別表示出它們的特征。如果是目錄,在名字后面跟有一個斜杠? /‖;如果是可執(zhí)行文件,在名字后面跟有一個星號?