disabling X display Manager
Hello,
When I boot into linux (I have a dual boot system) the XDM is automatically started. What file or files do I need to modify in order to disable this? Is there a linux equivalent to DOS's autoexec.bat?
Thanks,
Matthew Stapleton
%%%%%%%%%%%%%%%%%%
http://webpages.marshall.edu/~staple12
%%%%%%%%%%%%%%%%%%
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Matthew Stapleton
Hello,
When I boot into linux (I have a dual boot system) the XDM is automatically started. What file or files do I need to modify in order to disable this? Is there a linux equivalent to DOS's autoexec.bat?
Depends on which distor you use, in slackware you edit /etc/inittab and make the default runlevel 3 as in;
id:3:initdefault:
Its around line 24 of the file.
Some other distros work the same, last time i commented on this it seemed some distos do it in other ways, i am sure the users of those distros will comment and help you further on your way.
Your other question is a script file with executable permissions, an example would be.
Create a file called my-first-script,
#!/bin/sh
/bin/echo "This is my first try at a script..."
/bin/date
/bin/echo "That is tdays date"
close file, change permissions;
chmod a+x my-first-script
Now type ./my-first-script
There is a man page for this sort of thing,
man bash
Quoted 5 lines
Thanks,
Matthew Stapleton
%%%%%%%%%%%%%%%%%%
http://webpages.marshall.edu/~staple12
%%%%%%%%%%%%%%%%%%
Signature · 11 lines
Regards Richard [email protected] http://people.zeelandnet.nl/pa3gcu/ - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
search on google for advanced bash scripting guide. It's abut 400 pages and It's REALLY GOOD. I'm reading it... it has many sample script and everything..
Quoted 42 lines · El mi? 11-06-2003 a las 23:30, pa3gcu escribió:
Quoted 5 lines · Matthew Stapleton
Hello,
When I boot into linux (I have a dual boot system) the XDM is automatically started. What file or files do I need to modify in order to disable this? Is there a linux equivalent to DOS's autoexec.bat?
Depends on which distor you use, in slackware you edit
/etc/inittaband make the default runlevel 3 as in;id:3:initdefault:
Its around line 24 of the file.
Some other distros work the same, last time i commented on this it seemed some distos do it in other ways, i am sure the users of those distros will comment and help you further on your way.
Your other question is a script file with executable permissions, an example would be.
Create a file called my-first-script,#!/bin/sh
/bin/echo"This is my first try at a script..."
/bin/date
/bin/echo"That is tdays date"close file, change permissions;
chmod a+x my-first-script
Now type ./my-first-scriptThere is a man page for this sort of thing,
man bashQuoted 5 lines
Thanks,
Matthew Stapleton
%%%%%%%%%%%%%%%%%%
http://webpages.marshall.edu/~staple12
%%%%%%%%%%%%%%%%%%
Signature · 11 lines
Alan Bort Linux Registered User 298277 -Country Manager- [http://counter.li.org] [ http://www.linuxquestions.org ] Username: Ciccio [ http://es.tldp.org ] Ciccio.- - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Matthew Stapleton
Hello,
When I boot into linux (I have a dual boot system) the XDM is automatically started. What file or files do I need to modify in order to disable this? Is there a linux equivalent to DOS's autoexec.bat?
How you disable xdm during boot/init varies a bit by distribution. But there are only 2 usual ways it gets started:
1. In /etc/inittab, some runlevels will start xdm (typically runlevel 5). If your distro does it this way, then look for a line like this one in /etc/inittab:
# The default runlevel.
id:6:initdefault:
and change it to read (probably)
# The default runlevel.
id:2:initdefault:
(This is the more common way of starting xdm.)
2. /etc/inittab will always start *some* init script (this is as close to autoexec.bat as you will get with Linux), and that script in turn customarily runs a bunch of other init scripts, each of which sets up some piece of the OS or starts some background process. Locations vary, but one example of where they are is
/etc/init.d for the actual scripts
/etc/rc2.d for symlinks to the ones run at runlevel 2
(there will be a corresponding /etc/rc?.d for
each runlevel, including an /etc/rcS.d for
single-user mode)
Look in the directory for the default runlevel for a symlink with a name something like "S99xdm". To stop xdm from starting during boot/init, remove this symlink. (This is the less common method of starting xdm, but the one I am more familiar with, since Debian does it this way.)
I've simplified the description of the boot/init process quite a bit in the above (I've lonly mentioned single-user mode in passing, for example), but not in ways that are relevant to the question aout xdm.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Sorry to reply to myself, but there was a potentially confusing typo in my earlier reply.
Quoted 3 lines · Below, I wrote:
then look for a line like this one in
/etc/inittab:
# The default runlevel. id:6:initdefault:
This should have read:
Quoted 3 lines
then look for a line like this one in
/etc/inittab:
# The default runlevel. id:5:initdefault:
In standard practice, runlevel 6 is reboot.
Quoted 28 lines · Ray Olszewski
Quoted 5 lines · Matthew Stapleton
Hello,
When I boot into linux (I have a dual boot system) the XDM is automatically started. What file or files do I need to modify in order to disable this? Is there a linux equivalent to DOS's autoexec.bat?
How you disable xdm during boot/init varies a bit by distribution. But there are only 2 usual ways it gets started:
1. In
/etc/inittab, some runlevels will start xdm (typically runlevel 5). If your distro does it this way, then look for a line like this one in/etc/inittab:
# The default runlevel.
id:6:initdefault:and change it to read (probably)
# The default runlevel.
id:2:initdefault:(This is the more common way of starting xdm.)
2.
/etc/inittabwill always start *some* init script (this is as close to autoexec.bat as you will get with Linux), and that script in turn customarily runs a bunch of other init scripts, each of which sets up some piece of the OS or starts some background process. Locations vary, but one example of where they are is
/etc/init.dfor the actual scripts
/etc/rc2.dfor symlinks to the ones run at runlevel 2
(there will be a corresponding /etc/rc?.d for
each runlevel, including an/etc/rcS.dfor
single-user mode)
Quoted 4 lines
Look in the directory for the default runlevel for a symlink with a name something like "S99xdm". To stop xdm from starting during boot/init, remove this symlink. (This is the less common method of starting xdm, but the one I am more familiar with, since Debian does it this way.)
I've simplified the description of the boot/init process quite a bit in the above (I've lonly mentioned single-user mode in passing, for example), but not in ways that are relevant to the question aout xdm.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
On Thursday 12 June 2003 08:32, Ray Olszewski wrote:
(snip for bandwidth)
Quoted 11 lines
Quoted 11 lines
2.
/etc/inittabwill always start *some* init script (this is as close to autoexec.bat as you will get with Linux), and that script in turn customarily runs a bunch of other init scripts, each of which sets up some piece of the OS or starts some background process. Locations vary, but one example of where they are is
/etc/init.dfor the actual scripts
/etc/rc2.dfor symlinks to the ones run at runlevel 2
(there will be a corresponding /etc/rc?.d for each runlevel, including an/etc/rcS.dfor single-user mode)
Quoted 5 lines
Quoted 5 lines
Look in the directory for the default runlevel for a symlink with a name something like "S99xdm". To stop xdm from starting during boot/init, remove this symlink.
(This is the less common method of starting xdm, but the one I am more familiar with, since Debian does it this way.)
Picking up on that thread, I'm running Deb 3.0, logging into Gnome, and I'd very much prefer a text login.
My /etc/inittab contains
# The default runlevel.
id:2:initdefault:
and /etc/rc2.d contains
S99gdm -> ../init.d/gdm
*Before* I change things I'd like to make absolutely sure - removing (or
renaming) S99gdm will leave me with a text login, right? (I don't wish
to remove it and then find I can't get back in! :)
And then, to start X, do I just use 'startx' as I'm used to with RH? (There seems to be one in /usr/X11R6/bin though its contents are somewhat cryptic to me).
Regards
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
See below.
Quoted 27 lines · cr
On Thursday 12 June 2003 08:32, Ray Olszewski wrote:
(snip for bandwidth)
Quoted 11 lines
Quoted 11 lines
2.
/etc/inittabwill always start *some* init script (this is as close to autoexec.bat as you will get with Linux), and that script in turn customarily runs a bunch of other init scripts, each of which sets up some piece of the OS or starts some background process. Locations vary, but one example of where they are is
/etc/init.dfor the actual scripts
/etc/rc2.dfor symlinks to the ones run at runlevel 2
(there will be a corresponding /etc/rc?.d for each runlevel, including an/etc/rcS.dfor single-user mode)Quoted 5 lines
Quoted 5 lines
Look in the directory for the default runlevel for a symlink with a name something like "S99xdm". To stop xdm from starting during boot/init, remove this symlink.
(This is the less common method of starting xdm, but the one I am more familiar with, since Debian does it this way.)Picking up on that thread, I'm running Deb 3.0, logging into Gnome, and I'd very much prefer a text login.
My/etc/inittabcontains
# The default runlevel.
id:2:initdefault:
Quoted 6 lines
and
/etc/rc2.dcontains
S99gdm -> ../init.d/gdm*Before* I change things I'd like to make absolutely sure - removing (or
renaming) S99gdm will leave me with a text login, right? (I don't wish
to remove it and then find I can't get back in! :)
To be "absolutely" sure, check /etc/inittab for lines of this form:
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6I have no real doubt that your system will offer a standard console login, but seeing that these lines are present (the ones above come from Debian Sid, but this is extremely standard inittab content) is as close to "absolutely" as I can get you.
The other thing to do is to check that when you do start X via gdm, the consoles are present. From the gdm display, you should be able to access them by pressing CTRL-ALT-F1 through CTRL-ALT-F6.
Quoted 3 lines
And then, to start X, do I just use 'startx' as I'm used to with RH? (There seems to be one in
/usr/X11R6/binthough its contents are somewhat cryptic to me).
It's been awhile since I did a Debian-Woody install, but my memory is that there is some specific package you need to install to get startx. If you did a standard X install of Woody, it was probably included. But your phrasing "seems to be" gives me pause -- either an executable app (a script, actually) of this name *is* or *is not* present. Try checking with "which startx".
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
On Wednesday 18 June 2003 01:28, Ray Olszewski wrote:
(snips)
Quoted 5 lines
Quoted 4 lines
*Before* I change things I'd like to make absolutely sure - removing (or
renaming) S99gdm will leave me with a text login, right? (I don't
wish to remove it and then find I can't get back in! :)
Quoted 8 lines
To be "absolutely" sure, check
/etc/inittabfor lines of this form:1:2345:respawn:/sbin/getty 38400 tty1 2:23:respawn:/sbin/getty 38400 tty2 3:23:respawn:/sbin/getty 38400 tty3 4:23:respawn:/sbin/getty 38400 tty4 5:23:respawn:/sbin/getty 38400 tty5 6:23:respawn:/sbin/getty 38400 tty6
Yep, they're there. Would the '2345' be runlevels?
Quoted 8 lines
I have no real doubt that your system will offer a standard console login, but seeing that these lines are present (the ones above come from Debian Sid, but this is extremely standard inittab content) is as close to "absolutely" as I can get you.
The other thing to do is to check that when you do start X via gdm, the consoles are present. From the gdm display, you should be able to access them by pressing CTRL-ALT-F1 through CTRL-ALT-F6.
Yes, they do. But then I didn't know how to get the gdm back :)
Never mind, I just rebooted it.
Quoted 10 lines
Quoted 3 lines
And then, to start X, do I just use 'startx' as I'm used to with RH? (There seems to be one in
/usr/X11R6/binthough its contents are somewhat cryptic to me).It's been awhile since I did a Debian-Woody install, but my memory is that there is some specific package you need to install to get startx. If you did a standard X install of Woody, it was probably included. But your phrasing "seems to be" gives me pause -- either an executable app (a script, actually) of this name *is* or *is not* present. Try checking with "which startx".
Sorry, my vague wording was meant to reflect my unfamiliarity with Debian. There *is* a /usr/X11R6/bin/startx.
And it worked, I have a text login, and 'startx' starts X.
Many thanks!
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
At 11:29 PM 6/18/2003 +1200, cr wrote:
[...]
Quoted 2 lines
Quoted 1 line
1:2345:respawn:/sbin/getty 38400 tty1Yep, they're there. Would the '2345' be runlevels?
Yes.
[...]
Quoted 6 lines
Quoted 3 lines
The other thing to do is to check that when you do start X via gdm, the consoles are present. From the gdm display, you should be able to access them by pressing CTRL-ALT-F1 through CTRL-ALT-F6.
Yes, they do. But then I didn't know how to get the gdm back :)
Never mind, I just rebooted it.
CTRL-ALT-F7 (typically - technically, it is the first VT not occupied by a console, and that is typically F7). [...]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Ray Olszewski
[...]
Quoted 4 lines
Quoted 3 lines
The other thing to do is to check that when you do start X via gdm, the consoles are present. From the gdm display, you should be able to access them by pressing CTRL-ALT-F1 through CTRL-ALT-F6.
Quoted 7 lines
Quoted 2 lines
Yes, they do. But then I didn't know how to get the gdm back :)
Never mind, I just rebooted it.CTRL-ALT-F7 (typically - technically, it is the first VT not occupied by a console, and that is typically F7).
[...]
Just a clarification on the ctrl-alt-F7 bit. I have understood, and have proven in practice, that only alt-F7 is necessary to get back to whatever x session is running in whichever virtual console. In other words, I can do ctrl-alt-F3 and log in. Providing no other x session is running in any other console, I can type "startx" and have Xwindows open up in that console. Should I switch to another virtual console by, say, pressing ctrl-alt-F1, the way I get back to the console where X is running is to press alt-F7 (wihtout using the ctrl key) - no matter on which virtual console I've started it. I'm rehearsing this from memory, but I'm pretty sure that's the way I handle virtual consoles and Xwindows. Of course ctrl-alt-F7 does also get you back to that running x session but, according to my experience, the ctrl key has no role in effecting this. Anyway, I'm not trying to be nit-pickey here, just curious about the way this works and whether I'm doing and understanding things correctly. Can you comment further on this ctrl key aspect, Ray?
Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · James Miller (office)
[...]
Just a clarification on the ctrl-alt-F7 bit. I have understood, and have proven in practice, that only alt-F7 is necessary to get back to whatever x session is running in whichever virtual console. In other words, I can do ctrl-alt-F3 and log in. Providing no other x session is running in any other console, I can type "startx" and have Xwindows open up in that console. Should I switch to another virtual console by, say, pressing ctrl-alt-F1, the way I get back to the console where X is running is to
Quoted 8 lines
press alt-F7 (wihtout using the ctrl key) - no matter on which virtual console I've started it. I'm rehearsing this from memory, but I'm pretty sure that's the way I handle virtual consoles and Xwindows. Of course ctrl-alt-F7 does also get you back to that running x session but, according to my experience, the ctrl key has no role in effecting this. Anyway, I'm not trying to be nit-pickey here, just curious about the way this works and whether I'm doing and understanding things correctly. Can you comment further on this ctrl key aspect, Ray?
This is exactly correct. You *need* the CTRL key as part of the chord only when *leaving* the X display. Otherwise, ALT-F* is sufficient. But CTRL-ALT-F* does always work, and I was trying to simplify the explanation.
I'm sorry ... one correction. If resources allow, it is perfectly possible to run multiple X sessions on a system. The first one will land (usually) on F7, the second on F8, and so on ... though I'm not actually sure how many VTs are defined on typical setups, I do know that they usually go through F8 at least.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 14 lines · Ray Olszewski
At 11:29 PM 6/18/2003 +1200, cr wrote:
[...]Quoted 3 lines
Quoted 1 line
1:2345:respawn:/sbin/getty 38400 tty1Yep, they're there. Would the '2345' be runlevels?
Yes.
[...]Quoted 4 lines
Quoted 3 lines
The other thing to do is to check that when you do start X via gdm, the consoles are present. From the gdm display, you should be able to access them by pressing CTRL-ALT-F1 through CTRL-ALT-F6.
Quoted 7 lines
Quoted 2 lines
Yes, they do. But then I didn't know how to get the gdm back :)
Never mind, I just rebooted it.CTRL-ALT-F7 (typically - technically, it is the first VT not occupied by a console, and that is typically F7).
[...]
I did wonder, later on, looking at that list. I'd already tried F1 to F6 as
suggested, it just never occurred to me at the time to try F7.
Thanks!
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs