Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need to start the system without X11, graphical stuff and such...since this is something I dont really do on a regular base, I'm kinda stuck...
I understand init 3 is the text-only mode (CLI) but...mine starts in 3 already, so, is commenting out the red line enough?
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
## Only one of the following two lines can be uncommented!
# Boot to console
# Boot to X11
'runlevel' would confirm what runlevel you are running as, but I can't conceive of a situation where you wouldn't be in runlevel 3, unless there is something in your runlevel 3 initialization that issues a init 5 or telinit 5 command.
If you are at runlevel 3, then x:5:respawn:/usr/bin/xdm -nodaemon should not have any effect. It would only be used if you went into runlevel 5.
Is it possible that xdm is being started somewhere in your runlevel 3 initialization? Do other people maintain this system other than you? Do you have any packages installed that might have done something funky like that?
I think Arch is Fedora/RHEL derived (clearly you have System V initialization), so 'chkconfig --list' would show you what is being started at runlevel 3 for services implemented the "recommended way". But no matter how implemented, everything not started by inittab has to be started by /etc/rc.sysinit or a subsequently executed rc shell script. That would mean that (if you are in runlevel 3) all of the "Snnxxxxx" scripts in /etc/rc.d/rc3.d (or /etc/rc3.d). (All of the "Knnxxxxx" scripts get executed first. By convention, they are supposed to be stopping daemons as you are entering that runlevel.) Also check what you have in /etc/rc.d/rc.local (/etc/rc.local).
Try this command, grep -Ri "xdm\|x11" /etc/rc*, to see if there is any funny business going on on your system. I don't expect it to find anything, but you never know.
ps. This is all assuming your system is using the traditional inittab startup. My Fedora15 system is now using 'systemd' for initialization. 'systemd' completely ignores inittab. Look for this softlink to see if you have 'systemd': /etc/systemd/system/default.target
Last edited by tommylovell; 08-13-2011 at 03:32 AM.
Not worth phaffing around with inittab.
Interrupt grub and add the single character "1" to the end of the kernel line. Gets you into single-user mode for just that boot. Do your business, and either re-boot or use init to switch to the desired new runlevel.