Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2013, 08:42 PM
|
#1
|
Senior Member
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, FreeDOS, Illumos, NetBSD, OpenBSD, DragonflyBSD, Replicant, Plan9, Inferno, HURD
Posts: 1,234
|
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?
|
|
|
04-27-2013, 02:01 AM
|
#2
|
Member
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 531
Rep: 
|
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"
|
|
|
04-27-2013, 03:21 AM
|
#3
|
Senior Member
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, FreeDOS, Illumos, NetBSD, OpenBSD, DragonflyBSD, Replicant, Plan9, Inferno, HURD
Posts: 1,234
Original Poster
|
Quote:
Originally Posted by Andy Alkaline
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.
|
|
|
04-27-2013, 11:03 AM
|
#4
|
Member
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 531
Rep: 
|
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:*
|
|
|
04-27-2013, 10:18 PM
|
#5
|
Senior Member
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, FreeDOS, Illumos, NetBSD, OpenBSD, DragonflyBSD, Replicant, Plan9, Inferno, HURD
Posts: 1,234
Original Poster
|
Quote:
Originally Posted by Andy Alkaline
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.
|
|
|
04-28-2013, 03:10 AM
|
#6
|
Member
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 531
Rep: 
|
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?
|
|
|
05-01-2013, 06:10 PM
|
#7
|
Senior Member
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, FreeDOS, Illumos, NetBSD, OpenBSD, DragonflyBSD, Replicant, Plan9, Inferno, HURD
Posts: 1,234
Original Poster
|
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.)
|
|
|
All times are GMT -5. The time now is 07:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|