autohosts
autohosts copied to clipboard
does this not put entries in /etc/hosts?
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?
doesn't help that there isn't a man page entry
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.
just had to check the sources it gets hosts from and add them myself thanks for nothing
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:
- Ran git clone
- Expected the script to auto-run/self-install
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.