LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 07-28-2015, 02:35 PM   #1
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Rep: Reputation: Disabled
http://localhost:631


I have Puppy Tahr frugal 6.03.
When I type localhost into browser all I get is
connection refused when attempting to contact localhost 631.
Tried other browsers still no connection.
Even with firewall temp. disconnected no change.
Can anyone suggest any further moves.
May I also add that the printer wizard does not even work.
Thank you.
 
Old 07-28-2015, 02:53 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Welcome to LQ! We'd very much like to help, but your current thread makes that difficult. Please visit http://www.linuxquestions.org/questi...#faq_lqwelcome for some additional information on how you can help us help you. If you have any questions or need additional clarification, just let us know.
 
Old 07-28-2015, 03:01 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
A little more infor would be helpful, in particular, has cups or the printer ever worked on this install or is this a new problem?

My initial thoughts are that the http server and/or the cups daemon are not running.

Not being a puppy user I am not sure of how those start, but you might try...

Code:
service http(d) start
OR
service cups(d) start
OR
(try with and without the 'd')

Use the Puppy admin panel to start these services.
I am sure a Puppy user will pass by soon with the required info. In the mean time can you please tell us whether this is a new install, whether the print functions have ever worked, etc.

And welcome to LQ!

UPDATED ****

Looking for further info I found PuppyLinux : cups page which should be useful. What is the output of the following?

Code:
/etc/init.d/cups status
If it shows that it is not running then try this:

Code:
/etc/init.d/cups start
There are also some links near the bottom of that page that appear to cover most Puppy printer topics.

Good luck!

Last edited by astrogeek; 07-28-2015 at 03:37 PM.
 
Old 07-28-2015, 03:51 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
for
http://localhost:631/
to display the CUPS default page it has to be running first

so is the printing software running ?
 
Old 07-29-2015, 02:05 PM   #5
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Original Poster
Rep: Reputation: Disabled
It appears the software is not running by the look of it.
I have had it running until this problem occurred/ connection refused, http://localhost:631.
During this time it was running I tried the config. printer in cups
and I never got any further success. All I got was 'cant detect the printer'.
When I tried print a test page nothing printed.
So actually I have never had it to work with Linux system.
If you want any more info from me do let me know.
 
Old 07-29-2015, 02:16 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you still have not said just what this printer is
the make and model will help

for example :

-- IF it is a cannon printer it might NOT be supported in linux or on a apple computer
and if it is a OLDER Cannon model from the XP days there might not even be a win7 or 8 or 10 driver


so we really do need to know the make and model of the printer
 
Old 07-30-2015, 11:54 AM   #7
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Original Poster
Rep: Reputation: Disabled
Hi all thanks for replies.
The codes results.
/etc/init/.d.cups status. Scheduler not running.
start. cupsd child excited with status 1
cups unable to start scheduler.
My printer is a HP Deskjet 970Cxi parallel port.
I have supposed-to-have have installed hplip_print-3.13.x.pet.??
The Gutenprint driver package is supposed to support it.

THANKS
 
Old 09-01-2015, 01:28 AM   #8
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Won't solve your issue, but you should probably look at the output of
Code:
groups
for your user and make sure you're in lp and lpadmin. If not, you will be restricted later from things you will want to do.

Things I would do to start looking for an answer:

I would look at the output of
Code:
dmesg | less
and see if there are any errors related to CUPS. You can pipe it into
Code:
grep 'cups'
instead of
Code:
less
to cut down the output you have to look at initially, but that might miss something else.

You may want to purge and reinstall cups in case any bad configuration files are causing it to crash.

Also, there are a bunch of files on my system under
Code:
/var/log/cups
. I'm not familiar with them, but some relate to errors and may have some clues.

Once you get CUPS to work, looking at
Code:
dmesg
again (at the end of the output) right after you plug your printer in will show you how the system responded to the appearance of the printer.
 
Old 09-03-2015, 11:47 AM   #9
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thank you josephj.
I have tried each of the codes you suggested. Here they are.

GROUPS root tty disk audio 1p dialout kmen video floppy cd rom tahe plug dev 1padmin

dmesg less No cups mentioned in long list.
dmesg grep cups. Again no cups mentioned.
/var/log/cups. Is a directory


My printer is an HP Deskjet 970Cxi.
When I try http:// localhost:631 into browser I am 'denied entry'. I am using Linux Puppy.
Thank you josephj.
 
Old 09-04-2015, 12:22 AM   #10
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Well, first of all, your specific printer doesn't matter until you get CUPS running. No printer will "automatically" be configured and "just work" without that unless you have some other printer management software installed.

First, go into your package manager (whichever one Puppy uses) and list packages with "cups" or "hplip" in their names. You should see some of each already installed. If not, then that's what we have to fix first. (and ignore the rest below until after that).

----

Try restarting CUPS. (This was suggested before, but the fact that it needs elevated privileges to run was omitted.) and tell us what it says now that it has some muscle behind it:

Code:
sudo service cups restart
If it works, you should be able to see that cups is running as root:

Code:
shelelia@halo:/var/log/cups$ ps -ef | grep cups
shelelia  1252  2496  0 00:55 pts/4    00:00:00 grep cups
root      1387     1  0 Sep03 ?        00:00:05 /usr/sbin/cupsd -F
If that works, you should see some messages about cups and apparmor showing up in dmesg output.

