Linux Looking for very minimal OS, just boot shell

Discussion in 'Tech Support' started by MarkW7, 6 Apr 2010.

  1. MarkW7

    MarkW7 Total Noob

    Joined:
    30 Nov 2008
    Posts:
    1,795
    Likes Received:
    32
    Hey,

    I need to boot a linux OS off a USB, and all i want to be presented with is a linux shell.

    Where i can do

    ./file.sh

    Then that's it - in the script i wrote it'll auto reboot.

    Everything needs to be complete in about 30 seconds.
     
  2. Elledan

    Elledan What's a Dremel?

    Joined:
    4 Feb 2009
    Posts:
    948
    Likes Received:
    34
    Look at embedded distros.
     
  3. Zoon

    Zoon Hunting Wabbits since the 80s

    Joined:
    12 Mar 2001
    Posts:
    5,497
    Likes Received:
    630
    Puppy linux will probably do what you want. It and DSL are both around the 50mb mark.

    Here's a list of various small distros in case any are more suitable for you http://www.linuxlinks.com/Distributions/Mini_Distributions/

    Alternatively you can probably install a minimal version of Debian from the netboot disk, or FreeBSD from its netboot disk, onto your USB stick, for no more than 200 - 300 mb.

    On modern hardware my FreeBSD 8 servers are at CLI ready for login within I'd guess around 30 or 40 seconds from boot loader.
     
  4. MarkW7

    MarkW7 Total Noob

    Joined:
    30 Nov 2008
    Posts:
    1,795
    Likes Received:
    32
    I couldn't find just a link to the .iso of DSL, so i opted for puppy linux.

    I don't want this GUI though, all i need is a CLI so i can type one line of code.
     
  5. UncertainGod

    UncertainGod Minimodder

    Joined:
    18 Oct 2007
    Posts:
    1,424
    Likes Received:
    26
    A basic install of Archlinux will give you nothing more than a CLI that will boot up quit fast indeed.
     
  6. Zoon

    Zoon Hunting Wabbits since the 80s

    Joined:
    12 Mar 2001
    Posts:
    5,497
    Likes Received:
    630
    Okay well stop puppy automatically loading X and it'll dump you to CLI instead!

    Check out /etc/inittab and read what it says.

    Generally you'll find a line that says:

    Runlevel 5 being X11, it initiates this by default.

    Change to:
    Then reboot. Let me know how it goes.
     
  7. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Get the Gentoo minimal install, and slim it down by removing the portage tree and stuff like that...
     
  8. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    2,542
    Likes Received:
    605
    Get the ubuntu mini iso and install to a pendrive with grub on the pen as well, when asked what software to install, just skip, it'll install an Ubuntu even more minimal than Ubuntu Server, pretty much kernel and apt/aptitude, nothing more.
     
  9. MarkW7

    MarkW7 Total Noob

    Joined:
    30 Nov 2008
    Posts:
    1,795
    Likes Received:
    32
    I can't get Puppy linux or DSL to work.

    Tinycore doesn't let me access the sda1 partition.
     
  10. Zoon

    Zoon Hunting Wabbits since the 80s

    Joined:
    12 Mar 2001
    Posts:
    5,497
    Likes Received:
    630
    Well you'll need a pretty full distro for the driver support in that case I guess.

    If your flash disk is several gig, then you won't have a huge problem with the Ubuntu Live distro installed on a USB disk.

    Using the same method as above, you can prevent it from booting into a GUI. There may be specific instructions available for Ubuntu on how to do that - google is your friend.
     
  11. Dogers

    Dogers What's a Dremel?

    Joined:
    3 Dec 2006
    Posts:
    29
    Likes Received:
    0

Share This Page