startx not automatically running on rebootArch Linux VGA video problemUbuntu - Xrandr doesn't change my...

Why is unzipped directory exactly 4.0K (much smaller than zipped file)?

Is a world with one country feeding everyone possible?

Can attacking players use activated abilities after blockers have been declared?

Why was this character made Grand Maester?

Why isn't Tyrion mentioned in 'A song of Ice and Fire'?

Can a UK national work as a paid shop assistant in the USA?

Why did other houses not demand this?

Navigating a quick return to previous employer

Fill area of x^2+y^2>1 and x^2+y^2>4 using patterns and tikzpicture

Are PMR446 walkie-talkies legal in Switzerland?

Have any humans orbited the Earth in anything other than a prograde orbit?

Was this scene in S8E06 added because of fan reactions to S8E04?

Paired t-test means that the variances of the 2 samples are the same?

What is the use case for non-breathable waterproof pants?

Why is std::ssize() introduced in C++20?

Is there an idiom that means that you are in a very strong negotiation position in a negotiation?

Quantum corrections to geometry

Goldfish unresponsive, what should I do?

How does the Earth's center produce heat?

Storing voxels for a voxel Engine in C++

Status of proof by contradiction and excluded middle throughout the history of mathematics?

Alexandrov's generalization of Cauchy's rigidity theorem

If I arrive in the UK, and then head to mainland Europe, does my Schengen visa 90 day limit start when I arrived in the UK, or mainland Europe?

How to remove new line added by readarray when using a delimiter?



startx not automatically running on reboot


Arch Linux VGA video problemUbuntu - Xrandr doesn't change my resolutionnew debian installation doesn't like showing native resolution of displayWhen opening a terminal does not require a login?Is startx deprecated?Ubuntu boot freezes after GRUB (blank screen), but works after warm reboot from WindowsHow to force “startx” at startup?startx turns LCD offRunning ibus with i3 on Ubuntu with multiple usersWhat is the difference between a display (or screen) and a terminal?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















When starting up by machine, I am prompted with a terminal asking me to login, rather than the nice GUI that I am use to. When I login in, I am able to run startx and everything works smoothly.



I added the following to my ~/zprofile but it only ran once I was logged in.



if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
startx
fi


How can I get the login screen that I am use to, to appear again?










share|improve this question









New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

    – steeldriver
    2 hours ago













  • @steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

    – APorter1031
    2 hours ago


















0















When starting up by machine, I am prompted with a terminal asking me to login, rather than the nice GUI that I am use to. When I login in, I am able to run startx and everything works smoothly.



I added the following to my ~/zprofile but it only ran once I was logged in.



if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
startx
fi


How can I get the login screen that I am use to, to appear again?










share|improve this question









New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

    – steeldriver
    2 hours ago













  • @steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

    – APorter1031
    2 hours ago














0












0








0








When starting up by machine, I am prompted with a terminal asking me to login, rather than the nice GUI that I am use to. When I login in, I am able to run startx and everything works smoothly.



I added the following to my ~/zprofile but it only ran once I was logged in.



if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
startx
fi


How can I get the login screen that I am use to, to appear again?










share|improve this question









New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











When starting up by machine, I am prompted with a terminal asking me to login, rather than the nice GUI that I am use to. When I login in, I am able to run startx and everything works smoothly.



I added the following to my ~/zprofile but it only ran once I was logged in.



if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
startx
fi


How can I get the login screen that I am use to, to appear again?







ubuntu boot display startx






share|improve this question









New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 2 hours ago









Jeff Schaller

46k1165150




46k1165150






New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 2 hours ago









APorter1031APorter1031

1011




1011




New contributor



APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




APorter1031 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

    – steeldriver
    2 hours ago













  • @steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

    – APorter1031
    2 hours ago



















  • What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

    – steeldriver
    2 hours ago













  • @steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

    – APorter1031
    2 hours ago

















What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

– steeldriver
2 hours ago







What Ubuntu version? What is the output of systemctl get-default and cat /etc/X11/default-display-manager?

– steeldriver
2 hours ago















@steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

– APorter1031
2 hours ago





