Useful Technical Articles, Notes and Instructions.
How to Shutdown or Reboot Debian 10
How to Shutdown or Reboot Debian 10 (Buster) — You need to know that traditional commands for halting and rebooting will not be used any more for Debian 10. Now this system is fully switched to Systemd. At first for work with a system you need to use a root user for commands. Below you could find systemd equivalents which need to be used on Debian 10: For shutdowning Debian 10 use next command: systemctl poweroff
For rebooting Debian 10 command: systemctl reboot
You might also want to read other articles: » Centos 7 - How to add additional IP ...
Read more
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
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
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
(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