Page 8 of 25

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 24 Oct 2014 11:53
by alexey123
Connect over ssh
Go to blabla/thebrig/conf/bin folder and check permissions for file ftp.
ls - l ftp
Must be - 755.
Image
Maximum execute

Code: Select all

 chmod 755 ftp

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 08 Nov 2014 17:35
by mrjrussell
ugh so I upgraded the NAS4Free embedded to 9.2.0.1 - Shigawire (revision 925) so I could install the new php virtual box and now i cant get the brig to install


when I install from the advanced commands page or ssh I get the same error

Attempting to create a new destination directory.....
Retrieving the testing branch as a zip file
Unpacking the tarball...
X-Powered-By: PHP/5.5.7
Content-type: text/html


Parse error: syntax error, unexpected '<' in /bin/sh on line 90
You use fresh version


I am also having a hard time deleting the old directory for the old jail installs.

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 09 Nov 2014 02:15
by mrjrussell
Should I install TheBrig and then install virtuabox inside a jail or would that have performance issues?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 09 Nov 2014 07:42
by alexey123
I dont know about performance Virtualbox inside jail, you'll be the first to check :D
I know , that for compille minidlna with jail (64 bit) , I need ~6 hours, but if I compile x86 under Virtual box I need more than 28 hours.

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 10 Nov 2014 03:23
by mrjrussell
alexey123 wrote:I dont know about performance Virtualbox inside jail, you'll be the first to check :D
I know , that for compille minidlna with jail (64 bit) , I need ~6 hours, but if I compile x86 under Virtual box I need more than 28 hours.

I was thinking about a Mini itx e350 and put the computer next to my TV on a shelf.
I am using a SGI rackable Arima nm46x dual opteron 2400 (4x cores) 16 gigs ram. I am using the kernel performance setting to dialed down the performance settings so I can run her quiet on a set of PWM fans. I was also considering mounting the computer in a home made wooden box so it would look like a piece of av equipment.
I did the complete serviio install with ffmpeg in a jail in about 2-3 hours when I had the performance set to max.

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 23 Nov 2014 14:40
by westoztux
Hi
I am having some trouble installing TheBrig, I have followed this guide but the install hangs at the output is below but im not sure why. Any help appreciated. Thank you

./thebrig_install.sh /mnt/N4FPool1/Jail 2
Retrieving the testing branch as a zip file
fetch: https://github.com/fsbruva/thebrig/archive/working.zip: size of remote file is not known
working.zip 248 kB 184 kBps 00m01s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 23 Nov 2014 16:15
by alexey123
So, installer fetch tarball, extracted it and stopped?

You connect over ssh or use webinterface for command?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 23 Nov 2014 16:21
by westoztux
Thanks alexy
yes the install just hung at the last line of the output i posted . i connected via ssh to my server which is running 9.2.0.1

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 23 Nov 2014 19:41
by alexey123
Veri strangle - I tried more then 20 times, but not have problem

Code: Select all

nasbox: ~ # fetch https://raw.githubusercontent.com/fsbruva/thebrig/working/thebrig_install.sh
thebrig_install.sh                            100% of 4053  B 6166 kBps 00m00s
nasbox: ~ # sh thebrig_install.sh /mnt/disk/app 2
Attempting to create a new destination directory.....
Retrieving the testing branch as a zip file
fetch: https://github.com/fsbruva/thebrig/archive/working.zip: size of remote file is not known
working.zip                                            248 kB   57 kBps 00m04s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh
No need updates 
You use fresh version
nasbox: ~ # 
Hmm? you connect to NAS as root and begin to install TheBrig? Do you have full version or embedded ?
If embedded? please checkfree space, Need ~ 1.2M

Code: Select all

df -h | grep md0
My output

Code: Select all

