OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: ShiroiKuma on May 16, 2006, 05:15:22 am

Title: Basic Commands Missing In Gpe
Post by: ShiroiKuma on May 16, 2006, 05:15:22 am
In a fresh install I see there are basic commands missing, like mkswap swapon ldconfig and so...

They're probably in some add-on install ipk.

Which one is it?

ipkg search ldconfig gives me nothing
ipkg search mkswap nothing too... ???
Title: Basic Commands Missing In Gpe
Post by: Hrw on May 16, 2006, 05:34:28 am
use "su -" or "root shell" to became root - in other way you will not get /sbin/ /usr/sbin/ into PATH so you do not have those utils available.
Title: Basic Commands Missing In Gpe
Post by: ShiroiKuma on May 16, 2006, 02:33:13 pm
My bad, sorry...

I was using
Code: [Select]
suinstead of
Code: [Select]
su -Thanks.
Title: Basic Commands Missing In Gpe
Post by: starkruzr on May 17, 2006, 08:17:13 pm
Actually, when I use su - to become root and then run gpe-package, gpe-package refuses to run.  It produces an error message which says:

(gpe-package:4777): Gtk-WARNING **: cannot open display:

I suspect this means that root has no default X display?  Or something?  I'm out of my depth here

When I use su to become root (no -) and run gpe-package, it works, can install things, and occasionally pops up the occasional, seemingly harmless message about how ldconfig didn't work to do something or other.
Title: Basic Commands Missing In Gpe
Post by: TheWalt on May 17, 2006, 09:07:19 pm
Quote
Actually, when I use su - to become root and then run gpe-package, gpe-package refuses to run.  It produces an error message which says:

(gpe-package:4777): Gtk-WARNING **: cannot open display:

I suspect this means that root has no default X display?  Or something?  I'm out of my depth here

When I use su to become root (no -) and run gpe-package, it works, can install things, and occasionally pops up the occasional, seemingly harmless message about how ldconfig didn't work to do something or other.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127502\"][{POST_SNAPBACK}][/a][/div]

Use the root shell icon under utilities instead of su - and it won't error on the X display.
Title: Basic Commands Missing In Gpe
Post by: starkruzr on May 17, 2006, 10:36:53 pm
Quote
Quote
Actually, when I use su - to become root and then run gpe-package, gpe-package refuses to run.  It produces an error message which says:

(gpe-package:4777): Gtk-WARNING **: cannot open display:

I suspect this means that root has no default X display?  Or something?  I'm out of my depth here

When I use su to become root (no -) and run gpe-package, it works, can install things, and occasionally pops up the occasional, seemingly harmless message about how ldconfig didn't work to do something or other.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127502\"][{POST_SNAPBACK}][/a][/div]

Use the root shell icon under utilities instead of su - and it won't error on the X display.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127508\"][{POST_SNAPBACK}][/a][/div]

Okay, but gpe-package should still ask for root privileges when you run it.  As it stands, the existing icon is kind of useless.
Title: Basic Commands Missing In Gpe
Post by: lardman on May 18, 2006, 05:35:54 am
gpe-package should run as root (or setuid, or something like that  ), if it didn't then you wouldn't be able to install anything.

Quote
I suspect this means that root has no default X display? Or something? I'm out of my depth here

FYI, I'd guess that running 'export DISPLAY=:0.0' first should fix this problem.


Si
Title: Basic Commands Missing In Gpe
Post by: starkruzr on May 18, 2006, 04:14:10 pm
Quote
gpe-package should run as root (or setuid, or something like that  ), if it didn't then you wouldn't be able to install anything.

Just so.  And in fact, you *can't* install anything.  

Already submitted a bug for this.  Hopefully someone fixes it (and the "gpe-package doesn't particularly care if you want to install packages anywhere other than root" issue too).