LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-06-2010, 03:20 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
booting in shell and then start graphic


I have installed ubuntu desktop (not server) because some users want to access the gui (because of their applications). Now what I want to manage is:
1- boot the system in shell mode.
2- if someone want, use startx command to enter graphic mode for his own. otherwise he can continue to use pure terminal shell.

Is it possible to do such thing? how?
 
Old 11-06-2010, 03:52 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
sisco311
September 29th, 2010, 04:28 AM
While bodhi.zazen's suggestion should work, booting with the text kernel parameter will also prevent display managers managed by Upstart (e.g. gdm, kdm and lxdm) from being started at boot time.

If you are using Grub2, then in /etc/default/grub replace:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
with
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
then run:
sudo update-grub

Remove splash to disable the splash screen and/or quiet to make the boot process verbose.

If you wish to create a separate boot option for the text and GUI mode then check out this.
From http://ubuntuforums.org/archive/inde...t-1584286.html
 
Old 11-06-2010, 07:37 AM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Thanks
 
Old 11-06-2010, 09:14 AM   #4
fondspar
LQ Newbie
 
Registered: Nov 2006
Location: 10.1.1.0
Distribution: help.
Posts: 26

Rep: Reputation: 15
Hi, I was wondering about this same thing myself, especially how to make the boot process verbose instead of splash. However I have no /etc/default/grub file. Am I correct to believe I instead will need to edit /boot/grub/menu.lst?

~$ uname -a
Linux 2112 2.6.28-19-generic #66-Ubuntu SMP Sat Oct 16 18:00:58 UTC 2010 x86_64 GNU/Linux


~$ ls /boot/grub/
default e2fs_stage1_5 installed-version menu.lst minix_stage1_5 stage1 xfs_stage1_5
device.map fat_stage1_5 jfs_stage1_5 menu.lst~ reiserfs_stage1_5 stage2

Thanks,
Fonds
 
Old 11-07-2010, 10:13 AM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Then you should open /boot/grub/grub.cfg and find the entry which boot your linux. Mine is:
Code:
menuentry "Ubuntu, Linux 2.6.31-14-generic-pae" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,6)
	search --no-floppy --fs-uuid --set b01d0209-dcad-4ab5-8ceb-ab615c50cc7f
	linux	/boot/vmlinuz-2.6.31-14-generic-pae root=UUID=b01d0209-dcad-4ab5-8ceb-ab615c50cc7f ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic-pae
}
then change "quiet splash" to "quiet nosplash text". This will boot the linux to command prompt only. Then you can type "startx" whenever you want. Also if you want verbose messages then remove "quiet"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Graphic shell stopped working lagu2653 Linux - General 4 12-18-2007 07:20 PM
X11 from non-graphic shell old-dog Linux - Newbie 1 11-17-2006 09:59 AM
How do I disable booting into graphic login on Fedora 4 archeopterixsa Fedora 4 12-14-2005 05:56 AM
Redhat Linux doesnot start in Graphic mode after booting doshi_montu Linux - Newbie 1 04-11-2004 12:54 AM
Slackware 8.1 No start-up graphic jtp51 Linux - General 2 01-02-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:18 PM.

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