LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 12-14-2005, 03:19 PM   #1
D0M1N1C
LQ Newbie
 
Registered: Aug 2005
Posts: 25

Rep: Reputation: 15
Busybox as a shell


On the busybox site, it says that busybox can act as a shell. so that means you don't need BASH or ASH or anything similar right? Because im making a small boot floppy and i want to fit as much on as i can so it would make sense to use busybox as a shell.

but i can't find any information on how to do this?

Can someone point me in the right direction please?

Thanks

Dom.
 
Old 12-14-2005, 04:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
busybox normally works by being called by a number of different symlinks. if you symlin kbusybox to ls then it will runs as ls, symlink it to cat and it's replicate cat... so create a symlink to it called "ash" and set that as your shell.

http://www.busybox.net/downloads/BusyBox.html
 
Old 12-14-2005, 04:20 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by D0M1N1C
On the busybox site, it says that busybox can act as a shell. so that means you don't need BASH or ASH or anything similar right? Because im making a small boot floppy and i want to fit as much on as i can so it would make sense to use busybox as a shell.
You want to start busybox instead of bash. The place where bash is started varies from one distribution to another. It is usually done in a startup script in /etc. Look in /etc/inittab for the name of a runlevel script in /etc which is used to start the system. In that runlevel script you will find something that looks similar to:
/bin/bash --login

change that to something similar to:
/bin/busybox --login

It is possible that in a condensed system on a floppy that /bin/bash --login is started in /etc/inittab instead of a seperate script.


-------------------
Steve Stites
 
Old 12-15-2005, 01:40 AM   #4
D0M1N1C
LQ Newbie
 
Registered: Aug 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Well when i say im mking a boot disk, im making a custom distro. But i want the final thing to be small (50 - 100mb tops) but i think its pointless going through allt he work of LFS just to destroy it, so im going the other way and building it up from a boot floppy.

Thanks for the help guys.

Dom
 
Old 12-15-2005, 02:00 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
50 to 100mb doesn't justify busybox really... 500kb to 1mb justifies that.
 
Old 12-15-2005, 04:31 AM   #6
D0M1N1C
LQ Newbie
 
Registered: Aug 2005
Posts: 25

Original Poster
Rep: Reputation: 15
sorry, i meant 10mb-50mb i wanna put it on a miniCD or businessCD

Buut even still, every little counts, kb make mb.

And also, like i said, i lpan on making a book floppy first and then building it up, so in the first stages, its going to be 1.44mb tops...which i think justifies busybox

Dom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
busybox fdisk error?Help! whepin Linux - Laptop and Netbook 1 09-05-2005 02:51 PM
Busybox installation lonecrow Linux - Laptop and Netbook 2 05-03-2005 07:41 PM
Busybox and vi krizzz Linux - Software 3 03-24-2005 05:33 PM
Busybox and uClibc spencerbray Linux - Newbie 4 01-27-2005 02:01 AM
syslogd in busybox iftiuk Linux - General 2 05-13-2004 03:25 PM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration