![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() Join Date: Sep 2005
Location: Sweden
Beans: 109
|
How To: Multiple X Servers simultaneously
Intro.
I don't shutdown my Window Manager (WM) too often. And I would like to keep it that way. But I still wanted a way to explore linux, in this case with focus on all the available WM's out there. I wanted to try them without shuting down every program I got running (grafical program that is). So I wanted to start a new X Server on say tty8 (tty1-6 text, and tty7 already got one X server). And here is how you can do that. There are also other ways to use this HowTo. Say you are a family of 5, then everyone can use their own WM on tty7-11, and it takes no time to switch. Observe: I haven't used linux too long, and if you need help: I'm not sure if I can help. But this worked (kindof) flawless for me, but you follow this on your own risk. HowTo. First we need to start an X server on tty8 Code:
$ startx -display :1 -- :1 vt8 & Code:
$ echo $DISPLAY Code:
$ startx -display :n+1 -- :n+1 vtN+1 & Now there is suppose to be a X Server running on ttyN (or tty8 in the special case) whitch you can check by pressing Ctrl + Alt + FN+1 (F8 ). It shoud just be a grey (or balck and white) background with a X as a mouse pointer. Now you want some WM in ttyN+1, then you can run Code:
$ gnome-session -display :1 & Code:
$ 'windowmanager' -display :n+1 & Problems. Now you should have your WM (gnome) running on ttyN+1 (tty8 ). This sould be it. At least I can't see why it souldn't work. But for me it didn't. So below I will explain my problems and the solution. First. The first problem whas when I tried to start the X Server, it just went up for a few seconds, and then it crached (with a "Warning: locale not supported by C library, locale unchanged" error). If you get this problem, try running: Code:
$ xinit -display :n+1 -- :n+1 vtN+1 & Second. This was my second problem. When I went back to ttyN (tty7) no programs could start. When I ran for example Code:
$ xterm Code:
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Code:
$ sudo xhost + (If anyone figures out how to use xhost so that one gives say user nils access to ':1' and user kajsa access to ':2', I would be glad to know.) The end. Now it should work, if it doesn't take a look at http://www.ubuntuforums.org/showthread.php?p=1240642 which is the thread I made when trying to figure out how this works. If that didn't help, maybe a part of my source http://gentoo-wiki.com/HOWTO_get_2_users_on_1_pc will help you. And If that doesn't, you are welcome to post here, and I'll see what I can do about it. Have fun.
__________________
Nuvus ordo seclorum. Last edited by Iesos; July 12th, 2006 at 09:12 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|