fbpx

Linux

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

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

Root access is disabled

Securing and Optimizing Linux Some SSH servers can disable SSH logins for certain users and may even disable root logins by default. If you're using Open SSH server, you have to edit /etc/ssh/sshd_config and make sure that it doesn't contain one of the following lines: PermitRootLogin no PermitRootLogin without-password Both result in a simple...

Read more...

Access memcache on remote servers

By default memcache server is restricted to localhost and cannot be accessed outside server. You have to make configuration changes to  allow others to listen memcache server. Now make changes in memcache configuration. vi /etc/memcached.conf Keep in mind that the -l parameter is set to 0.0.0.0, which essentially allows connections from ANY...

Read more...

Split a file into multiple files and combine again

You need to be in a directory in which you want to split The command below will create smaller files and postfix a alphabets for smaller files. You can change the size according to your needs. split -b 10m "file-to-split.sql.gz" "file-to-split.sql.gz.part-" Finally, when you want to join the split files. cat file-to-split.sql.gz.part-* > file-to-split.sql.gz You...

Read more...

Install nginx server and configure a website

In this toturial you will learn how to install and configure nginx server and run a website on virtual host. According to the nginx website, virtual hosts are called Server Blocks on the nginx. Install nginx on the ubuntu server sudo apt-get install nginx Start nginx server sudo service nginx start Install php-fpm which...

Read more...