Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-02-2006, 07:36 PM   #1 (permalink)
Alpha Geek
 
Satissh S's Avatar
 
Join Date: Mar 2005
Location: Chennai , India
Posts: 693
Default How to create an Installer For my GNU System

Hi!
I've been working on an Linux From Scratch OS for sometime now. It has been optimised for P4 i686 Processors and i'am already very fond of it.
It has all multimedia capabilities , player , browsers , Mailers etc., as well as a few development tools such as Eclipse, Netbeans, Anjuta, Mono and also several Runtime Environments and toolkits used for building your own software from source.
I dedicate it to this Digit OpenSource Community for motivating and Guiding me.
=> Is it possible to create an Ncurses based installer, that installs the Os as well as configures several settings such as network, partitioning, Configures X, Installs software binaries and bootloader?
=> I wan't to make the distro efficient as well as easy for the new linux user. Also i would wan't to upload it to somewhere so that the user can D/L and use it.
Thanks for all your co-operation and inputs..

// This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
__________________
Call it Emacs,
Love it or Leave it.
Satissh S is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 06-02-2006, 08:46 PM   #2 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

I have never tried anything beyond a simple LFS system, so I am really just talking out of the hat

You could make all the software you compile into packages (maybe a simple tar.gz file), after this the installers job will simply be to install each package and run some other configuration.

The installer could be just an interactive script, instead of an ncurses program, like this -

echo 'IP Address: '
read $ipaddr
cat "address=$ipaddr" > /etc/network.conf

Good luck!
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 06-02-2006, 08:56 PM   #3 (permalink)
In The Zone
 
Join Date: May 2004
Location: ** Hosur ** Operating System:GNU
Posts: 451
Default

@Sathish
That was grt evn I am trying to build LFS But not finding time..

But what abt the partition editor? if u want to make an installer?
__________________
Million's Of Open Minds Can't Be Wrong!
http://nc.xmgfree.com/weblog
Everybody Wants to go to Heaven...But nobody wants to Die!
naveenchandran is offline  
Old 06-02-2006, 09:06 PM   #4 (permalink)
Alpha Geek
 
Satissh S's Avatar
 
Join Date: Mar 2005
Location: Chennai , India
Posts: 693
Default

Similarily, for every other config such as say, if i wan't to create an Xorg.conf file for the user, then lets say if i wan't the user to input his monitor's Vertical and Horizontal Refresh rates.

echo 'Enter Vertical Refresh Rate'
read $vrate
cat "VertRefresh=$vrate" > /etc/X11/xorg.conf

But how many scripts can i write? There are a hell a lot of config files to edit. Also Hardware Auto Detection is also a big problem.

Also how to configure the kernel for all the generic type of Hardwares? Wouldn't it become bulky?

Do distro configure the kernel based on each users hardware??

Also how about using Webmin as a system administration tool? It's easy and it directly edits the configuration files..

Thanks for the encouragement and inputs!!
__________________
Call it Emacs,
Love it or Leave it.
Satissh S is offline  
Old 06-02-2006, 09:10 PM   #5 (permalink)
Alpha Geek
 
Satissh S's Avatar
 
Join Date: Mar 2005
Location: Chennai , India
Posts: 693
Default

First up the installer iso must be capable of booting into a live linux system detecting hardware, so that it can start the installer to install linux to harddrive.

@Naveen: I wan't use cfdisk. It's easy enuf for the linux newbie to use. But i want to write a script that starts it automagically also issues commands such as mke2fs (-j), mkreiserfs , mkswap etc, detecting the users partitioning setup and modifies the generic /etc/fstab automatically.
__________________
Call it Emacs,
Love it or Leave it.
Satissh S is offline  
Old 06-02-2006, 09:14 PM   #6 (permalink)
In The Zone
 
Join Date: May 2004
Location: ** Hosur ** Operating System:GNU
Posts: 451
Default

yes..

I think these links will be of use when it come to HW Detection..

