Reverting from Ctrl - Alt - F1












112















I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.



The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?










share|improve this question




















  • 1





    Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

    – Eliah Kagan
    Jul 26 '14 at 23:29











  • Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

    – Michael Hoffmann
    Aug 23 '15 at 7:19
















112















I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.



The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?










share|improve this question




















  • 1





    Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

    – Eliah Kagan
    Jul 26 '14 at 23:29











  • Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

    – Michael Hoffmann
    Aug 23 '15 at 7:19














112












112








112


36






I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.



The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?










share|improve this question
















I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.



The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?







command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 17 '12 at 15:31









Peyman Mahdian

208210




208210










asked Jun 29 '12 at 14:08









H2ONaClH2ONaCl

3,359204886




3,359204886








  • 1





    Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

    – Eliah Kagan
    Jul 26 '14 at 23:29











  • Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

    – Michael Hoffmann
    Aug 23 '15 at 7:19














  • 1





    Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

    – Eliah Kagan
    Jul 26 '14 at 23:29











  • Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

    – Michael Hoffmann
    Aug 23 '15 at 7:19








1




1





Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

– Eliah Kagan
Jul 26 '14 at 23:29





Related (but not a duplicate): What does “Ctrl + Alt + F12” do?

– Eliah Kagan
Jul 26 '14 at 23:29













Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

– Michael Hoffmann
Aug 23 '15 at 7:19





Thanks, @EliahKagan! Useful comments are so seldom upvoted on StackExchange. I found that related question very useful when dealing with the problem that brought me to this one, and I'm sure others have/will as well. Thank you.

– Michael Hoffmann
Aug 23 '15 at 7:19










7 Answers
7






active

oldest

votes


















143














Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
So to get back into your GUI window manager: type:



Ctrl+Alt+F7



or



Alt+F7



or



Ctrl+Alt+F8





With 17.10 and newer, the login screen is on TTY1, and logged-in users' GUI sessions on TTY2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.






share|improve this answer





















  • 3





    Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

    – kayleeFrye_onDeck
    Sep 7 '16 at 21:24





















25














When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.






share|improve this answer


























  • What i like about this is that this works accross the distros

    – Sergiy Kolodyazhnyy
    Apr 12 '15 at 6:57











  • how to close them all then?

    – Mohamed Ibrahim
    Aug 4 '17 at 20:00



















20














To revert to the GUI desktop you have to press:



Ctrl+Alt+F7






share|improve this answer





















  • 13





    Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

    – Eliah Kagan
    Jun 29 '12 at 14:44











  • On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

    – Hakim
    Sep 13 '14 at 10:04



















17














For completeness, I'll mention the chvt command.
The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:



chvt 7


will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers.
This is useful for scripting (for example, when taking a screenshot of LightDM).






share|improve this answer

































    7














    Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.






    share|improve this answer

































      2














      It has been already mentioned that cycling with Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.



      There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.






      share|improve this answer

































        2














        You can determine on which terminals you and any other users are logged in with the who command. For me it was tty9, so I had to press Ctrl+Alt+F9.






        share|improve this answer

























          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f157617%2freverting-from-ctrl-alt-f1%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          143














          Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
          Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
          So to get back into your GUI window manager: type:



          Ctrl+Alt+F7



          or



          Alt+F7



          or



          Ctrl+Alt+F8





          With 17.10 and newer, the login screen is on TTY1, and logged-in users' GUI sessions on TTY2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.






          share|improve this answer





















          • 3





            Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

            – kayleeFrye_onDeck
            Sep 7 '16 at 21:24


















          143














          Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
          Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
          So to get back into your GUI window manager: type:



          Ctrl+Alt+F7



          or



          Alt+F7



          or



          Ctrl+Alt+F8





          With 17.10 and newer, the login screen is on TTY1, and logged-in users' GUI sessions on TTY2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.






          share|improve this answer





















          • 3





            Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

            – kayleeFrye_onDeck
            Sep 7 '16 at 21:24
















          143












          143








          143







          Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
          Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
          So to get back into your GUI window manager: type:



          Ctrl+Alt+F7



          or



          Alt+F7



          or



          Ctrl+Alt+F8





          With 17.10 and newer, the login screen is on TTY1, and logged-in users' GUI sessions on TTY2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.






          share|improve this answer















          Ctrl+Alt+F1 to F6 are the virtual consoles provided by the getty/agetty programs.
          Ctrl+Alt+F7 is the console where your X server is running. The GUI (Gnome/KDE or any other) runs over X.
          So to get back into your GUI window manager: type:



          Ctrl+Alt+F7



          or



          Alt+F7



          or



          Ctrl+Alt+F8





          With 17.10 and newer, the login screen is on TTY1, and logged-in users' GUI sessions on TTY2 and onwards. So, you may need to use Ctrl+Alt+F2 or Ctrl+Alt+F1 instead.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 28 '18 at 6:35









          muru

          1




          1










          answered Jun 29 '12 at 14:14









          drake01drake01

          2,68511213




          2,68511213








          • 3





            Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

            – kayleeFrye_onDeck
            Sep 7 '16 at 21:24
















          • 3





            Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

            – kayleeFrye_onDeck
            Sep 7 '16 at 21:24










          3




          3





          Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

          – kayleeFrye_onDeck
          Sep 7 '16 at 21:24







          Be forewarned -- if you're trying this with a VM while in Windows, this can disable your extended displays -- use Win + P to recover with Extend

          – kayleeFrye_onDeck
          Sep 7 '16 at 21:24















          25














          When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.






          share|improve this answer


























          • What i like about this is that this works accross the distros

            – Sergiy Kolodyazhnyy
            Apr 12 '15 at 6:57











          • how to close them all then?

            – Mohamed Ibrahim
            Aug 4 '17 at 20:00
















          25














          When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.






          share|improve this answer


























          • What i like about this is that this works accross the distros

            – Sergiy Kolodyazhnyy
            Apr 12 '15 at 6:57











          • how to close them all then?

            – Mohamed Ibrahim
            Aug 4 '17 at 20:00














          25












          25








          25







          When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.






          share|improve this answer















          When you are in a virtual console just press Alt+RightArrow or Alt+LeftArrow to move to next/previous virtual console respectively. Console with X is usually seventh.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 21 '13 at 17:46

























          answered Dec 21 '13 at 13:56







          user134541




















          • What i like about this is that this works accross the distros

            – Sergiy Kolodyazhnyy
            Apr 12 '15 at 6:57











          • how to close them all then?

            – Mohamed Ibrahim
            Aug 4 '17 at 20:00



















          • What i like about this is that this works accross the distros

            – Sergiy Kolodyazhnyy
            Apr 12 '15 at 6:57











          • how to close them all then?

            – Mohamed Ibrahim
            Aug 4 '17 at 20:00

















          What i like about this is that this works accross the distros

          – Sergiy Kolodyazhnyy
          Apr 12 '15 at 6:57





          What i like about this is that this works accross the distros

          – Sergiy Kolodyazhnyy
          Apr 12 '15 at 6:57













          how to close them all then?

          – Mohamed Ibrahim
          Aug 4 '17 at 20:00





          how to close them all then?

          – Mohamed Ibrahim
          Aug 4 '17 at 20:00











          20














          To revert to the GUI desktop you have to press:



          Ctrl+Alt+F7






          share|improve this answer





















          • 13





            Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

            – Eliah Kagan
            Jun 29 '12 at 14:44











          • On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

            – Hakim
            Sep 13 '14 at 10:04
















          20














          To revert to the GUI desktop you have to press:



          Ctrl+Alt+F7






          share|improve this answer





















          • 13





            Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

            – Eliah Kagan
            Jun 29 '12 at 14:44











          • On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

            – Hakim
            Sep 13 '14 at 10:04














          20












          20








          20







          To revert to the GUI desktop you have to press:



          Ctrl+Alt+F7






          share|improve this answer















          To revert to the GUI desktop you have to press:



          Ctrl+Alt+F7







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 22 '12 at 8:48









          Eliah Kagan

          82.6k22227369




          82.6k22227369










          answered Jun 29 '12 at 14:14









          leousaleousa

          834723




          834723








          • 13





            Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

            – Eliah Kagan
            Jun 29 '12 at 14:44











          • On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

            – Hakim
            Sep 13 '14 at 10:04














          • 13





            Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

            – Eliah Kagan
            Jun 29 '12 at 14:44











          • On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

            – Hakim
            Sep 13 '14 at 10:04








          13




          13





          Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

          – Eliah Kagan
          Jun 29 '12 at 14:44





          Or just Alt+F7. Holding down Ctrl is only necessary when switching from the GUI to a text-based virtual console. Switching from one text-based virtual console to another (or to X11) can be accomplished with just Alt+Fn.

          – Eliah Kagan
          Jun 29 '12 at 14:44













          On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

          – Hakim
          Sep 13 '14 at 10:04





          On Freebsd with Lxde, I use Alt+F9 to return to Gui from other virtual consoles.

          – Hakim
          Sep 13 '14 at 10:04











          17














          For completeness, I'll mention the chvt command.
          The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:



          chvt 7


          will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers.
          This is useful for scripting (for example, when taking a screenshot of LightDM).






          share|improve this answer






























            17














            For completeness, I'll mention the chvt command.
            The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:



            chvt 7


            will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers.
            This is useful for scripting (for example, when taking a screenshot of LightDM).






            share|improve this answer




























              17












              17








              17







              For completeness, I'll mention the chvt command.
              The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:



              chvt 7


              will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers.
              This is useful for scripting (for example, when taking a screenshot of LightDM).






              share|improve this answer















              For completeness, I'll mention the chvt command.
              The virtual terminal offers a login prompt, and if you have logged in, you can switch to other VTs:



              chvt 7


              will probably get you back to the GUI, since it usually runs on VT7, as mentioned in the other answers.
              This is useful for scripting (for example, when taking a screenshot of LightDM).







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 12 '15 at 5:41

























              answered Jul 26 '14 at 23:13









              murumuru

              1




              1























                  7














                  Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.






                  share|improve this answer






























                    7














                    Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.






                    share|improve this answer




























                      7












                      7








                      7







                      Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.






                      share|improve this answer















                      Ctrl+Alt+F7 does not work on LM13 Cinnamon. However, Alt+F8 brings it back to GUI.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Sep 9 '12 at 10:33









                      Peachy

                      5,03672843




                      5,03672843










                      answered Sep 6 '12 at 20:21









                      dsiddensdsiddens

                      8112




                      8112























                          2














                          It has been already mentioned that cycling with Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.



                          There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.






                          share|improve this answer






























                            2














                            It has been already mentioned that cycling with Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.



                            There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.






                            share|improve this answer




























                              2












                              2








                              2







                              It has been already mentioned that cycling with Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.



                              There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.






                              share|improve this answer















                              It has been already mentioned that cycling with Alt+ArrowLeft until you get back to your bellowed desktop also works, especially accross distro's (my Fedora 20, for instance, has GUI on F2), so it's convenient.



                              There's also a crude method: login and run sudo service lightdm restart, which will restart your session ( so yes, you will be logged out and will get back to login screen ). This answer also takes into account that your login manager might not be lightdm, but the idea is the same.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Apr 13 '17 at 12:24









                              Community

                              1




                              1










                              answered Apr 12 '15 at 6:56









                              Sergiy KolodyazhnyySergiy Kolodyazhnyy

                              73.8k9154323




                              73.8k9154323























                                  2














                                  You can determine on which terminals you and any other users are logged in with the who command. For me it was tty9, so I had to press Ctrl+Alt+F9.






                                  share|improve this answer






























                                    2














                                    You can determine on which terminals you and any other users are logged in with the who command. For me it was tty9, so I had to press Ctrl+Alt+F9.






                                    share|improve this answer




























                                      2












                                      2








                                      2







                                      You can determine on which terminals you and any other users are logged in with the who command. For me it was tty9, so I had to press Ctrl+Alt+F9.






                                      share|improve this answer















                                      You can determine on which terminals you and any other users are logged in with the who command. For me it was tty9, so I had to press Ctrl+Alt+F9.







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Jun 26 '18 at 7:31









                                      Codito ergo sum

                                      1,5043825




                                      1,5043825










                                      answered Jul 22 '16 at 8:45









                                      AlvaroAlvaro

                                      211




                                      211






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • 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%2faskubuntu.com%2fquestions%2f157617%2freverting-from-ctrl-alt-f1%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

                                          How to change which sound is reproduced for terminal bell?

                                          Can I use Tabulator js library in my java Spring + Thymeleaf project?

                                          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents