Check Also

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

Enabling AMD GPU for Hashcat on Kali Linux: A Quick Guide

If you’ve encountered an issue where Hashcat initially only recognizes your CPU and not the …

How to fix You can’t access this shared folder because your organization’s security policies block unauthenticated guest access error on Windows 11

If you have the following error on Windows 11 “You can’t access this shared folder …

14 comments

  1. Sir
    I have to enter user name and password 2 times (at cli and gui) , perhaps that was what you called auto login but nothing happens even when i change the /etc/gdm3/daemon.conf file .
    Thank You

  2. Hi. i followed the steps and it works. But i have a problem. It’s waiting approximately 30 seconds after startx command. I think there is a problem on my xconfig settings. Because i get some error messages about xconfig after startx command.

  3. hello dude..

    I am Sagar, I am having already that type of situation on Kali linux machine. On my machine there is above like command line login and I want to go back again, I want permanently again that previous GUI type of graphical display on my kali linux.

    Please help me out in this scenario. … I have also clicked on one of the google ads on your websit -:)

  4. Akshay Deogaonkar

    Great…!!

  5. Nice, but seems dirty, leaves failure messages during boot(not really bad, but makes me want to fix it), and the startx command needs sudo.
    By the way, at the beginning of this post you say to link gdm3 to startx, but in the example you just type start.

  6. Hi, Thanks for the article, but in kali 2.0 this method doesn’t work and Kali team didn’t use gdm3 and chkconfig didn’t work for revert to console mode.
    Do you have any solution?

    • Try to use this command:
      systemctl set-default multi-user.target

      The default is graphical.target. You can get the current default via
      systemctl get-default

      After login, you can launch gnome using startx

      Ethical.falc0n

      • Thank You, But It doesn’t load completely.
        after load the gdm3, It doesn’t load and show the box where I can enter Username and Password for Loging on), so I can’t Login.
        Thank’s anyway

        • By the way, the console mode loads successfully but after I run gdm3 command, the event that I explained above, occurs.

          • You want to come back? It didn’t sound clear, what problems do you have? For disabling the lightdm autostart (boot to CLI) type: ‘systemctl set-default multi-user.target’ to enable lighdm again type: ‘systemctl set-default graphical.target’.

          • No, sorry I’m so bad at explaining.
            I mean the ‘systemctl set-default multi-user.target’ command works successfully and loads console mode, but when I’m in console mode and I want to load and go to Desktop temporary, I don’t want to use ‘systemctl set-default graphical.target’, I use ‘sudo gdm3’ command for loading the login page but it doesn’t load completely, It loads only page and not the Logon boxes and I can’t enter my username and password to enter to the Desktop.

      • Installing chkconfig is not the right way. Systemctl is definitely the “correct” way to do this nowadays.

  7. cp -n /etc/X11/default-display-manager{,.bkup}
    echo > /etc/X11/default-display-manager
    cp -n /etc/gdm3/daemon.conf{,.bkup}
    sed -i ‘s/^.AutomaticLoginEnable = ./AutomaticLoginEnable = True/’ /etc/gdm3/daemon.conf
    sed -i ‘s/^.AutomaticLogin = ./AutomaticLogin = root/’ /etc/gdm3/daemon.conf
    ln -s /usr/sbin/gdm3 /usr/bin/startx

    How can I revert these changes?
    Kali 2 won’t boot in gui anymore. When I type gdm3 or start x nothing happens anymore and I have to reboot..
    Can someone please help. Otherwise I have to reinstall :(

  8. On newer kali linux with systemd this does not work … you will need to do this to actually stop gdm3 on reboot:
    systemctl set-default multi-user.target

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.