Install and set up Linux Debian 7

Linux is an operating system. It allows the configuration and the execution of all other programs on the server. It is available in several distributions including Debian and Ubuntu which deliver the best compromise between simplicity, security and robustness.

This post describes how to install and set up Linux Debian 7 “Wheezy”.

Install Debian

Download and burn the CD image of the latest stable release of Debian available on http://www.debian.org (link at the top right of the home page).

Plug the server on a local network with an internet connection, then boot the server from the CD. Start the appropriate installation for the server (Install or 64 bit install) and select the English language.

I recommend using a single subdomain as hostname, eg dev.mydomain.com or prod-1.mydomain.com.

Hostname: myhostname.mydomain.com
Full name for the new user: My Complete Name
Username for your account: mylogin
Partitioning method: Guided - use entire disk
Partitioning scheme: All files in one partition (recommended for new users)
Finish partitioning and write changes to disk
Write the changes to disks? Yes
Choose software to install: None
Install the GRUB boot loader to the master boot record? Yes

Install SSH

SSH (Secure Shell) is a secure communication protocol that allows to interact with a remote server.

apt-get install ssh

Set up the network

The following example sets the IPv4 and IPv6 addresses of the eth0 network. Values given are indicative and may vary depending on the network configuration.

nano /etc/network/interfaces

auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet static # IPv4
    address xxx.xxx.xxx.xxx
    netmask 255.255.255.0
    gateway xxx.xxx.xxx.254
iface eth0 inet6 static # IPv6
    address xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
    netmask 64

reboot

» Create and configure DNS records for a domain
» Install and set up a web server on Debian or Ubuntu Linux
» Secure a web server on Debian or Ubuntu Linux
» Create and install a firewall on Debian or Ubuntu Linux
» Backup a server on Debian or Ubuntu Linux
» Useful commands for Debian or Ubuntu Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

*