Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was reading This and I was wondering if I could write an API in python or have python load in an init script. If this were to be possible would I need to edit the kernel's makefile?

share|improve this question
add comment

2 Answers

Well, have a look at PerlLinux. It's a toy operating system with a Perl userland running on top of the Linux Kernel. I think they load a ramdisk during Init with the Perl environment running inside.

The real question is why would you wanna limit yourself to only having Python when Linux already offers Python + all the other tools and utilities?

share|improve this answer
    
This doesn't really help me. Also what do you mean when you say "Linux already offers Python + all the other tools and utilities" –  Coder404 Aug 17 '12 at 10:49
    
@Coder404 I only brought up the link to present a possible approach - You'll have to look at the source and Makefiles yourself. The good news is, you don't have to change the Kernel. The bad news is there is no step by step tutorial I know of. –  djf Aug 17 '12 at 10:55
add comment

You can run python, or any other program, at boot, without needing to touch the kernel at all. See the init= kernel command line parameter.

share|improve this answer
    
Looks like this was the same answer last time someone asked this. –  jsbillings Aug 17 '12 at 18:15
    
It works, and it's awesome. –  ntrrgc Jul 15 '13 at 7:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.