Building new Linux distribution.. where to go?

Hey guys. I am looking forward to building a Linux distribution that is made extremely custom to my ideas of how an OS should run. (I have some previous history of writing up Operating Systems in assembly language in both 16 and 32 bit.)
I have gained a bit of knowledge around how Linux operates and used Arch Linux for some time to familiar myself with some of the controls and directories in Linux. I tried using LFS (Linux from Scratch), and found that what it accomplishes is essentially a very slow way of doing the same as Arch Linux's package manager.
However I don't understand how to do a few specific things, which I think are central to building a new distribution:
1. What is the very most base required for Linux to run? With both LFS and Arch Linux, if you want to install the kernel, you have to install a whole bunch of other things, like bash, init, readline, kernel-headers, etc. as dependencies.
From what I understand however, the Linux kernel can run without most of these packages.
For example, I may want to have Linux boot up to turn on only one program (lets say a mysql server) and that's it. No bash or shell of any kind, no man pages, no utility commands like "rm" or "cd"
So, what is the very base minimum requirement for a Linux kernel? How do I isolate it from everything else? In theory if I have only the very base, it should take up less than a megabyte. (ie, I should be able to fit it on a floppy disk.)
2. How do I choose exactly what type of features I want from a Linux kernel? Slackware seems to give these general "hughsmp", "generic", "hugh", etc. versions of Linux. How do I choose any options available for Linux? ie being able to read ext2 or fat, or both.. Being able to execute ELF or a.out, or both.
To be able to include some features in Linux, for example handling TCP connections.. I might want to remove these if I am not using a network.
3. This might be a bit more advanced, but I didn't see how to do this anywhere: How do I detect which devices are connected to the computer? For example, if I want to detect what type of network card you have so that I can install the appropriate driver, what do I do? Is it just scanning "lspci" and "lsusb"? Or is there a way to do it without those programs?

i too have been investigating building a new distro (however, my ambitions are geared toward socializing/distributing both the entire development process, and the community itself.  see here: http://bbs.archlinux.org/viewtopic.php?id=90970)
1) as far a i understand, the kernel requires next to nothing to "run".  the kernel when finished initializing itself and the devices will launch a program called "/sbin/init" on the root device, unless otherwise specified on the kernel boot line.  if the root device is not available (its on an encrypted device for example), then the kernel decompresses a temporary filesystem into ram (initramfs/ramfs), and launches "/init".  that process than takes over from there;  the kernel itself pretty much does nothing concerning booting the system.
the rm/cd/etc. commands are part of the GNU coreutils package... the bottom most basic tools on and GNU derived system.  you can set up any kind of system you like with any mixture of apps.  to make it fit in a megabyte you would need a heavily stripped kernel and no initramfs i would think.
2) all the features for the kernel are determined at compile time by the ".config" file.  it's basically a tremendous list of key value pairs, in a kind of hierarchy.  try "make menuconfig" or "make xconfig" with no existing .config file to see everything.  you can compile many things directly into the kernel (y), or as loadable modules (m).
3) current way of device detection is thru a system called uevents/udev.  i wont get into it too heavily, but uevent datagrams are fired off by the kernel containing information about devices/etc. and a userspace daemon (udevd) collects these datagrams and does appropriate things (create device nodes, whatever).  im not sure as much here, but i think sysfs is created by running drivers, and has nothing/little to do with udev.

