Archive for the ‘Linux system’ Category

3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id

Tuesday, November 8th, 2011

You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article. ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home, ~/.ssh, and ~/.ssh/authorized_keys. This [...]

How To scp, ssh and rsync without prompting for password?

Tuesday, November 8th, 2011

Whenever you need to use scp to copy files, it asks for passwords. Same with rsync as it (by default) uses ssh as well. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password [...]

SSH and SCP: Howto, tips & tricks

Monday, November 7th, 2011

This tutorial is about SSH and SCP. You will learn how to connect to a remote host and how to copy between hosts. This tutorial also documents a few important differences between the commands. Difficulty: Basic Before we start: in this tutorial, you will come across both SSH and ssh. The difference is this: SSH [...]

How to sync data between 2 servers automatically

Monday, November 7th, 2011

Have you ever wanted to know how to easily synchronize the data between multiple servers automatically? In this article I’ll explain how to setup 2 Linux servers to automatically synchronize data between a specific directory on each server. To do this we will use rsync, ssh key authentication, and a cron job. Let’s call the [...]

How do I sync data between two Load balanced Linux / UNIX servers?

Monday, November 7th, 2011

Load balancing is way to provide to handle the load of the large number of visitors particular website or network service receives. It helps provide redundancy to your website. There are several ways to accomplish load balancing: * Use of Linux Virtual Server * Use of layer 4 routers * Round robin DNS with squid [...]

How to use rsync for transferring files under Linux or UNIX

Monday, November 7th, 2011

How do you install and use rsync to synchronize files and directories from one location (or one server) to another location? – A common question asked by new sys admin. rsync is a free software computer program for Unix and Linux like systems which synchronizes files and directories from one location to another while minimizing [...]

Apache HTTP Virtual Host in Centos

Tuesday, October 11th, 2011

The term Virtual Host refers to the practice of maintaining multiple servers on one machine, each server being defined by it’s hostname (domain).  See the Apache Virtual Host documentation for more information. How to create an Apache HTTP Virtual Host You must first Install and Configure Apache HTTP Server See our Apache HTTP Server documentation Create/Open the file [...]

Find and remove files with one find command on fly (Linux, Unix system)

Wednesday, October 5th, 2011
Find and remove files with one find command on fly (Linux, Unix system)

How do I find and delete files under Linux / UNIX operating systems? Some time it is necessary to find out files and remove them. However, rm command does not support search criteria. However, with find command you can search for files in a directory and remove them on fly. You need to combine find [...]

Linux Shell script to rename multiple files in folder

Wednesday, October 5th, 2011
Linux Shell script to rename multiple files in folder

How do I rename multiple files at a shell prompt under Linux or UNIX operating systems? Renaming multiple files at a shell prompt is always considered as a black art by many UNIX gurus. To be frank if you understand regex then it is not a black art anymore. A regular expression is a string [...]

Installing Jinzora 3.0 Music Server

Wednesday, September 28th, 2011
Installing Jinzora 3.0 Music Server

Jinzora is a web based media server and management system written in php. It enables you to play your music and organise your music from any computer connected to the internet. It can stream to different multimedia devices at multiple bandwidths, so you can listen to you music at home in high quality, listen to [...]