Minimal Linux system to run Python

C

Chaz Ginger

I have a need for the minimal Linux system to run Python. Basically I
want the system to boot up and instead of starting up Init/etc. I would
love it to run python (and a python script I have written).

Before embarking on doing it myself I was wondering if anyone knew of
just such a system?

Peace,
Chaz
 
H

half.italian

You basically just want to create a new startup mode, with only the
needed modules loaded, and then set the system to boot up into that
mode. I messed around with it a bit awhile ago, and managed to modify
run-level 3 to accomplish what i wanted. After it had done one part
of its thing, a python script would set the run-level to the one I had
defined, reboot into that mode,and execute what I needed. When
finished, it would change run-level back to 5 and restart to get the
user back to where he was. I can't remember the exact paths, but the
boot modes are at /etc/init.d/init5/ , init4, init3, etc. You can
choose which is called at boot in a file called 'initconfig' I think.
It will take some experimentation to figure out which modules are
absolutely necessary for even python to run. It seems that I had some
problems running the script in single-user mode, so I went to run-
level 3 and modified it a bit.

If you're still looking for help on Monday I can give you more
details.

~Sean
 
A

Adonis Vargas

Chaz said:
I have a need for the minimal Linux system to run Python. Basically I
want the system to boot up and instead of starting up Init/etc. I would
love it to run python (and a python script I have written).

Before embarking on doing it myself I was wondering if anyone knew of
just such a system?

Peace,
Chaz

You can also look into Linux From Scratch (LFS)
http://www.linuxfromscratch.org/ in which walks you through how to build
a Linux OS by picking what you need, as well as it may give you more
insight on the inner workings of a Linux system.

Hope this helps.

Adonis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top