Editing X inside VE

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
 
=== Single application ===
 
=== Single application ===
  
To run an X application inside a [[container]], one needs simply to connect to a container with '''ssh -X''':
+
To run an X application inside a [[container]], one need simply to connect to a container with '''ssh -X''':
 
<pre>
 
<pre>
 
host# ssh -2 -c blowfish -X user@address
 
host# ssh -2 -c blowfish -X user@address
Line 100: Line 100:
 
Change your display settings (don't forget to change them back after you establish a connection)
 
Change your display settings (don't forget to change them back after you establish a connection)
  
<pre>DISPLAY=:1.0</pre>
+
<pre>DISPLAY=:1,0</pre>
  
 
Forward your application or desktop over ssh to Xephyr
 
Forward your application or desktop over ssh to Xephyr
Line 140: Line 140:
  
 
===== GDM =====
 
===== GDM =====
Edit the '''gdm.conf''' file and in xdmcp section, comment out the '''0=standard''' line under the [servers] section - this will prevent gdm from trying to launch an X server on the local machine - it will simply listen for xdmcp requests. Insert '''0=inactive''' in [servers] section. Insert '''Enable=1''' in [xdmcp] section. Also, change from VCAllocation=true to VTAllocation=false and comment out the FirstVT=7 line if that lines exists. Change the access restrictions (if any) to suit your needs and then start GDM.
+
Edit the '''gdm.conf''' file and in xdmcp section, comment out the 0=standard line under the [servers] section - this will prevent gdm from trying to launch an X server on the local machine - it will simply listen for xdmcp requests. Also, change from VCAllocation=true to VTAllocation=false and comment out the FirstVT=7 line. Change the access restrictions (if any) to suit your needs and then start GDM.
  
 
=== Client/Host Configuration ===
 
=== Client/Host Configuration ===
Line 152: Line 152:
 
=== Errata ===
 
=== Errata ===
 
On a side note, as of December 2007, I was never able to successfully get an Xserver to run inside a container and have the display output onto virtual-terminal 7 (the Xserver default), However, you can get an Xserver running on the hostnode to display output on virtual-terminal 7 without any special configuration (as the hostnode has direct access to all necessary devices).
 
On a side note, as of December 2007, I was never able to successfully get an Xserver to run inside a container and have the display output onto virtual-terminal 7 (the Xserver default), However, you can get an Xserver running on the hostnode to display output on virtual-terminal 7 without any special configuration (as the hostnode has direct access to all necessary devices).
 
Another user has done this with XDM and X.  Just follow the directions on the wiki.  It is possible.
 
  
 
== See also ==
 
== See also ==
Line 159: Line 157:
  
 
== External links ==
 
== External links ==
* http://www.myatus.co.uk/2009/08/24/x-server-with-sound-inside-an-openvz-proxmox-container/
 
 
* http://forum.openvz.org/index.php?t=tree&th=235&mid=1115&&rev=&reveal=
 
* http://forum.openvz.org/index.php?t=tree&th=235&mid=1115&&rev=&reveal=
 
* http://ait.web.psi.ch/services/linux/software/local/by_task/desktop_sharing/index.html
 
* http://ait.web.psi.ch/services/linux/software/local/by_task/desktop_sharing/index.html

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: