X server & jails

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

X server & jails

Postby dbi » 17 Jul 2010, 18:02

I was thinking about a dependency conflict [1] that prevents me from installing KDE4 and Gnome2 at same time and I came up with a fancy idea.

Is it possible to install KDE4 in a jail, Gnome2 in another one and use them to draw on the X server running on the host system?

Has anyone tried something like that?

[1] http://forums.freebsd.org/showthread.php?t=14981
dbi
Member
 
Posts: 129
Joined: 10 May 2009, 07:17

Postby Nukama » 17 Jul 2010, 22:41

I'm searching for a method to test programs in a jailed environment.

There is another option, to use a Xserver inside a jail. But that needs some patching, and I'm not sure, if that particular method described in [1] works on your FreeBSD.

Maybe with a [pman]Xnest[/pman] server that connects to your outside [pman=7]Xorg[/pman] server. But not sure if Xnest can be run inside a jail (seems to be good shot, look at [2]).

[1] http://docs.freebsd.org/cgi/getmsg.cgi?fetch=3431+0+archive/2008/freebsd-jail/20080316.freebsd-jail -> http://lists.freebsd.org/pipermail/freebsd-jail/2008-March/000217.html

[2] http://www.the-labs.com/FreeBSD/JailTools/cookbook.html#x11_for_each_jail
Nukama
Member
 
Posts: 124
Joined: 10 Feb 2010, 22:43

Postby dbi » 17 Jul 2010, 22:56

Thanks, Nukama.

The links you gave are quite interesting, but on a slightly different subject. Running an entire X server and desktop environment in a jail and connecting/seeing that X server via vnc should be very appealing for the hosting companies.

However I want it the other way round - to run X on the host system as usual and start KDE or Gnome from a jail. I'm quite sleepy now, but tomorrow I guess I'll try to implement that setup on my desktop.
dbi
Member
 
Posts: 129
Joined: 10 May 2009, 07:17

Postby dbi » 19 Jul 2010, 15:08

I had the time to test the idea. It works. :)

Code: Select all
ezjail-admin create gnome.machine.example.com 192.168.0.111
Xnest :1 -ac
ezjail-admin console gnome
pkg_add -r xorg
pkg_add -r gnome2
sh
export DISPLAY=host.machine.example.com:1
gnome-session



Voilà! Jailed Gnome shines on the host's Xnest server!
FreeBSD wins again! :)
dbi
Member
 
Posts: 129
Joined: 10 May 2009, 07:17

Postby rockworldmi » 05 Jan 2012, 10:47

dbi can you produce same results in PC-BSD warden jail? Or can you suggest what to do? I want the same thing with warden jail system.
rockworldmi
Junior Member
 
Posts: 18
Joined: 24 Jul 2011, 19:18
Location: Pune,India

Postby dbi » 05 Jan 2012, 12:13

rockworldmi wrote:dbi can you produce same results in PC-BSD warden jail ?? or can you suggest what to do ? i want the same thing with warden jail system..



Sorry. My PC-BSD usage is limited to several hours in total just to take a look at it. I'm not familiar with the "warden jail" concept.
dbi
Member
 
Posts: 129
Joined: 10 May 2009, 07:17

Postby rockworldmi » 05 Jan 2012, 12:41

Well warden is also available in [del]Freebsd[/del] FreeBSD ports http://portsmon.freebsd.org/portoverview.py?category=sysutils&portname=warden

and installation method is in
http://wiki.pcbsd.org/index.php/Warden%E2%84%A2

Please let me know if you can help.

Thanks in advance..
rockworldmi
Junior Member
 
Posts: 18
Joined: 24 Jul 2011, 19:18
Location: Pune,India

Postby Martillo1 » 09 Feb 2012, 21:56

Just tried with Xnest and Xorg in Portjail (to not mess with the PC-BSD system), and Xorg and pekwm in a Warden jail and it worked.

Yes, I jumped onto the bandwagon of lazy PC-BSD users :e
User avatar
Martillo1
Member
 
Posts: 183
Joined: 22 Jan 2011, 17:59
Location: Madrid, Spain


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests