redhat config tools

Place to discuss Fedora and/or Red Hat

redhat config tools

Postby dishawjp » Wed Nov 19, 2003 11:04 pm

Hi All,

Ok, so I'm talkative tonight. Maybe it's the beer, or the weather, or the fact that I got chewed out at work today (actually, my sanity was questioned, but that's another story which I may post in "The Lounge" someday... maybe...) for actually installing Linux on one of my computers at work.....

But anyway, on to my question:

Red Hat has all these neat little tools/toys with ridiculous names like "redhat-config-network" or whatever, which can easily be started by typing in "neat" as root from the command line. I know that "redhat-config-securitylevel" or something like that is "lokkit" and there are lots of others.

Does anyone know of a place where I can find out all the *real* short command line ways of accessing these utilities? I'm looking for a web site or some other concise directory of simple, direct access to these utilities from the command line.

Any pointers to a web site or other info would be greatly appreciated.

Jim Dishaw
dishawjp
administrator
administrator
 
Posts: 334
Joined: Thu Jan 23, 2003 9:05 am
Location: Central NY

Postby Void Main » Wed Nov 19, 2003 11:18 pm

ls -l /usr/bin/redhat*

You will see that most are symbolic links to console helper. Take redhat-config-sevices for instance you will find a file with the same name in the /etc/security/console.apps directory:

cat /etc/security/console.apps/redhat-config-services
Code: Select all
USER=root
PROGRAM=/usr/share/redhat-config-services/redhat-config-services
SESSION=true


What this will do is prompt you for root's password if you are not already root and then run /usr/share/redhat-config-services/redhat-config-services which is a shell script that sets up some environment variables and then runs the python script /usr/share/redhat-config-services/serviceconf.py. You could of course run those scripts directly or create your own shell scripts with shorter names but they are Red Hat specific utilities and don't really equate to other distros although they certainly could be ported to other distros but they are rather Red Hat specific. Most of these you will find on the Red Hat menu in Gnome and KDE. For instance the "Services" ICON just runs the "redhat-config-services".
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Mon Dec 22, 2003 4:41 pm

This is exactly the error msg I get when trying to run this redhat-cinfig-services :



Traceback (most recent call last):
File "/usr/share/redhat-config-services/serviceconf.py", line 26, in ?
import gtk
File "/usr/lib/python2.2/site-packages/rhpl/__init__.py", line 43, in ?

ImportError: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Get_BDF_Property



... errrr, what must I do ?
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Mon Dec 22, 2003 5:03 pm

That's weird, my rhpl/__init__.py doesn't even have 43 lines in it. What version of Red Hat are you running? I don't believe that is the problem though. It looks like the root error is the one from libfontconfig.so.1. Is that package in tact? You can verify it by:

# rpm -V fontconfig

If the package checks out good there will be no output from the above command.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Mon Dec 22, 2003 8:39 pm

... and "unfortunately" there's no output from the command.

:?
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Mon Dec 22, 2003 9:14 pm

Again, what version of Red Hat are you running?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Tue Dec 23, 2003 2:21 pm

Indeed that wasn't so obvious.

I'm running FC1 (actually installed on a RH9.0 install which was as well an install n a RH8.0)

Greetz.
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 2:42 pm

I am also running FC1 that has been upgraded from even farther down the pedigree than you have on several machines and have no problems. You must have intalled a package that is in the redhat-config-services dependency tree that is broken. redhat-config-services depends on the following packages:

bash
chkconfig
redhat-config-services
gnome-python2
gnome-python2-canvas
pygtk2
pygtk2-libglade
rhpl
usermode
usermode-gtk

On my system (which is up to date with all the updates) the versions of the above are:

bash-2.05b-31
chkconfig-1.3.9-1
redhat-config-services-0.8.5-23
gnome-python2-2.0.0-2
gnome-python2-canvas-2.0.0-2
pygtk2-2.0.0-1
pygtk2-libglade-2.0.0-1
rhpl-0.121-1
usermode-1.69-1
usermode-gtk-1.69-1

You can check yours by "rpm -q bash" etc.. If all that looks good also do an "rpm -V pkgname", like "rpm -V bash" on each package and verify that they are all good.

Oh, and you did do an "upgrade" rather than just installing Fedora over the old version of Red Hat without formatting right?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Tue Dec 23, 2003 3:53 pm

I believe I'll cry.


[root@Houston pp]# rpm -q bash
bash-2.05b-34
[root@Houston pp]# rpm -V bash-2.05b-34
[root@Houston pp]# rpm -q chkconfig
chkconfig-1.3.9-1
[root@Houston pp]# rpm -V chkconfig-1.3.9-1
[root@Houston pp]# rpm -q redhat-config-services
redhat-config-services-0.8.5-23
[root@Houston pp]# rpm -V redhat-config-services-0.8.5-23
[root@Houston pp]# rpm -q gnome-python2
gnome-python2-2.0.0-2
[root@Houston pp]# rpm -V gnome-python2-2.0.0-2
[root@Houston pp]# rpm -q gnome-python2-canvas
gnome-python2-canvas-2.0.0-2
[root@Houston pp]# rpm -V gnome-python2-canvas-2.0.0-2
[root@Houston pp]# rpm -q pygtk2
pygtk2-2.0.0-1
[root@Houston pp]# rpm -V pygtk2-2.0.0-1
[root@Houston pp]# rpm -q pygtk2-libglade
pygtk2-libglade-2.0.0-1
[root@Houston pp]# rpm -V pygtk2-libglade-2.0.0-1
[root@Houston pp]# rpm -q rhpl
rhpl-0.121-1
[root@Houston pp]# rpm -V rhpl-0.121-1
[root@Houston pp]# rpm -q usermode
usermode-1.69-1
[root@Houston pp]# rpm -V usermode-1.69-1
[root@Houston pp]# rpm -q usermode-gtk
usermode-gtk-1.69-1
[root@Houston pp]# rpm -V usermode-gtk-1.69-1
[root@Houston pp]#


everything seems fine. :shock:
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Membrax » Tue Dec 23, 2003 3:54 pm

... and yes, I did an upgrade, no formatting or that kind of stuff.

But I still think I'll cry.

:wink:
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 4:06 pm

Do me a favor and do this:

$ ldd -d /usr/lib/libfontconfig.so.1

and tell me what the output is. Also what version of fontconfig do you have installed (rpm -q fontconfig)? This looks just like your problem:

http://www.redhat.com/archives/fedora-l ... 01461.html
http://www.redhat.com/archives/fedora-l ... 05042.html

The output from my "ldd -d /usr/lib/libfontconfig.so.1" looks like this:

Code: Select all
$ ldd -d /usr/lib/libfontconfig.so.1
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00ca0000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00122000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00817000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00dd8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00194000)


