Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How Do I log off, kill startx and switch to pure console

  1. #1
    Join Date
    May 2010
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    How Do I log off, kill startx and switch to pure console

    I am testing Lucid right now and I want to log out completely to console so I can delete the ubuntu default user. But whenever I log out I get the welcome "log in " page. How can I have just the console?

    Thanks

  2. #2
    Join Date
    Dec 2008
    Location
    UK
    Beans
    155
    Distro
    Ubuntu

    Re: How Do I log off, kill startx and switch to pure console

    Try Logging off as normal, ctrl-alt-F1, login to the console and then

    Code:
    sudo init 3
    Does that take you to run level 3 as I would expect?
    Ubuntu 18.04

  3. #3
    Join Date
    Jun 2008
    Location
    England
    Beans
    160
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How Do I log off, kill startx and switch to pure console

    I just tried to jump straight to init1 but ubuntu didn't like it lol.

    How I did it was reboot, load up recovery mode. Then from there you can drop to root shell, which I think is init 1, not sure why I couldn't get there before. From here you log into a root console. If you want to create another user you can do it all here, then run

    Code:
     init 3
    to get back to multi-user mode

    log in and
    Code:
     startx
    and you'll be in unbuntu gui with your new user

  4. #4
    Join Date
    Jun 2008
    Location
    England
    Beans
    160
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How Do I log off, kill startx and switch to pure console

    Just done some tests. Logging out and switching to a terminal will be an easier way to do it. However, as far as I know you do not need to switch to init 3, just log in as root. And I think X is still running so you wont be able to come out of by running startx you'll have to go for a reboot.

    When I tried to get to init 1 from the console I still couldn't, anyone know why?

  5. #5
    Join Date
    Mar 2008
    Location
    Back to India
    Beans
    278
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: How Do I log off, kill startx and switch to pure console

    it is not advisable to delete the default user.
    Do you just want to login to some other user completely, with out seeing the default user ?

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Beans
    Hidden!

    Re: How Do I log off, kill startx and switch to pure console

    Quote Originally Posted by burton247 View Post
    Just done some tests. Logging out and switching to a terminal will be an easier way to do it. However, as far as I know you do not need to switch to init 3, just log in as root. And I think X is still running so you wont be able to come out of by running startx you'll have to go for a reboot.

    When I tried to get to init 1 from the console I still couldn't, anyone know why?
    for killing X

    in tty; (ctrl + alt + f1) kill x as root.
    Code:
    sudo service gdm stop
    or
    Code:
    sudo /etc/init.d/gdm stop
    to start it again
    type
    Code:
    sudo service gdm start
    or
    Code:
    sudo /etc/init.d/gdm start
    When your thread it solved: go to thread tools > Mark this thread as solved
    for SIS 771/671 use xcompmgr to have transparent terminals. just load it at startup.

    And then they asked: what's a pbkac error?

  7. #7
    Join Date
    May 2010
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How Do I log off, kill startx and switch to pure console

    Does anyone know why in "Login Screen" settings the "Login as .... automatically" is disabled and how can I enable it?

  8. #8
    Join Date
    Nov 2007
    Beans
    586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How Do I log off, kill startx and switch to pure console

    Quote Originally Posted by burton247 View Post
    I just tried to jump straight to init1 but ubuntu didn't like it lol.

    How I did it was reboot, load up recovery mode. Then from there you can drop to root shell, which I think is init 1, not sure why I couldn't get there before. From here you log into a root console. If you want to create another user you can do it all here, then run

    Code:
     init 3
    to get back to multi-user mode

    log in and
    Code:
     startx
    and you'll be in unbuntu gui with your new user
    Jumping to Init 3 will not do the trick as Ubuntu's default runlevel is runlevel 2; in Debian systems Runlevels 2 to 5 have the same services so it won't make any difference. Runlevel 1 (init 1) is Single-user mode, it doesn't configure network nor start demons.
    The method mhgsys suggested should work.

  9. #9
    Join Date
    Jun 2008
    Location
    England
    Beans
    160
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How Do I log off, kill startx and switch to pure console

    Quote Originally Posted by kukubau View Post
    Does anyone know why in "Login Screen" settings the "Login as .... automatically" is disabled and how can I enable it?
    You have to go admin --> users and groups and enable it there.



    Going from init 1 to 3 then starting x working fine for me. What's wrong with using single user mode to delete a user though? I would have thought it was safer as you can only be logged on as root and not another user

  10. #10
    Join Date
    May 2010
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How Do I log off, kill startx and switch to pure console

    Quote Originally Posted by burton247 View Post
    You have to go admin --> users and groups and enable it there.
    Even if I login as root, the "Login as" box is disabled.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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