Solved

linux automatically starts in x-window mode

Posted on 2000-02-29
6
234 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

631 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