Re: booting Debian-6 in run level 3
On 2012-01-13, Andrei Popescu andreimpope...@gmail.com wrote: Just comparing the contents of /etc/rc1.d/ and /etc/rc2.d/ should give=20 you a few hints. Well, quite a few things are dead in runlevel one that are alive in runlevel two, including the network (I said one was a subset of two). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnjh2mt0.1v6.cu...@einstein.electron.org
booting Debian-6 in run level 3
Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? -- Thanks and Regards Bijoy Lobo
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 5:51 AM, Bijoy Lobo bijoy.l...@paladion.net wrote: I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. You can add text to the linux grub line. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=szgr5uuoljvgmorcx0jfemnr9b6zgcjt4mtacbvfcq...@mail.gmail.com
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 04:21:11PM +0530, Bijoy Lobo wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Out of the box, this is true, but it is considered acceptable for system maintainers to alter the runlevels. First of all, you need to determine which Display Manager you're using to start graphical mode. Usually this will be gdm or gdm3, but might be kdm, xdm or something else. Find the init-script for that service (/etc/init.d/gdm3, for example). At the top of the script you will find a comment: # Default-Start: 2 3 4 5 Change this to read: # Default-Start: 2 4 5 Next up, find the link to that script in /etc/rc3.d (it will be SXXgdm3 for example, were XX is a number). Delete that symlink. Your system should now be configured not to start the display manager in runlevel 3 (if you intend to switch to runlevel 3 from another runlevel, you will need to do extra work). The modification to the init script should A) persist (it's a conffile so you'll get the opportunity to merge changes at upgrades) and B) mean the symlink doesn't get put back. Now, all you should need to do is reboot, adding 3 to the end of your kernel command line. -- Thanks and Regards Bijoy Lobo -- Darac Marjal -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120113121352.gb28...@darac.org.uk
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 07:06:12, Tom H wrote: On Fri, Jan 13, 2012 at 5:51 AM, Bijoy Lobo bijoy.l...@paladion.net wrote: I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. Thanks, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 12:13:52, Darac Marjal wrote: On Fri, Jan 13, 2012 at 04:21:11PM +0530, Bijoy Lobo wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Out of the box, this is true, but it is considered acceptable for system maintainers to alter the runlevels. First of all, you need to determine which Display Manager you're using to start graphical mode. Usually this will be gdm or gdm3, but might be kdm, xdm or something else. Find the init-script for that service (/etc/init.d/gdm3, for example). At the top of the script you will find a comment: # Default-Start: 2 3 4 5 Change this to read: # Default-Start: 2 4 5 Next up, find the link to that script in /etc/rc3.d (it will be SXXgdm3 for example, were XX is a number). Delete that symlink. This will work, but it is not the recommended way. As far as I know, under Sys V, the canonical method to disable a service in a specific runlevel is to rename the S link to a K link (plus some juggling with sequence numbers, which is obsolete with insserv). There is no need to edit init scripts. I rather recommend sysv-rc-conf (but there are other tools like it) or even update-rc.d (there are examples in the man page). Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On Fri 13 Jan 2012 at 16:21:11 +0530, Bijoy Lobo wrote: I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Your box already boots in CLI mode, it's just that you don't immediately see it when using a Display Manager. CTRL+ALT+F1 will get you there. However, if you mean you do not want X to start you have Tom H's neat solution. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120113132630.GB2926@desktop
Re: booting Debian-6 in run level 3
On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120113132756.GC2926@desktop
Re: booting Debian-6 in run level 3
On 01/13/2012 05:27 AM, Brian wrote: On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 Or you could just set it in inittab. You can also hit edit on grub and just type 3 after your boot options and will over ride the switch to run level 5 and go to 3 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f1035de.2050...@gmail.com
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 05:47:10, Don Juan wrote: Or you could just set it in inittab. You can also hit edit on grub and just type 3 after your boot options and will over ride the switch to run level 5 and go to 3 There is no switch to runlevel 5 in stock Debian ;) (because runlevels 2-5 are identical) Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 13:27:56, Brian wrote: On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 Interesting, even /etc/init.d/gdm has it (which makes it work even in Squeeze, if one uses gdm ;) Thanks, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On 01/13/2012 06:02 AM, Andrei Popescu wrote: On Vi, 13 ian 12, 05:47:10, Don Juan wrote: Or you could just set it in inittab. You can also hit edit on grub and just type 3 after your boot options and will over ride the switch to run level 5 and go to 3 There is no switch to runlevel 5 in stock Debian ;) (because runlevels 2-5 are identical) Kind regards, Andrei Sure technically they are the same but also technically they are different (X vs. no X) and you do switch from one run level to the other, If you just killed X you would no longer be in run level 5. Would change be more acceptable? :P To me though the best would be in inittab since that is Linux wide way of switching the default booting run level -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f103caf.1090...@gmail.com
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 03:28:24PM +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 12:13:52, Darac Marjal wrote: On Fri, Jan 13, 2012 at 04:21:11PM +0530, Bijoy Lobo wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Out of the box, this is true, but it is considered acceptable for system maintainers to alter the runlevels. First of all, you need to determine which Display Manager you're using to start graphical mode. Usually this will be gdm or gdm3, but might be kdm, xdm or something else. Find the init-script for that service (/etc/init.d/gdm3, for example). At the top of the script you will find a comment: # Default-Start: 2 3 4 5 Change this to read: # Default-Start: 2 4 5 Next up, find the link to that script in /etc/rc3.d (it will be SXXgdm3 for example, were XX is a number). Delete that symlink. This will work, but it is not the recommended way. As far as I know, under Sys V, the canonical method to disable a service in a specific runlevel is to rename the S link to a K link (plus some juggling with sequence numbers, which is obsolete with insserv). There is no need to edit init scripts. I agree that switching S to K is better than simply removing the link (it allows you to switch to that runlevel from any other, for example), but I don't agree that there's no need to edit the init script. Next time insserv is run, won't the symlink just get switched back? The better option is to move the 3 from Default-Start to Default-Stop and let insserv re-render the rc?.d directories appropriately. -- Darac Marjal -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120113152126.ga21...@darac.org.uk
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 06:16:15, Don Juan wrote: On 01/13/2012 06:02 AM, Andrei Popescu wrote: On Vi, 13 ian 12, 05:47:10, Don Juan wrote: Or you could just set it in inittab. You can also hit edit on grub and just type 3 after your boot options and will over ride the switch to run level 5 and go to 3 There is no switch to runlevel 5 in stock Debian ;) (because runlevels 2-5 are identical) Kind regards, Andrei Sure technically they are the same but also technically they are different (X vs. no X) and you do switch from one run level to the other, If you just killed X you would no longer be in run level 5. Would change be more acceptable? :P To me though the best would be in inittab since that is Linux wide way of switching the default booting run level Sorry, but this is not what I meant. By default, all runlevels in Debian are *identical*[1]. Because of this it makes no sense for switch/change or whatever to runlevel 5, which is why the default runlevel in Debian is 2 and not 5[2]. [1] actually there is a small difference in inittab itself ;) [2] yes, I know other distros don't do it like this, and no, what they are doing is not a standard, it's just common practice. I've made this confusion too a few years ago :) Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On 13/01/12 15:21, Darac Marjal wrote: On Fri, Jan 13, 2012 at 03:28:24PM +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 12:13:52, Darac Marjal wrote: On Fri, Jan 13, 2012 at 04:21:11PM +0530, Bijoy Lobo wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Out of the box, this is true, but it is considered acceptable for system maintainers to alter the runlevels. First of all, you need to determine which Display Manager you're using to start graphical mode. Usually this will be gdm or gdm3, but might be kdm, xdm or something else. Find the init-script for that service (/etc/init.d/gdm3, for example). At the top of the script you will find a comment: # Default-Start: 2 3 4 5 Change this to read: # Default-Start: 2 4 5 Next up, find the link to that script in /etc/rc3.d (it will be SXXgdm3 for example, were XX is a number). Delete that symlink. This will work, but it is not the recommended way. As far as I know, under Sys V, the canonical method to disable a service in a specific runlevel is to rename the S link to a K link (plus some juggling with sequence numbers, which is obsolete with insserv). There is no need to edit init scripts. I agree that switching S to K is better than simply removing the link (it allows you to switch to that runlevel from any other, for example), but I don't agree that there's no need to edit the init script. Next time insserv is run, won't the symlink just get switched back? The better option is to move the 3 from Default-Start to Default-Stop and let insserv re-render the rc?.d directories appropriately. Further to this, I'd prefer not to touch the scripts in /etc/init.d at all. Instead I'd copy just the header part of the script to a file of the same name in /etc/insserv/overrides and run the insserv update command (I can't remember off the top of my head which options are required). This means that updates to the start-up/shut-down scripts will still be applied, but the run levels will be controlled by the override scripts. -- Dom -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f1058c2.5070...@rpdom.net
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 15:21:27, Darac Marjal wrote: I agree that switching S to K is better than simply removing the link (it allows you to switch to that runlevel from any other, for example), but I don't agree that there's no need to edit the init script. Next time insserv is run, won't the symlink just get switched back? The better option is to move the 3 from Default-Start to Default-Stop and let insserv re-render the rc?.d directories appropriately. $ ls -l /etc/rc2.d/K* lrwxrwxrwx 1 root root 13 oct 10 01:44 /etc/rc2.d/K01gdm - ../init.d/gdm # update-rc.d gdm defaults update-rc.d: using dependency based boot sequencing insserv: warning: current start runlevel(s) (3 4 5) of script `gdm' overwrites defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 6) of script `gdm' overwrites defaults (0 1 6). $ ls -l /etc/rc2.d/K* lrwxrwxrwx 1 root root 13 oct 10 01:44 /etc/rc2.d/K01gdm - ../init.d/gdm But you do probably get rid of those warnings if you edit the init.d script ;) OTOH you will get a dpkg prompt every time there is some change to the script, even for changes in spacing, comments, etc. Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On 2012-01-13, Bijoy Lobo bijoy.l...@paladion.net wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? For me the easiest way to boot into the cli is to either disable or remove your display manager. For gdm3, for instance, you could disable that puppy: update-rc.d -f gdm3 remove Next reboot you'll be in the console (I believe). Then you can startx to start X. That's the way I lived for many years. Or you can: service gdm3 start if you want your display manager back for your X session. You can always bring gdm3 back from the dead: update-rc.d gdm3 defaults I think that's the way it works, anyway. Feels cludgy, but some of the other solutions feel cludgy too. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnjh0nj7.2ut.cu...@einstein.electron.org
Re: booting Debian-6 in run level 3
On 13/01/12 11:40 AM, Curt wrote: On 2012-01-13, Bijoy Lobobijoy.l...@paladion.net wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? For me the easiest way to boot into the cli is to either disable or remove your display manager. For gdm3, for instance, you could disable that puppy: Isn't booting into maintenance mode basically the same as going to the cli? -- Cheers Frank -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f10642e.6050...@videotron.ca
Re: booting Debian-6 in run level 3
Brian wrote: On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 Well I'll be darned. Just goes to show you that I ought to add to my reading list the scripts in /etc/init.d ;-) But I don't find 'text' in kernel-parameters.txt of the kernel documentation. Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jeppdq$3au$1...@dough.gmane.org
Re: booting Debian-6 in run level 3
Andrei Popescu wrote: On Vi, 13 ian 12, 13:27:56, Brian wrote: On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 Interesting, even /etc/init.d/gdm has it (which makes it work even in Squeeze, if one uses gdm ;) But /etc/init.d/kdm does not so KDM users have to do something else. Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jepq31$8fm$1...@dough.gmane.org
Re: booting Debian-6 in run level 3
hvw59601 wrote: Brian wrote: Andrei Popescu wrote: Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 But I don't find 'text' in kernel-parameters.txt of the kernel documentation. It would be really strange to have the Linux kernel project be documenting GNOME behavior and also the reverse of GNOME documenting Linux kernel behavior. Bob signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
Curt wrote: On 2012-01-13, Bijoy Lobo bijoy.l...@paladion.net wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? For me the easiest way to boot into the cli is to either disable or remove your display manager. For gdm3, for instance, you could disable that puppy: update-rc.d -f gdm3 remove Next reboot you'll be in the console (I believe). Then you can startx to start X. That's the way I lived for many years. Or you can: service gdm3 start if you want your display manager back for your X session. You can always bring gdm3 back from the dead: update-rc.d gdm3 defaults I think that's the way it works, anyway. Feels cludgy, but some of the other solutions feel cludgy too. When there was a *true* multi-seat option, meaning 1 box with more than 1 keyboard/mouse/display, there was a reason for a display manager (gdm), the first X had VT consoles and the others did not and were enabled through GDM. That option has disappeared with the improved GDM3 and thus the need for GDM3 itself has gone. Each user logs in as user and does 'startx'. Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jepqmj$e3m$1...@dough.gmane.org
Re: booting Debian-6 in run level 3
Bob Proulx wrote: hvw59601 wrote: Brian wrote: Andrei Popescu wrote: Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 But I don't find 'text' in kernel-parameters.txt of the kernel documentation. It would be really strange to have the Linux kernel project be documenting GNOME behavior and also the reverse of GNOME documenting Linux kernel behavior. True. But then is there a synopsis of *all* possible parameters of the cmdline? Hugo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jepqrh$e3m$2...@dough.gmane.org
Re: booting Debian-6 in run level 3
On 2012-01-13, Frank McCormick debianl...@videotron.ca wrote: For me the easiest way to boot into the cli is to either disable or remove your display manager. For gdm3, for instance, you could disable that puppy: Isn't booting into maintenance mode basically the same as going to the cli? Well, it's going to the cli, but as root, with only a subset of the regular system running (I think). I can't seem to find the exact definition of 'single user mode,' but I do not think it should be considered the equivalent of simply running your machine without a graphical user interface. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnjh0s0v.33f.cu...@einstein.electron.org
Re: booting Debian-6 in run level 3
On Fri 13 Jan 2012 at 11:49:38 -0600, hvw59601 wrote: True. But then is there a synopsis of *all* possible parameters of the cmdline? If you look at what /etc/init.d/gdm3 does to get the 'text' parameter the answer must be 'no'. The possible number is infinite. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120113183150.GD2926@desktop
Re: booting Debian-6 in run level 3
On Vi, 13 ian 12, 17:55:57, Curt wrote: Well, it's going to the cli, but as root, with only a subset of the regular system running (I think). I can't seem to find the exact definition of 'single user mode,' but I do not think it should be considered the equivalent of simply running your machine without a graphical user interface. Just comparing the contents of /etc/rc1.d/ and /etc/rc2.d/ should give you a few hints. Kind regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 8:23 AM, Andrei Popescu andreimpope...@gmail.com wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: On Fri, Jan 13, 2012 at 5:51 AM, Bijoy Lobo bijoy.l...@paladion.net wrote: I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. I have no idea where I picked it up nor do I have a reference but, AFAIK, it's a Debianism that's equivalent to not launching GDM/KDM/... but having all other init daemons run. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=szr28fwlur+wn2scfjsn_lgq4po3qhbvx8z3hxf2uj...@mail.gmail.com
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 8:28 AM, Andrei Popescu andreimpope...@gmail.com wrote: On Vi, 13 ian 12, 12:13:52, Darac Marjal wrote: On Fri, Jan 13, 2012 at 04:21:11PM +0530, Bijoy Lobo wrote: Hi Everyone, I have read online that Debian Squeeze has no differentiation in runlevels from 2-5, although I would like to boot my debian box in CLI mode. Any way I can achieve this? Out of the box, this is true, but it is considered acceptable for system maintainers to alter the runlevels. First of all, you need to determine which Display Manager you're using to start graphical mode. Usually this will be gdm or gdm3, but might be kdm, xdm or something else. Find the init-script for that service (/etc/init.d/gdm3, for example). At the top of the script you will find a comment: # Default-Start: 2 3 4 5 Change this to read: # Default-Start: 2 4 5 Next up, find the link to that script in /etc/rc3.d (it will be SXXgdm3 for example, were XX is a number). Delete that symlink. This will work, but it is not the recommended way. As far as I know, under Sys V, the canonical method to disable a service in a specific runlevel is to rename the S link to a K link (plus some juggling with sequence numbers, which is obsolete with insserv). There is no need to edit init scripts. I rather recommend sysv-rc-conf (but there are other tools like it) or even update-rc.d (there are examples in the man page). You can use /etc/insserv/overrides to override the LSB defaults. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=SywocFSXbe1g6S18mP+v3tãapnrcvpvb86kf2sv6...@mail.gmail.com
Re: booting Debian-6 in run level 3
On Fri, Jan 13, 2012 at 8:47 AM, Don Juan donjuans...@gmail.com wrote: On 01/13/2012 05:27 AM, Brian wrote: On Fri 13 Jan 2012 at 15:23:33 +0200, Andrei Popescu wrote: On Vi, 13 ian 12, 07:06:12, Tom H wrote: You can add text to the linux grub line. Do you have a reference on this? It is the first time I hear about it in 5+ years of Debian. /etc/init.d/gdm3 Or you could just set it in inittab. You can also hit edit on grub and just type 3 after your boot options and will over ride the switch to run level 5 and go to 3 Except that in Debian, 2-5 are the same. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAOdo=swxcvjqvsmpbka6lwuwrbo+bkgbmsdcetrx-egw+pu...@mail.gmail.com