LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   create gui installer for LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/create-gui-installer-for-lfs-4175499961/)

drimer 03-30-2014 01:14 PM

create gui installer for LFS
 
i want create gui installer for my distro LFS
so anyone tell me how to ... ?
& thank's in advanced

whizje 03-30-2014 01:40 PM

Why would someone want to create a gui installer for LFS.

ReaperX7 03-30-2014 09:01 PM

Never knock an effort...

Ahem! If you want to create a GUI installer, you might want to first look into Python and GTK, especially the PyGTK toolkit and start from there. Best of luck.

TobiSGD 03-31-2014 08:55 AM

GTK is nowadays mainly developed to be used in the GNOME desktop environment and many projects now make the effort to switch from GTK to Qt. Not even the GTK developers really recommend to use GTK in any larger project. I would recommend to use Python with Qt instead of Python with GTK. Of course you also can use any other language that has Qt bindings

ReaperX7 03-31-2014 06:47 PM

There's also the WxWidgets toolkits as well. GNU/Linux has about over a dozen or so GUI toolkits. FastLight, GTK, QT, Wx, I think X has it's own UI toolkit, Motif, etc.

drimer 04-01-2014 10:29 PM

yes i know
but how to do it ??
any notification

hendrickxm 04-02-2014 03:00 AM

Have you installed LFS before, do you have working scripts for the current stable realese up to a working X, perhaps even with a desktop?
That would be my first step.
I am using LFS 7.4 with lfspkg. After manually building ch5, there are scripts though. I can build ch6 mostly scripted and continue to a full working desktop thanks to Keith's scripts and package manager.
He is updating his package manager and scripts to work with 7.5.

ReaperX7 04-02-2014 04:09 PM

Unless it's documented, there's no real way to do it, other than trial and error I'm afraid.

TobiSGD 04-03-2014 01:55 PM

Quote:

Originally Posted by drimer (Post 5145059)
yes i know
but how to do it ??
any notification

Actually, it should be quite easy, but it depends on how flexible you want the installer to be.

For maximum flexibility at install time you would need a package manager in your distro, so that you can choose which packages to install. In that case it would basically look like this:
- Start from a live medium (CD/DVD/USB/PXE) and start the installer.
- Let the user partition the disk (you can instruct the user to use existing tools like fdisk or GParted, or you can write your own partitioner, possibly using libraries like libparted)
- Mount the partitions in the way the user specified and use your package manager to install the packages the user has chosen to them
- Create necessary configuration files, like fstab, timezone, hostname, ..., likely with user intervention
- Install a bootloader
- Optional, let the user do post-install configuration, like creating additional users.

It will get easier to write an installer if you go for less flexibility, for example if you just deploy filesystem images of your distro and configure them afterwards.

So the first thing to think about would be: How flexible do I need the installer to be?


All times are GMT -5. The time now is 09:30 AM.