举个例子,我想在 tty8 上运行全屏 opengl 应用程序,并在 tty7 上使用标准 GNOME 桌面。我该如何配置 Ubuntu 以满足我的要求?
答案1
要在 tty8 上启动新的 X 会话,请转到 tty1(或 2-6)并输入
startx -- :1
答案2
你可以尝试一下
因此,在文件中:/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 年的,但它应该能用。