Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I signed up for my Debian Linux VPS hosting and first logged on and invoked ps, there was the only user process running: sshd. As I can see, this was minimal Linux with only two things installed and configured: sshd and apt (plus all dependencies, of course).

I want to build (or use existing) similar Linux distro, any advice on how to build (or pick) one?

Googling "minimum linux", or "linux with sshd only" usually brings up Debian's netinstall, which is not what I want.

Thanks in advance.

share|improve this question

migrated from May 27 '10 at 13:00

This question came from our site for professional and enthusiast programmers.

Voting to close this question as this belongs to – t0mm13b May 27 '10 at 12:37
Gentoo or Slackware, there are plenty of good distros. Look around, anyway vote up for tommieb75. – Anders May 27 '10 at 12:45
"Lunix" distribution? – zneak May 27 '10 at 14:09
:) Thanks, zneak, fixed that – Sergey Mikhanov May 27 '10 at 14:18
up vote 1 down vote accepted

If you are inclined to roll your own , you might like using debootstrap. You can quickly make a very very minimal (you'll even need to generate your own locales) distro using it in just a few minutes, based on any distro that uses apt.

Pair it with your kernel version of choice, and you have a very bare bones system.

I prefer using chroot to add what I want prior to copying it over to boot media (you'll need to do that to install ssh / etc)

share|improve this answer

First, ps aux gives me a full listing of everything running on the system, including system processes. Did you mean ps ux?

Second, you said that sshd was the only user process running? What about bash? What about ps? That's a user process. The number of running user processes really has no reflection on how few system internals are running; that's why the call it a user process and not a system process.

Third, if sshd is the only system process running, how does did the computer start up (init), or deal with TTY connections (getty or agetty), or log system events (syslogd and klogd)? Truth is, there is a very specific reason for each system process and disabling or kill-ing them can lead to a dumb computer, or a crashed computer.

Udev is pretty much always going to show up in ps listings on any 2.6.xx system. With the move from Kernel 2.4 to 2.6, the udev subsystem is standard unless you compile your own kernel. If you compile udev support out, then you'll have to rely on an unchecked /dev structure, which may cause problems.

If you're really looking to use your own minimalistic Linux install, use Damn Small Linux or Linux From Scratch and only install what you want.

share|improve this answer
Correct remark about bash and ps. I did ps aux and in addition to these two, sshd was the only process whose name wasn't in square brackets. – Sergey Mikhanov May 27 '10 at 13:17

Damn small linux

share|improve this answer
Have you read the question? Does it sound like I need XMMS in the distro? – Sergey Mikhanov May 27 '10 at 12:52

If you are into building it yourself try Linux From Scratch then. Or get the smallest distro you can find and install what you need :)

P.S. This should be on SU.

share|improve this answer

Slax is a modular Linux - you can basically pick what you want on their website wizard, and download an image - how neat is that? :D

(Whilst the recommended modules seem to be X-based, presumably you can make a Slax image without X)

share|improve this answer

I'm quite a big fan of Arch Linux for this minimalist kind of installation. I recently set up a VM whose sole purpose was to act as an SFTP repository, separated from my main server. It has a serial and a tty1 agetty running, syslog-ng, udev and sshd.

The nice thing about Arch for this is that it's quite easy to set it up so that very little starts up by default, just edit rc.conf and set these to run like so:

DAEMONS=(syslog-ng network sshd)

With a base Arch installation, I only actually removed the entry to mount network filesystems, and added sshd.

The downside to Arch is that the development libraries are installed with each package, so it's not as minimalist on disk space as an extremely pared down Debian can be. Also, it uses pacman instead of apt so it doesn't really fulfill the stringent requirements of your question, but I do personally feel it's a viable alternative.

Obligatory link to get started, if you're interested:

share|improve this answer


  • has apt-get
  • can use LXDE

"Trisquel Mini" download is 456 MB

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .