-
-
Save peps1/1f29ff4fa3fb318b43cd07828f4ef43a to your computer and use it in GitHub Desktop.
Revisions
-
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -109,6 +109,11 @@ At this point you should be able to control the service with: And finally, decide and configure the folders you'll want to share and download the files. This is important if you are using jails, because in this case you'll need to configure the bindings (mounting points). Refer to the [FreeNAS documentation](https://www.ixsystems.com/documentation/freenas/11.3-U4/jails.html#additional-storage) regarding this. The service should be accessible through: ``` http://<jail|freebsd IP>:5600 ``` Feel free to point out any mistakes I made, including misspellings, typos and grammar errors. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -110,6 +110,6 @@ At this point you should be able to control the service with: And finally, decide and configure the folders you'll want to share and download the files. This is important if you are using jails, because in this case you'll need to configure the bindings (mounting points). Refer to the [FreeNAS documentation](https://www.ixsystems.com/documentation/freenas/11.3-U4/jails.html#additional-storage) regarding this. Feel free to point out any mistakes I made, including misspellings, typos and grammar errors. Happy AirDC++ing. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -107,7 +107,7 @@ At this point you should be able to control the service with: # service airdcppd start | stop | status | restart ``` And finally, decide and configure the folders you'll want to share and download the files. This is important if you are using jails, because in this case you'll need to configure the bindings (mounting points). Refer to the [FreeNAS documentation](https://www.ixsystems.com/documentation/freenas/11.3-U4/jails.html#additional-storage) regarding this. Feel free to point out any mistakes I made, including mispellings, typos and grammar errors. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses FreeBSD 11.3-RELEA # git clone https://github.com/airdcpp-web/airdcpp-webclient.git ``` ## 4. Enter in the source-code folder and compile it: ``` # cd airdcpp-webclient # cmake . @@ -48,7 +48,7 @@ If everything ran fine, you'll find the **airdcppd** binary in the airdcppd fold # make install ``` ## 5. Bonus: init script to start airdcppd automagically at system/jail boot Here is my script: -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,7 +77,7 @@ command_args="-d -c=/home/${airdcppd_user}/.airdc++ -p=/var/run/airdcppd/airdcpp run_rc_command "$1" ``` Save it under the name **`airdcppd`** and copy to **`/usr/local/etc/rc.d`** with 755 permissions. ### Service configuration: -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,7 +43,7 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses FreeBSD 11.3-RELEA # make -j2 ``` If everything ran fine, you'll find the **airdcppd** binary in the airdcppd folder. So it's time to install the whole shebang: ``` # make install ``` @@ -77,9 +77,9 @@ command_args="-d -c=/home/${airdcppd_user}/.airdc++ -p=/var/run/airdcppd/airdcpp run_rc_command "$1" ``` Save it under the name `**airdcppd**` and copy to `**/usr/local/etc/rc.d**` with 755 permissions. ### Service configuration: #### 1. Decide and create the user/group under which the service will run. In my specific case: ``` @@ -88,13 +88,13 @@ pw user add plex -u 111 pw user mod -m /home/plex ``` #### 2. Create the folder to store the PID file, with the appropriate permissions: ``` # mkdir /var/run/airdcppd # chown plex:plex /var/run/airdcppd ``` #### 3. Configure the service to run automagically at system/jail boot, according with your setup. In my specific case: ``` # sysrc airdcpdd_enable=YES # sysrc airdcpdd_user=plex @@ -107,7 +107,7 @@ At this point you should be able to control the service with: # service airdcppd start | stop | status | restart ``` And finally, decide and configure the folders you'll want to share and download the files. This is important if you are using jails, because in this case you'll need to configure the bindings (mounting points). Refer to the FreeNAS documentation regarding this. Feel free to point out any mistakes I made, including mispellings, typos and grammar errors. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -25,7 +25,9 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses FreeBSD 11.3-RELEA > - npm-node10-6.12.1_1 > - npm-node12-6.12.1_1 > > The first time I installed the default npm package, I received a warning about that npm doesn't support Node.js version 14. > Then I removed this version and installed npm-node12, and then I received a warning about that this version uses a deprecated version of python (2.7?)... > > Between the 2 warnings I decided to go on with npm-node12. Feel free to test other options. Your mileage may vary. @@ -71,7 +73,7 @@ load_rc_config ${name} pidfile="/var/run/airdcppd/airdcppd.pid" command="/usr/local/bin/airdcppd" command_args="-d -c=/home/${airdcppd_user}/.airdc++ -p=/var/run/airdcppd/airdcppd.pid" run_rc_command "$1" ``` @@ -99,13 +101,14 @@ pw user mod -m /home/plex # sysrc airdcpdd_group=plex ``` At this point you should be able to control the service with: ``` # service airdcppd start | stop | status | restart ``` And finally, decide and configure the folders you'll want to share and download the files. This is important if you are using jail, because in this case you'll need to configure the bindings (mounting points). Refer to the FreeNAS documentation regarding this. Feel free to point out any mistakes I made, including mispellings, typos and grammar errors. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,9 @@ First of all, make sure to refer and understand the general instructions in the https://airdcpp-web.github.io/docs/installation/compiling.html What you'll find here are the specific instructions to compile **airdcppd** in a FreeBSD system, or in a FreeNAS jail. This was originally tested in a FreeNAS-11.3-U4.1, which uses FreeBSD 11.3-RELEASE-p11 as base system. I don't know if it will work on previous or newer versions, but I intend to keep this document updated. ## 1. Update your packages: ``` -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 67 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 a ``` > NOTE about npm > > There are currently some versions of npm available to install: > - npm-6.12.1_1 > - npm-node10-6.12.1_1 > - npm-node12-6.12.1_1 @@ -29,12 +29,12 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 a > Between the 2 warnings I decided to go on with npm-node12. Feel free to test other options. Your mileage may vary. ## 3. Clone the repository: ``` # git clone https://github.com/airdcpp-web/airdcpp-webclient.git ``` ## 3. Enter in the source-code folder and compile it: ``` # cd airdcpp-webclient # cmake . @@ -46,3 +46,67 @@ If everything ran fine, you'll find the airdcppd binary in the airdcppd folder. # make install ``` ## 4. Bonus: init script to start airdcppd automagically at system/jail boot Here is my script: ``` #!/bin/sh # # PROVIDE: airdcppd # REQUIRE: networking # KEYWORD: . /etc/rc.subr name="airdcppd" rcvar="${name}_enable" load_rc_config ${name} : ${airdcppd_enable:="NO"} : ${airdcppd_user:="root"} : ${airdcppd_group:="root"} pidfile="/var/run/airdcppd/airdcppd.pid" command="/usr/local/bin/airdcppd" command_args="-d -c=/home/plex/.airdc++ -p=/var/run/airdcppd/airdcppd.pid" run_rc_command "$1" ``` Save it under the name `airdcppd` and copy to `/usr/local/etc/rc.d` with 755 permissions. ### Configuration: #### 1. Decide and create the user/group under which the service will run. In my specific case: ``` pw group add plex -g 118 pw user add plex -u 111 pw user mod -m /home/plex ``` #### 2. Create the folder to store the PID with the appropriate permissions: ``` # mkdir /var/run/airdcppd # chown plex:plex /var/run/airdcppd ``` ### 4. Configure the service to run automagically according to your setup. In my specific case: ``` # sysrc airdcpdd_enable=YES # sysrc airdcpdd_user=plex # sysrc airdcpdd_group=plex ``` At this point you should be able to control the service: ``` # service airdcppd start | stop | status | restart ``` And finally, decide and configure the folder you'll want to share and to download the files. Feel free to point out any mistakes I made, including mispellings, typos and grammar errors. Happy AirDC++ing. -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ First of all, make sure to refer and understand the general instructions in the official AirDC++ site: https://airdcpp-web.github.io/docs/installation/compiling.html What you'll find here are the specific instructions to compile airdcppd in a FreeBSD system, or in a FreeNAS jail. @@ -18,6 +18,16 @@ This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 a ``` # pkg install git cmake libmaxminddb miniupnpc pkgconf libnatpmp leveldb websocketpp boost-all python npm-node12 ``` > NOTE about npm > > There are currently some versions of npm available to download: > - npm-6.12.1_1 > - npm-node10-6.12.1_1 > - npm-node12-6.12.1_1 > > The first time I installed the default npm package, I received a warning about that npm doesn't support Node.js version 14. Then I removed this version and installed npm-node12, and then I received a warning about that this version uses a deprecated version of python (2.7?)... > Between the 2 warnings I decided to go on with npm-node12. Feel free to test other options. Your mileage may vary. ## Clone the repository: ``` -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 18 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,22 +9,30 @@ What you'll find here are the specific instructions to compile airdcppd in a Fre This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 as base system. I don't know if it will work on previous or newer versions, but I intend to keep this document updated. ## 1. Update your packages: ``` # pkg update # pkg upgrade ``` ## 2. Install the dependencies and tools: ``` # pkg install git cmake libmaxminddb miniupnpc pkgconf libnatpmp leveldb websocketpp boost-all python npm-node12 ``` ## Clone the repository: ``` # git clone https://github.com/airdcpp-web/airdcpp-webclient.git ``` ## Enter in the source-code folder and compile it: ``` # cd airdcpp-webclient # cmake . # make -j2 ``` If everything ran fine, you'll find the airdcppd binary in the airdcppd folder. So: ``` # make install ``` -
Zamana revised this gist
Aug 4, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,8 @@ What you'll find here are the specific instructions to compile airdcppd in a Fre This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 as base system. I don't know if it will work on previous or newer versions, but I intend to keep this document updated. ## 1. Update your packages: `# pkg update` `# pkg upgrade` ## 2. Install the dependencies and tools: `# pkg install git cmake libmaxminddb miniupnpc pkgconf libnatpmp leveldb websocketpp boost-all python npm-node12` -
Zamana revised this gist
Aug 4, 2020 . 2 changed files with 30 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Compiling and installing AirDC++ in FreeBSD/FreeNAS jail First of all, make sure to refer and understand the general instructions in the official AirDC++ site: (https://airdcpp-web.github.io/docs/installation/compiling.html) What you'll find here are the specific instructions to compile airdcppd in a FreeBSD system, or in a FreeNAS jail. This was originally tested in a FreeNAS-11.3-U4.1, which uses 11.3-RELEASE-p11 as base system. I don't know if it will work on previous or newer versions, but I intend to keep this document updated. ## 1. Update your packages: > pkg update > pkg upgrade ## 2. Install the dependencies and tools: `# pkg install git cmake libmaxminddb miniupnpc pkgconf libnatpmp leveldb websocketpp boost-all python npm-node12` ## Clone the repository: `# git clone https://github.com/airdcpp-web/airdcpp-webclient.git` ## Enter in the source-code folder and compile it: `# cd airdcpp-webclient` `# cmake .` `# make -j2` If everything ran fine, you'll find the airdcppd binary in the airdcppd folder. So: `# make install` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ -
Zamana created this gist
Aug 4, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Compiling and installing AirDC++ in FreeBSD/FreeNAS jail ## Update your packages: > pkg update > pkg upgrade ## Install the dependencies and tools: > pkg install git cmake libmaxminddb miniupnpc pkgconf libnatpmp leveldb websocketpp boost-all python npm/npm-node12 ## Clone the repository: > git clone https://github.com/airdcpp-web/airdcpp-webclient.git ## Enter in the source-code folder and compile it: > cd airdcpp-webclient >