On 1/21/24 14:58, Greg Wooledge wrote:
On Sun, Jan 21, 2024 at 02:26:42PM -0500, gene heskett wrote:
Every time it was ran and asked for file:// or http:// localhost:80 you wind
up looking at google seatch failure screen saying there is no such thing as
localhost.
$ host localhost
$ grep localhost /etc/hosts
$ grep hosts /etc/nsswitch.conf
Chrome doesn't treat "localhost" specially. It just looks it up like any
other hostname. If your local definition of "localhost" is screwed up,
then you will get screwed-up results. I'm pretty certain this was what
we concluded last time you brought this up -- that your /etc/hosts file
had an incorrect or missing entry for localhost.
Here's what it should look like:
unicorn:~$ host localhost
localhost has address 127.0.0.1
unicorn:~$ grep localhost /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
unicorn:~$ grep hosts /etc/nsswitch.conf
hosts: files mdns4_minimal [NOTFOUND=return] dns
.
Every /etc/hosts file is the same here, and all contain
127.0.0.1 localhost
without a alias.
one of the armbians that does not work with chromium:
gene@bpi52:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files
group: files
shadow: files
gshadow: files
hosts: files mymachines dns myhostname
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
That's as installed, but hosts: line looks skunky to me.
what do mymachines and myhostname actually translate to?
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis