First most I completely understand. The ONLY thing that gets to me still is the whole email thing. With that stated I would like to add some things here if you don't mind.
Add openssh
Me personally I like nano over vi so I install it.
Configure the Hostname
Then edit the /etc/hostname file:
reboot your server
you should see the following:
root@server1:/tmp# hostname
server1
root@server1:/tmp# hostname -f
server1.example.com
Now with that done lets do a update:
and delete all that is in there and replace it with this:
Now we can run:
I like to have my system clock on the spot so I also do a sys clock update
ok now for installation of rkhunter, binutils,Amavisd-new, SpamAssassin And Clamav (You don't have to have binutils)
Lets make some changes here to clamV
and change it from false to true:
I will post on how to add Jailkit and Fail2ban in another post
Add openssh
Code:
apt-get install ssh openssh-server
Me personally I like nano over vi so I install it.
Code:
apt-get install nano vim-nox
Configure the Hostname
Code:
nano /etc/hosts
Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Code:
server1
Code:
hostname
hostname -f
you should see the following:
root@server1:/tmp# hostname
server1
root@server1:/tmp# hostname -f
server1.example.com
Now with that done lets do a update:
Code:
nano /etc/apt/sources.list
Code:
cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
Now we can run:
Code:
apt-get update
apt-get upgrade
I like to have my system clock on the spot so I also do a sys clock update
Code:
apt-get install ntp ntpdate
ok now for installation of rkhunter, binutils,Amavisd-new, SpamAssassin And Clamav (You don't have to have binutils)
Code:
apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl rkhunter binutils
Lets make some changes here to clamV
Code:
nano /etc/clamav/clamd.conf
and change it from false to true:
Code:
AllowSupplementaryGroups true
I will post on how to add Jailkit and Fail2ban in another post