LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-15-2003, 02:12 PM   #1
jayz
LQ Newbie
 
Registered: Jul 2003
Location: WA, USA
Distribution: RedHat
Posts: 2

Rep: Reputation: 0
display error running redhat-config-*


PROBLEM
I get an error whenever I try to run any of the redhat-config-* programs, such as redhat-config-packages...

Code:
[root@auburn root]# redhat-config-packages
Unable to import gtk module.  This may be due to running without
$DISPLAY set.  Exception was:
could not open display
Traceback (most recent call last):
  File "/usr/share/redhat-config-packages/MainWindow.py", line 11, in ?
    sys.exit(0)
NameError: name 'sys' is not defined
I'm not sure what technology these config programs use, but they seem to be more than just ANSI or VT100. I can't get them to run from either the console nor PuTTY over SSH.


ENVIRONMENT
I just completed a fresh install of RedHat 9 with the server profile, I've set my hostname in /etc/sysconfig/network, DHCP is enabled in /etc/sysconfig/network-scripts/ifcfg-eth0, and /etc/resolv.conf is correctly being autogenerated by the DHCP client. I've even tried setting $DISPLAY per the suggestion of www . europe . redhat.com / documentation / rhl7.2 / rhl-ig-s390-en-7.2 / s1-guimode-booting . php3
 
Old 07-15-2003, 02:59 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
These programs attempt to communicate to an X server that is assumed to be running. That means you cant use them from a remote console unless you run an X server on the ssh client-side and use X-forwarding .

For some of the redhat-config-* tools, I've seen *-gui and *-tui ( or *-nox) versions. If you don't have these, try passing it a --nox option ( I've seen atleast some RH tools take it ) so it would run in console mode.

HTH
 
Old 07-15-2003, 04:33 PM   #3
jayz
LQ Newbie
 
Registered: Jul 2003
Location: WA, USA
Distribution: RedHat
Posts: 2

Original Poster
Rep: Reputation: 0
It looks like the redhat-config-packages tool that I need doesn't have a non-X version, nor will it take a parameter like --nox, as appears the case for most others...
Code:
[root@auburn root]# ls /usr/sbin/redhat-config*
/usr/sbin/redhat-config-bind           /usr/sbin/redhat-config-network-tui
/usr/sbin/redhat-config-bind-gui       /usr/sbin/redhat-config-packages
/usr/sbin/redhat-config-kickstart      /usr/sbin/redhat-config-printer
/usr/sbin/redhat-config-network        /usr/sbin/redhat-config-printer-gui
/usr/sbin/redhat-config-network-cmd    /usr/sbin/redhat-config-printer-tui
/usr/sbin/redhat-config-network-druid  /usr/sbin/redhat-config-proc
/usr/sbin/redhat-config-network-gui    /usr/sbin/redhat-config-services
So, do most RedHat admins install X on their servers just to run the config programs? I'd hate to weigh down a server with X just so I can access a tool, in addition to introducing the complexity of installing Exceed or equiv on admin clients. I suppose VNC would be easier to deploy, but it's still a pain when ssh is so easy.
 
Old 07-15-2003, 05:14 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
AFAIK, yes. But there may be someone else who knows these tools better.

The tools appear to be designed to emulate the WinNT/2K administration interface. If I want to stay away from X and do pure console based administration, I wouldn't use the tools anyway.

If all you want is a simple X server, use cygwin and enable X11 Forwarding on ssh, I would say. The X protocol is definitely a bandwidth hog ( and hence slow ), but I bet your server wouldn't even know it from a performance perspective because it is running an X client - no X server headaches at all. The graphics is handled by the X server running on the ssh client side.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error running redhat-config-samba rje_NC Fedora 5 08-04-2004 12:33 AM
redhat-config-packages error (thinks it is redhat and not fedora) qwijibow Fedora 3 12-17-2003 09:59 PM
Error when running ./config for ircd MarleyGPN Linux - Software 0 10-29-2003 11:22 AM
Problem in running redhat-config-packages satimis Red Hat 2 09-29-2003 11:52 AM
redhat 9 display error leonardo Linux - General 0 07-11-2003 12:49 PM


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