Jun 112018

ADM

How to change the hostname in Ubuntu

  • >11 June 2018}
  • ADM

How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl

Feb 022017

ADM

How to open port for a specific IP address on CentOS 7

  • >02 February 2017}
  • ADM

How to open port for a specific IP address on CentOS 7. Using the firewall-cmd command with add-rich-rule parameter.

Jan 312017

ADM

How to build a LAMP stack (Linux, Apache, MySQL, PHP) on CentOS 7

  • >31 January 2017}
  • ADM

How to build a LAMP stack (Linux, Apache, MySQL, PHP) on CentOS 7. The article includes the install + the firewall settings for public access.

Apr 112016

ADM

Starting LAMP On Low Memory VMs

  • >11 April 2016}
  • ADM

If you are using a dedicated server with a few GB of RAM then you will not have this problem. But if you are running cloud computing with small virtual server like vultr.com then you may end up in this problem: the mysql/mariadb server will run out of memory.

Apr 292016

ADM

Change ssh protocol in CentOS 7

  • >29 April 2016}
  • ADM

SSH has two protocols that can be used, protocol 1 and protocol 2. More about SSH you can found on Wikipedia.

May 202016

ADM

Change ssh default port in Linux

  • >20 May 2016}
  • ADM

By default, ssh listens for incoming connections on port 22. So if a hacker wants to attack your machine he will most likely scan port 22 first. Just to make an idea how important is this (from my point of view of course), before changing the default ssh port for my server I got every day 1000+ login tries for my root user. An effective (but minimal) method to protect your machine is to run ssh on non-standard port. Any unused port will work but one above 1024 is preferable.