Page 16 of 25

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

Posted: 03 Jan 2016 15:05
by bakker_be
Solved it myself :)
It seems that the files from the first install inside "/usr/local/www/ext/thebrig" weren't overwritten ...

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

Posted: 08 Jan 2016 16:45
by bupban
@devnas:

what is your setting in the dropdown on globals?
Screen Shot 2016-01-08 at 16.38.52.png
Your "Information about mounted filesystem" setting inside the jails config is 0. That is correct since you want to mount a fs inside your jail.
BUT if your global setting is not zero, your jail will not start.
I had the same problem, fiddled around and after setting the global dropdown to 0 it now works.

Good luck,
bupban

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

Posted: 09 Jan 2016 03:35
by Unicycle43
Hi there!

So I've run the commands to install thebrig but whenever I hover over extensions and click on thebrig it gives me this error:

"Warning: require_once(XML/Serializer.php): failed to open stream: No such file or directory in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10 Fatal error: require_once(): Failed opening required 'XML/Serializer.php' (include_path='.:/etc/inc:/usr/local/www') in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10"

I've tried going into /usr/local/www/ext/thebrig/extensions_thebrig.php but and placed in the path but it still didn't work, any ideas?
Some specs, x86-embedded on Intel(R) Pentium(R) 4 CPU 2.53GHz

Thank you!

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

Posted: 09 Jan 2016 15:11
by raulfg3
please post the command you run and n4f version do you have.

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

Posted: 10 Jan 2016 03:14
by Unicycle43
I ran the first 2 commands and then the 3rd one: /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 2
I have version 10.2, don't have the exact version right now but I can get it if needed

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

Posted: 10 Jan 2016 11:56
by alexey123
Unicycle43 wrote:I ran the first 2 commands and then the 3rd one: /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 2
I have version 10.2, don't have the exact version right now but I can get it if needed

Read this post viewtopic.php?p=61470#p61470

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

Posted: 10 Jan 2016 11:58
by alexey123
Currently not work install/upgrade from webgui.
Please use ssh connect

I note, when I find bug

Repaired.
For install/update TheBrig from webgui Advanced|Execute command please type:

Code: Select all

fetch -o /tmp/thebrig_install.sh https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
Image

Then type

Code: Select all

sh /tmp/thebrig_install.sh /mnt/PATH/TO/THEBRIG/FOLDER 3 &
In my case /mnt/PATH/TO/THEBRIG/FOLDER is /mnt/diskzfs/app/thebrig

Image

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

Posted: 10 Jan 2016 12:47
by raulfg3
Unicycle43 wrote:I ran the first 2 commands and then the 3rd one: /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 2
I have version 10.2, don't have the exact version right now but I can get it if needed
For N4F 10.2 you need to do: /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 3

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

Posted: 11 Jan 2016 02:13
by RSS
Having the same issue when running the command /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 2

Received this error:-

Hello new user, We will install TheBrig now
Renaming 32 bit ftp binary
Congratulations! Thebrig install . Navigate to rudimentary config tab and push Save
thebrig_install.sh: emporary: not found
rm: /tmp/thebriginstaller: No such file or directory
rm: /tmp/thebrigversion: No such file or directory

Ran /bin/sh /tmp/thebrig_install.sh /mnt/Pool1/Jail 3 and went through OK

Hello new user, We will install TheBrig now
Thebrig install/update
Renaming 32 bit ftp binary
Congratulations! Thebrig was updated/installed . Navigate to rudimentary config and push Save

But when going to the GUI get the same error:-

Warning: require_once(XML/Serializer.php): failed to open stream: No such file or directory in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10 Fatal error: require_once(): Failed opening required 'XML/Serializer.php' (include_path='.:/etc/inc:/usr/local/www') in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10

Do I need to remove the Jail directory I created for this and start again?

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

Posted: 11 Jan 2016 02:19
by RSS
Just tried deleting the contents of my Jail folder and ran all three commands again.
- cd /mnt/NAS4Free-Test/Jail
- fetch -o thebrig_install.sh https://github.com/fsbruva/thebrig/raw/ ... install.sh
- chmod a+x thebrig_install.sh
- /bin/sh thebrig_install.sh /mnt/NAS4Free-Test/Jail 2
- /bin/sh thebrig_install.sh /mnt/NAS4Free-Test/Jail 3

Error:-

Hello new user, We will install TheBrig now
Renaming 32 bit ftp binary
Congratulations! Thebrig install . Navigate to rudimentary config tab and push Save
thebrig_install.sh: emporary: not found
rm: /tmp/thebriginstaller: No such file or directory
rm: /tmp/thebrigversion: No such file or directory

