Entries by howto

How to Configure kiosk on Ubuntu 14.04 and Chrome

Prerequisites Step 1: Install Ubuntu Server with LTE Step 2: Install apache2 on Ubuntu Step 3: Set user login without password authentication # vim /etc/sudoers %sudo ALL=(ALL) NOPASSWD: ALL Step 4: Install Packages # sudo apt update # sudo apt install –no-install-recommends xorg openbox google-chrome-stable pulseaudio Step 5: Set user in audio group # usermod […]

4 ways to check size of physical memory in Linux

Introduction In this article we will see basic commands to check the physical memory on the server under Linux. Many beginners struggle to know their system well in the context of resources such as CPU, Memory, Disks, etc. So I decided to write this small item pointing command to check the RAM on the Linux […]

How to Install locate in Linux

Locate is very useful command to find the location of file/folder in linux. Install mlocate package # yum install mlocate Update database by executing updatedb command # updatedb Now, locate any file/folder using “locate” command # locate httpd /etc/httpd /etc/httpd/conf /etc/httpd/conf.d /etc/httpd/conf.modules.d /etc/httpd/logs /etc/httpd/modules /etc/httpd/run /etc/httpd/conf/httpd.conf /etc/httpd/conf/magic /etc/httpd/conf.d/README /usr/sbin/httpd /usr/share/httpd /usr/share/doc/httpd-2.4.6 /usr/share/doc/httpd-tools-2.4.6 /var/cache/httpd /var/cache/httpd/proxy /var/log/httpd […]

How to check Database size in Linux

We can check all the sizes of databases through execute a simple query in mysql server Step 1: Login with mysql server Login to mysql server by putting the mysql server credentials # mysql -u username -p Enter Password: Step 2: Execute the Query Execute the mysql query in mysql server. mysql> SELECT table_schema “Data […]

WiFi Router Security breaches

Introduction Wifi security breaches when the research and development team scanned 32 WiFi router firmware firmware products offered by more than 10 of the most popular home, SMB and enterprise wireless routers in the US, Europe and Asia Manufacturer: Asus, Belkin, Buffalo, Cisco, D-Link, EFM, Huawei, Linksys, Netis and TP-Link. Severity Level The firmware of […]

How to Add Date & Time with History in Linux

Introduction The command history allows the use of words from previous command lines at the command prompt type. This simplifies spelling corrections and the repetition of complicated commands or arguments. History Command # history 850 useradd admin 851 passwd admin 852 cd /home/admin/ 853 ls -l 854 ls -la 855 top Edit the file /etc/bashrc […]

How to Install PHP in nginx

Prerequisites Install nginx web server Step 1: Install PHP & PHP-FPM Install packages php & php-fpm package on server using epel repository. # yum –enablerepo=epel -y install php php-mbstring php-pear php-fpm Step 2: Configure PHP-FPM Modify user and group name in php-fpm configuration file. # vi /etc/php-fpm.d/www.conf user = nginx group = nginx Step 3: […]

How to reset root password in Linux

Introduction If you forgot your root password, then it’s not a big deal. Below are the methods to reset root password in different linux distributions. Step 1: Power on Redat/CentOS 7 Server First power on your Redhat/CentOS 7 server. At the boot menu, select the Kernel you want to boot up and press e to […]

How to Configure MySQL Master-Master Replication

Step 1: Install MySQL Server Install MySQL Server on both machines. # apt-get update # apt-get install mysql-server mysql-client Step 2: Configure MySQL Servers Edit the /etc/mysql/my.cnf file on both machines. Add or modify the following values: Server 1: # vi /etc/mysql/my.cnf server_id = 1 log_bin = /var/log/mysql/mysql-bin.log log_bin_index = /var/log/mysql/mysql-bin.log.index relay_log = /var/log/mysql/mysql-relay-bin relay_log_index […]