Getting started with Debian
1. Getting started with Debian
1.1 Debian Installation
1.2 Configure Debian
1.3 Install Some Important Package
1.4 SSH Configure
1.1 Debian installation:
Installation
Starts and Select:
Ø Language : English
Ø Country : Other > Asia > Bangladesh
Ø Keymap to
use
:
American English
Then Debian will start to install…
Name server address :
Host name : tanjila.com “or” company name
Partitioning method : Guided use entire disk.
Partition
for Linux OS Debian:
Primary /boot - 128mb – Bootable Flag ON
Primary swap
- 2 X Ram – Bootable Flag OFF
Primary / -
Rest of the space – Bootable Flag OFF
Select disk to partition:
SCSI1 (0,0,0) (sda)-11.2 GB Hard disk drive
Partitioning Scheme:
All file in one partition
Not
necessary if you want to use:
Logical /var -
(mail) 50GB – Bootable Flag OFF
Logical /usr
- (config file) 10GB – Bootable Flag OFF
Finish partitioning and write changes to the disk: yes
Root password : unlock
Root password validity : unlock
Full name for new user : Tanjila Sarzin
User name to the account : sarzin
Choose a password
:
sar321
Scan another cd/ dvd : no
Use network morror : no
Participate into popular uses servey : no
Chose software to install : standard system
Workgroup / domain name :
Modify smb.conf to us wins : no
Install the GRUB boot loader to the master boot: yes
Finish the installation.
1.2. Debian Configuration:
Step
1:
Check date/time and Install NTP Server
# apt-get install ntp
Set
the date:
#
date
# date --set
10:10:00
# date --set
04-05-2011
# hwclock --systohc
Step 2: Configure Network Interface card (NIC) to be connected with Internet
#vi /etc/network/interfaces
# The loopback network interface auto lo iface lo inet loopback # The primary network interface
auto eth0
[after restart networking interface will up automatically] iface
eth0 inet static netmask 255.255.255.0 network 192.168.200.0 broadcast 192.168.200.255 gateway 192.168.200.1 dns-name servers 202.84.32.22 |
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth4 allow-hotplug eth4 [automatically detect network interface/NIC] iface eth4 inet static
address 192.168.20.60 netmask 255.255.255.0 gateway 192.168.20.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 202.84.32.22 202.84.32.23 dns-search tanjila.com |
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask
255.255.255.0
#
/etc/init.d/networking restart
Check: gateway, dns, google, netstate -net
Step 3: Update source list
#vi
/etc/apt/sources.list
Add there:
deb http://mirrors.kernel.org/debian stable main contrib
deb
http://security.debian.org
main contrib
# deb http://mirrors.kernel.org/debian etch main
#
deb http://security.debian.org/ etch/updates main contrib
1.3 VIM Installation
Now
need to update server and install a important Package VIM
#apt-get update
#apt-get
install vim
If not install then forcefully install:
#aptitude install vim
1.4 SSH Install
SSH
Configuration for remote login
# apt-get install ssh
# vim /etc/ssh/sshd_config
Change the default Port 22 to Port 78
Permit Root Login: no
# /etc/init.d/ssh restart
Comments
Post a Comment