Comment 7X4C Re: Building a custom Linux system is easy

Story

Build Your Own Linux Distro

Preview

Building a custom Linux system is easy (Score: 2, Informative)

by tanuki64@pipedot.org on 2015-04-26 12:48 (#7VGH)

Did it once with LFS (http://www.linuxfromscratch.org/). It is fun to do. One learns quite a bit about Linux. IMHO if one wants to work a Linux system administrator it is almost a must. However, it is absolutely no fun to keep such a system up-to-date. Changing dependencies. Following security advisories. It is a full time job. As software developer I prefer a standard distribution. Which one? Don't care. As a compromise I manage my most used tools... gcc/clang/qt/cmake... myself. This way no update can unexpectedly pull the rug from under my feet. I can easily change the distribution. And I learn about possible problems in my tools, which otherwise might be hidden due to distribution specific patches.

Re: Building a custom Linux system is easy (Score: 2, Insightful)

by engblom@pipedot.org on 2015-04-27 04:48 (#7WYV)

I have to disagree with you. Yes, I have once made an LFS. So what did I learn? Nothing. Several years of Linux usage had already thaught me how to compile packages. The steps for each package is almost the same: ./configure --prefix=/whatever; make; make install.

You do not have to build a whole distro in order to learn Linux. The better way to learn Linux is to actually use it. Set a goal for what you want done and then get it done. The goal might be anything from some simple shell scripts to setting up servers.

Re: Building a custom Linux system is easy (Score: 1)

by tanuki64@pipedot.org on 2015-04-27 05:49 (#7X18)

Actually using Linux is not enough. Today's distributions are so streamlined that rarely anything goes wrong. I learn only by solving problems. No problems = no deeper knowledge. Setting up servers? Where is the problem? Most servers in most distributions come pre-configured with automatic dependency resolution. Not that I complain, that's the way it should be. When I need a server I want it fast. In the 90th one could learn plenty just by using Linux. Today? Not much more than you can learn Windows by using Windows.

And... ./configure --prefix=/whatever; make; make install. is not enough. it is the absolute minimum. But if you want more functionality, better system integration, it still is hunting dependencies, solving compatibility problems.

Re: Building a custom Linux system is easy (Score: 2, Interesting)

by engblom@pipedot.org on 2015-04-27 06:57 (#7X4C)

If all you want is a web server or openssh server, then what you wrote is true. Try to just install DNS or email servers and you will see they are not coming ready configured.

Even with modern Linuxes, I need to script almost every week. So many tasks are not done automatically. Last week I made a script backuping all Extreme switches and Zhone dslams and other network equipment (ca 50 boxes). Now I have a crontab entry backuping them daily, so whenever one of those goes down I can quickly drop in another one.

As a system administrator I have to deal with huge amount of user names. Only a crazy person would add and remove them manually with either adduser from CLI or from any GUI. I created a script parsing a text file with all names. From that text file, my script generates usernames and passwords and After adding the user to the system, it outputs to a CSV file. That way I do not have to deal with mistakes and I save a lot of work.

Before that I had to make a box for presentations. The customer wanted to have an easy way to get PowerPoint presentations running on a screen at a library. I quickly installed Linux, made some simple scripts to do an automatic TTY login, startx, running mplayer in fullscreen cycling through all files which are accessable through samba. PowerPoint got a presentation->mpg4 export built in.

These are all trivial things, but nothing a complete newbie will be able to do after going through LFS. LFS is not teaching Linux. It is teaching how to install packages. If a newbie would run a distro with limited quantity of packages, like Slackware, he would have to learn it anyway, but rather than compiling the whole system he can begin learning real Linux (= becoming fluent in CLI, scripting, configuring services, etc).

Moderation

Time Reason Points Voter
2015-04-28 17:44 Interesting +1 bryan@pipedot.org

Junk Status

Not marked as junk