VIKHOST Tech Blog
Useful Technical Articles, Notes and Instructions.
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
How to add additional IP address

How to add additional IP address

Centos 7 - How to add additional IP address — For adding additional IP address to your server running CentOS, you need to do the following. 1. Connect via ssh to our server. Create file /etc/sysconfig/network-scripts/ifcfg-eth0:0 with the following content: DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.11
NETMASK=255.255.255.255
(IPADDR and NETMASK data use those that you received when ordering an IP address) 2. It can be done using next commands. Go to the network-scripts directory: cd /etc/sysconfig/network-scripts/. Then create a new file: # nano ifcfg-eth0:0 3. After that, restart the network service: service network restart We execute ifconfig, we see that eth0:0 has ...
Read more