LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-05-2005, 06:11 AM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Slackware from Scratch?


As I've been recovering from the flu, I've distracted myself by trying to build a Linux from Scratch system on a spare machine. It's a lot of fun and tremendously educational. However, I'm still partial to the Slackware way of organizing and configuring a system. Which raises this question:

Has anybody put together instructions to build from scratch a basic Slackware system? I'd like to try to build a Slack system myself so I can really see inside the insides.

The way the LFS book is set up is superb. If anyone has done this, or is willing to do this, for Slackware, I think there'd be a more than a few of us who'd like to work through it.

Or maybe this already exists and I've somehow missed it.
 
Old 02-05-2005, 06:45 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,551

Rep: Reputation: 120Reputation: 120
To build slackware from scratch, I just would install a minimalistic slackware on a partition
with paying attention to install all software developement tools from d/ then I would use
the slackbuild scripts available in slackware sources, creating the packages and install them
with installpkg -root /mnt/target_partition, of course this will require a lot of try to getting it to
work but not so hard with the scripts automation.
 
Old 02-05-2005, 06:54 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
I've finished LFS 2 weeks ago on a Slack current host, and working on BLFS at the moment.

Keefaz' idea sounds alright, but it still doesnt have the essance of 'from scratch'. I'd rather compile the C compiler from scratch enabling i686, etc.. And then use that to start building the Slack system.

I'm guessing here, that since slackware is teh closest to unix in standards, therefore directory and file heirachy (however you spell that), and since LFS also tries its best to follow such standards (except for /usr/local/games), then it shouldn't be difficault.

All you need to worry about should be the slight differences in file and directory heirichy Slack might have, as well as where it chooses to install certain apps different than any other distro. Like KDE being in /opt/kde instead of the KDE recommended /usr (and so on)

What i'm interested in seing, is a BFS (BSD From Scratch) =)

EDIT!
==============
This is what i mean by the hierarchy
Quote:
The directory tree is based on the Filesystem Hierarchy Standard (FHS) standard (available at http://www.pathname.com/fhs/). Besides the tree created above, this standard stipulates the existence of /usr/local/games and /usr/share/games. We do not recommend these for a base system, however, feel free to make the system FHS-compliant. The FHS is not precise as to the structure of the /usr/local/share subdirectory, so we created only the directories that are needed.
If you really are going to do this, it wouldnt hurt to ask Pat himself a few questions regarding the matter. I'm sure he's more than willing to help.

Last edited by xushi; 02-05-2005 at 06:56 AM.
 
Old 02-05-2005, 07:02 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,551

Rep: Reputation: 120Reputation: 120
You could edit the glibc and gcc slackbuild scripts to enable i686 but I find xushi's ideas
interesting (especially BSD From Scratch)
 
Old 02-05-2005, 07:05 AM   #5
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
There is Debian from Scratch program now, so who knows. Kind of like the live cds, now everyone has one.
 
Old 02-05-2005, 07:17 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by keefaz
You could edit the glibc and gcc slackbuild scripts to enable i686 but I find xushi's ideas
interesting (especially BSD From Scratch)
Out of curiosity keefaz, i am quite interested in transforming the current slack i have into i686. Do i just have to recompile GCC and Glibc? or are there any more issues i should keep a note of?

clawhead, i forgot to mention. Its not a bad idea to go through LFS and BLFS once or twice to get the hang of it, as well as a very good understanding of how everything works, before customizing it the way you want (slack from scratch thing)
 
Old 02-05-2005, 07:22 AM   #7
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,551

Rep: Reputation: 120Reputation: 120
Xushi, look at the glibc slackbuild script:
http://ftp.scarlet.be/pub/slackware/...ibc.SlackBuild

Although Pat suggest that $ARCH should be i486, I would think you can change it to i686
but then you're responsible for compatibility problems (eg, set all packages ARCH to
i686 to make sure they will be compatible)
 
Old 02-07-2005, 03:19 PM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
On a side note, to anyone who'se interested.

I've managed to successfully setup slackware's 'pkgtool', as well as 'checkinstall' successfully on a fresh LFS / BLFS system. (good bye paco ...)

So rest asure that if one makes his/her own LFS system, they will have the ability to manage, install, update, remove packages with ease.

I'm still thinking about this thread, and it got my attention. I'll be looking into how similar both slackware and lfs base systems are.. I'm assuming they will be very similar if not identical if slack truely does follow the FHS standard discussed above.

If they do, then i'll continue with that, making sure to install programs in the same paths as slackware does (eg, kde being in /opt instead of /usr/local) so that i can use precompiled slackware packages (linuxpackages.net anyone?) on my LFS OS.

If anyone's interested, i'll keep a note on everything i'll do.
 
Old 02-07-2005, 03:42 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
I use pkgtools anytime I build a LFS system. It makes it pretty easy, and in the end you get more or less Slackware from scratch. for anyone who wants to try this method, just make sure you get everything checkinstall depends on in the temporary system and it all goes pretty smoothly.
 
Old 02-07-2005, 03:43 PM   #10
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by xushi
On a side note, to anyone who'se interested.

I've managed to successfully setup slackware's 'pkgtool', as well as 'checkinstall' successfully on a fresh LFS / BLFS system. (good bye paco ...)

So rest asure that if one makes his/her own LFS system, they will have the ability to manage, install, update, remove packages with ease.

I'm still thinking about this thread, and it got my attention. I'll be looking into how similar both slackware and lfs base systems are.. I'm assuming they will be very similar if not identical if slack truely does follow the FHS standard discussed above.

If they do, then i'll continue with that, making sure to install programs in the same paths as slackware does (eg, kde being in /opt instead of /usr/local) so that i can use precompiled slackware packages (linuxpackages.net anyone?) on my LFS OS.

If anyone's interested, i'll keep a note on everything i'll do.
Yes, I'd like to see your notes if you release them. I just went through LFS and I tried to be aware of times when LFS and Slackware diverged. However, I realized that, although I've tinkered a lot with Slackware in the short time I've been using it, my familiarity didn't descend very deeply into system design, organization and rationale. So any observations you might have would be welcome. I'd especially like to see a chart or table showing the divergences at various structural levels.

When I get some more time, I'm going to move from LFS, which is purring nicely now, on to BLFS. Then I'd like to try to reconstruct Slackware, or at least work on a deeper understanding of it. Maybe by then your notes will be available.

Thanks for sharing this interest. I'm glad people have worked on this kind of thing.
 
Old 02-07-2005, 04:04 PM   #11
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
check out the LFS hints for some good tips. especially the one about BSD style init scripts which is what slackware uses ( although now there is some sysvinit stuff for some applications that do require it).
 
  


Reply

Tags
init, slackware from scratch


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
Installing Slackware 10.2 from scratch dfresh Slackware - Installation 9 11-10-2005 01:44 PM
Rebuilding slackware from scratch with gcc-3.4.4 fast_rizwaan Slackware 11 08-15-2005 01:20 PM
From scratch.... againstms Linux - Newbie 2 12-15-2004 12:50 AM
A computer from SCRATCH!!! (and I mean SCRATCH) chutsu Linux - Hardware 10 11-11-2004 05:14 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM


All times are GMT -5. The time now is 03:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration