Article Title: run two X session windows simultaneously in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Linux, many operations are possible, including running two graphical desktops at the same time. In OS X or Windows, If you want other users to use your desktop, or want to use two different graphic user interfaces at the same time, then you must use "user switching", which will temporarily terminate one desktop and enter another desktop.
This is very effective for most programs. This is useful when you need to run GNOME and KDE at the same time (or another desktop you like. In Linux, you can use XFree86 to perform this operation easily.
When you start an X session window by using a command line, or by logging in to a session window such as KDM or mcm, X will be started in pty7. This allows you to convert the switch from pty1 to pty6 by pressing [Ctrl] [Alt] [F1] to [Ctrl] [Alt] [F6.
You can also switch to the command line and start another X session window. Run the following command:
$ Startx --: 1
This command starts another pty X session, that is, pty8. By default, X starts from session: 0. Therefore, you must tell startX to start session: 1.
Press [Ctrl] [Alt] [F8] to access the new X session window. In addition, you can switch between the first and second session windows. Press [Ctrl] [Alt] [F7] to enter the first session window. Press [Ctrl] [Alt] [F8] to enter the second session window.
You can perform more than one operation. But remember: multiple operations will reduce the response speed of the memory, CPU, and the entire system.
Similarly, you can enable a program in a session window and display it in another window. Run the following command:
$ DISPLAY =: 1 gkrellm &
This command starts GKrellM In the second X session window by setting the DISPLY environment parameter.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.