nasbox: ~ # df -h |grep md0
/dev/md0                             223M    220M    3.7M    98%    /
nasbox: ~ #

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 24 Nov 2014 02:33
by westoztux
I checked for enough free space and it was ok , after reading your reply I think it was a problem with permissions. I rebooted the server and retried again but same result using an admin user , I then logged in with root user and the script worked immediatley . I should have tried this but overlooked it not relizing the admin in the wheel group did not have enough rights.
Thanks Alexy for your help here to find my mistake.

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 28 Nov 2014 00:58
by mrjrussell
I saw a linux option is there info on how to make this work?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 28 Nov 2014 06:35
by alexey123

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 13 Dec 2014 06:40
by alexey123
TheBrig work with new 9.3.0.2.1176 as is..

You can upgrade binaries over freebsd update procedure

Image


OLD 9.2 binaries also work with 9.3 kernel


We begin work on new release for give more option, such VNET, jail multi IP and so.. Just wait...
VNET
Image

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 13 Dec 2014 15:58
by MikeMac
I try to install The Brig on 9.3.0.2 - Nayla (revision 1176), bare metal test hardware

There is certificate error
nayla: Jails # uname -a
FreeBSD nayla.local 9.3-RELEASE-p6 FreeBSD 9.3-RELEASE-p6 #0 r275701M: Thu Dec 11 14:56:33 CET 2014 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64

nayla: Jails # fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
Certificate verification failed for /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
4243:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:997:
fetch: https://raw.github.com/fsbruva/thebrig/ ... install.sh: Authentication error
By the way on 9.2.0.1 - Shigawire (rev 943) fetch works
nas4free Pool/ root~$ uname -a
FreeBSD nas4free.local 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0 r260900M: Mon Jan 20 07:22:46 CET 2014 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64


nas4free Pool/ root~$ fetch https://raw.github.com/fsbruva/thebrig/ ... install.sh
thebrig_install.sh 100% of 4053 B 24 MBps 00m00s

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 13 Dec 2014 16:50
by alexey123
This is FreeBSD 9.3 and higher bug.
Before install anything from github execute

Code: Select all

setenv SSL_NO_VERIFY_PEER
Then install ca_root_nss on any jail, grab sertificate to main server and use ssl without crutch

UPD - problem solved rev 1182 https://sourceforge.net/p/nas4free/code/1182/

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 14 Dec 2014 00:06
by MikeMac
alexey123 wrote:

Code: Select all

setenv SSL_NO_VERIFY_PEER
Thank you, works. With 1182 will be better

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 04 Jan 2015 07:30
by Iolar
alexey123 wrote: We begin work on new release for give more option, such VNET, jail multi IP and so.. Just wait...
VNET
Hey Alexey,

I was just wondering if there is anyway to manually configure the VNET settings for an active jail at this time? I'm having a comms issue between a DLNA client and server and I believe its a multicast issue, specifically to do with the server receiving multicast messages. I was hoping to run a test with VNET enabled but I can't seem to be able to get it working. The settings don't have to be persistent for the moment. I also running the latest versions of Nas4Free and TheBrig. I would appreciate any advice you could give.

Thanks! :D

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 04 Jan 2015 08:49
by alexey123
Hi Iolar.
Thebrig not allow use VNET now , but we work on new version, which will know vnet, multi-ip , multi -if, ip4/ip6, mount zfs datasets, mount nullfs inside jail, more flexible jail commands.
All scripts for vnet, zfs are include into thebrig.

New version not ready for regular users today, sorry, just wait.

Screenshots from new Thebrig - all it work.
First page
Image

Edit page
General
Image
mounts:
Image
Network with vnet:
Image

Not work - updates freebsd-update and port update ( work but not stable, not work update itself ) and Thebrig need be compatible with 1 and 2 version - now it not compatible . :oops:

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 04 Jan 2015 13:36
by Iolar
Hi,

That's excellent, the screenshots look promising. I'm more than happy to wait. Thank you for your continued development of TheBrig. I just hope the VNET capabilities sort out the issue I'm experiencing ;)

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 04 Jan 2015 17:25
by spoocky68
Hi, I have an issue when I try to execute a jail.

I access NAS4FREE thru ssh, and in a console, I type that command: jexec 1 csh, 1 it's the number of the jail. But this message appears "jexec: jail_attach(1): Invalid argument"

