100c7 [Solved] X server & jails - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

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

Reply
 
Thread Tools Display Modes
  #1  
Old July 17th, 2010, 19:02
dbi dbi is offline
Member
 
Join Date: May 2009
Posts: 129
Thanks: 21
Thanked 5 Times in 5 Posts
Default X server & jails

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

Last edited by dbi; July 19th, 2010 at 16:09.
Reply With Quote
  #2  
Old July 17th, 2010, 23:41
Nukama Nukama is offline
Member
 
Join Date: Feb 2010
Posts: 107
Thanks: 17
Thanked 33 Times in 24 Posts
Default

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 Xnest server that connects to your outside Xorg(7) 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.c...6.freebsd-jail -> http://lists.freebsd.org/pipermail/f...ch/000217.html

[2] http://www.the-labs.com/FreeBSD/Jail..._for_each_jail

Last edited by Nukama; September 20th, 2011 at 14:45.
Reply With Quote
  #3  
Old July 17th, 2010, 23:56
dbi dbi is offline
Member
 
Join Date: May 2009
Posts: 129
Thanks: 21
Thanked 5 Times in 5 Posts
Default

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.

Last edited by dbi; July 18th, 2010 at 00:01.
Reply With Quote
  #4  
Old July 19th, 2010, 16:08
dbi dbi is offline
Member
 
Join Date: May 2009
Posts: 129
Thanks: 21
Thanked 5 Times in 5 Posts
Default

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

Code:
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!

Last edited by DutchDaemon; July 19th, 2010 at 17:08. Reason: [code] for output, [cmd] for commands
Reply With Quote
  #5  
Old January 5th, 2012, 11:47
rockworldmi rockworldmi is offline
Junior Member
 
Join Date: Jul 2011
Location: Pune,India
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.

Last edited by DutchDaemon; January 5th, 2012 at 13:54. Reason: Mind your writing style: http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #6  
Old January 5th, 2012, 13:13
dbi dbi is offline
Member
 
Join Date: May 2009
Posts: 129
Thanks: 21
Thanked 5 Times in 5 Posts
Default

Quote:
Originally Posted by rockworldmi View Post
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.
Reply With Quote
  #7  
Old January 5th, 2012, 13:41
rockworldmi rockworldmi is offline
Junior Member
 
Join Date: Jul 2011
Location: Pune,India
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Well warden is also available in Freebsd FreeBSD ports http://portsmon.freebsd.org/portover...ortname=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..

Last edited by DutchDaemon; January 5th, 2012 at 13:53.
Reply With Quote
  #8  
Old February 9th, 2012, 22:56
Martillo1's Avatar
Martillo1 Martillo1 is offline
Member
 
Join Date: Jan 2011
Location: Madrid, Spain
Posts: 151
Thanks: 32
Thanked 14 Times in 14 Posts
Default

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
Reply With Quote
Reply

Tags
conflict, gnome, jails, kde4, x server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 Forwarding & caching server Noodle2732 Web & Network Services 5 February 28th, 2010 22:40
mySQL 5.4 server & Post installation SNAFUs jaymax Web & Network Services 0 January 9th, 2010 08:11
Jails in a 2 NIC server zeissoctopus General 5 November 23rd, 2009 08:03
ipfw & aMule & jails livebrain Firewalls 5 January 15th, 2009 22:58
15.6 Application of Jails & /usr/ports/distfiles paulfrottawa Installation and Maintenance of FreeBSD Ports or Packages 8 December 13th, 2008 16:57


All times are GMT +1. The time now is 06:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0