Initial Debian Linux Configuration

Hi again!

In previous post we installed Debian from scratch on top of VMware environment and now we have to configure it abit. At the moment we are able to connect only via VMware consoledebian_first_configuration_1.JPG

Lets start:

After OS installation you should add the next two line to the file /etc/apt/apt.conf.d/70debconf:

APT::Install-Recommends;
APT::Install-Suggests;

These directives allow you to avoid installing of recommended and suggested packages (such as X11 support in ssh).

An approximate form of file /etc/apt/sources.list is as follows:

deb https://www.mirror.yandex.ru/debian/ jessie main non-free contrib
deb https://www.mirror.yandex.ru/debian/ jessie-updates main contrib non-free
deb https://www.security.debian.org/ jessie/updates main contrib non-free
deb https://www.mirror.yandex.ru/debian/ jessie-backports main contrib non-free

Packages installation and basic configuration

Just after system OS installation ends, you should update the system with these commands:

apt-get update
apt-get upgrade

After that these packages should be installed:

apt-get install ssh sudo open-vm-tools

To configure remote access, you need to change the configuration of ssh-server. In the file /etc/ssh/sshd_config, you must configure the following settings:

ListenAddress 10.10.x.y
PermitRootLogin no
PermitEmptyPasswords no
PasswordAuthentication no

Before adding users to the server, you need to create a group “admins”:

groupadd -g 500 admins

You must also configure sudo: create a file /etc/sudoers.d/remote_ssh with the content:

{e446ef79be674adb3c6945ce128768d37101f21a4bf2301a6de0b74a3fac67b5}admins ALL = (ALL) NOPASSWD: ALL

And also there is usefull script which i posted in november 

Thank you for reading. In the next post we will start working on Cassandra and KairosDB.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.