Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-03-2007, 10:17 PM   #1 (permalink)
C# Be Sharp !
 
Zeeshan Quireshi's Avatar
 
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
Default Boot Ubuntu INto command line

i am using ubuntu 6.10 edgy eft , what i wanna do is that i wanna make a grub boot entry so that when i boot using that entry i get only command-line and no x server or graphical login screen .
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
Zeeshan Quireshi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-03-2007, 10:40 PM   #2 (permalink)
In The Zone
 
unni's Avatar
 
Join Date: Mar 2006
Location: Thiruvananthapuram (Now in Bengaluru)
Posts: 386
Default Re: Boot Ubuntu INto command line

EDIT: I tried this in Ubuntu and found that it won't work. So, please ignore my post.:roll:

This is a temporary method for testing:
When in grub OS selection menu, select the Ubuntu grub entry and press 'e'. Now, select the line which looks like
kernel (hd0,6)/vmlinuz-2.6.17-10-generic root=/dev/hdb9 ro quiet splash splash=verbose
. Again, press 'e'. Now you can edit this line. Add '2' or '3' at the end of the line so that it looks like
kernel (hd0,6)/vmlinuz-2.6.17-10-generic root=/dev/hdb9 ro quiet splash splash=verbose 2
. Now press enter. Then press 'b' to start booting. If you boot into the command line mode as expected, you can make this permanent by editing the /boot/grub/menu.lst file.

To edit the file,

1. Launch terminal. Type su and enter.
2. Now type gedit /boot/grub/menu.lst
3. Copy the Ubuntu entries in the file. There may be 3 to 6 lines for each OS. It begins with "title Ubuntu " and may end with either "initrd ...." or "boot" (I don't remmeber clearly.
4. Paste them after the last line in the file. Now add 2 or 3 as in the above method. Finally, it will look something like this (only the necessary portion of the file is shown here):
Quote:
title Ubuntu, kernel 2.6.17-11-generic
root (hd1,0)
kernel /vmlinuz-2.6.17-11-generic root=/dev/hdb9 ro quiet splash
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault
boot

title Microsoft Windows
root (hd0,0)
makeactive
chainloader +1

title Ubuntu, kernel 2.6.17-11-generic
root (hd1,0)
kernel /vmlinuz-2.6.17-11-generic root=/dev/hdb9 ro quiet splash 2
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault
boot
Here, the values 2 and 3 indicates the runlevel. 3 means you will have netwroking support + everything available in 2.

I have tried this only on Mandriva. That's why I mentioned the temporary method first. If this didn't work for you, post back and wait for the experts. Sorry if I oversimplified this.

Last edited by unni; 04-03-2007 at 08:36 PM.
unni is offline  
Old 04-03-2007, 12:04 AM   #3 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Post Re: Boot Ubuntu INto command line

Debian and Ubuntu has different runlevels while compared to mandrake,suse,fedora etc

default runlevel is 2.while S is single user or 1 also.
3,4,5 are simply the same as runlevel 2;and runlevel 6 will reboot,0=halt

for getting direct CLI,you may need to stop gdm from executing
One solution is to boot into single user level via grub kernel line appnended with a "1" .after reaching single user,run "telinit 2" will get a CLI without gdm started.

https://wiki.ubuntu.com/ReplacementI...direct=upstart

Debian and Ubuntu from edgy onwards uses a replacement for sysVinit called upstart.upstart will make booting much speeder by executing scripts asynchronously or by parallel execution of boot time scripts thus speeding up thus i feel is superior than other distros.though InitNG exists for distros like Gentoo.

edit:solution:
Quote:
In which case, this may work, although I'll add the caveat that I haven't tried this myself. By default Ubuntu starts at runlevel 2, and 3 -5 are just duplicates. Create /etc/inittab as discussed earlier, and set the default runlevel to be 3. Edit the files in /etc/rc3.d to meet your requirements. Specifically the file named /etc/rc3.d/S13gdm starts your X session, so if you delete this (or for safety move it to another location), and then (re)start into runlevel 3, your X session will not start.
source:
http://www.experts-exchange.com/OS/L..._22115162.html
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 04-03-2007, 05:09 AM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Boot Ubuntu INto command line

Yeah the best solution is to disable xserver from your default run level.
prakash, yeah gentoo can use init-ng and a few more too.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 04-03-2007, 09:45 PM   #5 (permalink)
C# Be Sharp !
 
Zeeshan Quireshi's Avatar
 
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
Default Re: Boot Ubuntu INto command line

Quote:
Originally Posted by tech_your_future
Yeah the best solution is to disable xserver from your default run level.
prakash, yeah gentoo can use init-ng and a few more too.
k , which file do i have to edit to do this ?
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
Zeeshan Quireshi is offline  
Old 04-03-2007, 10:33 PM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Post Re: Boot Ubuntu INto command line

beware of what u r trying to do:
move the file /etc/rc3.d/S13gdm to some place in your home folder
Code:
 ~$sudo  mv  -i    /etc/rc3.d/S13gdm      ~/
afterwards edit /boot/grub/menu.lst
and add at the last line:
Code:
title           Ubuntu Edgy
root            (hdx,x)
kernel          /vmlinuz-2.6.17-11-generic root=/dev/sdaxx ro quiet splash 3
initrd          /initrd.img-2.6.17-11-generic
quiet
savedefault
boot
reboot and try this option
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 05-03-2007, 12:06 AM   #7 (permalink)
El mooooo
 
eddie's Avatar
 
Join Date: Jan 2006
Location: India
Posts: 1,414
Default Re: Boot Ubuntu INto command line

imo the following link will be better suited for your requirement.
http://ubuntuforums.org.nyud.net:809...ad.php?t=43516

P.S. Ubuntu Forums are currently down, thus giving a CDN link.
eddie is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2