VIKHOST Tech Blog
Useful Technical Articles, Notes and Instructions.

How to check the Debian version

How to check the Debian version — Command cat /etc/issue
The easiest way to find out your Debian version is to look at the contents of the /etc/issue file with the cat command root@debian-host:~# cat /etc/issue
Debian GNU/Linux 8 \n \l
Command cat /etc/debian_version
However, this file contains only information about the version of the distribution, in order to find out the version and release number of Debian, you need to use another command: root@debian-host:~# cat /etc/debian_version
8.7
Program hostnamectl
Starting with version 8, it became possible to use the hostnamectl command, which will display even more information about the ...
Read more
How to disable SELinux in CentOS 7

How to disable SELinux in CentOS 7

How to disable SELinux in CentOS 7 — At first let’s to check status of SELinux. To check current state of SELinux and the SELinux policy that is used on your system, use the sestatus command: sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31 From the above output, it is clear that SELinux is turned on and set to forced mode. If you want permanently disable SELinux on your CentOS 7 system, ...
Read more
How to change Hostname in Ubuntu 18

How to change Hostname in Ubuntu 18

How to change Hostname in Ubuntu 18.04/18.10 Server — As you know - hostname it is name of computer and its identifier in the local network. It is computer's name which is indicated in setup of Ubuntu. Below you can find instruction how to change hostname in working system without restarting. How to know computer's name
For checking name of computer is used next command: hostnamectl
in the displaying of this command hostname is displayed in Static hostname How to change hostname
if you want to change hostname of computer, you need to use command - hostnamectl below in command ...
Read more
How To Create Additional Administrator Accounts for Windows Server 2012

How To Create Additional Administrator Accounts for Windows Server 2012

How To Create Additional Administrator Accounts for Windows Server 2012 — You need to do next steps to create additional Administrator Accounts.
At first we need to create account and only after it you can add this account to the Administrator Group role: 1. Navigate to Computer Management. This can be done by clicking Start > Computer Management or via Start > Run > compmgmt.msc 2. In the left hand pane expand Local Users and Groups 3. Right click Users > New User... 4. In the window which pops up, provide the new account a username and a description. Be ...
Read more