What am I doing wrong?

Edit:

To kill my self. I gave IP with 192.168.x.x/32 format, and my network its x.x.x.x/24 !!!!! Change that and all goes fine!

Sorry!

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 05 Jan 2015 16:48
by lindsay
Thanks alexey123

Code: Select all

setenv SSL_NO_VERIFY_PEER
Now the brig finally works for me looking forward to the new version though ;)

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 16 Jan 2015 11:58
by Loka_muc
Hi all,

sorry iam a realy Linux nub and not that familiar with all that stuff, even i am very familiar and expirienced with Windowsbased systems. I have done all and all worked until i rebooted.

Now my "Extension" Tab in the WebGUI is missing and I am failing to get it back. I have read that, due to the fact, that i have an Embedded USB system, this extension was not made persistent right? on the filesystem all files seems to be there, but I am failing to to the little trick of "reinitialise" the stuf, that it apears automatically after I reboot my NAS

Please anyone can give me a helping hand, where and what to do, edit whatever to solve my issue?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 16 Jan 2015 14:28
by raulfg3
Loka_muc wrote:Now my "Extension" Tab in the WebGUI is missing and I am failing to get it back. I have read that, due to the fact, that i have an Embedded USB system, this extension was not made persistent right?
False, "Extension" Tab is persistent on full & Embeded install, perhaps you have a liveCD or LiveUSB install (you boot from a liveCd or LiveUSB image) in this case is normal that "Extension" Tab dissapear (is a live OS)

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 19 Jan 2015 02:43
by korl
Ok I have read evrything so far and can't seem to find an answer. Everything Seemed to install fine for TheBrig. I got to next step to Query Tarballs and I get this:

Code: Select all

Warning: stream_select(): No stream arrays were passed in /usr/local/www/ext/thebrig/extensions_thebrig_tarballs.php on line 121
Pressed button again and same error. It displays this message approx 10times then return to WebGUI with this error:

Code: Select all

The following input errors were detected:
There seems to be a networking issue. I can't reach ftp.freebsd.org. Please check DNS and other networking settings. If networking is working, then ensure the ftp binary is present.
Alternatively, try it again to see if there was some transient network problem.
Also TheBrig Log shows below:

