Help - Search - Members - Calendar
Full Version: Installing IceWM
Scot's Newsletter Forums > Main > Bruno's All Things Linux
SonicDragon
i've been checking out IceWM, and it looks really nice so i thought i'd see if i could install and get it working tonight.

so far, i think icewm installed ok, but i can't get my system to boot into it.

when i type <icewm> it complains:
QUOTE
icewm: error while loading shared libraries: libXinerama.so: cannot open shared object file: No such file or directory


I'm using GDM. I've been googeling forever now, and i found the directory /etc/dm/Sessions/ that contains all the window managers. I added icewm.desktop to that directory with the following code:

QUOTE
[Desktop Entry]
Encoding=UTF-8
Name=IceWM
Comment=This session logs you into IceWM
Exec=icewm
# no icon yet, only the top three are currently used
Icon=
Type=Application


And it does show up in GDM, but i get the same error as above.

Anyone got any ideas? Thanks in advance!
tranquilo
Icewm is looking for libXinerama.so. There may be a solution here:

http://www.linuxpackages.net/pkg_details.php?id=2122

Or you can always get the source and recompile, using the configure option --disable-xinerama.

tranquilo
SonicDragon
I can't get icewm to compile from source. i had to use swaret to install it.

from tranquilo's link:
QUOTE
If you have problem with Xinerama, made it as root on your slackware: cd /usr/X11R6/lib ld --whole-archive -share -o libXinerama.so.1 libXinerama.a ln -s libXinerama.so.1 libXinerama.so /sbin/ldconfig


As root, i ran:

# cd /usr/X11R6/lib
# ld --whole-archive -share -o libXinerama.so.1 libXinerama.a
# ln -s libXinerama.so.1 libXinerama.so
# /sbin/ldconfig

and then rebooted. I'm still getting the same error though sad.gif.

Did i do those commands right? "If you have problem with Xinerama, made it as root on your slackware" doesn't really make sence...
tranquilo
I was able to get icewm to install from source, using icewm-1.2.14pre8. However, I did disable xinerama...

Which version of icewm did you install?

Once you get rid of the xinerama problem, icewm should start up without trouble.


tranquilo
SonicDragon
I hadn't been using 1.2.14pre8, but i downloaded it and gave it a try, but i'm still getting the same error.

When i type <make> it gives me this:
QUOTE
make[1]: Entering directory `/home/erik/icewm-1.2.14pre8/src'
  CXX    ymsgbox.o
In file included from /usr/X11R6/include/X11/Xft/Xft.h:35,
              from ypaint.h:19,
              from ywindow.h:4,
              from wmclient.h:5,
              from ydialog.h:4,
              from ymsgbox.h:4,
              from ymsgbox.cc:13:
/usr/X11R6/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/X11R6/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/X11R6/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/X11R6/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/X11R6/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
make[1]: *** [ymsgbox.o] Error 1
make[1]: Leaving directory `/home/erik/icewm-1.2.14pre8/src'
make: *** [base] Error 2


pinch.gif crying.gif
tranquilo
Is freetype installed? Check /var/log/packages for xfree86-devel-4.3.0-i486-3.

It's located here on your cd...

../slackware/x/xfree86-devel-4.3.0-i486-3.tgz

I just recompiled icewm, and I get a number of warnings but no errors like you have shown.

tranquilo
Bruno
Hi Sonic

You must have freetype installed on a complete Slackware system . . . . . XFree needs freetype
QUOTE
The following packages are included in the XFree86 package: expat-1.95.6, FreeType-2.1.5 and Fontconfig-2.2.1


More likely the installer can not find them . . . . but before we go any further, was there no "argument" for the command icewm so it would start without looking for xinerama ?
Did you try "icewm --help" or "icewm --info" in a console to see if there are options/arguments ? Xinerama is needed when you have two monitors and it seems weird to me that it needs that by default.


cool.gif Bruno

PS: also do post what you see in the file /etc/ld.so.conf and what is in your Path:
# cat /etc/ld.so.conf
# echo $PATH
tranquilo
Bruno is correct, freetype should be installed. I meant to write that maybe the include files are not installed from the xfree86-devel package.

