Author Topic: Basic Commands Missing In Gpe  (Read 3679 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Basic Commands Missing In Gpe
« 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... ???
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Basic Commands Missing In Gpe
« Reply #1 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.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Basic Commands Missing In Gpe
« Reply #2 on: May 16, 2006, 02:33:13 pm »
My bad, sorry...

I was using
Code: [Select]
suinstead of
Code: [Select]
su -Thanks.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

starkruzr

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Basic Commands Missing In Gpe
« Reply #3 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.
SL-C1000 Akita running OZ 3.5.4.1 with GPE
Ambicom WL1100C-CE Wifi Card
Sandisk 1GB SD Card

Looking for advice as to how to get snes9x and dgen-sdl running!

TheWalt

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Basic Commands Missing In Gpe
« Reply #4 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.
- Gemini PDA | WiFi - Android 7.1.1
- GPD Pocket | Ubuntu Mate 18.10
- Zaurus SL-C3100 | ArchLinuxARM

starkruzr

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Basic Commands Missing In Gpe
« Reply #5 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.
SL-C1000 Akita running OZ 3.5.4.1 with GPE
Ambicom WL1100C-CE Wifi Card
Sandisk 1GB SD Card

Looking for advice as to how to get snes9x and dgen-sdl running!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Basic Commands Missing In Gpe
« Reply #6 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

starkruzr

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Basic Commands Missing In Gpe
« Reply #7 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).
SL-C1000 Akita running OZ 3.5.4.1 with GPE
Ambicom WL1100C-CE Wifi Card
Sandisk 1GB SD Card

Looking for advice as to how to get snes9x and dgen-sdl running!