Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Originally posted by Thymox I don't mean to sound rude, but why?
What would you incoporate into the shell that cannot already be done with tools currently available?
An even better question would be, "Why dont you simply create a tool that would run within an existing shell to give you the functionality you want rather than create a brand new shell and set of tools that may already exist?"
i actually had to write a shell for my last semester in systems programming... it's a lot more complicated than it seems at first. mine didn't work too well with regex's ... but i had the process management down pat.
it's not hard to write a simple shell that you can use to launch other programs... what is hard is to make it very full-featured. start with just creating a shell you can enter and exit... then run progs in it, then start worrying about all the command line options you could implement.
An even better question would be, "Why dont you simply create a tool that would run within an existing shell to give you the functionality you want rather than create a brand new shell and set of tools that may already exist?"
May be I want to create a small version of linux,Which is dedicated to networking perpose and securty with only limited easy to use options.Which can I load with some new hardware to build a router or firewall.
if you just want the box to be a router or a server - then you don't need to create a new shell. all you need to do is run thought what services you have running on your box now, and prune off what you don't want. stripping down to a bare-bones linux is fairly easy.
isajera - where can I get more info on stripping down the installed base? Or rather, moving the 'stuff that makes it go' to another partition. Say... under 64MB.
Originally posted by mcleodnine isajera - where can I get more info on stripping down the installed base? Or rather, moving the 'stuff that makes it go' to another partition. Say... under 64MB.
ahhhgg... i'm being asked to back up my advice ...
linuxfromscratch.org is a good reference for anyone looking to minimize a linux install. we have a forum here dedicated to lfs - and gerard beekman, the creator of lfs, takes some time out of his schedule to help anyone with questions.
basically, you need to decide what it is you want running. you can get a kernel running at under 500k if all you have running is a server or a router. install apache, bash, and a few other very basic progs like perl, and you've got yourself a specialized and very economical linux system. if you want X, then it's a whole other problem, but you really don't need it for servers.
most distro basic installs come with a lot of junk that many people never use. you'll want to look through your running processes, find out what services and programs you're running, and disable whatever you don't need or want. that's all there really is to it.
Well since I've taken this thing completely off-topic...
I've been doing LFS and having so-so results. The usual boot grief.
As for minimizing I've not had a lot of luck. I've even been looking at how other 'small' distros work and making a little headway there. Essentially I'm just a distro-slave right now
Originally posted by isajera if you just want the box to be a router or a server - then you don't need to create a new shell. all you need to do is run thought what services you have running on your box now, and prune off what you don't want. stripping down to a bare-bones linux is fairly easy.
But I don't want to use defualt shells like bash or sh.
I like to build interface something like Lucent RAS boxes or Cisco IOS.
shell>?
option 1 help on option1
option 2 help on option2
----
----
----
shell>sh ip route
Network Mask Gateway Dev
0.0.0.0 0.0.0.0 192.168.1.1 eth0
I am myself not that good at it. I tried to do that. But only crashed the original one. . You need to be good at programming to do those stuff. It would be better if you look at the kernel source code. Its a very good entry point to learn about the kernel abd programming as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.