亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4021 | 回復: 1
打印 上一主題 下一主題

共享打印機 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-04-07 17:01 |只看該作者 |倒序瀏覽
下面按由UNIX作打印服務器和WindowsNT作打印服務器兩種情況分別予以說明。為了簡便,假定已經按TCP/IP協(xié)議建立了計算機網絡,網絡中有四個節(jié)點。
節(jié)點一,操作系統(tǒng)為UNIX,IP地址是10.29.36.1,主機名是node1; 節(jié)點二,操作系統(tǒng)是UNIX,IP地址是10.29.36.2,主機名是node2;節(jié)點三,操作系統(tǒng)是WindowsNT,IP地址是 10.29.36.3,主機名是node3;節(jié)點四,操作系統(tǒng)是Windows95,它在WindowsNT(節(jié)點3)中有注冊用戶user ,IP地址是10.29.36.4,主機名是node4。上述四個節(jié)點的子網掩碼(netmask)都是255.255.255.0。
配置網絡打印機前的準備
1、在UNIX操作系統(tǒng)下安裝TCP/IP產品,配置TCP/IP網絡,分配IP地址,指定子網掩碼。
2、在WindowsNT操作系統(tǒng)下安裝TCP/IP產品,配置TCP/IP網絡,分配IP地址,指定子網掩碼。
3、在Windows 95操作系統(tǒng)下安裝TCP/IP產品,配置TCP/IP網絡,分配IP地址,指定子網掩碼。
4、用命令ping 測試所有網絡節(jié)點是否連通。
5、本文所指的UNIX操作系統(tǒng)版本為System V/386 Release 3.2 v4.2,Windos NT 版本是NT4.0。
二、node1作為打印服務器,其他三個節(jié)點作為客戶端。
(一)、打印服務器node1的配置
1、在UNIX中為node1配置本地普通打印機mp
                以root用戶注冊,執(zhí)行命令mkdev lp(配置過程從略,可以參見相關UNIX系統(tǒng)管理資料)
2、激活打印機
以root用戶注冊,執(zhí)行命令enable mp和accept mp
3、將打印機mp配置成可供客戶端使用的打印機
                以root用戶注冊,執(zhí)行命令mkdev rlp
#mkdev rlp
Remote printing configuration
Do you want to install or remove remote printing (i/r/q)? [q]:輸入i安裝遠程打印
Installing Remote Line Printing
Creating directories /usr/lpd/remote and /usr/spool/lpd and file /etc/printcap.
Saving lp, cancel and lpstat commands to /usr/lpd/remote
Installing remote lp, cancel and lpstat commands
Do you wish to change the printer description file /etc/printcap? (y/n) [n] 輸入y
Remote Printing Configuration
Enter information for remote printers or local printers accepting
Please enter the printer name (q to quit): 輸入打印機名稱mp
Is mp a remote printer or a local printer (r/l)? 輸入l表示該打印機是服務器端打印機
Please enter the the name of the device for mp: 輸入打印機mp連接的設備名/dev/lp0
Printer mp uses device /dev/lp0
Is this correct? (y/n) 輸入y
Putting mp in printer description file and creating spool dir...done
Enter information for remote printers or local printers accepting
remote printing requests
Please enter the printer name (q to quit): 輸入q退出
Do you want to start remote daemon now? (y/n) 輸入y啟動遠程打印守護進程lpd
4、設定可以使用該打印機的客戶機
        此項操作可以在文件/etc/hosts.equiv 和/etc/hosts.lpd中配置,由于文件/etc/hosts.equiv中配置的節(jié)點與本機是等價主機,會增加許多額外的特權,給系統(tǒng)帶來不安全因素,建議使用文件/etc/hosts.lpd配置網絡節(jié)點,該文件內容如下∶
node2
node3
node4
文件/etc/hosts.lpd
由于文件/etc/hosts.lpd引用了站點名,因而在節(jié)點node1文件/etc/hosts中應該予以說明,該文件內容如下
127.0.0.1        localhosts
10.29.36.1        node1
10.29.36.2        node2
10.29.36.3        node3
10.29.36.4        node4
文件/etc/hosts
(二)、客戶端node2的配置
1、編輯網絡主機名文件
        節(jié)點node2的文件/etc/hosts中應該對網絡的主機名和IP地址對應關系予以說明,該文件內容如下
127.0.0.1        localhosts
10.29.36.1        node1
10.29.36.2        node2
10.29.36.3        node3
10.29.36.4        node4
文件/etc/hosts
2、配置客戶端網絡打印機mp
以root用戶登錄,執(zhí)行命令mkdev rlp
#mkdev rlp
Remote printing configuration
Do you want to install or remove remote printing (i/r/q)? [q]: 輸入i安裝遠程打印
Installing Remote Line Printing
Creating directories /usr/lpd/remote and /usr/spool/lpd and file /etc/printcap.
Saving lp, cancel and lpstat commands to /usr/lpd/remote
Installing remote lp, cancel and lpstat commands
Do you wish to change the printer description file /etc/printcap? (y/n) [n] 輸入y
Enter information for remote printers or local printers accepting
remote printing requests
Please enter the printer name (q to quit): 輸入遠程打印機名mp
Is mp a remote printer or a local printer (r/l)? 輸入r表示該打印機是網絡打印機
Please enter the the name of the remote host that mp is attached to: 輸入遠程打印機mp所在的主機名node1
Printer mp is connected to host node1
Is this correct? (y/n) 輸入y
Would you like this to be the system default printer? (y/n) 輸入y將打印機mp設置成缺省打印機
Make sure your host name appears in node1's /etc/hosts.equiv
or /etc/hosts.lpd file
Make sure that mp appears in node1's /etc/printcap file (BSD format)
Make sure that mp has a spool directory on node1
Putting mp in printer description file and creating spool dir...done
Updating LP information...done
Updating /usr/spool/lp/default...done
Please enter the printer name (q to quit): 輸入q退出
Do you want to start remote daemon now? (y/n) 輸入y啟動遠程打印守護進程lpd
3、測試
        在節(jié)點node2中以任意用戶注冊,輸入命令
                l | lp
在節(jié)點node1的打印機mp上應該出現相應內容,或者在節(jié)點node1上以任意用戶注冊,輸入命令lpstat -t后,應該出現node2所發(fā)打印命令產生的打印隊列。
        如果沒有出現上述結果,可以查看node2中的文件/usr/spool/lpd/status,了解當前網絡打印機的狀態(tài)及打印不成功的原因。
(三)、客戶端node3的配置
安裝TCP/IP網絡打印
選擇"開始->;設置->;控制面版->;網絡->;服務->;添加"。
出現"選定網絡服務"對話框時,從"網絡服務"列表中選擇"Microsoft TCP/IP打印",然后單擊"確定"按鈕。
輸入安裝文件源路徑。
回到"網絡"對話框后,單擊"關閉"按鈕。
安裝完成后,重新啟動。
設置TCP/IP網絡打印過程
選擇"開始->;設置->;打印機->;添加打印機"。
出現"打印機管理者"對話框后,選擇"我的電腦",然后單擊"下一步"按鈕。
出現"打印機端口配置"對話框后,單擊"添加端口"。
出現"打印機端口"對話框后,選擇"LPR Port"。
出現"添加LPR兼容打印機"對話框時,在"提供lpd的服務器的名稱或地址"處,輸入打印機服務器node1 的IP地址"10.29.36.1",在"服務器上的打印機或打印隊列名"處,輸入節(jié)點node1配置好的打印機名mp, 單擊"確定"按鈕回到前一個對話框,單擊"關閉"按鈕回到"打印機端口配置"對話框后,選擇剛配置好的打印機端口,單擊"下一步"按鈕。
出現"打印機驅動程序選擇"會話框后,選擇合適的打印機驅動程序,再單擊"下一步"按鈕。
出現"打印機名稱"會話框后,輸入打印機名稱(任意),此處輸入net,然后單擊"下一步"按鈕。
出現"共享打印機設置"會話框后,將打印機net設置為共享打印機(供Windows 95使用),要求用戶user有使用權限,單擊"下一步"按鈕。
下面選擇測試打印機,以檢測打印機的設置是否正常。如果配置正確,將在節(jié)點node1的打印機mp上打印出測試頁,或者產生打印隊列。
單擊"完成"按鈕結束。
(四)、客戶端node4的配置
安裝Microsoft網絡打印
選擇"開始->;設置->;控制面版->;網絡->;服務->;添加"。
出現"選定網絡服務"對話框時,從"網絡服務"列表中選擇"Microsoft 的網絡文件共享和打印",然后單擊"確定"按鈕。
輸入安裝文件源路徑。
回到"網絡"對話框后,單擊"關閉"按鈕。
安裝完成后,重新啟動。
設置Microsoft網絡打印過程
啟動Windows 95 以用戶user 注冊。
選擇"開始->;我的電腦->;打印機->;添加打印機",單擊"下一步"按鈕。
出現"打印機管理者"對話框后,選擇"網絡打印機",然后單擊"下一步"按鈕。
出現"網絡路徑或打印隊列名"對話框時,選擇"瀏覽",雙擊網絡節(jié)點"node3"的共享打印機"net"(如果該項未出現,表示網絡配置不成功,如Windows NT與Windows95不同域,或者其子網掩碼不一致,或者打印機net沒有共享),單擊"確定"后, 單擊"下一步"按鈕。
出現"打印機驅動程序設置"對話框后,選擇是否保留現有打印驅動程序,單擊"下一步"按鈕。
出現"打印機名稱"會話框后,輸入打印機名稱(任意),此處輸入prn95,然后單擊"下一步"按鈕。
下面可以選擇測試打印機的設置是否正常。將在node1的打印機mp上打印出測試頁,或者產生打印隊列。
單擊"完成"按鈕結束。
這樣通過上述配置后,節(jié)點node1的打印機mp、節(jié)點node2的打印機mp、節(jié)點node3的打印機net、節(jié)點node4的打印機Prn95在物理上是同一打印機,已就實現了UNIX、Windows NT、Windows 95共享UNIX打印機。
三、node3作為打印服務器,其他三個節(jié)點作為客戶端。
(一)、打印服務器node3的配置
安裝本地打印機mp
選擇"開始->;設置->;打印機->;添加打印機"。
出現"打印機管理者"對話框后,選擇"我的電腦",然后單擊"下一步"按鈕。
出現"打印機端口配置"對話框后,選擇打印機所連接端口,一般選擇"LPT1",單擊"下一步"按鈕。
出現"打印機驅動程序選擇"會話框后,選擇合適的打印機驅動程序后,單擊"下一步"按鈕。
出現"打印機名稱"會話框后,輸入打印機名稱(任意),此處輸入mp,然后單擊"下一步"按鈕。
出現"共享打印機設置"會話框后,將打印機mp設置為共享打印機(供Windows 95使用),共享名為mp,要求用戶user有使用權限,單擊"下一步"按鈕。
下面選擇測試打印機,以檢測打印機的設置是否正常。如果配置正確,將在本機的打印機mp上打印出測試頁,或者產生打印隊列。
單擊"完成"按鈕結束。
2、安裝TCP/IP網絡打印服務
選擇"開始->;設置->;控制面版->;網絡->;服務->;添加"。
出現"選定網絡服務"對話框時,從"網絡服務"列表中選擇"Microsoft TCP/IP打印",然后單擊"確定"按鈕。
輸入安裝文件源路徑。
回到"網絡"對話框后,單擊"關閉"按鈕。
安裝完成后,重新啟動。
3、啟動TCP/IP網絡打印服務
選擇"開始->;設置->;控制面版->;服務->;TCP/IP Print Server",然后單擊"開始"按鈕。
(二)、客戶端node4的配置
安裝Microsoft網絡打印
選擇"開始->;設置->;控制面版->;網絡->;服務->;添加"。
出現"選定網絡服務"對話框時,從"網絡服務"列表中選擇"Microsoft 的網絡文件共享和打印",然后單擊"確定"按鈕。
輸入安裝文件源路徑。
回到"網絡"對話框后,單擊"關閉"按鈕。
安裝完成后,重新啟動。
設置Microsoft網絡打印過程
啟動Windos 95,以用戶user登錄。
選擇"開始->;我的電腦->;打印機->;添加打印機",單擊"下一步"按鈕。
出現"打印機管理者"對話框后,選擇"網絡打印機",然后單擊"下一步"按鈕。
出現"網絡路徑或打印隊列名"對話框時,選擇"瀏覽",雙擊網絡節(jié)點"node3"的共享打印機"mp",單擊"確定"后, 單擊"下一步"按鈕。
出現"打印機驅動程序設置"對話框后,選擇是否保留現有打印驅動程序,單擊"下一步"按鈕。
出現"打印機名稱"會話框后,輸入打印機名稱(任意),此處輸入prn95,然后單擊"下一步"按鈕。
下面選擇測試打印機,以檢查打印的設置是否正常。如果配置正確,將在node3的打印機mp上打印出測試頁,或者產生打印隊列。
單擊"完成"按鈕結束。
(三)、客戶端node1、node2的配置
1、編輯網絡主機名文件
        本機的文件/etc/hosts中應該對網絡的主機名和IP地址對應關系予以說明,該文件內容如下
127.0.0.1        localhosts
10.29.36.1        node1
10.29.36.2        node2
10.29.36.3        node3
10.29.36.4        node4
文件/etc/hosts
2、配置客戶端網絡打印機mp
以root用戶注冊,執(zhí)行命令mkdev rlp
#mkdev rlp
Remote printing configuration
Do you want to install or remove remote printing (i/r/q)? [q]: 輸入i安裝遠程打印
Installing Remote Line Printing
Creating directories /usr/lpd/remote and /usr/spool/lpd and file /etc/printcap.
Saving lp, cancel and lpstat commands to /usr/lpd/remote
Installing remote lp, cancel and lpstat commands
Do you wish to change the printer description file /etc/printcap? (y/n) [n] 輸入y
Enter information for remote printers or local printers accepting
remote printing requests
Please enter the printer name (q to quit): 輸入遠程打印機名mp
Is mp a remote printer or a local printer (r/l)? 輸入r表示該打印機是網絡打印機
Please enter the the name of the remote host that mp is attached to: 輸入遠程打印機mp所在的主機名node3
Printer mp is connected to host node3
Is this correct? (y/n) 輸入y
Would you like this to be the system default printer? (y/n) 輸入y將打印機mp設置成缺省打印機
Make sure your host name appears in node3's /etc/hosts.equiv
or /etc/hosts.lpd file
Make sure that mp appears in node3's /etc/printcap file (BSD format)
Make sure that mp has a spool directory on node3
Putting mp in printer description file and creating spool dir...done
Updating LP information...done
Updating /usr/spool/lp/default...done
Please enter the printer name (q to quit): 輸入q退出
Do you want to start remote daemon now? (y/n) 輸入y啟動遠程打印守護進程lpd
3、測試
        在節(jié)點node1、node2中以任意用戶注冊,輸入命令
                l | lp
在節(jié)點node3的打印機mp上應該出現相應內容,或者在節(jié)點node3的打印機隊列管理上,應該出現node1、node2所發(fā)打印命令產生的打印隊列。
通過上述配置,UNIX操作系統(tǒng)與Windows 95操作系統(tǒng)共享Windows NT操作系統(tǒng)的打印機,其中Windows NT是打印服務器端,UNIX與Windows 95是客戶端。

本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u3/94369/showart_1892499.html

論壇徽章:
0
2 [報告]
發(fā)表于 2009-09-10 13:44 |只看該作者
我也知道了。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP