On Fri, 28 May 2004, Mike Hearn wrote:
On Thu, 2004-05-27 at 17:40 -0700, Bryce Harrington wrote:
- Run `xhost +`
================= By default my system was set up with xhost -, so that's why the Xlib errors were showing up. You can detect the current setting by running `xhost`. I'd recommend you add to your install script something that turns this on when the program is run, and restores to the original state when the script exits.
How is it possible to run any X programs at all as root if this is set? Is this the SuSE default, or is this something you have done?
I didn't set it, so it must be the SuSE default. And no, it isn't possible to run X programs as root, normally.
- Permissions Problem
======================= After this, I ran the installer as root and it installed and ran fine - but only as user 'root'. As a regular user I couldn't execute Inkscape because autopackage had set it's permissions to 700. I have:
mercury:/home/bryce # umask 0077 mercury:/home/bryce # echo $umask 22
Is this the SuSE default?
I set it to that in my login scripts for my 'bryce' user. I think this gets carried over into root's environment when 'su' happens. Hmm, I could probably work around that by using 'su -', but for you probably the more robust solution is to temporarily force the umask to exactly what you need when running.
Connecting to ftp.sunsite.dk[130.225.247.92]:80... connected. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
It sounds like you had a failed download somewhere. I can't recall exactly where we download this too but I suppose we should wipe it before doing the download.
Yeah, I looked around for it, removed everything under /dev/shm/* but it still was having trouble.
So then I manually downloaded the package and put in the current dir, and ran it again. This time it just continually looped, reinstalling and reinstalling the Autopackage GTK+ Graphical User Interface.
The console output included this:
.... (autopackage-frontend-gtk:29185): Gdk-WARNING **: shmat failed: error 2 (Invalid ar gument)
This is still the problem. Either xhost got reset, or there is still something wrong with your system (something screwy in the kernel?). I don't really understand why your system is producing these errors, but that's why autopackage is screwing up. We expect this to always work, an apparently flawed assumption :)
Guess it's better to assume there's still bugs, we just haven't found 'em yet. ;-) In any case, I'd love to help make it always work a little more, so hopefully this is useful feedback even if they are strange corner cases.
I'm not sure I got everything, but that was enough to get it to run and seem to work correctly. Although I did see this at the console:
{mercury} ~ (13): inkscape Warning: program compiled against libxml 206 using older 205
This should be fairly harmless, I hope ...
(inkscape:13289): Gdk-WARNING **: shmat failed: error 22 (Invalid argument)
OK so it looks like this is a problem with all GTK apps on your system. I'm not sure what we can do about this, I don't know enough about the GDK/X internals to debug this remotely :(
I'll keep an eye out for it. I intend to use this mechanism for some of my co-workers for installing it, so since some of them are also running SuSE, it's possible I'll see it crop up again, in which case I'll try to narrow it down a bit better. It seems non-fatal on my system so I'll ignore it for now.
Bryce