LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2011, 02:20 PM   #1
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Rep: Reputation: Disabled
Printer trouble


My system is CentOS Linux 6.0 2.6.32-71.29.1.el6.i686 on i686

I having trouble to install my printer, i get this message when im typing "system-config-printer".

[root@server1 ~]# system-config-printer
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 30, in <module>
from timedops import *
File "/usr/share/system-config-printer/timedops.py", line 21, in <module>
import gtk
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display
[root@server1 ~]#

Can anybody give me push in the right direction here?

jan ivar
 
Old 08-13-2011, 02:50 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
How about the other option: install CUPS and use the web interface...

Okay, in a few steps:
install CUPS
install the driverset, Gutenprint is a good one
get CUPS going, if it is'nt already
Open the web browser, enter the loopback address (127.0.0.1) and go to port 631: http://127.0.0.1:631
Follow the "install a peinter" (or something like that)

You may need to supply a root pass...

Let's do this first and see where the eagle lands, okay?

Luck

Thor
 
Old 08-13-2011, 03:00 PM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I don't use system-config-printer but it appears to be a graphical printer manager, correct? If so you wouldn't normally run it as root but maybe CentOS is different from other distros I'm more familiar with. For me, to run such a program I would have to use gksudo or something similar.
ciao,
jdk
 
Old 08-13-2011, 03:01 PM   #4
allwimb
Member
 
Registered: Aug 2011
Posts: 47

Rep: Reputation: Disabled
What printer do you have ?

spring logout

Last edited by allwimb; 12-12-2011 at 06:43 AM.
 
Old 08-13-2011, 03:06 PM   #5
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks Thor i wil try this :-)

jdkaye
i look into the gksudo

allwimb
It is a Canon inkjet ip4300

Last edited by Jan-Ivar; 08-13-2011 at 03:10 PM.
 
Old 08-13-2011, 03:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Yes, system-config-printer is a GUI based utility. Are you running it strictly from the command line i.e no desktop or via a terminal window.

The command line version is system-config-printer-tui which may not be installed. To install:
yum install python-setuptools

Last edited by michaelk; 08-13-2011 at 03:33 PM.
 
1 members found this post helpful.
Old 08-14-2011, 05:54 AM   #7
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
michaelk it seem to be installed but not working. and im running via terminal window Putty.

[root@server1 ~]# yum install python-setuptools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: ftp.uninett.no
* extras: ftp.uninett.no
* updates: ftp.uninett.no
Setting up Install Process
Package python-setuptools-0.6.10-3.el6.noarch already installed and latest version
Nothing to do
[root@server1 ~]#

Last edited by Jan-Ivar; 08-14-2011 at 05:55 AM.
 
Old 08-14-2011, 06:06 AM   #8
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
via terminal window Putty
...ehrm...is this a remote install? Putty is an SSH client if I recall. Is it possible you're trying to remote-admin the printer and you dont get a GUI tru the wire?

If you use Putty on the loopback, chances are you may not even be able to admin anything...as you're doing that "over the network"...

I'm confused... :/

Thor
 
Old 08-14-2011, 06:16 AM   #9
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thor
hm sorry to noth express my self to good im new to linux so im trying to do things all by my self.
I use Putty to write commands to my server, (i dont now all the terms and expressions you use sorry)

My main goal is to install my printer on to my server, then i like to share it whit my win pc om my network. My install of CentOS 6 went verry good and im noth having anny other trouble whit it. So i say please be patient whit me.

But thanks for manny god ideas :-)
 
Old 08-14-2011, 06:40 AM   #10
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
...ehrm...is this a remote install? Putty is an SSH client if I recall. Is it possible you're trying to remote-admin the printer and you dont get a GUI tru the wire?

If you use Putty on the loopback, chances are you may not even be able to admin anything...as you're doing that "over the network"...

I'm confused... :/

Thor
By the way Thor
do tou mean that changes i do whit Putty may noth have anny affects on my server? i do log in as root whit my password! and i do make changes!
confused now!!
I tryed to use webmin and Printer Administrations to add my printer, but it seems to have the same effect that it wont start or cant find my printer.Samba Windows File Sharing have Windows to Unix Printing but i get stuck here too :-(

Last edited by Jan-Ivar; 08-14-2011 at 06:46 AM.
 
Old 08-14-2011, 07:29 AM   #11
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Oh, okay, now I've got a more complete picture. If I understand correct, the printer is to serve the print requests over a network. Well, that's pretty simple.

Oh, and by the way:

Quote:
i dont now all the terms and expressions you use sorry
dont worry...it'll all grow on you in time

Okay. Well, first step is to physically go to the server, and install the printer on that box (software wise) and get it up and functional. Just as if it's a local printer. You'd install it using CUPS. On the server, open the webbrowser and go to 127.0.0.1:631. if all is well, CUPS will greet you with a webpage. Go tru the wizard. Make sure you share the printer, otherwise nobody will be able to see it.
As soon as the printer (locally) produces a test page, you're about there.

Next, it's on to the systems/PC's that need printing. At this point I must apologise, but on the windows boxes...I can not help. For this kind of thing, I'd try things on my network, but I do not run any windows anymore...
Okay, well, the printer can be installed locally (and...you should get a GUI) entering

Quote:
system-config-printer
in a console. I suspect you tried that in Putty...that may not have been very successfull...

Go through the web based procedure and set things up as you did on the server, same driver, same settings, same all.

Again, set up a new printer in the applet of the system, stick to the settings applied on the printer. This may seem strange, but I've discovered that you need to set this up twice. There should be a "discover" button. Try that. Seen the printer? Bingo!

Try a test in the word proccessor. Did the printer do what it's supposed to do?

Done!

Thor
 
Old 08-14-2011, 07:41 AM   #12
Jan-Ivar
Member
 
Registered: Jul 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Ohh ok
If i get you right, this is an graphic interface? on the server
But i dont run a graphic interface! i hope you understand what i mean? i yust got a black screen where i run comands. I been always told to run in "console" mode ( if it is what it called), therefore i dont have this graphical mode installed.
I have always runned remote to my server whit "webmin" or "putty"

Jan Ivar
 
Old 08-14-2011, 12:17 PM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
You can use cups from the command line.
http://www.cups.org/doc-1.1/sam.html#4_2_1

Kind regards
 
  


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
having trouble with my printer golgo Linux - Software 5 04-13-2009 04:08 PM
Having trouble with my printer... trist007 Linux - Newbie 6 03-01-2009 05:04 AM
HP Printer Trouble vraidroit Linux - Hardware 2 09-03-2006 12:32 AM
Printer trouble Hophoto SUSE / openSUSE 0 12-28-2004 09:11 AM
printer trouble rand07 Linux - Newbie 0 03-15-2001 09:38 AM


All times are GMT -5. The time now is 03: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration