Debian Linux Utilities Installation and Settings

SSH Connection

You can connect to your Debian server with any SSH client software on windows. You
can use software such as Mobaxterm, Putty, secureCRT as SSH Client.
In Windows 10 and later, ssh connection can be made via cmd.
run (run) –> cmd –> enter
The command processor can be opened and connected with the following commands.

# You can enter the password you gave to the mehmed user during
installation.
ssh mehmed@192.168.134.71

Connection to virtual Debian Linux machine with putty application running on
windows. (You can download Putty for free from the internet.)

Installing Utilities

apt install net-tools
apt install linux-headers-$(uname-r)
apt install vim

For tools we use all the time, such as arp, ifconfig, netstat, rarp,
nameif and route, we can download the net-tools package.
We install the kernel headers in order to setup plugins of VirtualBox.
vim is an enhanced version of the terminal text editor vi with visual features. It is a
useful feature to warn when wrong parameter is entered.

To list packages in repositories
apt list
apt list | grep ftp
such commands are available

Installing VirtualBox Add-ons

From the Devices menu, click “Insert Guest Additions CD image”.

mkdir /mnt/iso
mount /dev/sr0 /mnt/iso
/mnt/iso/VBoxLinuxAdditions.run

After the installation is complete, the server restarts.

“sudo” settings

su -
# Enter the root user’s password.
# With root user
apt install sudo
vim /etc/sudoers # The following line is added to the file.
mehmed ALL=(ALL) NOPASSWD:ALL
systemctl restart sshd

Connecting to Linux systems remotely with root is a security vulnerability. Therefore,
first login to the system with a different user. After that, switch to the root user.
While we were installing the system, we created a user named “mehmed”. Now let’s
give sudo privileges to the “mehmed” user.
There are many uses for sudo. For example, a standard user can only be given
permission to run a command as root. You can access the details from the Linux man
pages.

Local Language Support

locale -a
dpkg-reconfigure locales

Necessary language support is added to avoid Turkish character problems. If you are
installing a software to store its data, you can learn the compatible language of the
software from the developers or from the manual page.