fbpx

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...

Access & Share the internet from laptop to raspberry pi

The Raspberry Pi is automatically set to obtain an IP address from your wired or wireless network. Why does the Raspberry Pi need an IP address? This address is needed so that any traffic destined for your Raspberry Pi will be able to find it on the network. This is...

Read more...

How To Install OpenVPN Access Server on Ubuntu 14.04

Download the OpenVPN AS package sudo wget http://swupdate.openvpn.org/as/openvpn-as-2.0.7-Ubuntu12.amd_64.deb Install openvpn dpkg -i openvpn-as-2.0.7-Ubuntu12.amd_64.deb Chnage the default password for user "openvpn" sudo passwd openvpn OpenVPN AS web interfaces can be found at: Admin UI: https://YourIpAddress:943/admin Client UI: https://YourIPAddress:943/ Replace "YourIPAddress" with your actual  server's IP address. Download the client when you access the url above.

Read more...

How to convert linux/mac partition to fat/ntfs partition

You cannot delete the linux/mac partition from windows disk management window. You would have to wipe out disk and then create it via  windows "disk manager". Open windows command prompt and Type "diskpart" into the Command Prompt window and press Enter. Type "list disk" at the DISKPART prompt and press Enter to...

Read more...

How to run time consuming commands on server and also do benchmarking

Make a shell script file. nano script_benchmakring.sh #!/bin/bash echo `date` > /home/log.txt sleep 5 echo `date` >> /home/log.txt You can place any command in the script in place of "sleep 5". We are using sleep command to verify everything is working fine and time difference is being recorded. Now we will make this script executable chmod +x...

Read more...

MySql configurations & tweeking

You can build your own configurations but it takes lot of time and R&D to get best configurations. You can generate configurations through wizard percona tools https://tools.percona.com/wizard We will modify some parameters according to our needs. Sample configurations which i use on MySql Percona 5.6 are as follow. # Generated by Percona...

Read more...