0

Can Linux have only one GUI terminal opened at TTY1 as PTS/0 ?

I searched about this but got nothing anywhere.

I want to open another GUI terminal on my Linux machine at TTY2 as PTS/1 which would let me have two different PTS on the same machine.

Although on my machine, I can have 4 TTY's opened besides one PTS, using Ctrl+Alt+F2 Ctrl+Alt+F3 Ctrl+Alt+F4 Ctrl+Alt+F5, I can not open GUI applications on TTY's

Note: I do not want to open GUI application on different desktop (multiple desktop support in GNOME). I want to open GUI application in different PTS terminal on the same machine.

1

OK, first off, I think you've got your terminology confused here a bit.

The /dev/tty* devices are not graphical terminals. The regular ones (tty1 through tty63) are mapped to virtual consoles, but are not the same thing as virtual consoles. While a desktop environment may be started on each virtual console (with separate instances), it does not actually use the /dev/tty device unless it's started manually from a shell session.

Additionally, neither virtual consoles or /dev/tty devices have anything to do with pseudo-terminals (/dev/pts/* on Linux, often referred to as 'PTYS' or 'PTS'). An application started in a non-graphical session does not use one of these unless it's started via a tool like screen or remotely via ssh. A command-line application started in a graphical terminal emulator (like GNOME Terminal, Konsole or other similar applications) is attached to one, but that pseudo-terminal is associated with the terminal emulator.

Based on what you're saying, I think what you're trying to ask is 'Can I start a graphical application on another virtual console without needing a whole separate desktop instance?'. The rest of my answer is going to assume that's what you mean (because from my perspective, that's the only thing this could mean that makes sense), if I'm wrong about this assumption, don't hesitate to let me know in the comments.

The short answer is that you probably can't achieve what you want in this way. There are all kinds of complicated things going on under the hood in a desktop environment that make everything work properly together, and that work can't be shared across virtual terminals properly without some serious effort.

You may however be interested in the concept of workspaces (called 'Virtual Desktops' in some environments, most notably Windows). They allow you to quickly switch between different sets of applications in much the same way that virtual consoles allow you to quickly switch between different command-line applications. Without knowing what desktop environment you're using, I can't give much more advice on how to use them (each desktop is a bit different in how they're handled), but they probably will cover what you want to achieve with a lot less effort.

  • You're right. That's what I wanted. I found my answer just now. Yes, we can run GUI applications on actual TTY's. There's a workaround. Install init, install i3. Open and login in new TTY (i.e Ctrl+Alt+F2), run startx i3. Then you can run any GUI application in i3. – GypsyCosmonaut Aug 7 '17 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.