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

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

Open
brightersun99 opened this issue Jan 18, 2021 · 4 comments
Open

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

brightersun99 opened this issue Jan 18, 2021 · 4 comments

Comments

@brightersun99
Copy link

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
Copy link
Author

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

@brightersun99
Copy link
Author

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
Copy link
Author

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

@angela-d
Copy link
Owner

angela-d commented Jan 20, 2021

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.

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

No branches or pull requests

2 participants