How to change the hostname of your linux virtual nodes india

    Posted in Linux Servers on Oct 11, 2018

    Change Virtual Compute Nodes Hostname

    Please follow the below steps to change the hostname of your Virtual Compute Node.

    Login to your Virtual Compute Node as a root user.

    To check the current hostname of your server, run the command

    hostname

    To change the hostname of your server, type new name followed by hostname

    hostname new-name

    Change the hostname under the path /etc/sysconfig/network

    vi /etc/sysconfig/network

    Edit the content of the file so that it looks like this

    HOSTNAME=new-name

    Ubuntu/Debian

    Next, edit the /etc/hostname file and update hostname:

    vi /etc/hostname

    Edit the /etc/hosts f...[Read more...]

    How to Fix client intended to send too large body

    Posted in Linux Servers on Aug 24, 2018

    First you need to edit the /etc/nginx/nginx.conf file by typing the vi command:

    $ sudo vi /etc/nginx/nginx.conf

    In http (server/location) section add the following directive to set the

    maximum allowed size in 10MB:
    
    client_max_body_size 10M;

    Save and close the file.

    Test nginx configuration for error

    Run the following command:

    $ sudo nginx -t

    Sample outputs:

    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

    If no error means, restart the nginx web server.

    $ sudo systemctl reload nginx
    
    OR
    
    $ sudo service nginx re...
    [Read more...]

    How to setup automysql backup/dump scripts for regular backups

    Posted in Linux Servers on Jul 30, 2018

    First download it via following link :-

    root@cloudtechtiq.com:~$ wget http://ncu.dl.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz

    Create a directory in /root named as automysqlbackup and Unzip file :-

    root@cloudtechtiq.com:~$ tar zxvf automysqlbackup-v3.0_rc6.tar.gz /root/automysqlback

    After unzip install that file :-

    root@cloudtechtiq.comk:~$ sh install.sh

    -> Press enter

    -> Press enter

    then open:- /etc/automysqlbackup/automysqlbackup.conf

    root@cloudtechtiq.com:~$ vim /etc/automysqlbackup/automysqlbackup.conf
    make followin...[Read more...]

    How to create MySql db and username via CLI

    Posted in Linux Servers on Jun 23, 2018

    linux-dedicated-seerver.jpg

    Login to mysql

    mysql -u <username> -p

    Creating a database

    create database database_name;

    put database name at the place of database_name.

    Creating a user

    create user 'username'@'localhost' IDENTIFIED BY 'passwordhere';

    Grant privileges to user on database

    grant all privileges ON database_name .* TO 'username'@'localhost';

    TO grant on all databases need to issue below query

    grant all privileges ON *.* TO 'username'@'localhost';

    The asterisks(*) in above query is representing all database(first asterisks) and all tables of that databases(second asterisks).

    Grant privileges with remote access

    gr...
    [Read more...]

    How to Install Nginx on CentOS 7

    Posted in Linux Servers on Apr 17, 2018

    linux-vps-hosting.jpg

    NGINX (short for Engine X) is a free, open-source and powerful HTTP web server and reverse proxy with an event-driven (asynchronous) architecture. It is written using C programming language and runs on Unix-like operating systems as well as Windows OS.

    It also works as a reverse proxy, standard mail and TCP/UDP proxy server, and can additionally be configured as a load balancer. It is powering many sites on the web; well known for its high-performance, stability and feature-rich set.

    In this article, we will explain how to install, configure and manage Nginx HTTP web server on a CentOS 7 or R...

    [Read more...]

    How to configure VNC on ubuntu

    Posted in Linux Servers on Mar 07, 2018

    linux-vps-hosting.jpg

    How to Install VNC on Ubuntu 16.04

    Install VNC on Ubuntu 16.04

    As you know, VNC is a protocol that allows sharing the desktop and controlled remotely over the internet. This simple guide helps you to install VNC on Ubuntu 16.04 machines.

    Before installing the VNC server, let us install Xfce desktop.

    $ sudo apt-get update
    $ sudo apt-get install xfce4 xfce4-*

    Install the VNC server using the following command.

    $ sudo apt-get install vnc4server

    VNC server listens on port 5900, but if you plan to setup port-offset in VNC; we can run a VNC service on a sub-port of the default port 5900.

    For examp...

    [Read more...]