xfree86-devel: xfree86-devel (Libraries and other files for X programming)
xfree86-devel:
xfree86-devel: This is a set of include files (found in /usr/X11R6/include), static
xfree86-devel: libraries (found in /usr/X11R6/lib/*.a) and configuration files
xfree86-devel: (found in /usr/X11R6/lib/X11/config/) needed to compile X programs
xfree86-devel: under Linux and XFree86.


tranquilo
SonicDragon
icewm --info, icewm --help, and man icewm don't work.

When i ran locate xfree86-devel-4.3.0-i486-3 i got this:
QUOTE
/var/log/removed_packages/xfree86-devel-4.3.0-i486-3-upgraded-2004-01-11,11:58:54

/var/log/removed_scripts/xfree86-devel-4.3.0-i486-3-upgraded-2004-01-11,11:58:54


no /packages entry came up, just /removed_packages blink.gif

cat /etc/ld.so.conf
QUOTE
/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib
/usr/lib/netscape
/usr/lib/mozilla-1.5


echo $PATH
QUOTE
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:
/opt/kde/bin:/usr/lib/qt-3.2.3/bin:/usr/share/texmf/bin:.


Hum... i've got a four day break starting tomarrow so i think i'll just reinstall slackware and try again wink.gif Since tranquilo is able to install in slack without problems, i think something must be strange with my install?
teacher
There is nothing quite like a fresh clean install to make sure you have a good working distro. You can tweak a lot and you never know if you quite have it but with a clean install and everything working it gives you a better base. Go for it! biggrin.gif
Bruno
Hi Sonic

Both your "/etc/ld.so.conf" and your "path" do look very complete . . . . . don“t think there is anything wrong in that direction smile.gif


QUOTE
/var/log/removed_packages/xfree86-devel-4.3.0-i486-3-upgraded-2004-01-11,11:58:54
/var/log/removed_scripts/xfree86-devel-4.3.0-i486-3-upgraded-2004-01-11,11:58:54
This is strange though . . how did that come about ??


cool.gif Bruno
tranquilo
Sonic,

I don't believe a reinstall is necessary... you may end up with the same problem if you don't take the time to figure out what went wrong. Of course it's always your choice ...

Can you try the following just to verify the package is not installed?

grep -r xfree86-devel /var/log/packages

Also, if it turns out that your xfree86-devel package was removed you can reinstall it from cd... or from your friendly slackware mirror.

installpkg /mnt/cdrom/slackware/x/xfree86-devel-4.3.0-i486-3.tgz

hth

tranquilo
SonicDragon
I think i figured out the xfree problem.

grep -r xfree86-devel /var/log/packages gives me:
QUOTE
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:PACKAGE NAME:  xfree86-devel-4.3.0-i686-1dl
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:PACKAGE LOCATION: ./xfree86-devel-4.3.0-i686-1dl.tgz
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel: xfree86-devel (Libraries and other files for X programming)
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel: This is a set of include files (found in /usr/X11R6/include), static
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel: libraries (found in /usr/X11R6/lib/*.a) and configuration files
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel: (found in /usr/X11R6/lib/X11/config/) needed to compile X programs
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel: under Linux and XFree86.
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:
/var/log/packages/xfree86-devel-4.3.0-i686-1dl:xfree86-devel:


When i ran locate before, i was searching for xfree86-devel-4.3.0-i486. Maybe dropline gnome or swaret upgraded me to the i686 version? Because i didn't do it by hand... huh.gif
tranquilo
What I believe happened is:

You installed dropline gnome with the installer, which replaced various packages with similar versions. Apparently a few files are stored in different locations now, such as certain development headers. Additionally, you also have freetype2 as a separate package, and with the stock slackware it appears the headers are included with the xfree86-devel package.


Check here for a list of all dropline packages. Some are optional, while others are required.
http://www.dropline.net/gnome/DroplineFiles2c

Consider trying the following:
attempt to recompile icewm again, after running ./configure --help and trying these options:

--includedir=DIR
--oldincludedir=DIR
--xincludes=DIR

One other option is to remove the dropline version of xfree86-devel and install the slackware version from the cd. Of course this may not work, and you may want to use the -warn flag before actually removing or installing anything to see what is acutally removed/installed.

removepkg -warn xfree86-devel-4.3.0-i686-1dl
installpkg -warn ../slackware/x/xfree86-devel-4.3.0-i486-3.tgz

Additionally, there is a binary here that may not have tried yet...
http://www.linuxpackages.net/pkg_details.php?id=2033

hth

tranquilo
SonicDragon
Thanks tranquilo. that makes more sence now.

I installed slackware on a different partition than my main one so i could mess around with it, and icewm compiles fine on the new install.

But i can't get it to boot. I've been trying to figure out how to add it to the login manager (is that was u call it?) when slackware starts all morning. I can't seem to come across anything that works. mad.gif

When i run: ps -A | grep dm, it shows gdm, so i assume that's what i'm running? The original directory that i posted in my first post isn't there on this installation... so that doesn't work ermm.gif

Any ideas to what i should do?

Thanks so much guys! This has been a huge help!
tranquilo
Yes, you are probably running gdm.

Have you checked here:

/etc/X11/dm/Sessions/
/etc/X11/gdm/

Alternatively, you can start icewm by running the following from the console (outside of X)

icewm-session

If you need to run it at the same time as gnome, try the following:

startx /usr/local/bin/icewm-session -- :1 vt8

use ctrl-alt-f7 and ctrl-alt-f8 to switch back and forth.

tranquilo
SonicDragon
I haven't forgot about you guys. Thanks.

I got side tracked messing with the 2.4.24 kernel. I tried to install it via swaret on the test system, and that didn't work, and i lost my internet in the process. So i'll run a reinstall tomarrow and get back to you with the results of those commands.

Thanks again!
SonicDragon
Ok, now this is strange:

I reinstalled slackware on my test partition and i still couldn't get the internet. And my sound was gone too. Both my internet and sound usually work right after a fresh install. Strange...
jodef
Sonic Murphy's Law:

Everything that can go wrong will go wrong and in my case and then some.
biggrin.gif biggrin.gif

Took three installs to finally get Slack working as they say if at first you don't succeed reinstall until you do.

I need you to get kernel working so I can follow. thumbsup.gif thumbsup.gif
SonicDragon
I'll let you know as soon as i figure it out... or the others here can figure it out tongue.gif

But now, i don't even get sound from a fresh install. Something is going crazy.

I'm running md5sums on my slackware disks now to make sure they are still ok.
quint


Might be worth a look... wink.gif
SonicDragon
Both disks are fine.

Thanks for the link quint. There's tons of awsome info there.

I had come across that before and unfortunatly, he doesn't say how to get it to start up in gdm, only xdm. sad.gif
QUOTE
Adding IceWM to Log-in Menu
Before running IceWM, an item must be added to the menu. The location of the log-in menu varies from distro to distro. Generally, it should be xdm. For distros whose default desktop is KDE or Gnome, it should be kdm or gdm.

1) Run ps to see which desktop manager is running

ps -A | grep dm

...
649 ? 00:00:00 xdm
653 ? 00:00:00 xdm

2) If it's xdm, add the bold lines at the bottom of case part to Xsession:

vi /etc/X11/xdm/Xsession

case $1 in
    ...
    IceWM)
        exec IceWM
        ;;
esac

All set. Log out of the account. Log back in as user using IceWM.
tranquilo
Have you made sure the module for your ethernet card is loaded?

/sbin/lsmod (see if the proper module is loaded)
/sbin/modprobe name_of_module

as you know...

/etc/rc.d/rc.modules
uncomment the proper line.
You MAY have an rc.netdevice file. IF so, then make sure the right module is listed there, and make sure it is uncommented in the rc.modules file. This file is not required, as you can change the same setting from rc.modules...

Have you checked whether the dhcp client is running? Assuming dhcp of course...

You might kill it and restart it ...
sudo killall -15 dhcpcd
or
su
killall -15 dhcpcd

/etc/rc.d/rc.inet1

And lastly, check and see if you have the 2.4.24 version of the kernel modules installed... check /var/log/packages.

tranquilo
SonicDragon
QUOTE
And lastly, check and see if you have the 2.4.24 version of the kernel modules installed.


That was my problem. I installed again, and i saw that it said "Welcome to 2.4.24".

So, i just said that's it, and reinstalled my main system. dry.gif I have /home and /usr on different partitions than /, so it's not that big a deal. Now... some of my applications are messed up... and i'm guessing it's because i haven't installed dropline gnome yet.

But... my sound is back.
Owyn
QUOTE (SonicDragon @ Jan 18 2004, 08:27 PM)
QUOTE
And lastly, check and see if you have the 2.4.24 version of the kernel modules installed.


That was my problem. I installed again, and i saw that it said "Welcome to 2.4.24".

So, i just said that's it, and reinstalled my main system. dry.gif I have /home and /usr on different partitions than /, so it's not that big a deal. Now... some of my applications are messed up... and i'm guessing it's because i haven't installed dropline gnome yet.

But... my sound is back.

Great. I guess that means I can drop the Slack install to a lower priority.
SonicDragon
QUOTE
Great. I guess that means I can drop the Slack install to a lower priority.


Sorry for the inconvenience. I'm a musician... i don't like not having sound laugh.gif So, when i couldn't get any sound on either installs, and no internet on the test partition's install, it was time to wipe them. That was easier than worry about how to fix them.

Thanks again
teacher
Sonic

Looking at your avatar you could never guess that music is important to you! tongue.gif Maybe next time will be success!

--Julia rolleyes.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.