Archive for the ‘How to’ Category

How to fix deprecated pam_stack module error

Saturday, November 12th, 2011

In this article we will see an effective way of fixing the Linux deprecated pam_stack module error for pam.d. If you access your /var/log/secure log file you might notice different services including sshd with the following error: Deprecated pam_stack module called from service “sshd”. The workaround of this is simple Edit /etc/pam.d/sshd Uncomment #auth required [...]

Add Jobs To cron Under Linux or UNIX?

Tuesday, November 8th, 2011

How do I add cron job under Linux or UNIX like operating system? Cron job are used to schedule commands to be executed periodically. You can setup setup commands or scripts, which will repeatedly run at a set time. Cron is one of the most useful tool in Linux or UNIX like operating systems. The [...]

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

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

Setting up a Seedbox

Wednesday, September 28th, 2011
Setting up a Seedbox

A seed box is a server for downloading and uploading digital files, commonly making use of the BitTorrent protocol. A common use for seed boxes is seeding torrents, it’s much more efficient to setup a Seedbox as it’s likely to have access to higher upload speeds. They are also good for general downloading, its easier [...]