And I guess while you are at it you should figure out what version of freetype is installed (rpm -q freetype) and verify it (rpm -V freetype). Mine is "freetype-2.1.4-5". It appears that an old copy of freetype is likely being used according to the linked messages. Probably an old freetype library lying around in the library path (one of the directories listed in /etc/ld.so.conf).

Also, where did you get that version of bash you have installed?
Last edited by Void Main on Tue Dec 23, 2003 4:20 pm, edited 1 time in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Tue Dec 23, 2003 4:20 pm

Your wish has been granted. :wink:

My output is :

libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x0023c000)
libz.so.1 => /usr/lib/libz.so.1 (0x00f62000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00823000)
libc.so.6 => /lib/tls/libc.so.6 (0x00286000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00af4000)


And my version of freetype is :
freetype-2.1.4-5

No extra output when using rpm -V
I guess this means no error.

Where is the emoticon for weeping ? :wink:
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 4:22 pm

There is your problem! /usr/local/lib/libfreetype.so.6

Does it belong to any package (rpm -qif /usr/local/lib/libfreetype.so.6)? If not rename it to something else and then as root run the "/sbin/ldconfig" command then try and run redhat-config-services again. I'll bet you have "/usr/local/lib" listed in your /etc/ld.so.conf as well.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Tue Dec 23, 2003 4:31 pm

Woooowww !
Really impressive ! No kidding !!!

Code: Select all
file /usr/local/lib/libfreetype.so.6 is not owned by any package


Wouldn't it be good as well to just move the file lib/libfreetype.so.6 to /usr/lib ?
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Tue Dec 23, 2003 4:33 pm

No!!! You already have a /usr/lib/libfreetype.so.6 which is the proper one. The one in /usr/local/lib is an old one, and it's causing you problems. Just get rid of the bad file in /usr/local/lib by renaming it.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Next

Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 1 guest

cron