Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new install methode (after stage3), please your feedback
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Sun Aug 20, 2006 5:20 pm    Post subject: new install methode (after stage3), please your feedback Reply with quote

There I had to reinstall my gentoo system (root partition crash) I had to think hard on what to install, what pacakages did I need on that machine. Also I was thinking how I could do this better the next time. So I started to write down all packages that I installed in one file. Then I added the USE="" statement and some other variables and commands to this file. I ended up making the file machine readable (xml like syntax).

Here is a part of my install file (not complete)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright (C) 2006, Paul H.S. de Vries
 version 1.0, August 20, 2006, Paul H.S. de Vries

 This file describes what needs to be done after a stage3 install
 on my machine to get it to the level I want it.
 In principal this file can be used to (re)build any machine to the same
 instalation level.

syntax:
<Gentoo "description">
  <file "filename">data</file>
  #   data will be added to the named file.
  #   If file does not exists, it will be created
  <set "setname">package-name</set>
  <set "setname">
     package-name
     package-name
     package-name
     <commance "command"> arguments </command>
  </set>
  <command "command">arguments</command>
  run "command"; supported commands are (limited set for security reasons): adduser, groupadd, rc-update, source
</Gentoo>
-->

<Gentoo "photo station">
<file "/etc/make.conf">
   USE = "exif hal dbus tiff -arts -eds -esd -kde -gnome -ipv6 -mssql nptl nptlonly bash-completion X gtk qt3 alsa oss bzip2"
   # video card is Matrox G400:
   VIDEO_CARDS="mga"
   #build in via VT82C686 audio:
   ALSA_CARDS="via82xx"
</file>

<file "/etc/portage/package.use">
   # cd/dvd burner, without sound/music support
   app-cdr/k3b -encode -vcd -alsa dvdr
</file>

<set "base-extra">
  sys-process/vixie-cron
  app-admin/syslog-ng
  <command "rc-update">
     add syslog-ng default
     add vixie-cron default
  </command>
  <!-- my favorite editor for system tasks, please no flame wars -->
  app-editors/vim
  app-admin/sudo
  sys-apps/fbset
  app-shells/bash-completion
</set>
....
</Gentoo>

With a complete file like this and a small script, everyone would be able to install, on any machine, the same configuration (after doing a stage3 on that machine)

Of course a lot more posibilties are now open. Some default configurations could be defined and be shared between gentooers. If you want, for example; a proven kde, or xfce desktop, or a gaming instalation, etc. Select the right setup file and start installing!

Maybe you find it less interesting, less educative, etc, but after installing 3 machines by hand I want to automate this!

What do you think, is this interesting idea? Should we start developing a script to support a installation method like this? Please do not forget, it is an installation method for adding packages after you have done a stage 3 install. So in now way comparable with any other distribution. And you keep all the freedom, because you can make your own setups, or adapt the ones that do exists.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Mon Aug 21, 2006 3:29 pm    Post subject: Reply with quote

I've seen something like this already. You go to a machine that you like, type something, and get like a list of all packages there. Then you go to another machine, and it will re-emerge the whole stuff. I've seen it and seemed to be quite mature, although I haven't tried it. The guy had a dedicated website for that as well. Search in the forums/net, it has been done!
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Mon Aug 21, 2006 9:15 pm    Post subject: Reply with quote

Thanks, i will do a search. But the way you describe it, it sounds different. If you get all packages from a machine, the list will be very long due to all dependecies taht have been installed. What I am proposing is to only list the main packages and portage will emerge all the other stuff you need. The advantage is that such a list is much easier to maintain. Plus I am adding special commands to start services etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum