Archive for the ‘How to’ Category

How to setup OpenDNS on Linux system?

Thursday, December 8th, 2011

Check the OpenDNS webpage for more information of its services. Here, I’ll just explain how to configure your network and switch over to the OpenDNS servers. nano /etc/resolv.conf Use your favorite text editor and open the /etc/resolv.conf file as root and change the nameserver lines to: nameserver 208.67.222.222 nameserver 208.67.220.220 Now it is needed to [...]

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