[aklug] Re: Network Set Up Project

From: Kevin Miller <atftb2@alaska.net>
Date: Wed Feb 13 2008 - 19:35:32 AKST

Bob Cortez wrote:
> This is where my ignorance really starts to show. Thanks in advance for
> your patience.
>
> I found the /etc/hosts file but I don't know what format the information
> should be in. Here's the content of my hosts file:
>
> 127.0.0.1 localhost
> 127.0.1.1 mysticventures-laptop.cortez-ross
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts

The format is:

<IP Address> hostname

So you want to put in something like

192.168.1.10 mysticventures-laptop mysticventures-laptop.cortez-ross

That is, assuming that your IP address is 192.168.1.10.

You'll want an entry for every host you want to connect to.

I'm guessing that you're pulling DHCP addresses from your router. The
server(s) should have static addresses. Your workstations aren't as
critical unless you'll want to connect to them. You'll need to
configure the DHCP range so that it doesn't use all the address space.
For instance, leave 192.168.1.1 through 192.168.1.99 as non-assignable.
  Let it assign addresses 192.168.l.100-254.

Statically assign an address to your server. You can do that on the
server itself, or you can tell the DHCP server to always assign a
specific IP address to your server based on the servers MAC address (a
unique number associated with the card at the factory).

> How do I determine if SSHD or VNC is running on the server? Security issues
> are the next thing on my list.

There's several ways. In /etc/init.d are the init scripts to start/stop
different daemons (services in Windows speak). Look in there for the
name of the startup script. There's probably one called sshd and one
called vncd.

 From the command prompt enter:

   /etc/init.d/sshd status
or
   /etc/init.d/vncd status

You can also check running processes by entering:

   ps aux | grep ssh | grep -v grep
and
  ps aux | grep vnc | grep -v grep

If the ssh or vnc server is running that will return the process
information. If they're not running, it'll just drop back to the
command line with no output.

>
> What IP address should I be using?

The IP address of your server that you're trying to connect to. You can
find that out by going to the server and entering:

   /sbin/ifconfig

Also, you may have the firewall turned on by default on the server.
Turn it off initially. Perfectly safe as long as you're not directly on
the internet - that is, you're behind a firewall router like the little
Linksys boxes that sit between your internal network and your cable
modem or DSL modem.

It's much easier to trouble shoot with the firewall off. After you get
things configured the way you want you can turn it back on if desired.
If things stop working when you do, you'll know why and where to fix it.

Hope all that makes sense...

...Kevin

-- 
Kevin Miller
http://www.alaska.net/~atftb
Juneau, Alaska
Registered Linux User No: 307357, http://counter.li.org
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Feb 13 19:35:11 2008

This archive was generated by hypermail 2.1.8 : Wed Feb 13 2008 - 19:35:11 AKST