@steeldriver Version: Ubuntu 18.04.2 LTS x86_64 and systemctl output: graphical.target

– APorter1031
2 hours ago










1 Answer
1






active

oldest

votes


















0














The Gui is loaded by systemd, when the init system is systemd, this is the case of Ubuntu



Here is a nice answer about the subject



systemctl get-default permit to see what target is set for the startup either multi-user.target or graphical.target



To enable x at startup time you can use:



sudo systemctl enable graphical.target --force
sudo systemctl set-default graphical.target


And to disable it



sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target


Note that /etc/X11/default-display-manager contain the default used display manager (this file is not required tho)



Also find here how to setup the default display manager, this is required as well



For a detailed answer more information about the setup are required (what desktop are you using kde/gnome what dm are using lightdm/sddm etc)






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    APorter1031 is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520045%2fstartx-not-automatically-running-on-reboot%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The Gui is loaded by systemd, when the init system is systemd, this is the case of Ubuntu



    Here is a nice answer about the subject



    systemctl get-default permit to see what target is set for the startup either multi-user.target or graphical.target



    To enable x at startup time you can use:



    sudo systemctl enable graphical.target --force
    sudo systemctl set-default graphical.target


    And to disable it



    sudo systemctl enable multi-user.target --force
    sudo systemctl set-default multi-user.target


    Note that /etc/X11/default-display-manager contain the default used display manager (this file is not required tho)



    Also find here how to setup the default display manager, this is required as well



    For a detailed answer more information about the setup are required (what desktop are you using kde/gnome what dm are using lightdm/sddm etc)






    share|improve this answer




























      0














      The Gui is loaded by systemd, when the init system is systemd, this is the case of Ubuntu



      Here is a nice answer about the subject



      systemctl get-default permit to see what target is set for the startup either multi-user.target or graphical.target



      To enable x at startup time you can use:



      sudo systemctl enable graphical.target --force
      sudo systemctl set-default graphical.target


      And to disable it



      sudo systemctl enable multi-user.target --force
      sudo systemctl set-default multi-user.target


      Note that /etc/X11/default-display-manager contain the default used display manager (this file is not required tho)



      Also find here how to setup the default display manager, this is required as well



      For a detailed answer more information about the setup are required (what desktop are you using kde/gnome what dm are using lightdm/sddm etc)






      share|improve this answer


























        0












        0








        0







        The Gui is loaded by systemd, when the init system is systemd, this is the case of Ubuntu



        Here is a nice answer about the subject



        systemctl get-default permit to see what target is set for the startup either multi-user.target or graphical.target



        To enable x at startup time you can use:



        sudo systemctl enable graphical.target --force
        sudo systemctl set-default graphical.target


        And to disable it



        sudo systemctl enable multi-user.target --force
        sudo systemctl set-default multi-user.target


        Note that /etc/X11/default-display-manager contain the default used display manager (this file is not required tho)



        Also find here how to setup the default display manager, this is required as well



        For a detailed answer more information about the setup are required (what desktop are you using kde/gnome what dm are using lightdm/sddm etc)






        share|improve this answer













        The Gui is loaded by systemd, when the init system is systemd, this is the case of Ubuntu



        Here is a nice answer about the subject



        systemctl get-default permit to see what target is set for the startup either multi-user.target or graphical.target



        To enable x at startup time you can use:



        sudo systemctl enable graphical.target --force
        sudo systemctl set-default graphical.target


        And to disable it



        sudo systemctl enable multi-user.target --force
        sudo systemctl set-default multi-user.target


        Note that /etc/X11/default-display-manager contain the default used display manager (this file is not required tho)



        Also find here how to setup the default display manager, this is required as well



        For a detailed answer more information about the setup are required (what desktop are you using kde/gnome what dm are using lightdm/sddm etc)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        intikaintika

        985410




        985410






















            APorter1031 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            APorter1031 is a new contributor. Be nice, and check out our Code of Conduct.













            APorter1031 is a new contributor. Be nice, and check out our Code of Conduct.












            APorter1031 is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520045%2fstartx-not-automatically-running-on-reboot%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            How big is the pipe buffer?Turn off buffering in pipeIn what order do piped commands run?When would you use...