LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-03-2011, 03:13 AM   #1
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Rep: Reputation: 0
Ubuntu 10.04 parallel port disappeared...


I have been tinkering around with CUPS for the last few days trying to get print sharing to work. Did not have problems printing documents from this desktop. When I went to print a document I found that my printer was not listed. Using localhost:631/admin shows lists the printer, but when I open System->Administration->Printing, the window opens (after a few seconds), grays out, and a blank display. The option to add a printer is grayed out.

In terminal window:
lpstat -v
lpstat: Connection timed out
lpinfo -v
lpinfo: Connection timed out

What happened to the parallel port?

Thanks, GeoK
 
Old 02-03-2011, 09:07 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Have you got the parallel port modules loaded? To find out, open a konsole, run the command 'lsmod | grep ppdev' and see if ppdev, parport_pc and parport are listed. If not, try loading them.

Only other thing I can think of is some how cups has got hosed up. Possibly restart cups?
 
Old 02-03-2011, 04:43 PM   #3
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
Thank you for the reply.

This was my outuput for lsmod | grep ppdev:
ppdev 5259 0
parport 32635 3 ppdev,parport_pc,lp

I failed to mention that after the problem began, I removed cups and then installed cups again. Just to be thorough I did execute /etc/init.d/cups stop and /etc/init.d/cups start, but no improvement. When I try to print from my web browser, the entire window grays out and becomes unresponsive until the print window appears.
 
Old 02-03-2011, 06:13 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
I removed cups and then installed cups again.
Did you re-install the printer after the cups re-install? Did it ever print after the re-install?
 
Old 02-03-2011, 07:30 PM   #5
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
At localhost:631/admin I was able to install my printer, but it still will not print. The web browser grays out as described earlier, and lpstat and lpinfo still times out.
 
Old 02-04-2011, 09:01 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
This sounds like some kind of a permission issue. What do you see if you go to System-->Admin-->Printing? There should be icon(s) there, one for each printer. Right click on the printer, Properties, and look at Policies, and Access Controls. Make sure your user has access.
 
Old 02-04-2011, 06:32 PM   #7
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
System->Administration-> Printing takes about 20 seconds to open. Once it finally opens there are no printers displayed. When I select Server->New both Printer and Class are grayed out. If I select Server->Connect then the Connect to CUPS server appears. The only available CUPS Server is PrinterHost. If I select Connect then a CUPS server error tells me that "There was an error during the CUPS operation: 'failed to connect to server'."
 
Old 02-05-2011, 05:27 AM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
What do you see in /dev for parport0 ? Her is what it looks like on my system.

Quote:
ls -l parport0
crw-rw----+ 1 root lp 99, 0 2011-02-05 05:34 parport0
The group is lp. Is parport0, or what ever parport# you have set to rw for the group?
 
Old 02-05-2011, 08:56 AM   #9
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
Yes, the group permission is rw

ls -l parport?
crw-rw---- 1 root lp 99, 0 2011-02-02 15:12 parport0
 
Old 02-05-2011, 12:50 PM   #10
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I'm just about of ideas.

Have you at any time made changes to /etc/cupsd.conf file?

This is the file to configure cups. As far as I know, lpstat talks to cups to display status information. I'm wondering if there is a problem in the config file.

Could you also make sure cupsd is running? the command 'ps aux | grep cupsd' should tell you if cupsd is running.
 
Old 02-05-2011, 01:49 PM   #11
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
Result for ps aux | grep cupsd:
Code:
root     10248  0.0  0.1   7372  3552 ?        Ss   Feb03   0:02 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
blah     18572  0.0  0.0   3328   872 pts/0    S+   14:41   0:00 grep --color=auto cupsd
Yes I have made changes to the /etc/cupsd.conf file. This is the only section that I made changes:
LogLevel warn
MaxLogSize 1m
SystemGroup lpadmin
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
Listen 127.0.0.1
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
 
Old 02-05-2011, 02:44 PM   #12
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
The places you have cupsd listening are different to mine. Since this is part of the problem, lpstat not talking to the daemon, try changing the listening entries to match mine. Restart cups, and see what happens.

Here is the way mine is set up.

Quote:
# Only listen for connections from the local machine.
Listen *:631
Listen /var/run/cups/cups.sock
I'm not listening on 127.0.0.1 at all.
 
Old 02-05-2011, 04:56 PM   #13
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
I commented out the line for listening to 127.0.0.1 and and changed the Port 631 to Listen *:631, but unfortunately no change.

Thank you for your time. GeoK
 
Old 02-06-2011, 05:19 AM   #14
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
If you run a 'ping localhost' do you get a response like this -

Quote:
ping localhost
PING duelie (127.0.0.1) 56(84) bytes of data.
64 bytes from duelie (127.0.0.1): icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from duelie (127.0.0.1): icmp_seq=2 ttl=64 time=0.025 ms
 
Old 02-06-2011, 09:40 AM   #15
kern68
Member
 
Registered: Jun 2010
Distribution: Fedora, Ubuntu, CentOS, OpenSUSE
Posts: 47

Original Poster
Rep: Reputation: 0
Yes, just like that:

Quote:
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.090 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.044 ms
 
  


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
redirect printer output on computer 1(Win2000) to Computer 2(Ubuntu)via parallel port dmarkd Linux - Hardware 2 12-01-2008 03:51 AM
parallel port not there? misophist Linux - Hardware 5 04-12-2007 10:58 AM
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
parallel port mehro Linux - Hardware 5 01-31-2006 06:43 AM
What's using my parallel port?! DiBosco Linux - Hardware 10 06-20-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:15 PM.

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