Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Quote:
#
# /etc/inittab
#
# Runlevels:
# 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
id:3:initdefault:
# Boot to X11
#id:5:initdefault:
'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.
Indeed he is...in fact, putting an exclamation in front of it works just as well, that way I still know where I left my stuff , by the way, i needed that for something else: installing a video card...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.