LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-20-2013, 09:34 AM   #1
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Adding Runlevel to Ubuntu 13


Greetings
I'm probably fairly alone in this but this is what I'm used to and like best. I vastly prefer to boot to a Multiuser command line every boot. I know that the recovery mode SingleUser is in the bootloader but that is way too many steps for every boot when what I really want is the full multiuser command line.

I've done this before on Debian based distros but this was years ago (on Xandros to be exact) and OpenSuse12 actually has a user settable option for this, but I think it has become a good idea to check first on modern automatic distros before just jumping in and breaking something important.

Ultimately my question is how do I best add the multiuser CLI environment and make it boot default runlevel? As I have googled this and never see this specifically answered, I'll back off a little and just ask is there some good reason NOT to do this now in Ubuntu?
 
Old 12-20-2013, 07:54 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
Debian and I think also Ubuntu treat runlevels 2-6 the same.

In Debian, I enabled booting to the commandline by installing sysv-rc-conf. It was in the Debian repos and I think would be in the Ubuntu repos.

Then, as root, I ran sysv-rc-conf and turned off the GDM for runlevel three. After that, I set up an .xinitrc file for my user so I could use that to call the GUI.

Sometimes, you have to hunt around a bit to find the correct command to start the GUI. For Fluxbox, for example, it's not "fluxbox." It's "exec startfluxbox."
 
1 members found this post helpful.
Old 12-20-2013, 10:39 PM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
The reason not to do this in Ubuntu is that it is Ubuntu. Their devs know the very best way for you to run your box.

If you do not agree with their way it is because you are an elitist guru. You don't want new people to use Linux. You don't want to learn any new way of doing anything.

That is what I was told anyway.

So I don't use Ubuntu. That is your best choice in my opinion.

Have you, by the way, booted to recovery? You get a very handy root prompt with no need for any password what so ever. Convenient.
 
Old 12-20-2013, 11:14 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Whilst I can sympathise with @widget (and I too gave up on Ubuntu years ago), perhaps http://askubuntu.com/questions/22840...-to-runlevel-3 will be more useful.

Ubuntu uses upstart (or used to anyway) rather than classic sysv init-scripts.

EDIT: see this article linked from my link above - KISS.
(later) - dug up an old (no longer used) netbook with Oneiric on it. The "text" trick works a treat,

Last edited by syg00; 12-20-2013 at 11:38 PM.
 
1 members found this post helpful.
Old 12-21-2013, 06:18 AM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by frankbell View Post
Debian and I think also Ubuntu treat runlevels 2-6 the same.

In Debian, I enabled booting to the commandline by installing sysv-rc-conf. It was in the Debian repos and I think would be in the Ubuntu repos.

Then, as root, I ran sysv-rc-conf and turned off the GDM for runlevel three. After that, I set up an .xinitrc file for my user so I could use that to call the GUI.

Sometimes, you have to hunt around a bit to find the correct command to start the GUI. For Fluxbox, for example, it's not "fluxbox." It's "exec startfluxbox."
Thanks. That sort of bypasses that I wanted the distinct runlevels declared but it seems it will work. Although I'm familiar with startx/xdm syntax, I prefer to just use "kdm" to start rather than calling just one desktop environment, and this too should work. KDM has lots of nice features like desktop selection and "drop back to console" to which I've grown accustomed.

I will try this and report back.
 
Old 12-21-2013, 06:45 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by widget View Post
The reason not to do this in Ubuntu is that it is Ubuntu. Their devs know the very best way for you to run your box.

If you do not agree with their way it is because you are an elitist guru. You don't want new people to use Linux. You don't want to learn any new way of doing anything.

That is what I was told anyway.
LOL well needless to say I disagree with all of the above. Granted I love Slackware but I try to keep my hand in play and yes, there was a time when I tried new distros that I found myself trying to transform them into Slackware, but now as much as possible I try to play the game by their rules. This is not my first rodeo and I have installed and used many versions of Ubuntu and though there were some that I thought were complicated, unstable, messes they kept at it so, so did I.

I am not an elitist guru because I am aware that nobody, not even Linus or Stallman, knows it all and we all have to start somewhere. We don't all follow the same lines of progression either.

I do want new people to use Linux but I must admit that I'd prefer they actually learn some Linux and not be handed "free windows". But still, that's their business, not mine. As long as a Linux distro still exists that does exactly what I want, no more and no less, still exists to satisfy me then why would I resent anyone elses preferences? Part of the beauty of Linux is that malleability.

It should be obvious, at least now, that I do wish to learn new things or I wouldn't spend the hours even trying different distros after all these years. Plus, also obvious, I think I showed my willingness to stay within the confines of canononical by asking here if there was some serious reason to not do this. I mentioned Suse's built in ability to do this not as a taunt, but to show that some similarly "automatic" distros apparently don't find this is a problem at all so I wondered if it was for Ubuntu and did not simply assume either way.

Quote:
Originally Posted by widget View Post
So I don't use Ubuntu. That is your best choice in my opinion.
This is not acceptable. Who can argue that Ubuntu has not evolved and improved? It may never be my main system but I like to keep my options open and be aware of my capabilities and limitations. I find Ubuntu 13x to have improved immensely and worthy of some respect. It is my understanding that while it is both Debian and Ubuntu that have upset the RedHat domination in the critical server market, that it is primarily Ubuntu that is responsible for increasing that lead. That's not trivial in my estimation.


Quote:
Originally Posted by widget View Post
Have you, by the way, booted to recovery? You get a very handy root prompt with no need for any password what so ever. Convenient.
Yes (in fact I mentioned that) and that would be worrisome if it indicated some easy means to gain root from the outside, but afaik, that's not the case.

Look... for many reasons I prefer function, freedom, and power over convenience. I prefer a car with a stick shift but that doesn't mean I haven't ever owned an automatic shift car nor had it transport me for many miles.
 
Old 12-21-2013, 07:05 AM   #7
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by syg00 View Post
Whilst I can sympathise with @widget (and I too gave up on Ubuntu years ago), perhaps http://askubuntu.com/questions/22840...-to-runlevel-3 will be more useful.

Ubuntu uses upstart (or used to anyway) rather than classic sysv init-scripts.
Yes I know and while Upstart may have it's growing pains, they did retain sysVinit compatibility so the unused runlevel(s) should be available. Even (shudder) systemd although NOT backwardly compatible, at least at this point (before Lennart and The Brain take over the world) is able to have use of more than 2 runlevels and allow for "user-defined".

Quote:
Originally Posted by syg00 View Post
EDIT: see this article linked from my link above - KISS.
(later) - dug up an old (no longer used) netbook with Oneiric on it. The "text" trick works a treat,
Oh My! That IS a treat! TYVM.
 
Old 12-21-2013, 07:21 AM   #8
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
I'm going to mark this as solved, I suppose, because the "text trick" really does work perfectly at getting the base of what I want - always booting to multiuser cli.

I should like to say, though that even since Upstart, Ubuntu has the following runlevel arrangment

Quote:
Originally Posted by Wikipedia
Ubuntu

Ubuntu 6.10 (Edgy Eft) and later contain Upstart as a replacement for the traditional init-process, but they still use the traditional init scripts and Upstart's SysV-rc compatibility tools to start most services and emulate runlevels.
Ubuntu runlevels[4] Code Information
0 Halt
1 Single-user mode
2 Graphical multi-user with networking
3-5 Unused but configured the same as runlevel 2
6 Reboot
Previously, and in some distros today, "unused but configured the same as #" meant "User Defined" and apparently has just been labeled differently possibly to not attract too much attention from the irresponsible.

