angela-d / autohosts

Automate hosts file updates on Linux and MacOS. Block Firefox telemetry, Google snooping and web trackers at the root.
GNU General Public License v2.0
83 stars 6 forks source link

does this not put entries in /etc/hosts? #8

Open brightersun99 opened 3 years ago

brightersun99 commented 3 years ago

I have been running this with sudo sh autohosts and im not seeing any entries in /etc/hosts at all... what is the deal, is this broken?

brightersun99 commented 3 years ago

doesn't help that there isn't a man page entry

brightersun99 commented 3 years ago

Doesn;'t look like i'm using it wrong from what information that does exist. I did think it was weird that it could mess up on something so simple buut i guess you find stuff like that in the GNU world.

brightersun99 commented 3 years ago

just had to check the sources it gets hosts from and add them myself thanks for nothing

angela-d commented 3 years ago

How did you install it and on what operating system?

doesn't help that there isn't a man page entry

This is a script I originally wrote for myself and offered it for others, feel free to contribute if you feel it's lacking anything. This is not the type of script you typically run a command for (post-installation), it's very much a 'set it and forget it' type application. Which, imo, negates the need for a manpage.

What I suspect may have happened, with the sparse information provided:

This is the part of the install I am assuming were missed:

&& cd autohosts && sudo apt install ./autohosts.deb

or

&& cd autohosts && sudo ./autohosts

The two ampersands && are conditions; they won't execute if you don't include them in your original command; they will only run if the execution to the left of it has completed. They are required for a successful installation.

Also: If you have NOT run the command before ever runningsudo autohosts will NOT work. Note the instructions:

sudo ./autohosts

The ./ expects you to go into the clone directory (cd autohosts) after you cloned it via git and then, ./ = execute from this directory.

sudo autohosts looks in /usr/bin or /usr/local/bin and autohosts will NOT exist there, until after an initial successful run.

You will know you've had a successful install, because you'll see output similar to the screenshots provided in the readme. If you haven't seen that yet, you missed a step, or a portion of a necessary installation command.