CUPS not starting on Linux frugal distro - localhost631

Discuss various technical topics not related to Mozilla.
meshmaster361
Posts: 9
Joined: July 18th, 2015, 9:43 am

CUPS not starting on Linux frugal distro - localhost631

Post by meshmaster361 »

I am using SeaMonkey browser on Linux frugal distro.
Can anyone tell me why I get unable to connect to server when I go to http://localhost:631.
I can get other sites but it does not connect to this one.
Maybe someone has had this this and sorted it.
THANK YOU.
Last edited by rsx11m on July 24th, 2015, 10:00 am, edited 1 time in total.
Reason: modified title to be more specific
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: localhost631

Post by LoudNoise »

What server is likely to be on local host?
Does 127.0.0.1:631 get you there?
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: localhost631

Post by trolly »

To be clear: localhost or 127.0.0.1 is *your* computer.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
TPR75
Posts: 1353
Joined: July 25th, 2011, 8:11 am
Location: Poland

Re: localhost631

Post by TPR75 »

meshmaster361 wrote:I am using SeaMonkey browser on Linux frugal distro.
Can anyone tell me why I get unable to connect to server when I go to http://localhost:631.


Are you sure this is related to SeaMonkey?
Maybe there you can find some info:
http://www.linuxquestions.org/questions ... 175534168/

http://hplipopensource.com/node/231
--
User avatar
Rollo_Tommasi
Posts: 29
Joined: June 14th, 2014, 10:21 am

Re: localhost631

Post by Rollo_Tommasi »

Code: Select all

http://localhost:631

Are you trying to connect to CUPS?
Maybe there is something broken on the CUPS side?
I am just guessing, but if you are running some frugal distro maybe there is something you still need to install? :?:
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: localhost631

Post by LoudNoise »

It likely needs to be started , sudo /etc/init.d/cups start
It might also be blocked by hosts.

The question being, why bother? You can likely do the same thing through Menu --> Administration--> Printer.
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
meshmaster361
Posts: 9
Joined: July 18th, 2015, 9:43 am

Re: localhost631

Post by meshmaster361 »

LoudNoise wrote:It likely needs to be started , sudo /etc/init.d/cups start
It might also be blocked by hosts.

The question being, why bother? You can likely do the same thing through Menu --> Administration--> Printer.
Hi there you all you for replies.
I have tried more browsers and same occurs
Does 127.0.0.1:631 get me there? no change same.
Unable to connect to server or connection refused.
I am trying to config. get CUPS and print with Linux.
Disconnecting firewall no change. If it is blocked by the hosts what can I do?
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: localhost631

Post by LoudNoise »

Did you try sudo /etc/init.d/cups start ? It might not be running.

Assuming you have a text editor installed go to Computer/etc and search for hosts .
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: localhost631

Post by rsx11m »

Obviously, CUPS has to be running before it can bind port 631 locally and you can connect to it using whatever browser of your preference.

You can check with "netstat -an" from the command line if anything is listening on that port.

Code: Select all

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:631            0.0.0.0:0              LISTENING
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: localhost631

Post by LoudNoise »

netstat - cups might be a better suggestion
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
meshmaster361
Posts: 9
Joined: July 18th, 2015, 9:43 am

Re: localhost631

Post by meshmaster361 »

Hi there thank s for all replies.
Have tried the options suggested.
netstat -an UNIX 3 STREAM CONNECTED.
netstat - cups same UNIX 3 STREAM CONNECTED.
sudo /etc/init.d/cups start PERMISSION DENIED
NO VALID SUDOERS
This is what I can report back.
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: localhost631

Post by rsx11m »

LoudNoise wrote:netstat - cups might be a better suggestion

Doesn't do it for me on OpenSUSE, only displays the established/closing/closed connections as if invoked without any options.

meshmaster361 wrote:netstat -an UNIX 3 STREAM CONNECTED.

Hmm, that single line is all you get? Note that there isn't a space in the "-an" options.
UNIX-type sockets are local to the machine, thus you can ignore them. Maybe try

Code: Select all

netstat -ltn
instead which should show only TCP/IP sockets (used for "http://") that are listened on (i.e., have a server associated with them which is ready to accept connections).
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: localhost631

Post by rsx11m »

meshmaster361 wrote:sudo /etc/init.d/cups start PERMISSION DENIED
NO VALID SUDOERS

Yes, this needs to be set up properly. You can just login as root or use "su" instead to get an administrator shell, but that's a bit dangerous if you don't know what you are doing.

There is probably some higer-level user interface for managing these system things in your distro? Like YaST in OpenSUSE? It should have some "Services" settings which would tell you which services are installed, enabled or disabled for start, and currently running. If your distro is using systemd already for control of the services, /etc/init.d is mostly obsolete there anyway.
User avatar
LoudNoise
New Member
Posts: 39900
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Re: localhost631

Post by LoudNoise »

Since there is no Sudo, root isn't likely to be around either. Su is your best bet.

Start a terminal session.
Type su
Give it your password (assuming you are using an admin account)
/etc/init.d/cups start
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."
rsx11m
Moderator
Posts: 14404
Joined: May 3rd, 2007, 7:40 am
Location: US

Re: localhost631

Post by rsx11m »

Err, no - the "root" user should always be around (and "su" without an argument is effectively "su root"), it's just not offered in the login screen and needs to be explicitly typed in as a username. Only with "sudo" you provide your own password, for "su" you'll need the root password. But anyway, things in Ubuntu may be different than elsewhere...
Post Reply