<?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=Lj2012</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=Lj2012"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Lj2012"/>
	<updated>2026-05-15T19:56:19Z</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=6040</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=6040"/>
		<updated>2008-06-04T15:59:03Z</updated>

		<summary type="html">&lt;p&gt;Lj2012: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My goals were simply to be able to connect to a container using an NX client. This is handy for when I work from home and wish to run a web browser on my work's internal network to access local resources. I connect using a gutsy desktop and using nxclient.&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>Lj2012</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=5866</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=5866"/>
		<updated>2008-05-05T13:05:34Z</updated>

		<summary type="html">&lt;p&gt;Lj2012: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My goals were simply to be able to connect to a container using an NX client. This is handy for when I work from home and wish to run a web browser on my work's internal network to access local resources. I connect using a gutsy desktop and using nxclient.&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;
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>Lj2012</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=5865</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=5865"/>
		<updated>2008-05-05T12:53:16Z</updated>

		<summary type="html">&lt;p&gt;Lj2012: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My goals were simply to be able to connect to a container using an NX client. This is handy for when I work from home and wish to run a web browser on my work's internal network to access local resources. I connect using a gutsy desktop and using nxclient.&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;
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;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Lj2012</name></author>
		
	</entry>
</feed>