How to Build Your Own Linux Distribution

This wikiHow teaches you how to create a Linux operating system. While creating a Linux distribution from scratch requires advanced knowledge of how to code, a free Linux distribution called Slax will allow you to customize your Linux...
Part 1 of 4:

Preparing to Install

  1. Install WinRAR if you don't have it. Since Windows doesn't have a program which can open ISO files as directories, you'll use this free program to open the ISO file for Slax later. Go to https://www.rarlab.com/download.htm (or go to https://www.rarlab.com/ and click Downloads on the left side), then do the following:
    1. Click WinRAR x64 (64 bit) 5.60 beta 5 near the top of the page.
    2. Double-click the downloaded setup file.
    3. Click Yes when prompted.
    4. Click Install
    5. Make sure the "ISO" box is checked.
    6. Click OK
    7. Click Done
  2. Open the Slax website. Go to https://www.slax.org/en/ in your computer's web browser. This is the website from which you can download Slax.
  3. Click Slax 64bit. It's on the left side of the page. Doing so prompts the Slax ISO file to download onto your computer.
    1. Unless your computer was manufactured in the 90s or early 2000s, don't use the 32-bit link for Slax.[1]
  4. Plug a flash drive into your computer. You can use any type of USB flash drive for this step, but the flash drive must have at least one gigabyte of storage space.
    1. Given that it costs less than $10 to buy a 16-gigabyte flash drive, you might want to purchase a flash drive which is larger than one gigabyte.
  5. Format the flash drive for NTFS. If your flash drive has never been formatted for NTFS, you'll need to change the file system on the flash drive to NTFS by selecting it from the "File system" drop-down menu in the Format window.
Part 2 of 4:

Installing Slax

  1. Right-click the downloaded Slax ISO. Doing so will prompt a drop-down menu.
    1. Make sure that Slax has finished downloading before you do this.
  2. Select Open with. It's near the middle of the drop-down menu. This prompts a pop-out menu to appear.
  3. Click WinRAR archiver. You'll see it in the pop-out menu. The ISO file will open in WinRAR.
  4. Select the "slax" folder. Click once the "slax" folder near the top of WinRAR.
  5. Click Extract To. It's a folder-shaped option at the top of the WinRAR window. Doing so opens a pop-up window.
  6. Select your flash drive's name. You'll find this option in the pop-up window.
  7. Click OK. It's at the bottom of the window. This will allow the "slax" folder to extract and copy to your flash drive.
Part 3 of 4:

Installing Modules

  1. Understand how modules work. Slax is a lightweight distribution, meaning that it only comes with a few absolutely necessary programs and services installed. By adding module files to your Slax installation flash drive, you can determine which programs, features, and graphical interfaces appear in your final distribution.
    1. Like Slax, modules are completely free to download and use.
  2. Open the Slax module page. Go to https://www.slax.org/en/modules.php in your computer's web browser.
  3. Select a category. Click any one of the categories (e.g., artwork) to view a list of its included modules.
  4. Find a module you want to install. Each listed module will have a description to the right of it, so scroll through the descriptions until you find one for a program or feature you'd like to include in your installation.
  5. Click 64bit. It's a button to the left of your preferred module.
    1. If this button is greyed out, you'll click 32bit instead. Almost all of the available modules are 64 bit.
  6. Repeat for any other module files. Once you've downloaded all of the modules you want to install, you can proceed.
    1. Don't worry about renaming or classifying the modules—they're all going to go in the same folder.
  7. Copy the module files. Click and drag your mouse to select all of your downloaded module files, then press Ctrl+C.
  8. Open your flash drive. If your flash drive is already open in a window, you're all set. If not, do the following:
    1. Press Win+E to open File Explorer (or type file explorer into Start and then click File Explorer).
    2. Click This PC on the left side of File Explorer.
    3. Double-click your flash drive's name.
  9. Open the "slax" folder. Double-click the "slax" folder at the top of your flash drive's window.
  10. Open the "modules" folder. Double-click the "modules" folder near the top of the window.
  11. Paste in the module files. Once the empty "modules" folder is open, press Ctrl+V to paste the module files into it.
Part 4 of 4:

Running Slax

  1. Re-open your flash drive. If you closed your flash drive, re-open it via File Explorer.
    1. If your flash drive is open, click the "Back" button in the top-left corner of the File Explorer, then skip the next step.
  2. Open the "slax" folder. It should be the only folder on your flash drive.
  3. Open the "boot" folder. This folder is near the top of the flash drive's window.
  4. Run the boot installer. Double-click the bootinst file in the "boot" folder, then click Yes when prompted. This will allow Slax to make your USB flash drive bootable.
  5. Press any key when prompted. Doing so signifies that your USB flash drive is now bootable.
  6. Open your computer's BIOS page. This will vary slightly from Windows computer to Windows computer, but you'll always start by restarting your PC. After the computer shuts down and begins to reboot, you'll press your computer's "BIOS" key, which will change depending on your computer's manufacturer.
    1. The "BIOS" key is usually one of the function keys (e.g., F12), the Del key, or something similar.
  7. Set your flash drive as the primary boot location. Again, this will vary depending on your computer's manufacturer. In most cases, you'll find the "Boot", "Advanced", or "Drives" section in which all of your computer's attached drives are, then you'll use the arrow keys to select your flash drive and press the + key to move the flash drive to the top of the list.
    1. Keep in mind that this will cause your computer to boot from the flash drive rather than its built-in hard drive whenever the flash drive is connected.
  8. Save and exit. Press the "Save and Exit" key that's listed in the key legend at the bottom or on the side of the screen.
    1. You may have to confirm this choice by pressing another key.
  9. Wait for the Slax startup icon to appear. Once you see the Slax four-leaf clover appear, Slax is opening. You should see the Slax desktop appear shortly after this point.
  10. View your installed programs. Click the four-box "Menu" icon in the lower-left corner of the screen to do so. You should see any module programs that you installed here.
    1. If you added any graphical modules, they will appear as part of your system. For example, if you added an icon module which changes the icons in your Slax distribution, the icons will be different upon booting.
    2. You can delete modules from or add modules to your flash drive at any time from within the "slax/modules/" directory.
4 ★ | 3 Vote