Results 1 to 7 of 7

Thread: Boot into terminal

  1. #1
    Join Date
    Dec 2010
    Beans
    6

    Boot into terminal

    Hi Guys,

    I have been googling my *** off trying to find a way of getting Ubuntu 10.10 desktop edition to boot into the terminal (or runlevel 3?)

    Suggestions have all been from around 2007 and no longer seem to work (creating /etc/inittab, rcconf, sysv-rc-conf all didn't work)

    So how can I do it?

    I don't want to have to install the server edition.

    I'm not sure what I want is even possible but I'm building an arcade game cabinet and I would like the machine to boot into the shell, auto login and run a python script I have made.

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: Boot into terminal

    Try this Thread

  3. #3
    Join Date
    Mar 2009
    Location
    /home/.basement
    Beans
    122
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Boot into terminal

    You could try starting the computer holding shift, should bring you to the grub menu, select recovery.

    You could try booting like normal, in terminal type shutdown now, you might get a prompt to drop to shell.

    For a more permanent solution, try Arch...
    Dell Latitude E5530
    Intel i5-3210 @ 2.5GHz
    16gb DDR3-1333
    Samsung 840 Pro with Windows 8 Pro & Ubuntu 12.10

  4. #4
    Join Date
    Dec 2010
    Beans
    6

    Re: Boot into terminal

    Quote Originally Posted by wojox View Post
    Try this Thread
    Sorry, no dice. I tried adding

    Code:
    if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
      . startx
      logout
    fi
    to ~/.bash_profile with no luck.

    @DarthScape: I would like an automated method

  5. #5
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 17.10 Artful Aardvark

    Re: Boot into terminal

    If you're using grub2, edit /etc/default/grub, change

    GRUB_CMDLINE_LINUX_DEFAULT="splash quiet" to

    GRUB_CMDLINE_LINUX_DEFAULT="text"

    Run sudo update-grub, reboot.

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Boot into terminal

    Welcome to the forums!

    To disable GDM edit the file /etc/default/grub and replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text", then generate a new Grub2 config file:
    Code:
    sudo update-grub
    NOTE: You can delete the quiet option to make the boot process verbose and delete splash to disable the splash screen.

    You can use mgetty to auto login to a virtual console. Install it (it's in the universe repo):
    Code:
    sudo apt-get install mingetty
    Then edit /etc/init/tty1.conf to something like:
    Code:
    # tty1 - getty
    #
    # This service maintains a getty on tty1 from the point the system is
    # started until it is shut down again.
    
    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]
    
    respawn
    exec /sbin/mingetty --autologin USERNAME tty1 linux
    Of course, you have to replace USERNAME with your login name.

    And finally, to auto start your application when you are logging in to vc1 (tty1) add something like:
    Code:
    if [[ $(tty) = /dev/tty1 ]]; then
      command
    fi
    to your ~/.bash_profile file.

    Replace command with the command you want to run.

  7. #7
    Join Date
    Dec 2010
    Beans
    6

    Re: Boot into terminal

    Quote Originally Posted by oldos2er View Post
    If you're using grub2, edit /etc/default/grub, change

    GRUB_CMDLINE_LINUX_DEFAULT="splash quiet" to

    GRUB_CMDLINE_LINUX_DEFAULT="text"

    Run sudo update-grub, reboot.
    You win. Thank you, I did not see this suggested anywhere else.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •