On Mon, Aug 21, 2006 at 10:17:13AM -0700, kelsey hudson wrote:
> Lan Barnes wrote:
> >Here is where I need help. I have grown soft over the years and now
> >mostly configure things using the Red Hat GUI tools. Certainly in
> >printing in general and cups specifically I have no idea how to set
> >things up using vi.
> 
> printtool for the win.
> 
> As far as setting things up using a CLI or TUI -- even a command-line 
> purist like myself has to cheat once in a while and make
> 
> >However, I appear to have skimped on my installation and the GUI tools
> >are complaining that gtk is unavailable when I try to tunnel X over ssh
> >(which I have done easily enough in the past). I tried using
> >system-config-printer-tui, but found it not very intuitive.
> 
> install GTK, run printtool, uninstall GTK?
> 
> >So can someone point me to some reading?
> 
> CUPS has a nifty config web server it runs usually on 
> http://localhost:631/. You'll have to open its access up a bit wider for 
> your other machines to access it, but you could conceivably add the 
> printer that way. The printer won't work locally for a lot of things, 
> since redhat/fedora bastardized the way it works, but it should still 
> work fine on the network. Really though, the right way is to bite the 
> bullet and use printtool, even if it means installing GTK on your server 
> (which, IMO, isn't a bad thing anyways as a lot of things I may want to 
> run locally have it in their dependency tree).
> 


I'm beginning to question my assumptions:

- according to "rpm -qa|grep gtk", I have all the gtk stuff installed on
both boxes
- I can't even run wish across the connection

Here is my techinique for review and correction:

1. On the client, I run "xhost +" for promiscuous acceptance

2. On the server, I run "export DISPLAY=toto:0.0" to tell it where to
send output

Here are my results:

[EMAIL PROTECTED] ~]$ echo $DISPLAY
toto:0.0
[EMAIL PROTECTED] ~]$ system-config-printer
You are attempting to run "system-config-printer" which requires
administrative
privileges, but more information is needed in order to do so.
Password for root:
ImportError: could not import gtk
Traceback (most recent call last):
  File "/usr/sbin/system-config-printer", line 9, in ?
    import queueTree
  File "/usr/share/printconf/util/queueTree.py", line 71, in ?
    import gtk
  File
"/usr/src/build/612051-i386/install/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py",
line 37, in ?
RuntimeError: could not open display
[EMAIL PROTECTED] ~]$
[EMAIL PROTECTED] ~]$ wish
Application initialization failed: this isn't a Tk applicationcouldn't
connect to display "toto:0.0"
% [EMAIL PROTECTED] ~]$ ping toto
PING toto (10.8.49.14) 56(84) bytes of data.
64 bytes from toto (10.8.49.14): icmp_seq=0 ttl=63 time=0.411 ms
64 bytes from toto (10.8.49.14): icmp_seq=1 ttl=63 time=0.304 ms
64 bytes from toto (10.8.49.14): icmp_seq=2 ttl=63 time=0.300 ms

--- toto ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.300/0.338/0.411/0.053 ms, pipe 2
[EMAIL PROTECTED] ~]$

Anybody know what I'm doing wrong?

-- 
Lan Barnes
Linux Guy, SCM Specialist     
Tcl/Tk Enthusiast 

I should prefer to an ordinary death, being immersed with a few friends
in a cask of Madeira, until that time, then to be recalled to life by
the solar warmth of my dear country! But in all probability, we live in
a century too little advanced, and too near the infancy of science, to
see such an art brought in our time to its perfection.
                             - Benjamin Franklin, 1773


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to