Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: http:localhost:36  (gelezen 2948 keer)

zakaria

  • Gast
http:localhost:36
« Gepost op: 2007/03/19, 20:40:47 »
ik heb cups geinstalleerd op mijn ubuntu advanced server vanuit shell (geen gui)
en ik heb hem op mijn vmware draaien en heeft als ip http:192.168.1.34

maar wanneer ik naar http://192.168.1.34:631/ ga kom ik niet in mijn web om de printerjobs inde gaat te houden
of toe te  voegen

Iemand iedee waarom ben ik wat vergeten!

Offline Johan van Dijk

  • Administrator
    • johanvandijk
http:localhost:36
« Reactie #1 Gepost op: 2007/03/19, 20:45:29 »
Wat is de inhoud van /etc/cups/cupsd.conf ?

zakaria

  • Gast
http:localhost:36
« Reactie #2 Gepost op: 2007/03/19, 21:18:06 »
#Restrict acces to the server...

Order allow,deny
Allow localhost
Allow @192.168.1.34


#Restrict acces to the admin pager...

  Order allow,deny
Allow localhost

zoiets ongeveer heb ik iets over het hoofd geslagen

zakaria

  • Gast
http:localhost:36
« Reactie #3 Gepost op: 2007/03/19, 22:29:24 »
Niemand ?

Offline Johan van Dijk

  • Administrator
    • johanvandijk
http:localhost:36
« Reactie #4 Gepost op: 2007/03/20, 02:31:39 »
Je moet bij #Restrict acces to the server... en #Restrict acces to the admin pager... het ip adres invullen van de pc waar vandaan je de boel in wil stellen.
Als 192.168.1.34 het ip is van de server, dan is dat niet goed.

zakaria

  • Gast
http:localhost:36
« Reactie #5 Gepost op: 2007/03/20, 08:36:07 »
Citaat van: Johanvd
Je moet bij #Restrict acces to the server... en #Restrict acces to the admin pager... het ip adres invullen van de pc waar vandaan je de boel in wil stellen.
Als 192.168.1.34 het ip is van de server, dan is dat niet goed.
de ip waar mijn ubuntu op draait in Vmware is 192.168.1.69 en uit van windows heb ik
192.168.1.78 draaien
Ik kom maar dus niet in http:localhost:631 of http://192.168.1.69:631
Moet ik nog wat anders gaan verander ofzo
als ik de bestand vi etc/cups/c ups.d/ports.conf wil openen met vi editor krijg ik een nieuwe document ??

Some other configuration for the CUPS server is done in the file /etc/cups/cups.d/ports.conf:
• Listen: By default on Ubuntu, the CUPS server installation listens only on the loopback interface
at IP address 127.0.0.1. In order to instruct the CUPS server to listen on an actual network adapter's
IP address, you must specify either a hostname, the IP address, or optionally, an IP address/port
pairing via the addition of a Listen directive. For example, if your CUPS server resides on a local
network at the IP address 192.168.10.250 and you'd like to make it accessible to the other systems
on this subnetwork, you would edit the /etc/cups/cups.d/ports.conf and add a Listen directive,
as such:
Listen 127.0.0.1:631 # existing loopback Listen
Listen /var/run/cups/cups.sock # existing socket Listen
Listen 192.168.10.250:631 # Listen on the LAN interface, Port 631 (IPP)


#Restrict acces to the server192.168.1.69

Order allow,deny
Allow localhost
Allow @192.168.1.78


#Restrict acces to the admin pager192.168.1.69

  Order allow,deny
Allow localhost

zakaria

  • Gast
http:localhost:36
« Reactie #6 Gepost op: 2007/03/20, 12:34:10 »
Niemand ??

Dennis_L

  • Gast
http:localhost:36
« Reactie #7 Gepost op: 2007/03/20, 13:32:45 »
Als je hem vanuit je XP probeert te bereiken moet je volgens mij bij
#Restrict ascces to the admin pager
Allow 192.168.1.78

invullen

vi /etc/cups/cups.d/ports.conf

Offline Johan van Dijk

  • Administrator
    • johanvandijk
http:localhost:36
« Reactie #8 Gepost op: 2007/03/20, 13:35:55 »
Plaats ook eens een keer het hele bestand.
Nu heb ik het idee dat driekwart er niet bij staat.

zakaria

  • Gast
http:localhost:36
« Reactie #9 Gepost op: 2007/03/20, 19:56:31 »
Citaat van: Dennis_L
Als je hem vanuit je XP probeert te bereiken moet je volgens mij bij
#Restrict ascces to the admin pager
Allow 192.168.1.78

invullen

vi /etc/cups/cups.d/ports.conf
Some other configuration for the CUPS server is done in the file /etc/cups/cups.d/ports.conf:

deze bovenstaande bestand kan ik nergens vinden volgens mij bestaat ie niet
de bestand bestand kan ik wel vinden /etc/cups/cupsd.conf

Dennis_L

  • Gast
http:localhost:36
« Reactie #10 Gepost op: 2007/03/20, 20:02:16 »
Citaat van: zakaria
Citaat van: Dennis_L
Als je hem vanuit je XP probeert te bereiken moet je volgens mij bij
#Restrict ascces to the admin pager
Allow 192.168.1.78

invullen

vi /etc/cups/cups.d/ports.conf
Some other configuration for the CUPS server is done in the file /etc/cups/cups.d/ports.conf:

deze bovenstaande bestand kan ik nergens vinden volgens mij bestaat ie niet
de bestand bestand kan ik wel vinden /etc/cups/cupsd.conf
kan je die Restricht access to the admin page daar ook instellen?

zakaria

  • Gast
http:localhost:36
« Reactie #11 Gepost op: 2007/03/20, 20:31:27 »
ja heb ik ook gedaan maar er gebeurt niks:

dit is wat ik nu heb

#Administrator user group...
Systemgroup lpadmin

#Only listen for connections from the local machine.
Listen localhost:631
Listen  /var/run/cups/cups.sock

#Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL

#Default authinication type, when authentication is required...
DefaultAuthtype Basic

#Restrict acces to the server...

  Order allow,deny
  Allow localhost
  Allow  @LOCAL


#Restrict acces to the admin pages192.168.1.34

  Order allow,deny
  Allow localhost


#Restrict acces to configuration files...

Authtype Basic
Require user @system
Order allow,deny
Allow localhost

Offline Johan van Dijk

  • Administrator
    • johanvandijk
http:localhost:36
« Reactie #12 Gepost op: 2007/03/20, 20:58:12 »
Hier is mijn configuratie.
Ik heb er al een hele tijd niet meer naar gekeken, omdat alles goed werkt momenteel.
Volgens mij kon ik vanaf andere computers ook de instellingen aanpassen, maar dat weet ik niet zeker.
# Show general information in error_log.
LogLevel info
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
DefaultAuthType Basic

  Order Deny,Allow
  Deny From All
  Allow From 127.0.0.1
  #Modify 192.168.0.* to match your configuration.
  Allow From 192.168.1.*


  # Restrict access to the admin pages...
  Order allow,deny
  Allow localhost
  Allow 192.168.1.*


  AuthType Basic
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
  Allow localhost
  Allow 192.168.1.*


 
    Require user @OWNER @SYSTEM
    Order deny,allow
 

 
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
 

 
    Require user @OWNER @SYSTEM
    Order deny,allow
 

  # Only the owner or an administrator can cancel a job...
 
    Order deny,allow
    Require user @OWNER @SYSTEM
 

 
    Order deny,allow