Tag Archives: Linux

Schedule tasks on Linux using Cron

Overview

Cron is the time-based job scheduler in Unix-like computer operating systems.
Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates.
It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes.
Continue reading

How to disable java in all browsers at once

Overview

Several major companies have been hacked lately. Security advice for web users last week from the US Department of Homeland Security encouraging to disable java on browsers. Disable java in each browser takes time. You will learn how to disable java for all at once. and also for each browser if needed.

Continue reading

VMware Zimbra Active Directory User Mailbox Sync

Overview

Zimbra Active Directory User Mailbox Sync script uses Zimbra utility to Add or Remove mailboxes according to the AD User List.
You can sync all AD users at once or Create a Security Group And add members in order to assign a mailbox.
Continue reading

sSMTP a Gmail sendmail relay replacement for Linux

Overview

sSMTP – a simple and lightweight MTA used to deliver mail from a computer to a mail hub (SMTP server) using Gmail SMTP servers.
Unlike Exim4, it does not receive mail, expand aliases, or manage a queue.

Continue reading

VMWare Workstation start on boot CentOS

Centos EPEL – Howto add EPEL repository to your Centos 6.x

Centos EPEL

Centos EPEL – In the following tutorial I will show you how to add the fedora EPEL repository to your CentOS installation

.

Applicable to

  • Centos 6.x

 

Requirements

In order to install CentOS EPEL Repository you need:

  • root access
  • wget:
    yum install wget

 

Installation

check here for latest version of epel-release-x-x.noarch.rpm

wget http://mirrors.nl.eu.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
rm epel-release-6-8.noarch.rpm -f

or in short:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

 

That’s it! You’ve added CentOS EPEL repository to your centos installation.

SSH connection without password between two linux machines

Overview

How to establish SSH connection without password between two linux/unix machines

SSH connection without password between two linux machines

Instructions

  1. Generate the files: [id_rsa], [id_rsa.pub] in the First Machine by typing at command (do not use a password – just hit Enter*) :
    ssh-keygen

    * You don’t want to enter any passwords, because you want to call ssh from a within a shell script.
    ** The randomart is an easier way for humans to validate keys.
  2. Copy (and rename) id_rsa.pub to authorized_keys on Server (run from the same computer you run ssh-keygen);
    scp -r -P 22 /root/.ssh/id_rsa.pub destination:/root/.ssh/authorized_keys<em>
    </em>

    Where destination is server B.

Now you can connect as root without a password between the servers.

How to Set-Up Git / GitHub on Centos 6.3

Git

 

Introduction

“Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Continue reading