Thanks,

The problem was indeed "su -".  When I did "su", it worked.




----- Original Message -----
From: "Mikkel L. Ellertson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 3:26 PM
Subject: Re: printtool


> On Tue, 27 Mar 2001, Hidong Kim wrote:
>
> > Hi,
> >
> > I'm trying to run printtool on a Red Hat 6.1 machine.  I'm logged into
> > an X session under my normal user account.  I su to root access.  When I
> > issue 'printtool' as root, I get this error:
> >
> > Application initialization failed: no display name and no $DISPLAY
> > environment variable
> > Couldn't load bindings.tcl
> > Start from control-panel or set environment variable
> > CONTROL_PANEL_LIB_DIR to the control-panel library dir.
> > (normally this is /usr/lib/rhs/control-panel)
> >
> >
> > Before I su'ed, I did 'xhost +localhost'.  After seeing this error
> > message, I set the variable $DISPLAY to :0.0, and $CONTROL_PANEL_LIB_DIR
> > to /usr/lib/rhs/control-panel.  printtool still gives the same error.  I
> > really don't want to kill my current X session just to re-login as root
> > to run printtool.  How can I run printtool without exiting my current
> > session?  Thanks,
> >
> >
> >
> > Hidong
> >
> >
> >
> In this case, you want to use "su" and not "su -" to change to root.
> That way, you still have a valid DISPLAY variable, as well as the
> correct settings to use the display.  There are other ways to do it, but
> I do not know enough about xauth to walk you through setting that up.
>
> Mikkel
> --
>
>     Do not meddle in the affairs of dragons,
>  for you are crunchy and taste good with ketchup.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to