Changing to console only from SSH

Sharky Forums


Results 1 to 9 of 9

Thread: Changing to console only from SSH

  1. #1
    gran tiburón blanco ewitte's Avatar
    Join Date
    Jul 2002
    Location
    Houston, TX mostly. Lima, Peru partiallly.
    Posts
    7,394

    Changing to console only from SSH

    Does anyone know what files to modify to configure the system to not load X windows at startup? It needs to run console only. The last time I messed with something similar XWindows was disabled by default... and I modified it to run on startup I forget where everything is.

    Eric

  2. #2
    Goldfish tyanni's Avatar
    Join Date
    Nov 2001
    Posts
    90
    Isn't it as simple as changing the runlevel in /etc/inittab, i.e from 5 to 3?

    Tim

  3. #3
    gran tiburón blanco ewitte's Avatar
    Join Date
    Jul 2002
    Location
    Houston, TX mostly. Lima, Peru partiallly.
    Posts
    7,394
    Originally posted by tyanni
    Isn't it as simple as changing the runlevel in /etc/inittab, i.e from 5 to 3?

    Tim
    It could be I'll try that on my test vmware server I'm installing before I do it on the real one though! X has been competing for resources with their SQL database. I need to keep it from running.

    Eric
    Last edited by ewitte; 07-18-2003 at 08:01 PM.

  4. #4
    Catfish
    Join Date
    Sep 2000
    Location
    Durham, NC, USA
    Posts
    225
    Yeah, like he said, it's the line in inittab that looks something like:

    id:5:initdefault:

    Change the 5 to a 3 and you'll start on console at next reboot.

    Then from console type "init 3" and the system will stop running in X-windows mode.

    -Bash

  5. #5
    gran tiburón blanco ewitte's Avatar
    Join Date
    Jul 2002
    Location
    Houston, TX mostly. Lima, Peru partiallly.
    Posts
    7,394
    Originally posted by Bash
    Yeah, like he said, it's the line in inittab that looks something like:

    id:5:initdefault:

    Change the 5 to a 3 and you'll start on console at next reboot.

    Then from console type "init 3" and the system will stop running in X-windows mode.

    -Bash
    It worked. I changed it and just rebooted.

    Eric

  6. #6
    Anime Lovin' Girl Mod sourdaisy's Avatar
    Join Date
    Oct 2000
    Location
    Albuquerque, NM (aka /dev/null)
    Posts
    1,940
    It would have been nice to know that this is a SysV linux box, otherwise the instructions would have been useless.
    "Programming graphics in X is like finding the square root of PI using Roman numerals."
    -Henry Spencer

  7. #7
    Goldfish tyanni's Avatar
    Join Date
    Nov 2001
    Posts
    90
    Is it really necessary to sound so condescending? Yes, I assumed that is was a SysV linux box, but in general, thats a safe assumption. Not to mention that I asked if it was that simple, and gave him ample opportunity to say it wasn't linux.

    Tim

  8. #8
    Anime Lovin' Girl Mod sourdaisy's Avatar
    Join Date
    Oct 2000
    Location
    Albuquerque, NM (aka /dev/null)
    Posts
    1,940
    I didn't mean to sound condescending, so my apologies. I still think, though, that it would have been easier to know without assumptions. You know what they say about people who assume things and I don't like to do that. Whether it be BSD, linux, Unix, Windows, whatever. . .if you don't state what you're using how are the rest of us to know?
    "Programming graphics in X is like finding the square root of PI using Roman numerals."
    -Henry Spencer

  9. #9
    Hammerhead Shark
    Join Date
    Mar 2001
    Location
    Littleton, CO
    Posts
    2,704
    Originally posted by sourdaisy
    if you don't state what you're using how are the rest of us to know?
    Telepathy!

    Seriously, though, this is true. I actually skipped this thread because I didn't feel like asking what was being used, waiting, coming back and trying to help. More information in the first place can surely increase your chances of a solid response/solution.
    Nick_B
    Currently running Ubuntu and Windows 7.

Posting Permissions

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