LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-30-2014, 01:14 PM   #1
drimer
Member
 
Registered: Jun 2013
Distribution: vectorLinux , debian ,LFS
Posts: 46

Rep: Reputation: Disabled
create gui installer for LFS


i want create gui installer for my distro LFS
so anyone tell me how to ... ?
& thank's in advanced
 
Old 03-30-2014, 01:40 PM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Why would someone want to create a gui installer for LFS.
 
Old 03-30-2014, 09:01 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 03-31-2014, 08:55 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
 
Old 03-31-2014, 06:47 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.
 
Old 04-01-2014, 10:29 PM   #6
drimer
Member
 
Registered: Jun 2013
Distribution: vectorLinux , debian ,LFS
Posts: 46

Original Poster
Rep: Reputation: Disabled
yes i know
but how to do it ??
any notification
 
Old 04-02-2014, 03:00 AM   #7
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 04-02-2014, 04:09 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Unless it's documented, there's no real way to do it, other than trial and error I'm afraid.
 
Old 04-03-2014, 01:55 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by drimer View Post
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?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create installer for lfs with UCK drimer Linux From Scratch 2 06-24-2013 03:10 PM
Can i create and use an folder /home/user/LFS instead of /mnt/LFS ???? dgashu Linux From Scratch 10 04-16-2013 12:01 AM
Installer for LFS jamal_mohammadi Linux From Scratch 1 03-03-2008 08:24 PM
What Does The UT2004 Installer Do Behind The Fancy GUI Installer? Tsuroerusu Linux - Games 2 09-09-2004 02:37 PM
lfs and an installer toolshed Linux - Software 0 06-11-2004 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration