Ubuntu

How to enable root login on ubuntu 16.04 ?

Enable root logins first you have to set a password for the root account and then unlock the locked root account. If you don't set a password for the root account the passwd command will return passwd: unlocking the password would result in a passwordless account.  So, first execute in...

Read more...

Install WiringPi and controlling raspberrypi gpio pins with php

WiringPi is a GPIO access library written in C for the BCM2835 used in the Raspberry Pi. How to download wiring pi? If you do not have GIT installed, then under any of the Debian releases (e.g. Raspbian), you can install it with: sudo apt-get install git-core To obtain WiringPi using GIT git clone...

Read more...

How to stress test a server

Siege is an http/https regression testing and benchmarking utility. It was designed to let web developers measure the performance of their code under duress, to see how it will stand up to load on the internet. Install seige apt-get install siege Run the following command to seige a server. -t is the...

Read more...

How to check Internet Speed via Terminal?

Check internet speed by speedtest.net wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli ./speedtest-cli   You can also install iperf. apt-get install iperf iperf -s  

Read more...

How to render HTML into PDF files

wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service. Install wkhtmltopdf and its requried packages sudo apt-get install wkhtmltopdf sudo ln -s /usr/bin/wkhtmltopdf /usr/local/bin/html2pdf sudo...

Read more...

Linux basic commands

check the ip address ifconfig Check the hidden ip address which are not correctly configured ifconfig -a Change name servers of network sudo nano /etc/resolv.conf check gateway address netstat -r Find all files with in the system sudo find / -name "*php.ini*" Find all file and folder count for t in files links directories; do echo `find . -type ${t:0:1}...

Read more...

VNC (Virtual Network Computing)

VNC is a graphical desktop sharing system that allows you to remotely control the desktop interface of one computer from another. It transmits the keyboard and mouse events from the controller, and receives updates to the screen over the network from the remote host. You will see the desktop of...

Read more...

All text turned to boxes in Ubuntu

There is a quick fix to solve this problem. Login to command prompt by pressing CTRL + ALT + F1 and login into shell. Reinstalled the Ubuntu fonts with this command: apt-get install --reinstall ttf-ubuntu-font-family Then I rebuilt the font information files with this command: fc-cache -f -v Restart the system and the problem...

Read more...