Similar Messages

  • Attention! About problems with Oracle 8.1.6 on newer Linux distributions!!

    Hello all, I've just got some feedback from a helful person at http://www.crunge.com/ about the problems concerning RedHat Linux 7.0 and Oracle 8.1.6, this MAY apply to other newer linux distributions.
    I've tried, without luck, to install Oracle on RedHat 7.0 and Slackware 7 (the newest one), and it would not install properly, kept stopping right about when the database initialization started at 80% finished install procedure. Sp i wrote them a mail, not expecting an answer really, but I did got an answer, and below is what the person said;
    Thanks for the feedback.
    Oracle 8.1.6 does not work under Red Hat Linux 7. Yes, that's the problem
    that I mentioned in the doc--you get to 80% and the DBCA crashes and the
    Oracle executables die.
    I've heard, but I haven't tried it myself, that if you install the latest
    glibc errata (2.1.94) then the DBCA completes but the Oracle executables
    still die. The DBCA problem was apparently a Java issue that is fixed in
    the errata. But you're still out of luck since the exes won't work.
    It might appear that this is a problem with Red Hat Linux 7. But it appears
    that it is a problem with some assumptions that Oracle made, assumptions
    that worked with glibc 2.1.3 (the C library included with RHL 6.2) but which
    prove false with later glibc versions. As other Linux distributions adopt
    the new glibc Oracle will fail to work on them as well.
    The best advice I can give at this point is to install and run Oracle on
    Red Hat Linux 6.2. Hopefully Oracle will address the glibc issues with the
    8.1.7 release.
    Chris
    p.s. Do not construe this
    as an official Red Hat response; I merely forwarded your e-mail from my
    home account. This response and the web pages I put up are mine.
    So i guess one sollution to the problem is to try a bit older version of the linux you are having problems with (i tried it on RH 6.1 and it worked like a dream).
    Another solution can be to wait it out to check and see if Oracle put a fix out here on technet...?
    Hope this helps people bogged down in fustration.
    Regards
    Ole-Henrik Helin
    Computer consultant, Mesan AS
    Norway

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Graham Strang ([email protected]):
    Hey all. Just to let you know that it is entierly possible to get Oracle to install under RedHat 7 and run happily. I have done it on two differenct machines. There is a bit of fooling with glibc to get it to work. However after you do that it works like a dream. VALinux has a work around posted at: http://ftp.valinux.com/pub/support/hjl/glibc/sdk/2.1/
    The READEME.Oracle8i has the work around and the two tar balls are the necessary files. I followed the directions to the letter and they worked like a dream. Any questions feel free to drop me a line.
    Cheers,
    Graham<HR></BLOCKQUOTE>
    OK, so i followed your instructions to the letter (several times), sure I get past the 80% bug but now I have new erros coming up , -"Error in invoking target install of makefile /usr/oracle/sqlplus/lib/ins_sqlplus.mk". I get a whole series of these errors for various mk files. These errors apear during the link phase of the install, prior to the glibc workaround I was not getting this. I am a newbie to Linux and trying to give it a serious go but so far I have had little luck
    Any help appreciated.
    Nick
    null

  • An Idea for a linux distribution

    Basically, I had my grandma in mind when I came up with this idea.  I thought about entitling this thread "linux distro for grandmas" but decided against it, because it might be offensive to some  (I'm pretty sure that somewhere in this great big world there is a grandma who is a great linux admin).  Besides, I know a number of people that aren't my grandma that this would be perfect for. 
    Basically, there is usually a trade off between power and ease of use amongst Linux distributions.  On one end of the spectrum you have umm... ubuntu and xandros(?)  and on the other you have Linux from Scratch.  Anyway, my grandma would have a tough time with even the simplest distributions unless it was set up by a very patient and thoughtful admin. 
    So my idea is to make a distribution that offers virtually no options to confuse the user.  Once the computer is booted, the user is confronted with a graphical login where they simply click (user1).  From there, they are presented with a few icons with titles such as "surf the internet", "check email", etc.  (maybe this is too patronizing?)
    I think that by default, their should be two users, one for the primary user, and one for guests, just to prevent guests from messing things up by screwing with configurations, or looking up pornography. I think that there are programs that convert linux boxes into dummy terminals which might help in such a distribution.  (maybe we can make certain config files read only)
    This distribution should run on  just about anything by default, and be a dream come true for any admin who wants to quickly and easily setup a computer for a friend or loved one (or fellow employees).  The installation process should be as simple as clicking "yes you're sure and you understand that by installing you will erase everything on the harddrive".  (ok, maybe we could include a few more options than that)
    This distribution would be unsuitable for anyone who would want to install or upgrade their own software, or play 3d games etc.  It should include support for playing music, surfing the internet, reading email, and all of the basics that many many people want to use their computer for.(without understanding ANYTHING about it)  I'd also like to make it unnecessary for end users to know any passwords, or commands period.
    No one wants grandma to get hacked, but it would be nice to remotely admin these installations  (although ideally, the need for administer's intervention would be absolutely minimal). So I was thinking that in addition to the two end user login accounts, we would need a login account meant exclusively for logging in via ssh, and, of course root.  the ssh specific login name and password would have to be chosen during installation, and this would be the only account that is accessible by ssh.  This user would be the only member of the wheel group.  Root... well root is root.
    Anyway, a quick google around didn't reveal any projects that had these goals in mind.  I just dreamed this up an hour ago, so it is not even well developed as a concept yet. 
    Is this interesting to anyone else?
    Last edited by Convergence (2009-03-13 14:13:38)

    It's not just Grannies that could use this.  Just yesterday I had some windows using friends touting the benefits of Xandros Presto. Essentially what you are talking about is a similar concept.  I like the idea too, and even better would be if a very few applications could be customised as packages that are available for download as extensions. Rather than every GNU app packaged with scarce descriptions it would be great to select a main tool for each category and document it, make it installable into the chosen GUI, even have pretty little logo graphics for each app.  Really user friendly.  You'd have to look seriously into the Gui layout of the main selections screen as well as each individual app so that it was uniform across the board.  I've always thought it would be better for this type of thing to limit the way things can be done also.  Most interfaces give numerous ways of completing the same task.  It'd be much simpler if there were only one primary way (even if the others were there but hidden, like keyboard shortcuts), so there is still room for advanced users to speed things up a bit.
    Being able to trim it all down to single option answers to basic operational questions would be fantastic.  There would also have to be no update manager, or if there was it should be designed to ship updates once a month tops.  No kernel updates, no nvidia updates.  Just a perfectly working balance of good apps that can't be broken easily.
    "Fantastic" would also be a great distro name
    The only thing I find wrong with this way of thinking though is that it seem like everyone can create a new distro but no-one seems to work on the interface of the applications, or the total system.  i.e. Making a distro you can only use what applications are available and if you choose openoffice for your office suite and there is an issue with it, you can't fix it, therefore you can't control the stability of the system.  It can only all come together properly when the applications can be simplified in conjunction with the OS UI and the authors have enough control to fix both the distro, and the applications.
    Cheers,
    Arkay.
    Last edited by arkay (2009-03-20 08:15:33)

  • Cloning the db to new Linux box

    Hi,
    There is a new linux box and I need to clone the db from the production to this box. I have done the preclone steps on the production db and then copied the entire set of files (Home and Datafiles) after the shutdown to the new linux server.
    When I run adcfgclone.pl dbTier, I am getting an error
    The 806 installer uses the oratab file.
    The file oratab needs to exist at: /etc/oratab
    Is there any pre-reqs that needs to be done on the target server.
    DB: 11.2.0.1 on Linux 5.0
    Apps: 11.5.10 on AIX 5.3
    Neel

    When I run adcfgclone.pl dbTier, I am getting an error
    The 806 installer uses the oratab file.
    The file oratab needs to exist at: /etc/oratab
    Is there any pre-reqs that needs to be done on the target server.Create /etc/oratab manually and try then. If you still have the same issue, make sure you have an entry in the file to the new ORACLE_HOME as follows:
    SID:ORACLE_HOME:N
    Where <SID> is the database name, <ORACLE_HOME> is the new ORACLE_HOME
    Thanks,
    Hussein

  • Installation of oracle ware house builder on linux 64 bit platform

    Hi All,
    Can anybody tell me the installation process of oracle ware house builder on linux 64 bit platform?
    Thanks

    Hi,
    In the zip file there is a file called Readme.txt or Welcome.htm where you can find all of the steps you need to take to install the product.

  • Starting workflow builder on LINUX

    HI All,
    I have 2 questions.
    1. Can I install/ Use oracle workflow builder on Linux?
    2. I have installed Oracle EBS 12.1.3 on Linux ( I am not sure if Oracle Workflow builder is installed with EBS or not), If it is installed with EBS installation. Can I use Oracle workflow builder on EBS server? if yes , how?
    Thanks in advance.
    Regards,
    Salahuddin.

    Workflow builder client is available on  Windows XP, Vista, Windows 7 (32-bit and 64-bit), and Windows 8 (32-bit and 64-bit). Please see docs below for details on where to download the software from.
    11i - 12 How To Download and Install the Latest Oracle Workflow Builder (Client Tool) and XML Gateway Message Designer for E-Business Suite (Doc ID 261028.1)
    How To Obtain Oracle Workflow Builder (Doc ID 401288.1)
    Thanks,
    Hussein

  • Linux distribution for Java?

    Does anyone know where I can find a Linux distribution that is packaged solely to run Java? I.e., with all the bells and whistles removed such as text editors, web browsers, etc. but without missing libraries and dependent files. Something that doesn't need to be configured too much after installation.

    You mean a "Java-only" set of a Linux-OS based system? Well, if you know Linux really well, you can try your hand a minimal Debian or Slackware install, but you'll still get more than you think you want. Or you can try one of the more "commercial" variants and keep trying to pare it down to the size you think you want. But I'll be you a nickle (US 5 cents) that you'll crash the computer because you eliminated something that is needed.
    If you don't know Linux really, really well - you are Out Of Luck. I guarantee you'd remove something that'll cause a crash. OS's are complex things and not for the faint of heart. (I gave up kernel hacking around 1.2)

  • Please help me identify this Linux distribution

    Hi!
    I recently stumbled upon a netbook Linux distribution which where booting very fast but I somehow can't find it again. They had a link to a youtube video on the distros frontpage showing it boot in only 7 seconds (I think). It had a typical netbook interface with taps on the left for stuff like media, internet, etc. Immediately after boot it showed a internet connection tool making it easy to connect to a wireless network. I think the deafult color scheme was something with blue/black.
    I've looked trough all the top 100 distros on distrowatch and I've been searching around the net but i can't find this distro. If someone know what distro it is I'd be very happy to hear it

    Not Jolicloud either. It was looking a bit more "homemade" than Jolicloud and Xandros.
    It isn't any of these either: Ubuntu Netbook Remix, EasyPeasy and MeeGo.
    EDIT: I finally found the video I was talking about on YouTube. The distro is xPUD
    Last edited by paldepind (2010-06-03 15:08:11)

  • Create new dynamic distribution group as filter office location

    Hi
    I want to create new dynamic distribution group as filter office location. So  I would like to request you please suggest the script through Power shell or graphical interface.
    In case you need more clarification please revert back.
    Regards
    Md Ehteshamuddin khan 

    If you don't use OUs to separate your users and use the 'Office' field in Active Directory you can create Dynamic lists for this property as well.
    The Office field, which stores its information in the physicalDeliveryOfficeName attribute of the object, can be referenced to create a list by using this PowerShell command:
    New-DynamicDistributionGroup -Name <LIST NAME> -RecipientFilter {office -eq '<OFFICE NAME OR LOCATION>'} -RecipientContainer '<LOCATION OF USERS ALLOWED IN THE LIST>' -OrganizationalUnit '<LOCATION OF WHERE LIST WILL BE STORED IN ACTIVE
    DIRECTORY' -Alias 'LIST ALIAS'
    Tested and verified with Exchange 2010

  • Supported Linux Distributions

    I am wandering if there is a recommended/preferred Linux distribution for my 450 G1.

    Voipster wrote:
    Thank you PeerOne for your response.
    I have asked the question: What are you doing that Windows itself can't provide for you? Answer: In short. I have found Linux to give me more freedom of flexibility and security. It has also opened a door to technical learning that was not there before.
    As for the drivers. That was the primary basis of the posted question. It looks like the distro would be Suse according to the drivers from HP. However I prefer to use Ubuntu and wanted to see if it would be supported. I believe I may be able to use the driver no matter what distribution I go with. I just wanted to see if I could get manufacture confirmation.
    Unforunately for your flexibility and security is limited to not being supported by major software or hardware support and will be limited since they will support O/S that can provide them a source of income for R&D for both Windows and Apple. Until Linux become one O/S that can go up against Windows or Apple it will be always be last place. For Servers Unix has more Control and Command overall and that is where it holds sway and has Hardware and Software support for. For Linux having to many distro will insure it never is a Consumer Friendly O/S that consumer can rally behind one O/S that can complete with Windows or Apple market shares. Most everyday Computer users want to turn on and start using their computer and turn off when done not like the savvy computer users they know the ins and out but they are far in the minority compared to the major of computer users. So that is the real story why Linux never fully took off or could compete on the scale of Windows or Apple.
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • AIR on non-supported Linux distributions

    I work for a company that uses flash extensively and is very
    excited about the new release of AIR for Linux. However I haven't
    been able to install AIR on our target OS. We use a modified
    Linux-From-Scratch OS because our applications run in a
    semi-embedded environment; it's small and we can easily customize
    it to suit our needs. Fedora/Ubuntu/OpenSuse have too large a
    footprint for our applications. I even tried compiling/installing
    the rpm package manager to see if I could fool the AIR installer
    but that didn't work :)
    I'm aware of this thread...
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=677&threadid =1349878&enterthread=y&loc=en_us
    ...suggesting use of the SDK to run AIR apps.
    So I have a couple questions...
    Are there any plans to support installation on other Linux
    distributions? This might be of value to Slackware/Gentoo users as
    well.
    Is there any downside to running AIR apps in terms of
    performance/capabilities using the ADL via the SDK?
    Thanks in advance.

    I don't think there is much difference in terms of
    performance.
    But there are things that are not supported when running in
    ADL. One of them is the Update API.

  • How jvm threads works on new Linux 2.6 scheduler with SMP kernell

    Hi,
    i'm using Sun JDK Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode) to run tomcat,
    anyone knows How JVM threads works on new Linux 2.6 scheduler with SMP kernel?
    i ask this, because in a single processor machine the tomcat replies more fast than a dual processor machine, maybe the reason is, that SMP load balancing made for new scheduler, slow down the JVM performance for threads? there is a way to avoid this?
    reference about Linux Scheduler: http://www-128.ibm.com/developerworks/linux/library/l-scheduler/?ca=dgr-lnxw09LinuxScheduler
    bug that have "same" problem: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5038858
    thanks for any insight

    This is bug:
    6328462 Linux getCurrentThreadCpuTime() does not match with getThreadCpuTime(currentThread)
    It will be fixed in:
    - JDK 6.0 (Mustang) build b63
    - JDK 1.5.0_07 build b01
    The problem is that the HotSpot VM takes the stat info from the file'/proc/$tid/stat'
    which is incorrect on Linux kernels 2.6+ with NPTL because this file aggregates
    per-process (.vs. per-thread) usage on these kernels.
    The file '/proc/self/task/$tid/stat' still has the per-thread usage and must be used instead.
    There is also a performance bug:
    6200022: JVMTI GetCurrentThreadCpuTime slow on Linux
    This bug is about using new Linux posix compliant process clocks (2.6.10) :
    http://sources.redhat.com/ml/libc-alpha/2004-10/msg00117.html
    It is too late to fix this in Mustang but can be possible in one of the update releases.
    Thank you for posting the question!
    Serguei

  • Report Builder on Linux?

    Hi Everyone,
    Is it possible to run a version of Oracle report builder in linux? Currently right now I am running Reports 6i in Windows XP. I've found a way to run all my other apps in linux and have switched over except for a couple of Oracle apps. The main ones being Reports and Workflow Builder.
    I remember there was a way to run Forms builder in Solaris not sure if there was a same version like that for Reports builder.
    Thanks.

    hi ,
    The oracle report builder will work on linux operating system also.

  • How to start Oracle Report Builder in Linux

    Hi all
    Can someone please help by telling how can i start Oracle Report Builder in Linux????
    Thank you and best regards to all

    Hello,
    there should be a script rwbuilder.sh
    in ORACLE_HOME/bin for 10.1.2.
    in ORACLE_INSTANCE/config/reports/bin for 11g
    Of course, you need to have a "X Display Server " up and running and the variable DISPLAY must be set to this "X Display Server "
    Example :
    export DISPLAY=123.456.789.12:0
    $ORACLE_HOME/bin/rwbuilder.sh
    Regards

  • I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the base for my new macbook ?

    I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the basis for my new macbook ?
    The old OS was Mac X 10.5.8.   I think the new one is  10.7.2     Lion.

    Have a read here How do I set up a new Mac from an old one, its backups, or a PC?
    Stefan

Maybe you are looking for

  • Find the place where a object  is stored ?

    hi all, can someone tell me how to find out a object ,e.g : a index , object_id is 1000 then ,how to find where it is placed or which datafile ? thanks you!

  • Bridge won't run. Should I reinstall it?

    1.I went to Windows>Workspace, and "Output" was not there. 2. I read at adobe.com help that I should check for updates and then download the "Output" workspace, then put it at the right extension. 3. I did that. 4. Now Bridge won't start. It doesn't

  • PI unable to connect via JMS adapter to Weblogic

    Hello All,    We have implemented JMS adapter on PI 7.11 for the first time in our landscape which connects to Weblogic server. When i test my scenario i get this Error on JMS Communication Channel. Could some one help me out .. where things are goin

  • Oracle 10g CPU patch

    Oracle 10g on Windows server 2003. I need to do CPU patch. I follow the patch instructions, but I have some questions: 1. back up %oracle_home% directory. Is this just to copy whole directory to different disk? 2. clean shutdown all Oracle services:

  • Need a template to identify applciations which covers most options

    Hi All,     We r Planning for a upgradation to BI7. As part of that, First we want to identify 5 applications, Which cover all the options.     If anybody has done this previously, Pls suugest me how to proceed and to make sure that not even single o