如何在tty8上启动不同的X会话?

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

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

startx -- :1 

你可以试试这个

所以,在文件:/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 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年开始,但它应该有效。