Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on FreeBSD instruction #1352

Closed
Chinaski1 opened this issue Jan 15, 2020 · 17 comments
Closed

Installation on FreeBSD instruction #1352

Chinaski1 opened this issue Jan 15, 2020 · 17 comments

Comments

@Chinaski1
Copy link
Member

How to install:

  • pkg install wget ca_root_nss #necessary package installation

  • wget https://static.adguard.com/adguardhome/release/AdGuardHome_freebsd_amd64.tar.gz #binary archive download

  • tar -xvf AdGuardHome_freebsd_amd64.tar.gz #unzip it in the same folder as the downloaded one.

  • chmod -R 755 ./AdGuardHome #confirm rights to execution

  • nohup ./AdGuardHome/AdGuardHome & # start the package with the session sh binding

  • Go to the server address
    192.168.x.x:3000 - for further configuration

  • You can install both on FreeBSD and Jail hypervisor, NAS systems on
    Based on FreeBSD: Xigmanas, FreeaNAS.

  • In addition, you can automate startup and provide control of
    of the activity script.

@ezoSresyeK
Copy link

* pkg install wget ca_root_nss #necessary package installation

* wget https://static.adguard.com/adguardhome/release/AdGuardHome_freebsd_amd64.tar.gz #binary archive download

Can simplify further:

FreeBSD has an in base ftp/http downloader (used by pkg) and it makes little sense to install wget so as to do something that can already be done. Not saying wget isn't a valid option but that its a superfluous package is all.

@eoghan2t9
Copy link

In case anyone new to FreeBSD has this installed on there system and whats it to start at boot up here is a very simple boot script:

copy this text in a file located in /etc/rc.d/ i.e:

nano /etc/rc.d/adguardhome

#!/bin/sh

. /etc/rc.subr

name="adguardhome"
rcvar="adguardhome_enable"
adguardhome_user="root"
adguardhome_command="/root/AdGuardHome/AdGuardHome"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -r -f ${adguardhome_command}"

load_rc_config $name
: ${adguardhome_enable:=no}

run_rc_command "$1"

Change any vars to matchup with your own setup i.e change:

adguardhome_command="/root/AdGuardHome/AdGuardHome"

To match the location you extracted it too. Then make the script executable by:

chmod +x /etc/rc.d/adguardhome

Don't forget to enable it to start at boot by issuing

echo "adguardhome_enable='YES'" >> /etc/rc.conf

Hope this helps someone out ;)

@ameshkov ameshkov added this to the v0.103 milestone May 12, 2020
@HorayNarea
Copy link

AdGuardHome is also included in the FreeBSD Ports collection so you can simply
pkg install adguardhome

@ameshkov
Copy link
Member

AdGuardHome is also included in the FreeBSD Ports collection so you can simply

Oh, that's cool! I wonder who maintains the package

@thoggs
Copy link

thoggs commented May 19, 2020

AdGuardHome is also included in the FreeBSD Ports collection so you can simply
pkg install adguardhome

You can't make this door package working properly, you may be missing something, but it doesn't work...

@ameshkov
Copy link
Member

I wonder can we do something to make packaging possible?

There's an ongoing discussion about Arch Linux packaging: #1324
Is it relevant?

@HorayNarea
Copy link

Oh, that's cool! I wonder who maintains the package

You can see that at https://www.freshports.org/www/adguardhome/ …apparently it's yuri@freebsd.org

@HorayNarea
Copy link

AdGuardHome is also included in the FreeBSD Ports collection so you can simply
pkg install adguardhome

You can't make this door package working properly, you may be missing something, but it doesn't work...

well as far as i can tell, the package does not include an rc script so you still need to use that from @eoghan2t9

@ameshkov
Copy link
Member

Relevant guide: #1703

@thoggs
Copy link

thoggs commented May 19, 2020 via email

@thoggs
Copy link

thoggs commented May 19, 2020 via email

@ameshkov
Copy link
Member

I think the most interesting thing is to focus on a centralized installation form, like AdGuardHome -s install, something that works on both Linux, Windows, macOS, and FreeBSD

I actually think it makes sense to support both approaches.

There are a lot of people who prefer using package managers. If we cannot maintain packages on our own, we should at least make it easier for others to do.

What for -s install support, we're using https://github.com/kardianos/service/ and it currently does not support rc.d

@thoggs
Copy link

thoggs commented May 20, 2020 via email

@ameshkov ameshkov modified the milestones: v0.103, v0.104 Jun 22, 2020
@ameshkov ameshkov removed this from the v0.104 milestone Aug 28, 2020
@ameshkov
Copy link
Member

FreeBSD is supported since v0.103, -s install now works as expected

@conradseba
Copy link

conradseba commented May 4, 2021

Hi, I'm following the steps, but after changing permissions I still get "./AdGuardHome: Exec format error. Binary file not executable."
I;m on FreeBSD 12.2, pfsense 21.02.2, arm64
Have dowloanded this ver.: AdGuardHome_freebsd_armv7.tar.gz
Thank you.

@ainar-g
Copy link
Contributor

ainar-g commented May 4, 2021

@conradseba, hello. You probably need the ARM64 binary. It should be available in v0.107.0. See #2441.

@conradseba
Copy link

#2441

Yeah, sorry, I thought that armv8 was capable of running armv7, my bad. Guess I will have to wait until v0.107.0. Some time in June maybe? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants