Install Damn Small Linux: Step-by-Step Guide
In this article
Yes, you can install Damn Small Linux (DSL) on an older computer or as a lightweight virtual machine. DSL is a tiny Linux distribution that fits on a 50MB CD or a small USB drive, designed to revive low-spec hardware. The installation process involves preparing a bootable medium, booting into the live environment, and running the built-in installer. You'll need a computer with at least 64MB of RAM (128MB recommended), a CD burner or a USB port, and a blank CD or USB flash drive (at least 256MB).
What You'll Need
- A computer to install DSL on (the target machine) with at least 64MB RAM and a CD-ROM drive or USB port that supports booting.
- A blank CD-R (if using CD) or a USB flash drive (256MB or larger).
- A separate computer with internet access to download the DSL ISO file (about 50MB).
- Software to write the ISO to CD or USB (e.g., ImgBurn for Windows, Brasero for Linux, or Rufus for USB).
- An existing operating system on the target machine if you want to keep it; DSL can also overwrite the whole disk.
Step-by-Step
- Download the DSL ISO. Go to the official Damn Small Linux website (damnsmalllinux.org) and download the latest ISO file (e.g., dsl-4.4.10.iso). This is the only official source; avoid third-party mirrors.
- Create a bootable CD or USB. If using a CD, burn the ISO as an image (not as a data file) using your burning software. If using USB, use a tool like Rufus (Windows) or the
ddcommand (Linux) to write the ISO to the USB drive. Note: DSL is old and may not boot from USB on all systems; CD is more reliable. - Back up your data. If you plan to install DSL to the hard drive, back up any important files from the target computer. The install process can overwrite partitions.
- Insert the bootable medium and boot from it. Place the CD or USB into the target computer and restart. Press the key to enter the boot menu (often F12, F2, Esc, or Del) and select the CD/DVD or USB drive. If the computer doesn't boot from the medium, you may need to change the boot order in the BIOS.
- Boot into the DSL live environment. When the boot prompt appears, press Enter to start DSL with default options. Wait for the desktop to load. This may take a few minutes on old hardware.
- Open the installer. On the desktop, look for an icon labeled "Install DSL" or open the terminal and type
sudo dsl-installer. The installer is a text-based script that guides you through partitioning and copying files. - Choose installation type. The installer will ask if you want to install to a hard drive or a USB drive. For a standard install, select "Hard drive."
- Partition the disk. The installer will show the available disks (e.g., /dev/hda for IDE, /dev/sda for SATA). Select the disk where you want to install. You can choose to use the entire disk or create a partition manually. If you're not sure, select "Use entire disk" (this will erase all data on that disk).
- Select the filesystem. DSL supports ext2 and ext3. Choose ext2 for simplicity or ext3 for journaling (recommended).
- Confirm the installation. The installer will format the partition and copy the system files. This takes a few minutes. Once done, you'll see a message to reboot.
- Remove the bootable medium and reboot. Eject the CD or unplug the USB drive, then restart the computer. If the installation was successful, DSL should boot from the hard drive.
- Complete post-installation setup. After booting, you may want to set the root password (by default, there is none), create a user account, and configure the network. Use the
passwdcommand to set a root password.
Common Mistakes
- Burning the ISO as a data file instead of as an image. This results in a CD that won't boot. Always choose "Burn image" or "Write image" in your burning software.
- Choosing the wrong disk during partitioning. Double-check the disk identifier (e.g., /dev/sda vs /dev/sdb) to avoid overwriting the wrong drive.
- Not backing up data. The installer's "Use entire disk" option wipes everything. Always back up first.
- Ignoring the boot menu. If the computer boots to the existing OS, you didn't select the CD/USB as the boot device. Use the boot menu key during startup.
- Assuming USB boot works on old hardware. Many older PCs don't support USB boot. Use a CD if USB fails.
Tips
- Test DSL live first. Before installing, boot the live CD and check that your hardware (especially network and display) works. If the live session has issues, the installed system will likely have the same issues.
- Use a wired network connection. DSL's wireless support is limited and often requires manual configuration. A wired Ethernet connection is easier for initial setup.
- Keep the CD handy. If the hard drive install fails, you can always boot from the CD to troubleshoot.
- Learn the basics. DSL uses the Fluxbox window manager and includes a set of lightweight applications like Dillo (web browser) and Sylpheed (email). Familiarize yourself with the menu structure.
- Consider a virtual machine. If you're just experimenting, install DSL in VirtualBox or QEMU instead of on real hardware. This avoids partitioning risks.
Troubleshooting
If the computer won't boot from the CD/USB: First, check the boot order in the BIOS. Restart, press the setup key (often Del or F2), and move the CD/DVD or USB to the top of the boot list. Also verify that the CD was burned correctly; try burning at a slower speed (e.g., 4x) to reduce errors.
If the live session loads but the installer fails: Run the installer again from the terminal and watch for error messages. Common issues include insufficient RAM (try adding mem=128M at the boot prompt) or incompatible hardware. If the installer can't detect the hard drive, check the BIOS for SATA mode; set it to "Compatible" or "IDE" mode if available.
If the installed system boots to a black screen: This is often a display driver issue. At the boot prompt, try typing dsl vga=normal or dsl xmodule=vesa to use a generic framebuffer. You can also try dsl nox to boot to the command line and then run startx to manually start X.
If the network doesn't work: Run sudo netcardconfig to configure DHCP. For wired connections, this usually works. For wireless, you'll need to load the appropriate driver manually, which can be complex; consider using a wired connection.
If the installer says "No root filesystem defined": This means you didn't select a partition for the root filesystem. Go back in the installer and make sure you choose a partition and set its mount point to /.
Frequently Asked Questions
Can I install DSL alongside Windows?
Yes, but the installer is not as user-friendly as modern dual-boot tools. You'll need to manually partition the disk to make room for DSL, then use the installer to create a Linux partition. The bootloader (GRUB) will be installed and should detect Windows, but you may need to edit the GRUB menu manually if it doesn't.
Does DSL support modern hardware?
No. DSL is designed for older computers (Pentium-class and early AMD). It lacks drivers for most modern Wi-Fi, graphics, and sound hardware. It may still run on newer machines, but many components won't work.
What is the default username and password?
There is no default user account. The live session runs as user dsl with no password. After installation, you must set a root password using passwd and create a regular user with adduser.
Can I install DSL from a USB drive?
Yes, but it's less reliable than CD. Some older BIOSes don't support USB boot. If your computer does support it, you can write the ISO to a USB drive with a tool like Rufus, but be aware that DSL's USB boot support is experimental.
Is DSL still maintained?
No, the project is effectively dormant. The last release was in 2012. It's still usable for basic tasks, but it has known security vulnerabilities and no updates. Use it only for offline or experimental purposes.
What can I do with DSL after installing?
You can use it for basic web browsing (with the Dillo browser), email, text editing, and file management. It's also great for learning Linux fundamentals or reviving a very old laptop for simple tasks. However, don't expect to run modern applications.