Adding more Terminal and GUI in Linux

shubhang Khandelwal
2 min readJul 3, 2023

--

Linux systems provide a robust command-line interface through virtual terminals called TTYs (Teletypewriter Terminals). By default, Linux distributions offer a limited number of TTYs, typically six, which may be insufficient for certain use cases. However, with a few configurations, you can increase the number of TTYs to meet your requirements. In this blog post, we will explore how to add more than six TTYs in Linux, enabling you to have multiple simultaneous terminal sessions.

Adding Additional TTYs:
To increase the number of TTYs in Linux, we need to modify a configuration file called `/etc/systemd/logind.conf`. Follow these steps:

Step 1: Open the Terminal:
Open a terminal session on your Linux system. You can do this by using one of the default TTYs or by opening a terminal emulator.

Step 2: Edit the Logind Configuration File:
Enter the following command to open the `/etc/systemd/logind.conf` file in a text editor with administrative privileges:

sudo nano /etc/systemd/logind.conf

Step 3: Modify the Configuration:
In the opened file, look for the line that starts with `#NAutoVTs=`. Uncomment the line by removing the `#` character at the beginning. Then, change the value to the desired number of TTYs. For example, if you want to add ten additional TTYs, modify the line to:

#NAutoVTs=16(or any other number)

Note: The total number of TTYs will be the value you set plus the default six TTYs.

Step 4: Save and Exit:
Press Ctrl+O to save the file, and then press Ctrl+X to exit the text editor.

Step 5: Apply the Changes:
To apply the changes, restart the `systemd-logind` service. Enter the following command:

sudo systemctl restart systemd-logind

Accessing the New TTYs:
To access the newly added TTYs, use the Ctrl+Alt+F7 to Ctrl+Alt+F<n> key combinations, where `<n>` represents the number of the TTY. For example, if you added ten additional TTYs, you can switch to TTYs 7 to 16 using the respective key combinations.

Conclusion:
Increasing the number of TTYs in Linux allows you to have more simultaneous terminal sessions, providing flexibility and convenience. By modifying the `logind.conf` configuration file and restarting the `systemd-logind` service, you can add additional TTYs beyond the default six. This simple configuration adjustment empowers Linux users to work with multiple terminals efficiently, catering to their individual needs and boosting productivity in the command-line environment.

--

--