Zeeshan Quireshi
C# Be Sharp !
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 .
Here, the values 2 and 3 indicates the runlevel. 3 means you will have netwroking support + everything available in 2.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
source: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.
tech_your_future said: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.
~$sudo mv -i /etc/rc3.d/S13gdm ~/
title Ubuntu Edgy
root (hdx,x)
kernel /vmlinuz-2.6.17-11-generic root=/dev/sdaxx ro quiet splash [U][B]3[/B][/U]
initrd /initrd.img-2.6.17-11-generic
quiet
savedefault
boot