Solved

linux automatically starts in x-window mode

Posted on 2000-02-29
6
230 Views
Last Modified: 2013-12-06
When I start my linux, it does not start in terminal mode and automatically goes to gnome. How can start in terminal mode.
0
Comment
Question by:nabinman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:gruse
ID: 2572122
Linux (or UNIX in general) has so called run levels, which define certain modes of operation for the OS. Traditionally, 6 run levels are used, but only a few are well defined:

0 Shutdown and Halt (Power off, if possible)

1 Single User Mode, a maintenance mode. System is up and running, but only root can log in at the console. No services like networking or printing.

2-5 Multiuser Mode. "Normal" users can log in, elementary services are available.

6 Shutdown and Reboot.

Run levels 2, 3, 4, 5 are not well defined. On a Red Hat Linux, 2 has no  networking, 3 has networking and 5 has X (graphical login screen) and networking. RedHat-based distributions like Mandrake use the same scheme, but other Linux distributions (not to mention other UNIXes) may use other run level definitions.

Your default runlevel is defined in a file called /etc/inittab. BE CAREFUL IF YOU EDIT THIS FILE. Sorry for shouting, but typos in this file can prevent your system from booting. There's a line that reads

id:5:initdefault:

The first two characters may be different. This line says that your default runlevel is 5, on a RedHat system that means that you'll get a graphical login screen. If you change the value in the second field to 3, it'll boot without that login screen.

If you have difficulties determining which runlevel to use, tell me wich distribution you are using.

You can change the runlevel of your Linux system on the fly, using the command init. If you type

init 3

it'll go to runlevel 3, closing your GUI.

If that's too complicated for you (for now), you can simply change to a virtual console and keep your GUI running. From your GUI, type CTRL-ALT-F1, and you switch to a character console. Your GUI typically resides von console 7, so typing CTRL-ALT-F7 takes you back.

Hope that helped!
0
 

Expert Comment

by:gruse
ID: 2572127
Just a correction: Runlevels 0 to 6 are
*seven* runlevels that are traditionally used. Argh...
0
 
LVL 2

Expert Comment

by:Resonance
ID: 2573557
I think what you recommend is fundamentally a bad idea for a novice on any system except RedHat.  If you want to boot only into console mode, you need to find and remove xdm or gdm.

What distribution are you running?
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Accepted Solution

by:
nikoftime earned 50 total points
ID: 2575191
This might help - uncheck the option for start x on boot (I believe it is in LinuxConf)
Respond if it doesnt
0
 

Author Comment

by:nabinman
ID: 2623131
sorry for the delay in replying but I forgot to mention when i boot in linux mode it goes directly to gnome and hangs at the login prompt and hence I wasn't able to do any of above. more help requested.
0
 

Expert Comment

by:saikit
ID: 2688301
Please try to login to single user mode (Level:1) when your Linux starting (i.e. LILO), you may able to use the console and maintain it.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question