Solved

linux automatically starts in x-window mode

Posted on 2000-02-29
6
223 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
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now