Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

NX inside VE

1,281 bytes added, 22:19, 2 January 2014
no edit summary
You can run full graphical remote desktop inside container using [http://en.wikipedia.org/wiki/NX_technology NX technology]. This is handy for when you work from home and you wish to run a web browser on your work's internal network to access local resources. You can use NX client to connect to remote NX server.
 
[http://www.x2go.org/ x2go] is a related project that uses a fork of the NX3 GPL'ed libraries and works fairly well and doesn't have the limitations that the free (gratis) version of NX from NoMachine has. x2goserver and x2goclient packages are available as stock packages in several distros including Fedora 19 and 20, as well as being available for RHEL6/clones via the EPEL repository. If you can't find x2go packages in your distro's stock repository, check the x2go website for packages. x2go is actually easier to setup. Just install the desired GUI desktop inside of your container, install x2goserver, enable the x2gocleansessions service, make sure sshd is enabled... and connect as a user account over ssh via the x2goclient from the desired remote machine making sure to select the appropriate settings in the client.
 
= Fedora =
 
[[File:NX server on Fedora 12.png|thumb|300px|Connecting remotely with NX Client to Fedora inside OpenVZ container.]]
* Use fedora template to create new container and install desktop of your choice:
Example:
<pre>wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm
wget http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpmwget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm</pre>
Install X and XDM
<pre>apt-get install xorg xdm</pre>
Then add this 3rd party repo to sources.list. (Warning: the datakeylive.com repository below is obsolete! No ubuntu repository offers freenx at the moment) <prett>deb <s>http://www.datakeylive.com/ubuntu </s> gutsy main<br>deb-src <s>http://www.datakeylive.com/ubuntu </s> gutsy main<br></prett>Install the repo keys and update:<br><prett>wget <s>http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key </s> -O - | apt-key add -<br>wget <s>http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key </s> -O - | apt-key add -<br>
sudo apt-get update
</prett>
Install FreeNX (*)
<pre>
</pre>
You '''can't print from VE''' to client PC easily because printing in NX is realized via samba-mount of shared client's printer and CIFS isn't virtualized yet.
[[Category: HOWTO]]
[[Category: X]]
30
edits