Questions tagged [virtual-consoles]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
3 answers
1k views

Is the difference between physical terminal and Linux virtual terminal the use of serial cable?

In the early days of computing, the setup is usually like this: and we call the VT-100 "physical terminal". But in Linux, we call virtual terminals "virtual" (the ones accessed by ...
JLC's user avatar
  • 317
0 votes
0 answers
24 views

Booting with an NVIDIA GPU, but without nouveau

I am trying to boot a Linux system (Debian 11) with an NVIDIA GPU; I need to avoid loading the nouveau driver, which I can do if I include some options on the linux command line (in grub.cfg): ...
j4nd3r53n's user avatar
  • 715
0 votes
1 answer
26 views

Browser (and other programs?) opens in the current X session the first time, then on the same session even if launched from another X session

Please, correct me if the wording of the title is wrong, as I do want to understand the correct terminology too. The think is, I can swtich using Ctrl+Alt+F N between different window managers each ...
Enlico's user avatar
  • 1,636
1 vote
0 answers
96 views

How is the use of virtual consoles controlled in Debian 12

I noticed that in Debian 12 (amd64, but I guess that's independent of the platform actually), when a user logs into the graphical UI (Xorg based with nvidia), the GDM3 server no longer is active on :0 ...
TJahns's user avatar
  • 35
0 votes
0 answers
40 views

Since when it is possible to open multiple DE/WM in different consoles?

I remember some time ago I couldn't start X in two consoles at the same time. What I mean, if I had i3 running on tty7, I could do Ctrl+Alt+F6 to go to tty6, I could log in, but I couldn't start ...
Enlico's user avatar
  • 1,636
2 votes
1 answer
525 views

Unloading KMS driver / Replacing NVIDIA Linux drivers without rebooting

In the past you could trivially replace NVIDIA proprietary drivers on the fly after switching to the text console, killing X.org and unloading (rmmod) the appropriate NVIDIA modules, and installing ...
Artem S. Tashkinov's user avatar
0 votes
0 answers
252 views

running VSP as SSH command on HP ilo5 hung

I am trying to do a little automation to VSP on HP ilo5. While I can successfully SSH into the ilo and I can run vsp from hpiLO-> prompt I cannot run it directly from remote host as part of SSH ...
rajeev's user avatar
  • 245
0 votes
0 answers
37 views

Letters don't appear in virtual consoles in debian

Firstly, I switched to some virtual console with Ctrl+Alt+F2-6 even right after installing Debian 11 with KDE and, secondly, I tried to type something in that console. No letters appear, but it works ...
sn0's user avatar
  • 1
2 votes
0 answers
234 views

Archlinux boots with German ISO keyboard layout even though US ANSI is defined

I recently switched from DE-ISO to US-ANSI layout and have an issue across my Archlinux machines that I cannot resolve which is a bit painful as the encryption key expects German layout but my ...
q9f's user avatar
  • 2,358
0 votes
1 answer
73 views

Questions about tty

Why are there so many ttys? Are multiple tty necessary? Why are multiple things spread in different ttys? For eg i have the runit logs on tty1, wm on tty7, and a blinking white cursor on the corner of ...
nk2's user avatar
  • 51
1 vote
0 answers
128 views

How to change map of scancode to keycode for wireless keyboard?

I have a wireless Logitech mouse and keyboard combo and I want to remap capslock to leftctrl and vice versa for the Linux console as well as the X terminal so I want to use the instructions here. The ...
Satrapes's user avatar
1 vote
1 answer
475 views

Does ssh give access to the virtual console, to a terminal emulator, or what? [duplicate]

As far as I've understood, a terminal emulator is a GUI-based program which gives me a terminal-like viewport and allows me to interact with it just like I'd do with a terminal, except that it has all ...
Enlico's user avatar
  • 1,636
2 votes
1 answer
427 views

How can I restore the Linux console font back to the kernel built-in font?

My Linux kernel, by default, uses the big 16x32 Terminus font that is built into the kernel (with CONFIG_FONT_TER16X32) for the framebuffer console. I just installed the "kbd" package and ...
user534271's user avatar
13 votes
4 answers
3k views

How to copy/paste between a console and an X session?

What's the fastest way to copy/paste between a non-graphical console (<Ctrl><Alt><F...>) and an X session ? Right now : I select the text with the mouse on the console (I've ...
ChennyStar's user avatar
  • 1,745
2 votes
2 answers
449 views

How to know on which virtual console X11 is running?

I want to know on which virtual console the X11 is runnning. Of course, I can know it by invoking the ps command and watching the process tree. Or, I can know it by pressing ctrl+alt+F1, ctrl+alt+F2, ....
user356126's user avatar
2 votes
2 answers
2k views

Special handling of Ctrl-J

When I press Ctrl-V Ctrl-J in a shell (under urxvt), it starts a new line (positions the cursor at the beginning of a new line), instead of printing ^J. In vim it prints ^@. The same situation is in ...
x-yuri's user avatar
  • 3,373
0 votes
0 answers
189 views

Random log out of tty1 while typing

I experienced a sudden log out from tty1 where I run the i3 window manager. While typing stuff, the screen went black, and in a matter of seconds I was back to the login screen (I use no login manager)...
Enlico's user avatar
  • 1,636
1 vote
0 answers
678 views

Jump to line in nano

When using nano in any of several terminal emulators Ctrl + / invokes Enter line number, column number: dialog. However when working from a virtual terminal e.g. Ctrl + Alt + F4 nothing happens. Why?
Vorac's user avatar
  • 3,077
0 votes
1 answer
764 views

Can't switch to virtual consoles as usual

On previous Ubuntu and now NixOS on Dell Inspiron-7559, I have found that the virtual consoles are unusual compared to Thinkpad. I found that I have to press Fn besides the normal key bindings, i.e. ...
Ben's user avatar
  • 111
0 votes
1 answer
746 views

How to disable VT console when running Ubuntun 20.04 under Wayland server

I am now running Ubuntu 20.04, and using server: Wayland. I have no idea how to disable virtual console switch under Wayland. Under the X.org server adding this: Option "DontVTSwitch" &...
harry wang's user avatar
1 vote
0 answers
225 views

Refresh X11 display on an unfocussed virtual console

I am running two X11 desktop sessions (via 2x startx) on two different virtual consoles. I am using a chromecast to continuously cast X11 running on the second virtual console, vt7, as a kind of ...
silico-biomancer's user avatar
0 votes
1 answer
73 views

Can't drop down to virtual console. All I see are the system login/boot messages (like a bootup screen) - can't type anthing

Ctrl+Alt+F1 workedgave me access to the console before, now it shows me the boot up and login process messages ("started CUPS, network manager etc.) The funny thing is my graphical session works ...
user27636's user avatar
  • 183
2 votes
0 answers
666 views

How to increase font size in virtual console (tty) in Ubuntu 20.04 on 4k screen? Or how to change the resolution?

I am using a dell XPS 13 laptop with 4k screen and the text on the virtual console is very small. I would like to increase the font size. With the command sudo dpkg-reconfigure console-setup I took: ...
blabla444's user avatar
0 votes
2 answers
2k views

How can I change cursor shape in tty?

I want to change my tty cursor shape underline to block. I tried this: if [[ "$TERM" == "linux" ]]; then echo -e -n "\x1b[\x32 q"; fi It's working on gnome-terminal ...
user avatar
1 vote
0 answers
1k views

How can I embed linux virtual machines in a website or a webapp?

I am planning to start a project to build a webapp, and I had an idea that I have seen in many places. I have seen some websites where they have a linux virtual machine and a bash terminal is embedded ...
shammakh2's user avatar
0 votes
0 answers
118 views

Having a shell with console connection without using the physical port in Linux system

A program starts when you are connected to Linux by console port. Otherwise, it refuses to start. I have to connect to my server remotely by SSH connection. I'm looking for a way to do something to ...
A.A's user avatar
  • 137
1 vote
1 answer
410 views

shift altgr combination for console keymap

I am using Artix Linux with OpenRC. I want to define a custom console keymap to generally use the US-design, but add some extra functionality for German umlauts. The following does work: /usr/share/...
maddingl's user avatar
  • 594
1 vote
1 answer
96 views

What handles virtual console cursor specifics?

In the Linux source code, specifically in linux/drivers/video/console/vgacon.c, there is a switch case block for cursor shapes. Each of these shapes are rectangles of the same width and varying ...
Not me's user avatar
  • 169
0 votes
0 answers
31 views

<Crtl>-<arrow> is not different from <arrow> in virtual console [duplicate]

I rarely use virtual consoles. Thus I just noticed that some of my bash key bindings do not work there. The reason is probably that the key codes (what is shown after pressing Ctrl-V) for Ctrl-→ and → ...
Hauke Laging's user avatar
  • 90.4k
1 vote
0 answers
236 views

Stop Wayland / Sway from intercepting virtual console hotkey (Alt-F1, etc)

I am using Wayland / Sway on Arch with the x-compatibility layer enabled and it is consuming keystrokes, notably the Alt-F1 hotkey necessary to get to a virtual console. I suspect it is the x-layer ...
Tyler Durden's user avatar
  • 5,661
2 votes
2 answers
125 views

How to include my virtual console ID in the prompt, in FreeBSD

When I use virtual consoles ALT-F<1~n> in FreeBSD, I want my 'zsh', 'sh' (and possibly other shells) startup scripts to include the virtual console number in the prompt, if it's not the default ...
Stilez's user avatar
  • 1,261
1 vote
2 answers
222 views

What application manages the consoles

With Alt + Fn you can switch between virtual consoles in most Linux distributions. What application handles the switching of consoles and how? I suppose it has to read the keyboard input before all ...
elFreak's user avatar
  • 13
3 votes
1 answer
2k views

How to enable underlines and other formattings on a color tty?

I'm on Arch Linux (a 32 bits alternative version), and recently I've discovered that the blue lines I used to see in Vim with :set cursorline were supposed to be underlined, and not blue. That got me ...
Micael Jarniac's user avatar
2 votes
0 answers
49 views

Is there a power manager for text consoles?

I use XFCE on my laptops. When I'm working inside X11, xfce4-power-manager works well, and the system goes to sleep after 15 minutes of inactivity. But when I switch to a Linux text VT (i.e. by ...
Arnie97's user avatar
  • 257
-2 votes
2 answers
530 views

Can I start Debian on a text virtual console in a virtual machine? [duplicate]

I have created a Debian virtual machine in virt-manager/KVM/QEMU. When I run the Debian virtual machine, I don't really need the desktop environment, which is also resource consuming. Can I start ...
Tim's user avatar
  • 102k
2 votes
1 answer
1k views

How to reset keyboard driver?

I have a KVM switch sharing my USB keyboard between Linux and Windows systems. If the switch is set to the Linux box when it boots up then the keyboard works fine. If I switch away to the Windows box ...
mayaknife's user avatar
  • 141
2 votes
1 answer
968 views

How is the number of accessible virtual consoles decided?

My Ubuntu 18.04 has /dev/tty{0..63} (and /dev/ttyS{0..31}). Does it mean I have 63 virtual consoles (/dev/tty0 isn't an independent virtual console, and /dev/ttyS{0..31} are perhaps not virtual ...
Tim's user avatar
  • 102k
4 votes
2 answers
738 views

Is a virtual console running as a process and implemented based on pseudoterminal?

Linux has 7 virtual consoles, which correspond to 7 device files /dev/tty[n]. Is a virtual console running as a process, just like a terminal emulator? (I am not sure. It seems a virtual console is ...
Tim's user avatar
  • 102k
2 votes
1 answer
939 views

On Qubes OS 4.0, how to get xl console access to sys-net?

I tried xl console sys-net which is something that works for any other VM (AppVM, TemplateVM), it even works for sys-net-dm (I don't know what that is though) [ctor@dom0 ~]$ time sudo xl console ...
user avatar
1 vote
1 answer
6k views

Why is VT switching not working for Xorg run as root?

Version of affected software: $ rpm -q --whatprovides /usr/bin/Xorg xorg-x11-server-Xorg-1.19.6-8.fc28.x86_64 (In other words, this is on a currently up-to-date install of Fedora 28 Workstation). ...
sourcejedi's user avatar
  • 50.4k
7 votes
0 answers
420 views

How to open different virtual consoles on different monitors?

I use a 2-display set-up (a laptop with a secondary 1280x1024 SXGA monitor attached to it) and whenever I switch to a virtual console (e.g. by pressing Ctrl+Alt+F2) the secondary monitor switches to ...
Ivan's user avatar
  • 17.7k
1 vote
1 answer
256 views

How to connect a GUI terminal emulator to a virtual console?

I use full-screen virtual consoles (those you can switch to with Ctrl+Alt+Fx) actively but some times I would like to view/interact with them via an X terminal window without actually switching to ...
Ivan's user avatar
  • 17.7k
4 votes
0 answers
3k views

Single-user mode output to console (tty1) AND serial (ttyS0)

I am using grub2 on CentOS 7. I would like to know if it's possible to display output to both serial (ttyS0) and console (tty1) when I attempt to boot into single user mode. The ultimate goal is to ...
harperville's user avatar
2 votes
3 answers
668 views

key binding to increment/decrement virtual console in X

One can change virtual consoles (or virtual terminals, VTs) by pressing Ctrl+Alt+Fn (where Fn represents F1, F2, etc.). In addition, when not running X, one can press Alt and the arrow keys to cycle ...
user001's user avatar
  • 3,698
1 vote
2 answers
1k views

Move terminal typed input to new line when console application/script displays output text

Current situation: When an application/script has been started as a background process from a terminal and is providing output to the console (i.e. to STDOUT, thus no output redirection), when I type ...
atux's user avatar
  • 29
6 votes
3 answers
8k views

Multiple virsh/kvm guest consoles without graphics

I have a serial console working for a centos7 guest without graphics, which I access with virsh console vm. The guest has the appropriate console=ttyS0,115200n8 kernel command line parameter for it. ...
Irfy's user avatar
  • 215
5 votes
1 answer
1k views

Remove shortcuts to switch virtual terminals on Linux

When you are running Raspbian without graphics (GNU bash), only in bash mode, if you press ALT+F2, ALT+F3... you switch from current tty to another. How to make that if you press these shortcuts ...
Jeff86's user avatar
  • 53
0 votes
2 answers
958 views

Text size in the terminal

So after 3 times of trying to install arch Linux, I finally succeeded. I've noticed that when I was booting from my USB drive, the text size in the terminal was a lot smaller than it is when using ...
Keira's user avatar
  • 141
3 votes
1 answer
2k views

X: alt/ctrl/f1 doesn't work any more after turning the display off and on again with xrandr

(After editing significant new infos into the question) After turning a display off from command line (xrandr --output ... --off), and then turning it back (xrandr --output ... --auto), my X desktop ...
peterh's user avatar
  • 9,731
4 votes
1 answer
3k views

How To Switch to Virtual Terminal Running X11 as Subprocess of Login Shell?

I remember switching between TTYs on Ubuntu Linux and being able to switch back and forth between an active X session (Unity/KDE/XFCE) and a terminal on another numbered TTY thing / virtual console. I ...
Greg Nisbet's user avatar
  • 3,076