In the brig tab the error displayed is the same:-

Warning: require_once(XML/Serializer.php): failed to open stream: No such file or directory in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10 Fatal error: require_once(): Failed opening required 'XML/Serializer.php' (include_path='.:/etc/inc:/usr/local/www') in /usr/local/www/ext/thebrig/extensions_thebrig.php on line 10

I'll next try deleting the Jail folder and rebooting before running the commands again, unless any further tips received.

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

Posted: 11 Jan 2016 03:03
by Unicycle43
Thanks for the responses, tried the one but now I can't access the gui, I'll try some more tomorrow probably

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

Posted: 11 Jan 2016 06:02
by alexey123
RSS wrote: - fetch -o thebrig_install.sh https://github.com/fsbruva/thebrig/raw/ ... install.sh
You use path for 9.2 installer

PLEASE use

Code: Select all

fetch  https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh

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

Posted: 11 Jan 2016 09:43
by RSS
I don't think I have a problem with fetching the file, just how it is implemented, but see the additional directory alcatraz, will try that and report back.

Just to correct the commands I'll use as I did a typo in the earlier post:-
- cd /mnt/NAS4Free-Test/Jail
- fetch https://raw.githubusercontent.com/fsbru ... install.sh
- chmod a+x thebrig_install.sh
- /bin/sh thebrig_install.sh /mnt/NAS4Free-Test/Jail 3

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

Posted: 11 Jan 2016 10:34
by alexey123
chmod a+x thebrig_install.sh - no need

Must work

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

Posted: 11 Jan 2016 14:09
by RSS
Many thanks, almost working, I've listed the steps I did below for others to follow as I picked up the process and commands from a few different sources to set the jail up. I've put them into the order as found on the screen as well to help. I used putty as the GUI command window was not giving me feedback why the installation wasn't working. Turned out the NAS was having an issue going onto the internet.

The jail is not starting automatically on reboot, have I got the start command below correct?

Use Putty application to enter commands.
- Enable SSH on the NAS
- Create Jail directory on the NAS drive.

Run a Putty command window
- cd /mnt/NAS4Free-Test/Jail
- fetch https://raw.githubusercontent.com/fsbru ... install.sh
- /bin/sh thebrig_install.sh /mnt/NAS4Free-Test/Jail 3

After the NAS performs the setup, refresh the page then, go to new tab called “Extensions“
There will be lots of red alerts, you need to confirm the installation directory by clicking on the blue writing which says “Rudimentary Config“

The following settings need to be made to the jail:-
Jail Parameters
- Jail number, you can have many jails but leave 1 if it’s your only one
- Jail name – give it a short but descriptive name
- Choose the Jail Type – click on the help button to read more, I’ve always used “Full”
- Start on boot “enable” for the jail to start on boot
Mounts
- Click on “Enable automount devfs”
Networking
- Jail IP – Set IP (192.168.11.50/24)
Commands
- Jail start command /bin/sh /usr/local/etc/rc.d/lighttpd onestart
This script will force the webserver to autostart on boot for the jail to work properly
Installation Source
- Official FreeBSD Flavor – ticked
- Click “Add”
- Apply changes
- Click start

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

Posted: 12 Jan 2016 00:32
by RSS
Done it....!

Stupidly I was too far down in the settings and realised today there is a setting on the front page of the extension to set the jail to start on booting the NAS.

I've added the step below

On the Extensions >TheBrig page
TheBrig config
Globals

- Enable Allow start all jails
- 0 = 0 values allow mount jail-friendly filesystems
- Save

The reason I'm trying to set this up is because I need to upgrade my old faithful FreeNAS 7 box that I run Logitech Media Server on, that will be the next step for me. Currently running a 2TB and a second smaller test drive in the same box and able to switch and boot between FreeNAS and NAS4Free configs by swapping over the boot USB.

I suspect the 2TB drive is failing, but I was finding it hard to get support under the older system. I'm far from an expert on FreeNAS but thought it would be easier to fault find and test using a newer more supported OS.

Next step once I get LMS running on NAS4Free test system will be to reformat and reload the 2TB drive and run some RW tests before setting it up and reloading.

Thanks for the help so far.

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

Posted: 15 Jan 2016 22:04
by alexey123
I make updates for thebrig

Attention for 9.3 based NAS4Free users - 0.92 version currentlly work only on 10.2 based
I work for 9.3 NAS4Free

25 Jan 2016: Alcatraz work for 9.3 also


1. Update thebrig install script.
Now no need wrote 3 at end of command
for install please use

