The following is a log of how I installed Debian and got a couple of things up and running.

1). DOWNLOAD DEBIAN:

I downloaded the first CD/DVD disk that contained the most necessary files to install a standard Debian System. I burnt/wrote the .iso file: CD1, (Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 CD Binary-1 20120929-15:56) onto a CD, booted my PC and installed onto an available drive. Defaults were accepted.

In their own words:

To install Debian on a machine without an Internet connection, it's possible to use CD images (650 MB each) or DVD images (4.4 GB each). Download the first CD or DVD image file, write it using a CD/DVD recorder, and then reboot from that. The first CD/DVD disk contains all the files necessary to install a standard Debian system. To avoid needless downloads, please do not download other CD or DVD image files unless you know that you need packages on them.

Link: Official CD/DVD images, and find your hardware type.

2). LOOKING AROUND:

a) where are my network interface cards?

check if all were installed:

tokunbo@debian:~$ ip link show

b) what Debian version am I running?

tokunbo@debian:~$ cat /etc/debian_version

6.0.6

c) what packages have been installed?

 

tokunbo@debian:~$ dpkg --get-selections

 

3). CONFIGURE NETWORK INTERFACE CARD FOR INTERNET CONNECTION, etc:

Edit the file "interfaces" in /etc/network/interfaces, save and reboot

a) default setting:

ex: display default setting: cat /etc/network/interfaces

# The loopback network interface

auto lo

iface lo inet loopback

b) sample configuration for static ip address for two interfaces:

auto eth0

iface eth0 inet static

address 192.168.10.5

netmask 255.255.255.0

gateway 192.168.10.1

 

auto eth1

iface eth1 inet static

address 192.168.20.5

netmask 255.255.255.0

gateway 192.168.20.1

c) how to add multiple IPs to a network interface card

we are still editing file "interfaces" in /etc/network/interfaces;

Example:

# The loopback network interface

auto lo

iface lo inet loopback

 

auto eth2

iface eth2 inet static

address 172.16.1.2

netmask 255.255.255.0

gateway 172.16.1.1

 

auto eth2:0

iface eth2:0 inet static

address 192.168.5.6

netmask 255.255.255.252

broadcast 192.168.5.7

gateway 192.168.5.5

 

auto eth2:1

iface eth2:1 inet static

address 10.10.10.3

netmask 255.255.255.248

broadcast 10.10.10.7

network 10.10.10.0

 

#note: the addition of broadcast to eth2:0 and network to eth2:1 is to show a variation in configuration. Replace your own IPs in the above settings.

save the file "interfaces" and do:

command: /etc/init.d/networking restart - to restart networking on Debian.

d) configure DNS

to add nameserver IPs, edit the file "resolv.conf" in /etc/resolv.conf:

Example:

nameserver 1.2.3.4

nameserver 5.6.7.8

 

Test DNS configuration and make sure you have internet access, do:

tokunbo@debian:~$ host google.com

tokunbo@debian:~$ host google.com

tokunbo@debian:~$ nslookup yourdomainname.com

 

Sample output:

tokunbo@debian:~$ host google.com

google.com has address 173.194.34.163

google.com has address 173.194.34.164

google.com has address 173.194.34.165

google.com has address 173.194.34.166

google.com has address 173.194.34.167

google.com has address 173.194.34.168

google.com has address 173.194.34.169

google.com has address 173.194.34.174

google.com has address 173.194.34.160

google.com has address 173.194.34.161

google.com has address 173.194.34.162

google.com has IPv6 address 2a00:1450:4009:805::1002

google.com mail is handled by 40 alt3.aspmx.l.google.com.

google.com mail is handled by 50 alt4.aspmx.l.google.com.

google.com mail is handled by 10 aspmx.l.google.com.

google.com mail is handled by 20 alt1.aspmx.l.google.com.

google.com mail is handled by 30 alt2.aspmx.l.google.com.

tokunbo@debian:~$

e) Add static routes to an interface:

To add static route, edit the file /etc/network/interfaces, save and reboot

Example:

post-up route add -net netmask gw

f) Map IPs and Names in a Hostfile:

To map hostnames and IPs just like in windows.... (c:/windows/system32/drivers/etc/hosts);

On Linux, edit and add IP and hostname to file: /etc/hosts

Examples:

mydb.domainname.com

myhostname myhostname.myservername.com

You have no rights to post comments