Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CUPS help (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lroy1978
Apprentice
Apprentice


Joined: 28 Jan 2006
Posts: 189
Location: Lille, France

PostPosted: Sat Nov 14, 2009 10:11 pm    Post subject: CUPS help (solved) Reply with quote

Hi

I have recently upgraded cups (I cannot remember the previous version) to version 1.3.10-r2

After updating, I have been having problems getting my printer to print from other computers (running windows on my network)

To print on a windows machine, I talk directly to CUPS, not using samba. So I provide a URL to windows along the lines of :

http://myserver:631/printers/EPSONPRINTER

I can send the file for printing on the remote machine, but it never appears under 'jobs' on the cups administration web page on my server. Nothing ever prints. Yet, I can print locally. I'm lost - can anyone help ?

Cheers,
Lee

Code:

emerge --info                                       
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================                                     
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 13 Nov 2009 22:15:01 +0000                                                         
ccache version 2.4 [enabled]                                                                               
app-shells/bash:     4.0_p28                                                                               
dev-java/java-config: 2.1.9-r1                                                                             
dev-lang/python:     2.6.2-r1                                                                             
dev-python/pycrypto: 2.0.1-r8                                                                             
dev-util/ccache:     2.4-r7                                                                               
dev-util/cmake:      2.6.4-r3                                                                             
sys-apps/baselayout: 1.12.13                                                                               
sys-apps/sandbox:    1.6-r2                                                                               
sys-devel/autoconf:  2.13, 2.63-r1                                                                         
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.18-r3                                                                               
sys-devel/gcc-config: 1.4.1                                                                               
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="en_GB@euro"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="fr en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 berkdb bzip2 cdr cli cracklib crypt ctype cups dbus dri drm dvd ffmpeg flac force-cgi-redirect fortran gdbm google-gadgets gpm gtk hal iconv ipv6 java jpeg kde lm_sensors melt mesa mmx mng modules mp3 mudflap multilib mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre perl php png pppd python qt3support qt4 readline reflection rss samba sdl session spl sql sse sse2 ssl startup-notification svg symlink sysfs tcpd unicode vhosts virtualbox webkit x264 xinetd xml xorg xscreensaver zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Code:


ServerName MyServer
ServerAdmin admin@myserver
AccessLog /var/log/cups/access_log
ErrorLog /var/log/cups/error_log
LogLevel debug
MaxClients 100
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
<Location />
  Deny From All
  Allow From 192.168.1.*
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  AuthType Basic
  AuthClass System
  Allow From 192.168.1.*
  Deny From All
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
# Allow remote access to the configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow all
</Location>


Last edited by lroy1978 on Sun Nov 15, 2009 2:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
baaann
Guru
Guru


Joined: 23 Jan 2006
Posts: 558
Location: uk

PostPosted: Sun Nov 15, 2009 12:16 am    Post subject: Reply with quote

I believe that you have to reverse
Code:
Order allow,deny

as the final instruction you are currently giving is to
Code:
Deny From All


The instructions do not follow the order in that they are written
Back to top
View user's profile Send private message
lroy1978
Apprentice
Apprentice


Joined: 28 Jan 2006
Posts: 189
Location: Lille, France

PostPosted: Sun Nov 15, 2009 10:54 am    Post subject: Reply with quote

Thanks for the reply. I tried changing the order to allow, deny - still no luck.

I have tried using the cups page to configure the setup and now I have

Code:

LogLevel debug
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
BrowseAddress @LOCAL
DefaultAuthType Basic
# Allow shared printing and remote administration...
<Location />
  Order allow,deny
  Allow all
</Location>
# Allow remote administration...
<Location /admin>
  Order allow,deny
  Allow all
</Location>
# Allow remote access to the configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow all
</Location>


I can send a test page from windows, but its like it never arrives at my server. No new job ever appears in cups.

Perhaps, I am doing something stupid. But this is beginning to drive me crazy! :?

Lee
Back to top
View user's profile Send private message
lroy1978
Apprentice
Apprentice


Joined: 28 Jan 2006
Posts: 189
Location: Lille, France

PostPosted: Sun Nov 15, 2009 2:11 pm    Post subject: Reply with quote

Got it working. Here is my simple (yet working) cupsd.conf

Code:

LogLevel info
SystemGroup root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.

#AuthType None
DefaultEncryption Never

<Location />
  AuthType None

  Order deny,allow
  Allow localhost
  Allow from 192.168.1.*
  Deny all

</Location>


Cheers,
Lee
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum