如何在tty8上启动另一个X会话?


14

举例来说,我想在tty8上运行全屏opengl应用程序,并在tty7上安装我的标准GNOME桌面。如何配置Ubuntu以满足我的要求?

Answers:


7

要在tty8上启动新的X会话,请放到tty1(或2-6)并输入

startx -- :1

这可以工作,但声音和键盘仍连接到旧的键盘。当我切换到另一个终端时,我无法使用键盘,并且没有声音出现。但是鼠标的操作,虽然
balki

0

你可以试试这个

因此,在文件中:/etc/X11/gdm/gdm.conf

请在:0和:1中都提到您会喜欢的:

   ...
   [servers]
   # These are the standard servers. You can add as many you want here
   # and they will always be started. Each line must start with a unique
   # number and that will be the display number of that server. Usually just
   # the 0 server is used.
   0=Standard
   1=Standard
   # Note the VTAllocation and FirstVT keys on linux and freebsd.
   # Don't add any vt<number> arguments if VTAllocation is on, and set FirstVT to
   # be the first vt available that your gettys don't grab (gettys are usually
   # dumb and grab even a vt that has already been taken). Using 7 will work
   # pretty much for all linux distributions. VTAllocation is not currently
   # implemented on anything but linux and freebsd. Feel free to send patches.
   # X servers will just not get any extra arguments then.
   #
   ...

http://ubuntuforums.org/showthread.php?t=86451提取。这是从2005年开始的,但是应该可以。


此配置文件:/etc/X11/gdm/gdm.conf不在答案中指定的位置。
bambuntu 2012年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.