<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chronos</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chronos"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Chronos"/>
	<updated>2026-05-15T14:43:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=8574</id>
		<title>NX inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=8574"/>
		<updated>2010-05-02T08:58:43Z</updated>

		<summary type="html">&lt;p&gt;Chronos: Added demo image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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.&lt;br /&gt;
&lt;br /&gt;
= Fedora =&lt;br /&gt;
&lt;br /&gt;
[[File:NX server on Fedora 12.png|thumb|300px|Connecting remotely with NX Client to Fedora inside OpenVZ container.]]&lt;br /&gt;
&lt;br /&gt;
* Use fedora template to create new container and install desktop of your choice:&lt;br /&gt;
&lt;br /&gt;
GNOME:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;GNOME Desktop Environment&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KDE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;KDE (K Desktop Environment)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XFce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;XFCE&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You may need to install additional package audiofile:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install audiofile&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Download installation RPM packages for server from site [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 www.nomachine.com]. Choose right architecture i386 or x86_64.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Do simple manual installation of RPM packages.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
rpm -ivh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
rpm -ivh nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Done. You can now connect from NX client to your server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Ubuntu =&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create a new container using the gutsy template. Edit /etc/apt/sources.list and enable the &amp;quot;multiverse&amp;quot; repository.&lt;br /&gt;
Install X and XDM&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install xorg xdm&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then add this 3rd party repo to sources.list&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
deb-src http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the repo keys and update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key -O - | apt-key add -&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key -O - | apt-key add -&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install FreeNX (*)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For Ubuntu 8.04 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally install XFCE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install xfce4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring X ===&lt;br /&gt;
In /etc/X11/xdm/xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0'''&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7''' (this starts a local X server, which will fail)&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xaccess, uncomment the line with '''* #any host can get a login window''' (Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately)&lt;br /&gt;
&lt;br /&gt;
=== Configure NX Server ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/X11/xorg.conf. Ensure that the files section looks similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Files&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # path to defoma fonts&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/misc&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/Type1&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a local user account:&lt;br /&gt;
&amp;lt;pre&amp;gt;useradd -m &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add this user to nxserver:&lt;br /&gt;
&amp;lt;pre&amp;gt;nxserver --adduser &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure NX client ===&lt;br /&gt;
&lt;br /&gt;
Setup the Host/Port. &lt;br /&gt;
In the desktop section select Unix and Custom. In Settings, select &amp;quot;Run the default X client script on server&amp;quot; and select &amp;quot;New virtual Desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now try to connect. You should get the XFCE desktop.&lt;br /&gt;
&lt;br /&gt;
Thanks to dantalizing for the feedback.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
(*)&lt;br /&gt;
If you get any errors like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libxcomp3_3.1.0-6-2_i386.deb (--unpack):&lt;br /&gt;
trying to overwrite `/usr/lib/libXcomp.so.3.1.0', which is also in package libxcomp2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
while installing the libxcomp package, just force-install the libxcomp package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/cache/apt/archives&lt;br /&gt;
# dpkg --force-all -i libxcomp3_3.1.0-6-2_i386.deb&lt;br /&gt;
# apt-get -f install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Chronos</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=File:NX_server_on_Fedora_12.png&amp;diff=8573</id>
		<title>File:NX server on Fedora 12.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=File:NX_server_on_Fedora_12.png&amp;diff=8573"/>
		<updated>2010-05-02T08:53:38Z</updated>

		<summary type="html">&lt;p&gt;Chronos: Connectiong to running Fedora 12 inside OpenVZ container using FreeNX remote desktop.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Connectiong to running Fedora 12 inside OpenVZ container using FreeNX remote desktop.&lt;/div&gt;</summary>
		<author><name>Chronos</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=8572</id>
		<title>NX inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=8572"/>
		<updated>2010-05-02T08:08:15Z</updated>

		<summary type="html">&lt;p&gt;Chronos: Added howto for simple installation on Fedora&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;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.&lt;br /&gt;
&lt;br /&gt;
= Fedora =&lt;br /&gt;
&lt;br /&gt;
* Use fedora template to create new container and install desktop of your choice:&lt;br /&gt;
&lt;br /&gt;
GNOME:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;GNOME Desktop Environment&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KDE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;KDE (K Desktop Environment)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XFce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;XFCE&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You may need to install additional package audiofile:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install audiofile&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Download installation RPM packages for server from site [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 www.nomachine.com]. Choose right architecture i386 or x86_64.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Do simple manual installation of RPM packages.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
rpm -ivh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
rpm -ivh nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Done. You can now connect from NX client to your server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Ubuntu =&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create a new container using the gutsy template. Edit /etc/apt/sources.list and enable the &amp;quot;multiverse&amp;quot; repository.&lt;br /&gt;
Install X and XDM&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install xorg xdm&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then add this 3rd party repo to sources.list&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
deb-src http://www.datakeylive.com/ubuntu gutsy main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the repo keys and update:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key -O - | apt-key add -&lt;br /&gt;
wget http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key -O - | apt-key add -&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install FreeNX (*)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For Ubuntu 8.04 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally install XFCE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install xfce4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring X ===&lt;br /&gt;
In /etc/X11/xdm/xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0'''&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7''' (this starts a local X server, which will fail)&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xaccess, uncomment the line with '''* #any host can get a login window''' (Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately)&lt;br /&gt;
&lt;br /&gt;
=== Configure NX Server ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/X11/xorg.conf. Ensure that the files section looks similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Files&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # path to defoma fonts&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/misc&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/Type1&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a local user account:&lt;br /&gt;
&amp;lt;pre&amp;gt;useradd -m &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add this user to nxserver:&lt;br /&gt;
&amp;lt;pre&amp;gt;nxserver --adduser &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure NX client ===&lt;br /&gt;
&lt;br /&gt;
Setup the Host/Port. &lt;br /&gt;
In the desktop section select Unix and Custom. In Settings, select &amp;quot;Run the default X client script on server&amp;quot; and select &amp;quot;New virtual Desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now try to connect. You should get the XFCE desktop.&lt;br /&gt;
&lt;br /&gt;
Thanks to dantalizing for the feedback.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
(*)&lt;br /&gt;
If you get any errors like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libxcomp3_3.1.0-6-2_i386.deb (--unpack):&lt;br /&gt;
trying to overwrite `/usr/lib/libXcomp.so.3.1.0', which is also in package libxcomp2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
while installing the libxcomp package, just force-install the libxcomp package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/cache/apt/archives&lt;br /&gt;
# dpkg --force-all -i libxcomp3_3.1.0-6-2_i386.deb&lt;br /&gt;
# apt-get -f install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Chronos</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Mounting_filesystems&amp;diff=7333</id>
		<title>Mounting filesystems</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Mounting_filesystems&amp;diff=7333"/>
		<updated>2009-05-28T06:16:07Z</updated>

		<summary type="html">&lt;p&gt;Chronos: Info about mount on start&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To mount a file system inside a container, you have several choices:&lt;br /&gt;
&lt;br /&gt;
* [[NFS]], when container as an NFS client&lt;br /&gt;
* [[FUSE]] (filesystem in userspace)&lt;br /&gt;
* [[Bind mounts]] from Hardware Node&lt;br /&gt;
&lt;br /&gt;
Also, you can grant a container an access a physical block device, and use that device from inside the container. Not all file systems are working inside a container; check /proc/filesystems inside a container to find out.&lt;br /&gt;
&lt;br /&gt;
=Mount filesystem on VE start=&lt;br /&gt;
&lt;br /&gt;
You need to create mount script in openvz configuration directory (/etc/vz/conf) with name &amp;lt;veid&amp;gt;.mount. If you need to mount filesystem to all containers than name of script should be vps.mount and inside script ${VEID} variable can be used.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
mount --bind /mnt/disk /vz/root/${VEID}/mnt/disk&lt;br /&gt;
exit ${?}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For unmounting filesystem file vps.umount can be used.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
umount /vz/root/${VEID}/mnt/disk&lt;br /&gt;
exit 0&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Notice:''&lt;br /&gt;
&amp;lt;veid&amp;gt;.umount scripts are not very necessary: everything will be umounted automatically on VE stop. But you should than mount with -n option in mount script.&lt;/div&gt;</summary>
		<author><name>Chronos</name></author>
		
	</entry>
</feed>