On Wed, 19 Jan 2005 18:50:46 -0800 (PST), Viet Bach <[EMAIL PROTECTED]> wrote:
> 
> Theo ma(.c ddi.nh thi` CUPS kho^ng cho admin access cho
> ai kha'c ngoa`i localhost, nghia~ la` http://localhost:631 chi?
> cha.y tre^n chi'nh ma'y Linux server ddo' tho^i.
> 
> DDe^? ca'c ma'y kha'c co' the^? access ddu+o+.c:
> 
> vi /etc/cups/cupsd.conf
> 
> ddo^?i:
> Listen 127.0.0.1:631
> tha`nh:
> Listen 192.168.1.1:631
> 

Server IP address la` 192.168.1.1, co`n ma'y PC se~ truy ca^.p co' IP
address la` 192.168.1.125, va^.y thi` mi`nh

LISTEN 192.168.1.1:631 

hay la` 

LISTEN 192.168.1.125:631

??

DDa~ thu+? Listen 192.168.1.1:631 thi` kho^ng co' gi` thay ddo^?i,
nghi~a la` va^~n bi. tu+` cho^'i ke^'t no^'i va`o CUPS server, co`n
Listen 192.168.1.125:631  thi` khi restart CUPS service la.i tha^'t
ba.i:
"Starting cups: cupsd: Child exited with status 99!"

> Ne^'u muo^'n ai cu~ng truy ca^.p ddu+o+.c (not a good idea)
> Listen *:631
>

Listen *:631 ga(.p cu`ng error message nhu+ tre^n
 
> Sau ddo' restart cupsd daemon:
> # service cups restart
> Khi ca^`n go+~ ro^'i (trouble-shooting) thi` xem /var/log/cups

Khi Listen *:631 roi restart thi trong error_log co dong nay:
StartListening: Unable to bind socket for address c0ac89d:631 - Cannot
assign requested address.

> 
> Muo^'n Linux server tro+? tha`nh print server cho ca'c ma'y kha'c
> trong ma.ng thi` co`n va`i dde^`u kha'c pha?i la`m, quan tro.ng
> nha^'t la` pha?i ca^'u hi`nh CUPS dde^? broadcast (ma(.c ddi.nh
> thi` broadcast off! )
> 
> 1. Ca`i dda(.t local printer
> Applications -> System settings -> Printing -> New
> Sau khi ta.o thi` right-click printer icon va` share
> 

Ca'i na`y sao nghe gio^'ng ca`i Printer tre^n Windows va^.y\? mi`nh
tu+o+?ng pha?i ca`i tre^n CUPS server (i.e. Linux box) chu+'?

> 2. Ba'o cho mo.i ngu+o+`i bie^'t la` mi`nh co' printer (broadcast)
> Theo ma(.c ddi.nh, CUPS kho^ng broadcast local printer cho user na`o
> kha'c ngoa`i ca'c users tre^n localhost (127.0.0.1).
> The^m 2 do`ng sau dda^y va`o cupsd.conf va` restart cups:
> BrowseAllow from @LOCAL
> BrowseAddress from @LOCAL
> 
> BrowseAddress from @LOCAL -> ta^'t ca? ca'c ma'y tre^n ta^'t ca? ca'c
> local networks cu?a server dde^`u tha^'y printer
> BrowseAddress from @LOCAL(eth0) -> ca'c ma'y tre^n ma.ng no^'i vo+'i
> eth0
> BrowseAddress from 255.255.255.255 -> ai tre^n Internet cu~ng co' the^?
> print tre^n ma'y mi`nh, ne^'u ho. tha^'y ddu+o+.c IP cu?a ma'y.
> 
> 3. Ca^'u hi`nh printing tre^n Windows client:
> Install printer driver
> Printers -> Add -> Network printer
> ->URI: http://<server name or IP>:631/printers/<printer_name>
> 
> 4. Ca^'u hi`nh printing tre^n Linux client:
> Applications -> System settings -> Printing
> Ne^'u CUPS tre^n server cha.y o^?n thi` se~ tha^'y Browsed queue
> Click queue va` select printer la` xong.
> 
> To^i cu~ng dda~ ma^'t nhie^`u tho+`i gian vo+'i chu' CUPS na`y
> ne^n muo^'n chia xe? kinh nghie^.m vo+'i mo.i ngu+o+`i.
> 
> Viet
> 
> 
> --- Tri H Trinh <[EMAIL PROTECTED]> wrote:
> 
> > Hi all,
> >
> > Sa'ch no'i: co' the^? qua?n ly' CUPS tu+` CUPS Admin Page
> > http://localhost:631.
> >
> > Nga(.t no^~i ca'i server cu?a to^i kho^ng ca`i XWindow, ne^n to^i
> > ca^`n mo+? trang CUPS admin page na`y tu+` mo^.t workstation trong
> > LAN, nhu+ng khi ke^'t no^'i va`o CUPS server (FC3 box)  thi` bi. tu+`
> > cho^'i:
> >
> > "A connection was refused when attemting to connect to
> > 192.168.1.1:631"
> >
> > Xin ca'c ba'c va`i xu
> >
> > --
> > Tri H. Trinh
> > --------------------------------------------------------
> > Microsoft is not the answer, it is the question. The answer is NO!!!
> >
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by: Beat the post-holiday blues
> > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> > _______________________________________________
> > VietLUG-users mailing list
> > VietLUG-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/vietlug-users
> >
> 
>                 
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> VietLUG-users mailing list
> VietLUG-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vietlug-users
> 


-- 
Tri H. Trinh
--------------------------------------------------------
Microsoft is not the answer, it is the question. The answer is NO!!!


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
VietLUG-users mailing list
VietLUG-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vietlug-users

Trả lời cho