VIKHOST Tech Blog
Useful Technical Articles, Notes and Instructions.
How to add additional IP address Linux — At first, you need to back up, if anything will be done wrong. Below you could find command: cp /etc/network/interfaces /etc/network/interfaces.backup Also please make sure that you are one of the root account on your server.
For adding IP address to server’s network interface you need to edit files /root/etc/network/interfaces After coping, you could view and edit file using nano: nano /etc/network/interfaces
And when you will be there, you should see something like below: auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
hwaddress ether 00:00:45:1c:5e:d6
address 192.168.0.1
netmask ...
Read more
Linux. List of services in auto loading
Linux. List of services in auto loading — The easiest and most intuitive way to display a list of services / programs that are at startup, with the ability to edit them, is to use the sysv-rc-conf console utility. We use next: sudo apt-get install sysv-rc-conf Run: sudo sysv-rc-conf And we see next: Now, with the help of a space, we can enable or disable the autoload of the service, — — will stop the service, and + / = — will start. You might also want to read other articles: » Centos 7 — How to add additional IP ...
Read more
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 — 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.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 — 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
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
How to disable NetworkManager on CentOS
How to disable NetworkManager on CentOS — Below you can find how to disable NetworkManager service. 1. Command how to check interfaces are managed by NetworkManager # nmcli device status Mentioned command displays table with lists all network interfaces along with their STATE. If Network Manager is not controlling an interface, its STATE will be listed as unmanaged. Any other value indicates the interface is under Network Manager control. 2. How to stop the NetworkManager service: # systemctl stop NetworkManager 3. For disabling the NetworkManager service permanently: # systemctl disable NetworkManager 4. For confirming that NetworkManager service has been disabled ...
Read more
http_status_code | VIKHOST
HTTP - Status Codes - Server Response Code it is server response 3-digit integer, the first digit it is defines the class of response and the last two digits do not have any categorization role. Below you can find the most popular the Server Response Codes: 1XX Informational 100 Continue - This is a kind of confirmation from the server that the initial request has been successfully accepted, you can continue the actions that you have started (for example, scanning). 101 Switching Protocols The server switches protocol. 102 Processing - the request is received by the server, and at ...
Read more
How to make password entry in the terminal visible
How to make password entry in the terminal visible — Each time when you use sudo, the terminal asks you to enter the user password. This is a great security measure! But the terminal does not offer any visual feedback when entering the password. This is often confusing. Adding such a relationship is quite simple, as a result of which we will see “an asterisk” when entering. Open the terminal (often by pressing Ctrl + Alt + T) and enter: # sudo vi / etc / sudoers Find the line: # Defaults env_reset and replace it with: # Defaults env_reset,pwfeedback ...
Read more
Загрузка...