http://packages.debian.org/testing/admin/hotplug

http://lists.debian.org/debian-devel.../msg02415.html
__________________
Million's Of Open Minds Can't Be Wrong!
http://nc.xmgfree.com/weblog
Everybody Wants to go to Heaven...But nobody wants to Die!
naveenchandran is offline  
Old 06-02-2006, 09:36 PM   #7 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default

Well satish I guess you are going too fast. You are trying to do too much with your distro at a single time on your own. Just work on things one by one experience will help you getting so much done in a jiffy. I guess sourceforge will be a good place to submit it once completed.
mehulved is offline  
Old 06-02-2006, 10:12 PM   #8 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default

don't go too deep into kernel configuration. just provide a generic i386 (which will obviously work on all x86)...and a generic i686 kernel. let the user haf the option of installing one during installation. if they want specific configs let them configure and compile their own.

about the live linux installer, why don't u take a leaf out of any of the morphix books?
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 07-02-2006, 02:49 AM   #9 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default

Please don't think that I am trying to deter you from making your own distro but I would certainly want to quote a few things.

Quote:
There is no "HOWTO Create New Distributions" that I know of. That is good.
The most important step that you seem to have missed is to ask: "Why?"
.. Why create a new distribution? Why are the current crop of distributions inadequate to your task? ..
http://linuxgazette.net/issue39/tag/11.html

Quote:
A few words of warning. My personal opinion is: the world does not wait for a new Linux distribution. The Linux community has no need of yet another distro. There are hundreds if not thousands. But there certainly is a Linux Project out there that needs your talent, your creativity. Find a project, get involved, contribute. And build your own LiveCD to learn a lot about this great Operating system. And use your own built to show your friends, your family, your colleagues what Linux can do.
http://home.tiscali.nl/berenstraat/news.htm

What you need to ask yourself is that do you have enough time to maintain a whole distro? You might find a link and then develop one, but will you be able to maintain it? Will you be able to give updated packages of all the software that a user of your distro needs (and that too in time)? Will you be able to be on top of all the security flaws that are found in the applications provided by your distro and then patch them in time? If you think that you can do all that, then you should go ahead. I don't have any idea about installers but you can look at the following links for building your own customised Linux Live CDs.

http://www.governmentsecurity.org/fo...howtopic=14661
http://www.linux-live.org/
http://home.tiscali.nl/berenstraat/
http://damnsmalllinux.org/cgi-bin/fo...77;hl=remaster
eddie is offline  
Old 07-02-2006, 08:07 AM   #10 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default

if you can hack debian new installer or anaconda based Fedora One to integrate with UR distro.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 07-02-2006, 11:29 AM   #11 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

And is there any reason why you dont want to reuse Knoppix's autoconfiguratiuon script? Its the best installer thingie i know. These are two scripts residing on /etc/init.d/knoppix-autoconfig and /etc/init.d/knoppix-hd-autoconfig I'd managed to customise this script for use with Gnoware. Though Gnoware wasnt made from scratch.

Basically, what you do is run this autoconfig script from the Lilo on top of BusyBox. Then your shell script based installer copies all the file to the hard disk and reboots. And voila! you are in your newly installed OS.
__________________
- --
http://www.MovieAB.com - A tiny movie mashup!
GNUrag is offline  
Old 07-02-2006, 03:55 PM   #12 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default

Great work mate.....
vignesh is offline  
Old 07-02-2006, 08:43 PM   #13 (permalink)
Alpha Geek
 
Satissh S's Avatar
 
Join Date: Mar 2005
Location: Chennai , India
Posts: 693
Default

Thanks for all the inputs, i'am very fond of my own distro and will work on an installer to it to make it available for every1. But my semester practicals is underway, so i'll work on it after 11th of this month. Thank all for your valuable suggestions and Ideas.
Cheers!
__________________
Call it Emacs,
Love it or Leave it.
Satissh S is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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



All times are GMT +5.5. The time now is 12:02 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2