Hi everybody,
I would like to install the ports collection on my nas4free 9.2 system in order to compile a package (deluge) from source. Thus I would preferrably like to install portsnap or the ports collection manually (and the neccessary files for compilation). I do not want to use a jail, as programs inside a jail don't seem to be able to maniplulate the network interface and I want to use deluge and SOCKS5 proxies. Based on my experience so far, this does not work from within a jail (without changes to how jails are handled by FreeBSD).
pkg_add -r portsnap does not work, as that package does not exist in the package repository I currently use (the standard one: ftp://ftp.freebsd.org/pub/FreeBSD/ports ... se/Latest/. I can install subversion, but it won't work as 'libmagic.so.4' is missing
Could someone please help me getting my system set up so that I can compile a port without using a jail?
Thanks a lot!
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Compiling a port (no jail)
-
StefanAO
- NewUser

- Posts: 10
- Joined: 15 Sep 2012 14:25
- Status: Offline
Compiling a port (no jail)
Last edited by StefanAO on 19 Jan 2014 21:30, edited 1 time in total.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Comiling a port (no jail)
Nas4Free cannot compille any software. Please use jail.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
StefanAO
- NewUser

- Posts: 10
- Joined: 15 Sep 2012 14:25
- Status: Offline
Re: Comiling a port (no jail)
Thanks for your answer, although in my case, this is unfortunate. Compiling in a jail is not an option for me as long as I cannot use a socks5 Proxy from within the jail. Anyways, thanks for answering...
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Comiling a port (no jail)
You can compille under jail, then make package, then add compilled package to main NAS4Free (must be full-version)
But in case deluge this way not work, it replace original libraries and you can lost server
But in case deluge this way not work, it replace original libraries and you can lost server
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
StefanAO
- NewUser

- Posts: 10
- Joined: 15 Sep 2012 14:25
- Status: Offline
Re: Comiling a port (no jail)
I tried that before and it got really messy, deluge relies heavily on python and I never got it to work once it was outside its original environment.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Comiling a port (no jail)
do a new fresh & complete BSD install and compile what you want, bu you can't have in the same full BSD a Nas4Free system, you my need to decide what you want, or use a jail ( I know that this is not the answer that you want, but is true)StefanAO wrote: Could someone please help me getting my system set up so that I can compile a port without using a jail?
Thanks a lot!
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510
-
mekonghigh
- Starter

- Posts: 39
- Joined: 13 Oct 2013 18:03
- Status: Offline
Re: Compiling a port (no jail)
I have no proxy (so i can't try) but this and this don't work?
I think it must be possible to use proxy in Jail https://anonymous-proxy-servers.net/wik ... eBSD-Jails.
I think it must be possible to use proxy in Jail https://anonymous-proxy-servers.net/wik ... eBSD-Jails.
-
StefanAO
- NewUser

- Posts: 10
- Joined: 15 Sep 2012 14:25
- Status: Offline
Re: Compiling a port (no jail)
Yes, you are right, I was probably mistaken. Using a proxy inside a jail does not seem to pose a problem.
I got deluge compiled and running in a jail now, connecting to the TorGuard socks5 Proxy. Problem now is though, that libtorrent 0.16.13.0 unfortunately still has problems connecting to udp trackers. This issue was supposed to be resolved with version 0.16.11 (version in FreeBSD 9.2 is 0.16.10, that's why I compiled deluge from the newer source). I opened an thread on the deluge forum http://forum.deluge-torrent.org/viewtop ... =7&t=46571 and committed a bug https://code.google.com/p/libtorrent/is ... 1390248313.
My current solution is to run openvpn and channel all traffic through the vpn. As I was unable to get openvpn running in a jail (maybe I confused this with the proxy solution), openvpn was installed inside nas4free directly. This is obviously not the solution I am aiming for, but currently it seems like as long as libtorrent does not fix this bug, there is no other way.
I got deluge compiled and running in a jail now, connecting to the TorGuard socks5 Proxy. Problem now is though, that libtorrent 0.16.13.0 unfortunately still has problems connecting to udp trackers. This issue was supposed to be resolved with version 0.16.11 (version in FreeBSD 9.2 is 0.16.10, that's why I compiled deluge from the newer source). I opened an thread on the deluge forum http://forum.deluge-torrent.org/viewtop ... =7&t=46571 and committed a bug https://code.google.com/p/libtorrent/is ... 1390248313.
My current solution is to run openvpn and channel all traffic through the vpn. As I was unable to get openvpn running in a jail (maybe I confused this with the proxy solution), openvpn was installed inside nas4free directly. This is obviously not the solution I am aiming for, but currently it seems like as long as libtorrent does not fix this bug, there is no other way.