Re: Looking for distros suitable for low-memory/low processor situations.



In <NvKdnQaMe51IOH7bnZ2dnUVZ_rXinZ2d@xxxxxxxxxxx>, on Sun, 09 Sep 2007
02:50:45 -0500, sk8r-365, sk8r-365@xxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
Horton heard a Who named Steve Ackman saying:

Actually you don't even NEED the window manager.

When my wife's laptop was a P200 w/32MB RAM, I had
her login to a console which had a text menu. She
could type "A" through "F" and that menu choice would
run just under X. Anything beyond those, she'd either
have me tell her the command, or add another menu entry.

So, let's say she wanted Netscape. Hit "A" <enter>
and Netscape would be the only thing on the screen.
It wouldn't have Window decorations, so when she was
done with it, she'd do the pointy-clicky thing on
File -> Exit, and be dumped back to the menu.

That's a rather unusual way of doing it, but still
easier for the non-multitasking newbie than say firing
up a really lightweight wm like tvm, and having to
remember what commands to type in the xterm.


Would you post that text menu?

I don't know what good it'll do you... and it was a
long time ago, so this may not be exact:

a) Netscape
b) Star Office
c) Xjewel
d) xpdf
e) gimp
f) xgalaga

Oh, I bet you really wanted more than just the text
menu didn't you? ;-)

In order to get that to work, you have to write a
menu program (I used a shell script) and replace that
into the user's shell entry in /etc/passwd.

The menu script probably consisted of read and case
commands. This was on an IBM Thinkpad running RH 7.1
that hasn't booted in many years. I don't even know if
we still have it. I certainly don't still have the
script I wrote, but any book on shell programming
should have an example that shows how to read input and
execute a command based on that... a command that
probably looked something like

xinit $(which netscape)

From a terminal you can see what this looked like
with
$ xinit $(which Xapp) -- :1
(where Xapp should preferably be something you're not
already running on your present display)

You can see the same thing from an xterm, but you
may have to use sudo, which will then use your root
settings.
.



Relevant Pages

  • Re: Newbie getting desperate with for
    ... This tells the shell to run the script ... When you run a command from the shell, it first tries to directly execv ... which calls the kernel to load and execute the file. ...
    (comp.lang.python)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.questions)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.shell)
  • Re: [opensuse] Lazarus and free pascal need ELF
    ... In a bourne shell interpreter, which is what you are in while you are logged in and sitting at a command prompt, the syntax "dot space filename" does not execute the file, it sources the file. ... It has the effect that your current shell instance ends up directly executing the commands, which may look and smell like the normal way a script or program is executed, but it's in fact quite different. ... The simplest example of why this is "wrong" even though it seems to "work for scripts" would be to look at any typical script that has an exit command. ...
    (SuSE)
  • Re: [opensuse] Lazarus and free pascal need ELF
    ... Lazarus the following in command line.. ... In a bourne shell interpreter, which is what you are in while you are ... Sourcing a file is usually meant for a script to read in some variables ... exit command. ...
    (SuSE)