LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-23-2013, 08:42 PM   #1
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 194

Rep: Reputation: 21
CUPS not working between Slackware and Mint


I have used Slackware since 1997 but never set up network printing before. So, I went to the KDE system settings in KDE Mint, and enabled a CUPS printer on my family members' PC. Then I went to my TDE system settings on my Slackware PC, searched for a CUPS printer, and it says it is not found. What do I do?
 
Old 04-27-2013, 02:01 AM   #2
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 350

Rep: Reputation: 27
Check your firewall (CUPS uses port 631), and check your logs ( /var/log/cups/ )

Are you trying to sharing the printer from Mint?

Another way to check some settings is: in your web browser, go to http://localhost:631

That's your web-based CUPS admin interface. There's an option "Share printers connected to this system"
 
Old 04-27-2013, 03:21 AM   #3
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 194

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Andy Alkaline View Post
Check your firewall (CUPS uses port 631), and check your logs ( /var/log/cups/ )
Router firewall? PC firewall? I am not running one on Slackware and do not know much about Mint (the PC with it is not my computer, but I am basically its administrator.)
Quote:
Are you trying to sharing the printer from Mint?
I first said I tried to enable it in Mint, so basically I have said yes. Actually, I tried sharing it on my OpenBSD server next to the Mint PC, which failed and has an unanswered thread.
Quote:
Another way to check some settings is: in your web browser, go to http://localhost:631

That's your web-based CUPS admin interface. There's an option "Share printers connected to this system"
I am aware of that. I already got into the KDE system hardware admin menu on the Mint computer the printer is connected to, and the printer seems enabled in CUPS there. If I recall, I could maybe not access CUPS in a web browser on port 631 on Mint. Of course, I can on Slackware, but TDE (a KDE3 fork) has a similar system hardware admin menu. I have a working /etc/hosts with the Mint PC included, but on Slackware, it does not even find the printer, though I have used my PC on LANS for years (not with printers yet.) Actually, I have not done ssh to the Mint PC either but want to avoid running SSHD on it.

Last edited by dchmelik; 04-27-2013 at 03:30 AM.
 
Old 04-27-2013, 11:03 AM   #4
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 350

Rep: Reputation: 27
If you can't access CUPS on Mint through the browser, I'd first check at the command line to make sure it's running (if you haven't already done so):

pgrep -l cupsd

and second, make sure it's listening:

debian64:~$ netstat -utnl | grep :631

should produce output similar to:
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
udp 0 0 0.0.0.0:631 0.0.0.0:*
 
Old 04-27-2013, 10:18 PM   #5
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 194

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Andy Alkaline View Post
If you can't access CUPS on Mint through the browser, I'd first check at the command line to make sure it's running (if you haven't already done so): [...]
It is running.
Quote:
and second, make sure it's listening: [...] should produce output similar to:
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
udp 0 0 0.0.0.0:631 0.0.0.0:*
I got output that had two lines starting with tcp, ending with LISTEN, then a udp line... I do not reacll if it was exactly the same, but it was similar.
 
Old 04-28-2013, 03:10 AM   #6
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 350

Rep: Reputation: 27
Okay.

I forgot to check your firewall. You can use nmap from your Slackware box to scan the open ports on Mint.

debian64:~# nmap -p 631 localhost

Starting Nmap 6.00 ( http://nmap.org ) at 2013-04-28 03:06 CDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
PORT STATE SERVICE
631/tcp open ipp

Or as root, run 'iptables -nL' on Mint. Or use some GUI firewall app; I don't know what Mint has to offer.

Anything in /var/log/cups/error_log or access_log that might give a clue?
 
Old 05-01-2013, 06:10 PM   #7
dchmelik
Member
 
Registered: Nov 2008
Location: Washington state, USA
Distribution: BSD, GNU/Linux (Slackware, etc.,) openSolaris
Posts: 194

Original Poster
Rep: Reputation: 21
I found out what the problem was. I actually saw the printer listed in TDE, but it was listed at one higher LAN IP address number than I expected. It seems, when I was reconfiguring my LAN before replacing a router, I disconnected my PC, then the Mint one got too high of an IP address instead of the one in /etc/hosts, so I have to restart the Mint on. That will probably do it (well, I could even connect the printer right now, but I want the LAN numbers to not have gaps from the first to last.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Freelink debian on Buffalo NAS cups not working /usr/lib/cups/filter/hpcups failed linuxmandrake Debian 0 03-23-2010 04:45 PM
Working of CUPS girish_hilage Linux - Newbie 2 05-15-2009 05:30 PM
Cannot get CUPS Working! klatu Slackware 3 03-07-2004 06:59 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM


All times are GMT -5. The time now is 10:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration