Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just 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

  3. #3
    Just 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.

  4. #4
    Just 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.

  5. #5
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    need when the system loaded to pop up a tab or something like that with to chooses GUI or command line
    To go directly to run level 3, add 3 to the end linux /boot/vmlinuz line. To test.
    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.

    Code:
    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
    Grub 2 Basics - Ubuntu Forums

    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

  6. #6
    Just Joined!
    Join Date
    May 2011
    Posts
    3
    Thanks for answers, solved problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •