- 論壇徽章:
- 1
|
出處:Unix愛好者家園unix-cd.com
本文介紹的是愛普生針式打印機(jī)如何通過并口,在SCO UNIX 5.05操作系統(tǒng)中實現(xiàn)打印的方法。并且該文檔只介紹了SCO UNIX實現(xiàn)本地打印的方法,而不包括網(wǎng)絡(luò)打印和終端共享打印。
1 安裝及配置并口
(1) 在進(jìn)入UNIX系統(tǒng)配置并口之前,首先必須進(jìn)入計算機(jī)的BIOS系統(tǒng),記錄并口的基地址和中斷號。如我的計算機(jī)中并口基地址是378,中斷(IRQ)是7。
(2) 啟動SCO UNIX系統(tǒng),使用具有足夠權(quán)限的賬戶登陸。
如:login: root, password: xxxxxx
(3) 在UNIX中安裝并口。
操作步驟如下:
# mkdev parallel
系統(tǒng)顯示:
Parallel Port Initialization
There are no parallel ports configured.
注:如果己安裝了并口,則提示目前擁有并口的信息。
The following cards are currently configured:
Parallel Adapter at address: 378-37f, interrupt = 7 (/dev/lp0)
Do you wish to: (你想做什么)
1. Add a parallel port (添加并口)
2. Remove a parallel port (刪除并口)
3. Show configuration (顯示配置)
4. Help (幫 助)
Select an option or enter q to quit:(選擇一項或q鍵退出)
選擇:[3]。確認(rèn)系統(tǒng)是否配置了并口。系統(tǒng)提示:
There are no parallel ports configured.
Hit return to continue
按回車后,返回上面的提示。然后選擇[1]。系統(tǒng)提示:
Please select the I/O address for the adapter:(請選擇并口適配器的I/O地址)
1. Parallel Adapter at address: 378-37f
2. Parallel Adapter at address: 3bc-3be
3. Parallel Adapter at address: 278-27a
4. Other configuration (其它配置,用于特殊情況)
Select an option or enter q to quit:
根據(jù)步驟(1)中記錄的并口基地址來選擇[1]。系統(tǒng)提示:
Should this port use interrupt(default:7): (并口的中斷,默認(rèn)為7)
直接回車。系統(tǒng)提示:
The device node is /dev/lp0
You must create a new kernel to effect the driver change you specified.
Do you wish to create a new kernel now? (y/n)
選擇(y)。系統(tǒng)提示:
The UNIX Operating System will now be rebuilt.
This will take a few minutes. Please wait.
Root for this system build is /
The UNIX Kernel has been rebuilt.
Do you want this kernel to boot by default? (y/n)
選擇(y)。系統(tǒng)提示:
Backing up unix to unix.old
Installing new unix on th boot file system
The kernel environment includes device node files and /etc/inittab.
The new kernel may require changes to /etc/inittab or device nodes.
Do you want the kernel environment rebuilt? (y/n)
選擇(y)。系統(tǒng)提示:
The kernel has been successfully linked and installed.
To activate it, reboot your system.
Setting up new kernel environment
#
然后在提示符#后,輸入reboot。重新啟動系統(tǒng)。
2 安裝、配置打印機(jī)
系統(tǒng)啟動時顯示的硬件信息若有:parallel 0x378--0x37f 7 - unit=0 則表明并口配置完成。
(1) 系統(tǒng)啟動后,同樣仍使用足夠權(quán)限的帳戶登陸系統(tǒng)。如:root.
(2) 安裝打印機(jī)具體步驟如下:
# mkdev lp
屏幕顯示:
+=============== Printer Manager on scosysv =============++
+--------------------------------------------------------++
|| Host Printer Settings System Options Help||
++-------------------------------------------------------++
|Printer Configuration on scosysv |
| |
| Type Name Description |
||-------------------------------------------------------++
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
++-------------------------------------------------------+|
| 0 Printer, No Default |
+---------------------------------------------------------+
| +
+========================================================++
選擇Printer-〉A(chǔ)dd Local…,屏幕提示:
+==================== Add Local Printer =================++
|| ||
|| Name: |__________________| ||
|| Desciprition: |_____________________________________| ||
||+------------------------------------------------------+|
|| Model: |standard_________________|v ||
||+------------------------------------------------------+|
||+------------------------------------------------------+|
|| Device: |/dev/tty1a (COM1)>v ||
||+------------------------------------------------------+|
|| ||
|| ||
++-------------------------------------------------------+|
| [ OK ] [ Cancel ] [ Help ] |
+---------------------------------------------------------+
+========================================================++
Name項:輸入LQ1600K (此處為你為打印機(jī)的命名,可依自己實際連接打印機(jī)型號自行輸入)
Description項:輸入Epson printer (你對本臺打印機(jī)的說明,不說明可直接回車)
Model項:選擇Epson (LQ系列)
(注:根據(jù)你的實際打印機(jī)型號選擇。選standard 為OKI系列打印機(jī)。)
Device項:選/dev/lp0 (連接打印機(jī)的設(shè)備)
提示:Model項和Device項都是按向下箭頭鍵即可進(jìn)行選項的選擇。
以上各項參數(shù)設(shè)置完畢后,選擇[OK]。系統(tǒng)出現(xiàn)如下提示:
+============== Printer Manager on scosysv ==============++
+--------------------------------------------------------++
|| Host Printer Settings System Options Help ||
++-------------------------------------------------------++
|Printer Configuration on scosysv |
| |
| Type Name Description |
||-------------------------------------------------------++
|| * L LQ1600K EPSON printer ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
|| ||
++-------------------------------------------------------+|
| 1 Printer, No Default |
+---------------------------------------------------------+
| +
+========================================================++
(3) 設(shè)置系統(tǒng)默認(rèn)打印機(jī)
在"Printer Manager"窗口(上面的提示窗口)內(nèi),選擇Printer-〉Set to Default,然后回車。把LQ1600K設(shè)置為默認(rèn)打印機(jī),此時提示窗口中"1 Printer, No default"變?yōu)?i>"1 Printer, Default: LQ1600K"。
(4) 進(jìn)行相關(guān)的打印機(jī)設(shè)置
在"Printer Manager"窗口(上面的提示窗口)內(nèi),選擇Settings-〉A(chǔ)dvanced-〉Banners…,
屏幕提示:
+===================== Printer Banners====================++
|| LD LQ1600K ||
|| ||
|| Number of banner pages: |1______| ||
++--------------------------------------------------------+|
| [ OK ] [ Cancel ] [ Help ] |
+----------------------------------------------------------+
+=========================================================++
把Number of banner pages:(標(biāo)頁數(shù)) 改為"0"(不要標(biāo)頁打印)。
選擇[OK],保存設(shè)置。
在"Printer Manager"窗口中,選擇Host-〉Exit。退出打印機(jī)管理器,并保存所有設(shè)置。
3 打印機(jī)打印測試
(1) 通過并口線,把任何一款的愛普生針式打印機(jī)連接到UNIX主機(jī)上。
(2) 在SCO UNIX系統(tǒng)任意找一個文本格式的文件,進(jìn)行打印測試。
如:# cat /usr/spool/lp/forms.readme>/dev/lp0
打印機(jī)正常工作,則說明打印機(jī)的安裝、配置已經(jīng)完成。已經(jīng)可以在UNIX系統(tǒng)上工作了。
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u/31/showart_520228.html |
|