[2015/01/18 19:32:58]: TheBrig error!: ftp: Reading from network: Bad file descriptor
[2015/01/18 19:32:58]: TheBrig error!: ftp: Writing `-': Bad file descriptor

Ping FTP.FreeBSD.Org from console gives:(I am on a Satellite connection)

Code: Select all

PING ftp.geo.freebsd.org (96.47.72.72): 56 data bytes
64 bytes from 96.47.72.72: icmp_seq=0 ttl=52 time=726.687 ms
Any Ideas?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 19 Jan 2015 11:57
by dreamcat4
korl wrote:Ping FTP.FreeBSD.Org from console gives:(I am on a Satellite connection)

Code: Select all

PING ftp.geo.freebsd.org (96.47.72.72): 56 data bytes
64 bytes from 96.47.72.72: icmp_seq=0 ttl=52 time=726.687 ms
Your ping round trip time is over 10x greater than mine. Although 350ms doesn't sound half so bad going each way. It being over a satellite.

PING ftp.geo.freebsd.org (213.138.116.78): 56 data bytes
64 bytes from 213.138.116.78: icmp_seq=0 ttl=53 time=66.341 ms

Perhaps the error is related to some kind of a networking issue due to your satellite connection. On FreeBSD, FTP defaults to passive mode and will give up if there is an error. It may be that passive mode FTP won't work on your link. There are simple ways to check and verify if that is true or not. But opening up the ftp.freebsd.org url in a regular FTP Client (in PASSIVE mode, of course), and then seeing if you can download any files manually or not.

You see, PASSIVE uses UDP protocol. Which may mean individual packets get marked as lost if they take too long a time to reach their destination. Or in some circumstances, UDP packets may end up being dropped entirely. If something like that is your issue, you may want to try to set / hack in somewhere (probably inside the Brig script itself) the following environment variable:

export FTP_PASSIVE_MODE=NO

That will force the freebsd `fetch` command to use FTP active mode instead of the default passive mode. OR you can replace in the brig script all of the URLs like "ftp://ftp.freebsd.org/..." --> "http://ftp.freebsd.org/...". That would download the freebsd archives over HTTP protocol instead (which is also a good choice being TCP also). So either of those approaches are recommended for you over the default FTP passive mode.

Already fixed such issues for someone else in my Finch tool. Sorry i can't help with 'theBrig'.

These were the Finch fixes:
https://github.com/dreamcat4/finch/issues/2
https://github.com/dreamcat4/finch/comm ... 963be1ee3c

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 19 Jan 2015 16:07
by korl
700MS times round trip from the research I did seems normal. Thanks I will look into it.

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 20 Jan 2015 02:20
by korl
Changing read Timeout in File "extensions_thebrig_tarballs.php" from 10 to 100 worked(Line 79)

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 21 Jan 2015 02:13
by korl
One more question. I can ping the jail's IP, I can ping my router from inside the jail but the jail itself does not seem to want to connect to the internet. Tried reading as much as I can on the subject(s) here and elsewhere and cannot seem to find an answer on why I can't access internet. Can anyone help?

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 01 Feb 2015 22:18
by pdcjlw1
I am having trouble getting the script to complete. I see all of the text I am supposed to see, but it just hangs there. Never completes. If I look for the jail in the webpage I do not see it. Why won't the script complete?

$ /bin/sh /tmp/thebrig_install.sh /mnt/VPool/Jail 2
Retrieving the testing branch as a zip file
working.zip 100% of 248 kB 174 kBps 00m02s
Unpacking the tarball...
x README
x conf/
x conf/bin/
x conf/bin/change_ver.php
x conf/bin/ftp_amd64
x conf/bin/ftp_i386
x conf/bin/jail.sh
x conf/bin/thebrig_fetch.sh
x conf/bin/thebrig_ports_cron.php
x conf/bin/thebrig_start.php
x conf/bin/thebrig_start.sh
x conf/bin/thebrig_stop.sh
x conf/bin/thebrig_update_cron.php
x conf/ext/
x conf/ext/thebrig/
x conf/ext/thebrig/extensions_thebrig.php
x conf/ext/thebrig/extensions_thebrig_check.php
x conf/ext/thebrig/extensions_thebrig_config.php
x conf/ext/thebrig/extensions_thebrig_download.php
x conf/ext/thebrig/extensions_thebrig_edit.php
x conf/ext/thebrig/extensions_thebrig_fstab.php
x conf/ext/thebrig/extensions_thebrig_log.php
x conf/ext/thebrig/extensions_thebrig_manager.php
x conf/ext/thebrig/extensions_thebrig_ports.php
x conf/ext/thebrig/extensions_thebrig_tarballs.php
x conf/ext/thebrig/extensions_thebrig_tools.php
x conf/ext/thebrig/extensions_thebrig_update.php
x conf/ext/thebrig/fstab.png
x conf/ext/thebrig/functions.inc
x conf/ext/thebrig/lang.inc
x conf/ext/thebrig/menu.inc
x conf/ext/thebrig/off_small.png
x conf/ext/thebrig/on_small.png
x conf/freebsd-update.conf
x conf/freebsd-update_thin.conf
x conf/make.conf
x conf/periodic.conf
x conf/portsnap.conf
x conf/sbin/
x conf/sbin/freebsd-update
x conf/sbin/portsnap
x thebrig_install.sh

Re: [HOWTO] Install TheBrig - one Jail manager for N4F

Posted: 01 Feb 2015 22:45
by sb00nk
# /bin/sh /tmp/thebrig_install.sh /mnt/NAS-A/Jail 2
$ /bin/sh /tmp/thebrig_install.sh /mnt/VPool/Jail 2
Please note the difference between
# -> executed by root
$ -> executed by users

to change your user you have to use the su command

Code: Select all

su {new_user}
in case of the root, the {new_user} can be omitted

Code: Select all

su
control+d will get you back to the previous user