Since I'd added a user defined runlevel to a Debian-based distro or 2 in the past I'd like to try this again, since the advent of Upstart, and not just side-step the issue. So I think I will try it on a play box and not my main since Ubuntu is working quite well at the moment (despite a wrestling match with Ivy Bridge Graphics recognized resolutions, now fixed by my switching from LightDM to KDM and employing xrandr script within it's XStartup)

Thanks to all respondants. Happy Holidays!
 
Old 12-21-2013, 07:57 AM   #9
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Hmmmm... not solved yet

Well guys, I'm dismayed to report that neither

Code:
 changing
 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to 
GRUB_CMDLINE_LINUX_DEFAULT="noquiet nosplash"
or
GRUB_CMDLINE_LINUX_DEFAULT="text"
or
GRUB_CMDLINE_LINUX_DEFAULT=""
works
at least as of Ubuntu 13 (apparently it did on 11)
so it's medical experiments for the lot of ya :P
(sorry, Monty Python just creeps in sometimes)
err... back to the drawing board.

PS and yes, I did "sudo update-grub" successfully each time

PS-2 - For those running grub-pc it is possible to uncomment the
Code:
 # Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
line, but it is rather useless since with modern PCs and Upstart, text blows by so fast it is implausible that anyone can find this useful. Stick to dmesg.

Last edited by enorbet; 12-21-2013 at 08:20 AM.
 
Old 12-21-2013, 08:16 AM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by frankbell View Post
Debian and I think also Ubuntu treat runlevels 2-6 the same.

In Debian, I enabled booting to the commandline by installing sysv-rc-conf. It was in the Debian repos and I think would be in the Ubuntu repos. <some snips_
It is and I installed it and find it a welcome addition to my deep-level toolbox. However, although it does list "lightdm" (which I needed to replace, choosing kdm) and because I never use "gdm", this didn't work for me since kdm is not listed and must therefore be called elsewhere... still looking.
 
Old 12-21-2013, 03:32 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
I don't use kde a lot, but try adding "manual" to /etc/init/kdm.override
 
1 members found this post helpful.
Old 12-22-2013, 02:27 AM   #12
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by syg00 View Post
I don't use kde a lot, but try adding "manual" to /etc/init/kdm.override
Thank you for the tip. I think it may be a step in the right direction but not the whole 9 yards. The upside is that I am learning a lot about Ubuntu (and Upstart), Grub2 and various other .conf files. It has been tedious at times but never really all that dangerous since with either a LiveCD or one of my other distro installs I can fix easily whatever I've broken.

Presently after I create the "/etc/init/kdm.override" file and populate it with "manual" and then following a Ubuntu Forums post which recommends another change, namely removing "splash" from the
Code:
 GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"
line in "/etc/default/grub" file and re-running "update-grub", the system gets stuck in a wait state at

Code:
startpar bridge for notification of upstart job start/stop

Fortunately "Ctl-Alt-Delete" effected a safe reboot. Since I enabled the "'Ctl-Alt-Backspace' = restart xserver" keybind I have most of the tools I need to fix messes.

A side effect of some of the alterations of .conf files is that now the KDM menuitem "'Drop to Console'=Alt-N" now works. It is a welcome tool when one is able to boot to CLI but nerfed considerably as it is, since it means booting to the KDM gui Login Greeter and then dropping back to console (which requires "killall kdm" if one wishes to return to X). So I will keep working on this but tonight I'm tired. So...manana... Ima go play World of Warcraft :P
 
Old 12-28-2013, 10:49 AM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,810

Original Poster
Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
UPDATE - I'm still wrestling with this though I'm pretty happy that I can at least drop back to CLI by using KDM. However I am nearly furious that for so many years now nobody but XFCE is such a pain in the nether regions to get on the menu. Grrrrrrr!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MES5 in runlevel 3 stuck after starting mavisd. Can't change back to runlevel 5 JnPson Linux - Enterprise 3 01-16-2013 05:58 PM
[SOLVED] change the runlevel of ubuntu 11.10 lonelyman Linux - Desktop 4 07-29-2012 10:21 PM
[SOLVED] Getting a text console runlevel in Kubuntu 10.04 (Changing runlevel won't work) gregorian Linux - Newbie 4 09-05-2010 10:50 AM
Adding new service to a runlevel. atlesn Linux - Software 5 06-06-2004 04:56 PM
adding a window manager, using runlevel 3 spork545 Slackware 3 01-16-2004 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration