To install the graphics driver I need to exit GUI / Gnome and go to the terminal. How can I do this in Ubuntu 18.04? Ctrl(STRG)+Alt+F1...F7 does not work, neither on the desktop, nor on the login screen...
To install the graphics driver I need to exit GUI / Gnome and go to the terminal. How can I do this in Ubuntu 18.04? Ctrl(STRG)+Alt+F1...F7 does not work, neither on the desktop, nor on the login screen...
In Ubuntu 18.04, they have changed things around and you cannot get to tty1, it is always showing the display manager / login screen. If you log in, you then cannot get to tty2 because it becomes the GUI for the first logged in user. The tradition of both GUIs showing on tty7 has ended.
You can get to tty3 by pressing Ctrl+Alt+F3, tty4 by pressing Ctrl+Alt+F4, tty5 by pressing Ctrl+Alt+F5 and tty6 by pressing Ctrl+Alt+F6.
You can then switch between tty3-6 by pressing Alt with the appropriate F-key.
Finally, you can get back to the GUI with Alt+F1 for the login chooser or Alt+F2 for the logged-in user's desktop.
I'm on an 18.04 laptop.
I have to press Fn as well as Ctrl+Alt+F3.
Assuming you're on a Desktop or Laptop, just use:
Ctl+Alt+F2
Or, you can boot into single-user mode, although you probably don't want this as getting internet in this mode can be tricky.
My preferred way of entering recovery mode is to set
via grub. Then, run:
after you get a shell. Then, you can try using
for ethernet. If you use WiFi, try this question.
The "official" way to this under Ubuntu is to pass
systemd.unit=multi-user.target
as a kernel parameter. So in my/boot/grub/grub.cfg
I have the following entry:Unfortunately, the
grub.cfg
file is populated with all kinds of unnecessary information. I usually delete all that and have the above chunk plus a similar one without thesystemd.unit=multi-user.target
which starts upgdm
( The X11 GNOME display manager).Here is how it worked for me, thanks for all the help that brought me there:
Note1: Loading the network driver didn't work for me, the pc always freezes. However I had the nvidia driver installation file locally, so could install it. After that I could not enter gnome any more, so had to reinstall Ubuntu 18.04 completely.
Note2: After installing the Nvidia driver for my graphics card different: via "sudo apt-get install nvidia-390", I always get the error in python "ModuleNotFoundError: No module named 'tkinter'", but of course tkinter is installed. So currently I can not use python... it was the same error in ubuntu 16.04 and the reason why I updated. Hoped it would work in 18.04... I opened a new post for this: After installing Nvidia driver I get "ModuleNotFoundError: No module named 'tkinter'" error in Python3
My original question here how to get to the console is answered and aside from freezing instead of loading the network driver is solved.
To switch to the complete terminal mode in Ubuntu 18.04 and above, simply use the command Ctrl+Alt+F3.
To switch back to the GUI (Graphical User Interface) mode, use the command Ctrl+Alt+F2.
Ctrl-Alt-F3 (4,5,etc) will just switch consoles and won't stop X from running wherever it was. Going into single user mode might work, but isn't the right way to simply stop X, leaving you at the console.
As dargaud mentioned in part of their answer, and I Answered to indicate that was the correct way a few minutes ago at: How do I exit the Gui, and return to a plain command line shell?
The correct answer is to type in a terminal in X: su init 3
I do NOT know, but suspect the machine is not in the exact state when booted in single user mode, as opposed to booting normally, then simply quitting X with init 3 in a terminal, as root or with su.
I've had to do it many times, and just had a thought that maybe init x - where x is some number, for example, init 9... or whatever correct number, might start X11 back up, but try man init and see if you can figure it out without going crazy.