LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-10-2002, 04:38 AM   #1
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
New LINUX Shell


Hi Guys,

Actually form last many days I am thinking to create a new shell ( like ksh,csh,or bash),may be esh,for networking and securing the linux more easily.

But I have no idea about How to create a new shell.
If someone of you have any idea about that then please let me know.

Thanks in Advance

 
Old 04-10-2002, 05:48 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
<quote>
Hi Guys,

Actually form last many days I am thinking to create a new shell ( like ksh,csh,or bash),may be esh,for networking and securing the linux more easily.

But I have no idea about How to create a new shell.
If someone of you have any idea about that then please let me know.

Thanks in Advance
</quote>
 
Old 04-10-2002, 11:36 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
First you may want to buy a book on Unix Shells..
Then pick up a book on how to program.
 
Old 04-10-2002, 11:38 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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?
 
Old 04-10-2002, 01:00 PM   #5
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
Quote:
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?"
 
Old 04-10-2002, 02:47 PM   #6
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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.
 
Old 04-10-2002, 11:12 PM   #7
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by shadowhacker


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.
 
Old 04-11-2002, 12:38 AM   #8
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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.
 
Old 04-11-2002, 12:48 AM   #9
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
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.
 
Old 04-11-2002, 01:07 AM   #10
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
Quote:
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.
 
Old 04-11-2002, 01:14 AM   #11
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
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
 
Old 04-11-2002, 06:22 AM   #12
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Original Poster
Rep: Reputation: 15
Quote:
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

shell>


something like this.
 
Old 04-11-2002, 06:50 AM   #13
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Rather then write your own kernel or whatever why not help make linux more secure and robust.
 
Old 04-11-2002, 11:08 PM   #14
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jayakrishnan
Rather then write your own kernel or whatever why not help make linux more secure and robust.
Thanks for suggestion,but if I want to make more easy to use (Oviously More Secure and Robust) then would you help me !!
 
Old 04-11-2002, 11:51 PM   #15
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Hi

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'sh' shell - Actually calls legacy Bourne shell, or uses system default? Dtsazza Linux - Software 1 10-28-2005 09:20 AM
Linux Shell in Windows? 3p0ch General 8 01-07-2005 10:05 AM
how i get more help using linux shell yoord Programming 4 08-05-2004 02:55 AM
Linux Shell ?!? Daxziz Linux - General 8 02-27-2002 01:17 PM
Linux Shell outsider Linux - Newbie 7 09-13-2001 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration