User Tools

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
faq [2007/02/12 15:30] damirfaq [2007/02/13 11:56] damir
Line 42: Line 42:
  
 (not yet complete) (not yet complete)
 +
 +== How to run several X-Servers simultaneously ==
 +
 +Have you ever wondered why Linux has 6 different virtual text-terminals but only one graphic-terminal? In fact, Linux has also 6 graphic terminals, it just uses only one by default.
 +
 +When you start your X-Server with the command "startx", the system assumes, you want to send the graphical output to the first graphic-terminal, which you can access by pressing Ctrl-Alt-F7.
 +
 +  "startx -- :0"
 +
 +is normally the same as just "startx", it puts the graphics to the first graphic-terminal
 +
 +  "startx -- :1"
 +
 +starts another X-Server with its output to the second graphic-terminal
 +
 +  "startx -- :2"
 +
 +starts another X-Server with its output to the third graphic-terminal
 +
 +... so we can run upto 6 different X-Servers simultaneously!
 +
 +You probably already knew, that you can switch between the text-terminals with the combination Alt- and the F1 to F6 keys.
 +Parallel you can switch between the graphic-terminals with Ctrl-Alt- and F7 to F12.
 +
 +
 +== How to connect to a remote X-Server, i.e. control it ==
 +
 +Have you noticed that, when you open an X-Server on your box, the system will open the port 7000 (thats the standard)? So it seems possible to connect to this port and trasmit the graphic data over a network(i.e. the internet). For this to be possible you have to do the following configuration steps:
 +
 +  - On the server:
 +
 +     - Allowing the server to send data to your client :
 +       "xhost +[ip]" whereas [ip] is the IP of the client
 +
 +  - On the client:
 +
 +     - Setting the server output to the remote X-Client:
 +     "export DISPLAY="[ip]:0" whereas [ip] is the IP of the client
 +
 +After doing this all programs that use X which are executed on the server will be visible and controllable on the client. The CPU time used by the program, however, will be the server one's.
 +
 +Thats pretty much it. I hope that wasn't too cryptic. Have fun. 
  
 === Mac === === Mac ===