Changes

Jump to navigation Jump to search
104 bytes added ,  16:34, 12 April 2013
m
collapse newns.c text
Line 10: Line 10:     
That said, we recommend you to run VNC and others using the program below:
 
That said, we recommend you to run VNC and others using the program below:
 +
{| class="collapsible <includeonly>collapsed</includeonly> collapsed" border="0"
 +
|-
 +
! newns.c:
 +
|-
 +
|
 
<pre>
 
<pre>
 
#define _GNU_SOURCE
 
#define _GNU_SOURCE
Line 72: Line 77:  
}
 
}
 
</pre>
 
</pre>
 +
|}
    
it will create necessary namespaces, will create a new session and will redirect stdio to newns.log file. Of course, the same effect is better to be achieved by creating an OpenVZ or LXC container with <code>vzctl</code>, but for quick demo the above proggie is enough.
 
it will create necessary namespaces, will create a new session and will redirect stdio to newns.log file. Of course, the same effect is better to be achieved by creating an OpenVZ or LXC container with <code>vzctl</code>, but for quick demo the above proggie is enough.

Navigation menu