Code: Select all

fetch https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
then

Code: Select all

/bin/sh thebrig_install.sh /mnt/PATH/TO/brig_folder
2. Repair thebrig manager for give update from webgui.
NOTE: First time please update from cli:

Code: Select all

fetch https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
then

Code: Select all

/bin/sh thebrig_install.sh
No need path to thebrig

3. Repair FreeBSD Update and add messages from commands
Message after fetch
Image
Message after install
Image

4. Use FreeBSD10.2 portsnap

5. Try to rid from state "TheBrig Jails have no IP Address" viewtopic.php?t=9319

6. 25 Jan 2016: Add Upgrade RELEASE for jail from webgui
Image

If upgrade is available ( for example, FreeBSD release is 10.3 or 11, and NAS4Free run at 10.2 release. ) button is visible

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

Posted: 22 Jan 2016 19:56
by Spr1DLy
Hello guys.
I have a noob problem 8(
After installing Thebrig I was trying to fetch tarballs and nothing happens (wait for 2 hours)...

Connection to internet checked, all is ok.
What it could be?

ps it's trying to fetch amd64 release, but system works on intel e8400... seems to be strange!

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

Posted: 22 Jan 2016 21:22
by RSS
How have you tested internet connection?
My issue was no connectivity but no error was displayed. Mine was new build though.

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

Posted: 22 Jan 2016 23:44
by alexey123
I also have very slow download speed from freebsd.org and from sf few days.

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

Posted: 23 Jan 2016 08:35
by Spr1DLy
RSS wrote:How have you tested internet connection?
My issue was no connectivity but no error was displayed. Mine was new build though.
alexey123 wrote:I also have very slow download speed from freebsd.org and from sf few days.
1. internet is OK - ping and tracerout are ok to freebsd.org
2. just check folder where must be downloaded tarballs - they are all 0 kb
3. can i download those tarballs by myself and put them in that folder?

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

Posted: 23 Jan 2016 22:22
by Spr1DLy
Sorry, problem was in dd-wrt router...

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

Posted: 24 Jan 2016 00:15
by alexey123
Wow, My edimax also begin to work faster after reboot

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

Posted: 25 Jan 2016 22:56
by sene4kin
Hi guys! I have a problem. I had been using TheBrig on my nas4free and then decided to format my hdd. After that i created a pool and tried to install it again as i did before but suddenly received an error:
ERROR: This version of TheBrig is incompatible with your system!
ERROR: Please upgrade Nas4Free to version 9.3 or higher!
I got 9.3.0.2 - Nayla (revision 1681). What happened? I just checked and found out that new builds of nas4free had been released. Is that the issue?

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

Posted: 25 Jan 2016 23:33
by alexey123
sene4kin wrote:Hi guys! I have a problem. I had been using TheBrig on my nas4free and then decided to format my hdd. After that i created a pool and tried to install it again as i did before but suddenly received an error:
ERROR: This version of TheBrig is incompatible with your system!
ERROR: Please upgrade Nas4Free to version 9.3 or higher!
I got 9.3.0.2 - Nayla (revision 1681). What happened? I tried to restore defaults but still got the same error. What could be wrong? Thx in advance.
May be you tried install, when I worked on install script. :oops:

I checked just now
Image

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

Posted: 26 Jan 2016 00:28
by sene4kin
strange. looks like i have to clean smth from previous installation - cause it refers to the directory and path that doesn't longer exist.
this /hdd2/brig line, where should i look for it to clean?

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

Posted: 26 Jan 2016 06:03
by alexey123
Use system editor for config.xml
Image
Mark Thebrig section and delete it. Then push Save file button.

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

Posted: 26 Jan 2016 10:10
by sene4kin
Thank you very much! Now it seems to work. I used this link https://raw.githubusercontent.com/fsbru ... install.sh and it worked, but when i tried to use installer from the previous link https://github.com/fsbruva/thebrig/raw/ ... install.sh - i still receive the same incompatibility error (. And i should report about a little issue: the interface looks awakward - it was due to incorrect sys language settings (it was set to russian) the previous Brig didn't have this issue.

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

Posted: 26 Jan 2016 11:04
by alexey123
I cannot have time translate TheBrig, Sorry.
You can translate it itself, when you navigate to Mantanance -> backup/restore .. You must see translator tab. Just use system as english

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

Posted: 26 Jan 2016 12:54
by sene4kin
No, it's not about the translation - the previous Brig used english as well - the problem lies in incorrect english textnames in brig when system is set to local lang - as you can see in the attachement. anyway, i have no problems using english. Thx much! You do a great job!