Re: re Laptop Does Not See eth0 [RESOLVED]

Bengt Richter <[email protected]>
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
On 03/18/2012 11:13 AM Rich Shepard wrote:
[...]
>
>     All that's left to do is write a shell script she can run that copies
> /etc/resolv.conf.home to /etc/resolv.conf for use on the LAN. Each time the
> laptop is used at some wifi hot spot it overwrites /etc/resolv.conf so I
> need to restore it for use here where we run static IP addresses for the few
> hosts on the LAN. A shell script that runs with /etc/sudoers will do the
> trick.
>
Couldn't you just use /etc/hosts ?

It seems to work for me in setting up fixed
local IP addresses like

192.168.0.106	foo.bar.org	foobie

My router didn't require any special talking to
to use the 106 instead of assigning dynamically, but ymmv.

Then you can from elsewhere on your lan just do ssh $USER@foobie
(or use the actual value of $USER or whatever, of course).

man hosts  # for more
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.