LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   setting up home network system (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-home-network-system-618556/)

firedancer 02-04-2008 06:36 AM

setting up home network system
 
HI, i have a debian server and kubuntu client

trying to set up learning environment,
both pc's are connected with a cat5 ethernet cable

i ssh into the server, but how i make sure i can do this after boting both pc'c again

i gave both pc's a static ip , was able to ping to both and ssh , but would like this to happen after boot without having to reconfigure everything again
first time i ssh succesfully trying to get a step further
need i do something with resolve.conf and host. files or so
can anyone guide me from here
thnx

firedancer

KenJackson 02-04-2008 07:36 AM

Some distros come with avahi configured by default. That is a zeroconf system that causes each PC to broadcast it's own DNS name and address to the local network. In theory, it just works.

If you choose to use avahi, you can use the man command to view help for avahi-daemon.conf and the various commands: avahi-browse, avahi-publish, avahi-daemon, etc.

But I don't use it, in favor of the older but conceptually more simple method of maintaining my own /etc/hosts file on each PC. To do that (instead of using avahi), just make sure each PC has entries for each PC in it's /etc/hosts file. Here is a sample file, assuming you have named the two Linux PCs 'server' and 'client'. Substitute the actual names.
Code:

127.0.0.1      localhost
192.168.1.1    router
192.168.1.2    server
192.168.1.3    client

Of course, you also have to make sure sshd is configured to start automatically at least on the server. If it's not already enabled, I believe this command will do it on a Debian system:

update-rc.d sshd defaults

firedancer 04-22-2008 08:08 PM

thnx for the insight


All times are GMT -5. The time now is 12:30 AM.