niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
Cut down Linux (Debian)
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Michael Schnell
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 110

PostPosted: Sun Jul 09, 2006 9:02 am    Post subject: Re: Cut down Linux (Debian) Reply with quote

Quote:
I'm working on a firewall/NAT router project using Debian Sarge 3.1.....


Why not starting with the fli4l project instead ? They do an extremely
small distribution for x86 especially tailored for routers.

-Michael
Back to top
markp
*nix forums beginner


Joined: 07 Jul 2006
Posts: 7

PostPosted: Sat Jul 08, 2006 2:35 pm    Post subject: Re: Cut down Linux (Debian) Reply with quote

"Ulli Hochholdinger" <calvin@akk.org> wrote in message
news:e8nlm1$3av$1@news2.rz.uni-karlsruhe.de...
Quote:
markp <map.nospam@f2s.com> wrote:
Hi All,
Is this a sensible approach and is there an easy way to do this cutting
down? Would another init replacement, like runit, be better? I don't
really
know enough yet to build it up from scratch and I really need the
firewall
installed soon!
I used another way to strip down a normal debian installation:
- Create a normal debian install in a chroot-environment (install only
necessary packages).
- Use a shell script which copies only the really necessary things on the
cf-disk (use rsync for this)
* no doc info and so on
* no /var/lib/dpkg
* keep out everything that is big and not used (use "du" and "sort" to
get info of the biggest things)

So you have a normal debian install in a chroot (which is about 300MB)
this
can be kept updated when necessary. And you have a script to strip this
down to the CF-disk. You dont need any new init-method.
Oh and my CF-image is about 80MB in the end.

Gruss

Thanks, I'll give it a go!

Mark.
Back to top
Ulli Hochholdinger
*nix forums beginner


Joined: 15 May 2005
Posts: 3

PostPosted: Sat Jul 08, 2006 7:08 am    Post subject: Re: Cut down Linux (Debian) Reply with quote

markp <map.nospam@f2s.com> wrote:
Quote:
Hi All,
Is this a sensible approach and is there an easy way to do this cutting
down? Would another init replacement, like runit, be better? I don't really
know enough yet to build it up from scratch and I really need the firewall
installed soon!
I used another way to strip down a normal debian installation:

- Create a normal debian install in a chroot-environment (install only
necessary packages).
- Use a shell script which copies only the really necessary things on the
cf-disk (use rsync for this)
* no doc info and so on
* no /var/lib/dpkg
* keep out everything that is big and not used (use "du" and "sort" to
get info of the biggest things)

So you have a normal debian install in a chroot (which is about 300MB) this
can be kept updated when necessary. And you have a script to strip this
down to the CF-disk. You dont need any new init-method.
Oh and my CF-image is about 80MB in the end.

Gruss
Ulli

--
\ E-Mail: calvin@akk.org \
/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /
\ Sometimes I think the surest sign that intelligent life exists elsewhere \
/ in the universe is that none of it has tried to contact us. (calvin) /
Back to top
markp
*nix forums beginner


Joined: 07 Jul 2006
Posts: 7

PostPosted: Fri Jul 07, 2006 9:58 pm    Post subject: Cut down Linux (Debian) Reply with quote

Hi All,

I'm working on a firewall/NAT router project using Debian Sarge 3.1.
Currently I have a hard disk based system, but I'd like it to run with a
128Mbyte CF card in a mini-ITX box. The firewall is working, but the
standard installation system is a little on the large side.

Someone suggested I could replace the init process with a user script and
only load those things I need, but init enables quite a few facilities, like
gracefully shutting down/ booting up, gettys etc., so I'd like to keep it
but maybe reduce the number of scripts run in /etc/rcS.d, and /etc/rc2.d
directories, and then remove all the packages and files I don't want.

Is this a sensible approach and is there an easy way to do this cutting
down? Would another init replacement, like runit, be better? I don't really
know enough yet to build it up from scratch and I really need the firewall
installed soon!

Thanks, any hints/suggestions would be gratefully received.

Mark.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 5:32 am | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts ftp.debian.org & amd64 packages tanelko Debian 1 Fri Jul 21, 2006 2:10 pm
No new posts 2 USB webcams on Linux 2.6.15.4 produce a hang Suyog hardware 1 Fri Jul 21, 2006 7:27 am
No new posts Is there C/C++ corresponding function in Linux for Java's... xiebopublic@gmail.com apps 4 Fri Jul 21, 2006 3:22 am
No new posts Recommend an email program for the debian-user-digest? DJ Hackenbruch Debian 5 Fri Jul 21, 2006 3:20 am

McDonalds | Credit Card Consolidation | Loans | Xbox Mod Chip | Facebook Proxy
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3551s ][ Queries: 20 (0.2705s) ][ GZIP on - Debug on ]