Results 1 to 6 of 6
Hi all,
I need to make what when the system loaded user need to choose what interface he wants to work, GUI (Gnome) or command line.
Please help!!!
Sorry for ...
- 05-17-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 3
Need help!!!
Hi all,
I need to make what when the system loaded user need to choose what interface he wants to work, GUI (Gnome) or command line.
Please help!!!
Sorry for bad English
- 05-17-2011 #2Just Joined!
- Join Date
- May 2011
- Posts
- 2
Choose GUI if you want an interface
or command line if you want the user not to have an interface.
As simple as that
- 05-18-2011 #3Just Joined!
- Join Date
- May 2011
- Posts
- 3
I need when the system loaded to pop up a tab or something like that with to chooses GUI or command line. Now when the system loaded it shows Gnome login screen.
CTRL+ALT+F1 and CTRL+ALT+F7 isn't the solution.
- 05-18-2011 #4Just Joined!
- Join Date
- May 2011
- Posts
- 2
K, here is what you can try:
Create a script that will run at bootup and ask for a choice from the user (CLI or GUI):
- create a file in the init.d directory -> "touch /etc/init.d/myscript"
- add the neccessary permissions for it to be executable -> "chmod +x /etc/init.d/myscript"
Make a backup of update-rc.d:
"cp update-rc.d update-rc-backup.d"
Then run:
"update-rc.d /etc/init.d/myscript defaults"
In your script "myscript":
(Programming) write a way to show a menu (1- CLI...2-GUI) and to get the answer from the user (keyboard)
if the response is CLI: run in the script "sudo telinit 3".
if its GUI run "sudo telinit 5"
Try to type "linux script bootup" in google if you need more help for your script.
Hope it helps.
- 05-18-2011 #5To go directly to run level 3, add 3 to the end linux /boot/vmlinuz line. To test.need when the system loaded to pop up a tab or something like that with to chooses GUI or command line
When grub screen shows. , Press the letter e to edit the kernel options and by using the using arrow keys, navigate to the line that you wish to edit, then while still in the edit screen use Ctrl+x to boot the computer with your edited options.
You will have to add a extra grub menu line entry for /etc/default/grub for it to stick though. That just works the one time and is only a 1 time boot. Grub defaults back to previous menu entry
I use grub legacy. Mine for reference.
Grub 2 Basics - Ubuntu ForumsCode:title antiX-M11, kernel 2.6.36-1-mepis-smp root (hd0,0) kernel /boot/vmlinuz-2.6.36-1-mepis-smp root=UUID=62f41c57-e269-42ea-b339-19a9ed8b266e ro elevator=noop nosplash quiet nouveau.modeset=0 initrd /boot/initrd.img-2.6.36-1-mepis-smp title antiX-M11, kernel 2.6.36-1-mepis-smp (init-3) root (hd0,0) kernel /boot/vmlinuz-2.6.36-1-mepis-smp root=UUID=62f41c57-e269-42ea-b339-19a9ed8b266e ro elevator=noop nosplash quiet nouveau.modeset=0 3 initrd /boot/initrd.img-2.6.36-1-mepis-smp
Easier to do in grub legacy
Doesn't recovery mode boot option boot to cli in Debian also? Have you tried that?Linux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 05-18-2011 #6Just Joined!
- Join Date
- May 2011
- Posts
- 3
Thanks for answers, solved problem.


Reply With Quote
