Saturday, July 23, 2016

Debian Quick Start

Network configuration:

# vi /etc/network/interfaces

// for ipv4

iface eth0 inet static
address 192.168.6.11
netmask 255.255.255.0
network 192.168.6.0
broadcast 192.168.6.255
gateway 192.168.6.1

// for ipv6, you just need to add the entires below the segment as

iface eth0 inet6 static
address 2001:db8::c0ca:1eaf
netmask 64
gateway 2001:db8::1ead:ed:beef

DNS configuration:

# vi /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

Advanced networking:

Create alias for eth0 to have multiple IP address.

#IP Aliasing
auto eth0:0
iface eth0:0 inet static
 name Ethernet alias LAN card
 address 192.168.6.12
 netmask 255.255.255.0
 broadcast 192.168.6.255
 network 192.168.6.0

Restart Networking Service:

# service networking restart

Install tmux:

# apt-get install tmux

Update apt to ensure we have the latest packages:

# apt-get update

Remove any Vim cruft that might already be on your system:

# dpkg --get-selections | grep -i vim
# dpkg -l | grep -i vim
# apt list --installed | grep -i vim

# apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common

Install Vim:

# apt-get install vim-nox

Install Git:

# apt-get install git

No comments: