Re: Creare un print server con vecchio pc
Inviato: mercoledì 4 luglio 2012, 17:39
Il forum della comunità italiana di Ubuntu.
https://forum.ubuntu-it.org/
a questo punto io ho provato con i dati del mio server ma non funziona. come faccio? le guide dicono che basta cliccare su aggiungi stampante e non parlano di autenticarsi....A username and password are being requested by the site localhost
Server message: CUPS
Username:
Password:
nomeutente è il nome del'utente del tuo server e ipdelserver è l'ip del tuo server.ssh nomeutente@ipdelserver
e così diventi root sul server.sudo su
quindi edita cups.confmv /etc/cups/cups.conf /etc/cups/cups.conf.backup
ed incolla dentro questonano /etc/cups/cups.conf
Codice: Seleziona tutto
#
#
# Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#
# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn
# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0
# Administrator user group...
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd
BrowseAddress @LOCAL
# Default authentication type, when authentication is required...
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow all
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set$
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
# Set the authenticated printer/job policies...
<Policy authenticated>
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set$
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Prin$
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
#
#
adesso vai con/etc/init.d/cups restart
Esattogorunks » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4133719#p4133719]oggi, 11:47[/url] ha scritto:quindi una volta fatto quanto mi hai consigliato, la stampa in rete dovrebbe funzionare e da samba non devo configurare nulla giusto?
samba quindi lo devo configurare unicamente per la condivisione delle cartelle?
Con xsane è possibile, ma su un server senza interfaccia non ho mai provato.gorunks » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4133719#p4133719]oggi, 11:47[/url] ha scritto: fatte queste 2 cose poi vi chiederò anche cosa fare per condividere in rete lo scanner, ma questa cosa viene in secondo piano, prima voglio potere lanciare le stampe da ogni pc
eh si... però ne ho 2 non di rete....Non fai prima a prendere una multifunzione di rete?
io sul server ho installato un d.e. (gnome base, mi pare) quindi ho l'interfaccia grafica (almeno credo)...Con xsane è possibile, ma su un server senza interfaccia non ho mai provato.
In effetti è molto più economico che configurare Cups.Cuoco » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4133905#p4133905]oggi, 15:22[/url] ha scritto:Non fai prima a prendere una multifunzione di rete?
luxtux ha scritto:In effetti è molto più economico che configurare Cups.Cuoco » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4133905#p4133905]oggi, 15:22[/url] ha scritto:Non fai prima a prendere una multifunzione di rete?
:-/
L.
bellissima la tua firma
lol
Ok allora semmai ti posto una guida a fine configurazionegorunks » [url=http://forum.ubuntu-it.org/viewtopic.php?p=4133994#p4133994]oggi, 16:44[/url] ha scritto:eh si... però ne ho 2 non di rete....Non fai prima a prendere una multifunzione di rete?
io sul server ho installato un d.e. (gnome base, mi pare) quindi ho l'interfaccia grafica (almeno credo)...Con xsane è possibile, ma su un server senza interfaccia non ho mai provato.
comunque ci penserò in un secondo momento a provare a capire come potrebbe andare, prima devo riuscire a stampare da ogni posto..... una volta fatto mi preoccupo dello scanner....
Codice: Seleziona tutto
matteo@matteo-laptop:~$ ssh matteogrioni@192.168.0.107
matteogrioni@192.168.0.107's password:
Permission denied, please try again.
matteogrioni@192.168.0.107's password:
Permission denied, please try again.
matteogrioni@192.168.0.107's password:
Permission denied (publickey,password).
matteo@matteo-laptop:~$
Codice: Seleziona tutto
matteo@matteo-laptop:~$ ssh matteo@192.168.0.107
matteo@192.168.0.107's password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
System information as of Mon Jul 16 20:56:25 CEST 2012
System load: 0.31 Processes: 135
Usage of /home: 1.7% of 65.05GB Users logged in: 1
Memory usage: 29% IP address for eth0: 192.168.0.107
Swap usage: 0%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Wed Jul 4 15:54:13 2012
matteo@serverubuntu:~$ sudo su
[sudo] password for matteo:
root@serverubuntu:/home/matteo# mv /etc/cups/cups.conf /etc/cups/cups.conf.backup
mv: impossibile eseguire stat di "/etc/cups/cups.conf": File o directory non esistente
root@serverubuntu:/home/matteo# mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup
root@serverubuntu:/home/matteo# nano /etc/cups/cupsd.conf
root@serverubuntu:/home/matteo# /etc/init.d/cups restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cups restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop cups ; start cups. The restart(8) utility is also available.
cups stop/waiting
start: Job failed to start
Codice: Seleziona tutto
/etc/init.d/cups restart