Then, you can plug in your printer and you should see messages about it in dmesg and maybe even a configuration dialog of some sort will appear.

Once we get cups running and figure out why it didn't start automatically, we can iron out any details related to the printer itself.

----

In your user's groups, if it's really 1p and 1padmin (starting with a one instead of an "ell"), that won't work.

Yes, /var/log/cups is a directory (as originally noted) of log files that detail what cups has been doing for you (if anything). See what files are in it - particularly ones with timestamps from the current day. On my system, it looks like there are seven (daily?) versions of access, error, and page logs. They're all plain text (although the older ones ending with a .gz are compressed).

For now, look at access_log. It should tell you when things last worked. I have error logs too, but I don't know what the messages mean, so we'll temporarily ignore them. Later, if we get stuck, then maybe posting one of them to this list or directly to a cups list will get us some useful feedback.
 
Old 09-05-2015, 11:56 AM   #11
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thank you Jj
Tried
sudo service cups restart.
sudo sudo can't open/ etc sudoers; Permission denied.
sudo no valid sudoers soarces found. Quitting
sudo unable to initialize policy plug in.

Tries this again
/var/log /cups
Bash this is a directory [only this appears]
Thank you again Jj
 
Old 09-05-2015, 04:22 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
sudo service cups restart.
You don't need sudo as it isn't used on Puppy. All the Puppy Linux distros I have used run as root by default.

Quote:
Tries this again
/var/log /cups
That won't do anything. I you want to view or check to see if you have any log files in that directory, open it in the Puppy filemanager.
 
Old 09-06-2015, 02:46 AM   #13
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
OK. According to @yancek, you should have root permissions to start with, so forget about sudo.

What you want is

Code:
ls -lh /var/log/cups
no spaces in the path name. That will list what's in that directory - and there should be log files there if cups is running (or has run) and doing anything at all.

If you do find logs there look at the timestamps to see how recently they were updated.

You should also have a look in

Code:
Puppy Menu > Setup > Puppy Setup > Puppy Package Management
That's going through your menu system - not at the command line.

Somewhere in there it should let you search for packages and see if they're installed.

You need to search for packages with "cups" in their name and for those with "hplip" in their name and see which are installed. Those are the packages that manage all printers and those that specifically support HP printers. We can't configure something if it's not even installed.

In general, you should also look for a Linux Users Group (lug) in your area or some similar local support system. Problems like this are much easier to solve when someone can just sit in front of your computer and try things until they see what's actually going on. There may be some things that just don't look right to someone more familiar with Linux that you might not think to mention in a dialog like this one.

I've been using Linux for over a decade and I wouldn't have gotten anywhere without the great support I got - and still get from my local lugs (and from forums like this one).

Last edited by josephj; 09-06-2015 at 02:50 AM. Reason: additional material
 
Old 09-09-2015, 01:46 PM   #14
pianoforte361
Member
 
Registered: Jul 2015
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thank you yancek.and jj:
I have tried the code 1s-1h/var/log/cups [no spaces] is this written right?
The result I have is 'no such file or directory.

Puppy Package Manager.
Repositories Puppy Tahr SYSTEM no list cups or hplip.
Repositories Puppy noarch SYSTEM no listing cups or hplip.

I have never been able to print from this puppy linux.
But I have earlier had the http;/localhost:631. to config printer.
Then I was unable to get it, for some reason I do not know.
This is now as far as I reached.
Thank you.
 
Old 09-09-2015, 03:24 PM   #15
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by pianoforte361 View Post
Thank you yancek.and jj:
I have tried the code 1s-1h/var/log/cups [no spaces] is this written right?
The result I have is 'no such file or directory.
Not even close... after 42 days of trying!

It appears to me that you do not know even the most very basic way to interact with your computer, Linux or otherwise, and are not able to understand simple instructions, which makes it very difficult for us to help you.

For exaample, you obviously do not recognize the 'ls' command and do not know what a 'path' is...

I do not mean that to be unkind, but if you were a driver asking how to get to some destination, and the person you asked had to tell you how to start the engine, what the wheel and floor pedals were for, and what the colors of the lights at intersections mean... it would be very difficult to successfully direct you to your destination without just buying you a bus ticket!

You are going to have to put forth just a little effort of your own to get where you want to go.

You might spend a little time looking at the following to try to build your basic skills, then you will understand the questions and the answers...

The Ultimate Linux Newbie Guide
Bash Beginners Guide
Rute Guide

Last edited by astrogeek; 09-09-2015 at 03:27 PM.
 
2 members found this post helpful.
  


Reply



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
[SOLVED] http://localhost:631 njb Linux - Hardware 11 08-04-2010 10:21 AM
CUPS http://localhost:631/ LUB997 Linux - Software 1 09-26-2005 07:52 PM
Can't find http://localhost:631 encore Slackware 5 03-07-2005 06:26 PM
http://localhost:631 zaicheke Linux - Software 5 08-01-2004 01:13 PM
What the heck is http://localhost:631 glenn69 Linux - Newbie 5 10-04-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration