LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-15-2010, 12:47 PM   #1
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Rep: Reputation: 15
Can you make custom directory names?


After (or during) LFS building, is it possible to rename the directories so instead of /bin it's named /apps and /home is /users (and everything still works)? Just out of curiosity

Last edited by daweefolk; 04-15-2010 at 12:50 PM.
 
Old 04-15-2010, 12:57 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
I imagine it might be possible. Especially if you worked hard enough at it and were willing to test thoroughly enough that "nothing broke".

But I certainly wouldn't advise doing so.

Any more than I'd advise moving to "\users" from "\Documents and Settings" (by way of "\My Documents")
 
Old 04-15-2010, 12:58 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
PS:
Oh yeah: Where'd my "c:\temp" directory or "[Start], run" menu option go?

Last edited by paulsm4; 04-15-2010 at 12:59 PM. Reason: Accidental duplicate post :(
 
Old 04-15-2010, 01:11 PM   #4
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
Do most applications install by default to /bin, /sbin, /usr/bin, or /usr/sbin? Is that why it would be problematic?
 
Old 04-15-2010, 01:31 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Installing from source (the configure / make / make install steps), the way LFS is set up, makes it possible to install your software anywhere you want. They all default to their logical defaults (one of the four mentioned by you in post #4), but can be changed by setting the appropriate compile/make options.

Changing the default bin and sbin directories will probably(!) work for LFS, which is only a very basic linux system. Once you try to make it a real, workable system (some daemons, window manager, browser etc etc etc) you will run into problems (hardcoded information and cannot be changed). If, for example, there is no source available but only a precompiled version, it will default to either of the bin or sbin directories.

But besides the installation of the binaries you also need to consider all the configuration files that need changing. And because the s/bin directory structure is so common, some of the options might not be present (you need to check all the manpages to see if you can change these defaults and sometimes you cannot).

So the short answer is: Yes, it is theoretically possible

Hope this helps.
 
1 members found this post helpful.
Old 04-15-2010, 01:34 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by daweefolk View Post
Do most applications install by default to /bin, /sbin, /usr/bin, or /usr/sbin? Is that why it would be problematic?
Hi,

yes, those are the default install directories for most applications. If you want to change that you might have to edit almost every Makefile.

However, there are alternate filesystem hierarchies:
http://en.wikipedia.org/wiki/GoboLinux
 
Old 04-15-2010, 01:39 PM   #7
daweefolk
Member
 
Registered: Sep 2009
Distribution: raspbian
Posts: 94

Original Poster
Rep: Reputation: 15
new question: when, during the LFS build process, would I do that? I haven't seen anything in the book yet about creating the /bin, /sbin, etc folders for the installs on LFS.
 
Old 04-15-2010, 01:45 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Chapter 6 is where the definite LFS system will be build. So up to chapter 6 you can go with the book, from chapter 6 on you need to start changing commands and/or configuration files.

Hope this helps.

PS: My advise: Don't. First try building a normal LFS system as described in the book.
 
1 members found this post helpful.
  


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
[SOLVED] How to changing same file names by their directory names? bayaraa_u Linux - General 3 04-09-2010 09:26 AM
Custom Raw Device Names in RHEL 5.4 srithi Linux - Newbie 1 10-11-2009 03:52 PM
Need help to make all file- and directory names linux conform. madking75 Linux - Desktop 2 11-30-2006 11:48 AM
make a .img file for custom liveCD, dd?? (Also, how to make your system very small) 1veedo Linux - Newbie 6 05-07-2006 06:52 PM
What do the directory names stand for jken Linux - General 4 08-26-2004 08:26 AM

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

All times are GMT -5. The time now is 08:22 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