The following script will help you to upload a file to s3 Bucket. The script initially copy the file Prerequisites: Webserver which support to run php application Composer installed on the hosts AWS access & secret key to upload file File Size should not be more than 1MB Script Setup:… Continue Reading PHP script/WebURL to upload file to s3

As you might know, it stands for Dell Remote Access Card. Working on Dell servers, this tool could be very handy if you are working with hundreds to thousands of server in a day. Here I will share few important and commonly use DRAC CLI commands: racadm get BIOS.BiosBootSettings.bootseq  ⇒ Gets you… Continue Reading Working on Dell DRAC CLI

Log rotation is a way of managing old log files to reduce disk space usage on the server. By default logrotate is invoked once a day using a cron scheduler from location /etc/cron.daily/ grep logrotate.conf /etc/cron.daily/logrotate /usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1 Logrotation is manged by two different configuration files /etc/logrotate.conf [generic… Continue Reading Enabling log rotation on Linux Hosts

Consider scenario on large production system, when a new table is created or an alter table is triggered then we may need to notify few users. We came across a same scenario when the table schema or new table created, we need to notify few users. Assumption: Mysql general query… Continue Reading Send notification when alter, create table event occurs on mysql

This post may be useful if we want to keep track what your users are executing on the server. You can write some custom scripts incase of any abnormal activity being done by the user. Add the following line in /etc/bashrc export PROMPT_COMMAND=’RETRN_VAL=$?;logger -p local6.debug “$(whoami) [$$]: $(history 1 | sed… Continue Reading Enable command logging on Linux hosts

Scenario/Use case: Consider, we have a jumpbox which has access to all the production machine and we don’t want to expose SSH access to public. In such scenario, we can allow only jumpbox to public access and through jumpbox, we can access remaining machines. But, its a pain to login… Continue Reading Use jumpbox to ssh to servers

Most of the renowned ESPs such as gmail or hotmail or yahoo do not like to mailed to from the same address multiple times in a short span. If they detect (and they will) that a server’s IP is sending out bursts of emails in short span of time or… Continue Reading Postfix : Rate limit based on recipients throttling

This post guides you to install ffmpeg on ubuntu server. Let’s update all the repo’s on the host. apt-get update   Install the required package using apt-get install. apt-get -y –force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texi2html zlib1g-dev yasm… Continue Reading Install ffmepg on Ubuntu Server

1. Install Linux dependencies GCC and Make(On Redis Server) sudo yum -y install gcc make   2. Download, Untar and Make Redis 3.0 wget http://<Download the latest file from the redis official site> tar xzf redis-3.3.0-rc3.tar.gz cd redis-3.0.0-rc3 make   3. Create Directories and Copy Redis Files sudo mkdir /etc/redis /var/lib/redis… Continue Reading RedisMaster and Slave Setup

Follow the step by step instructions given below to install s3cmd tool:- =====  * Download the latest version of s3cmd through SourceForge (SourceForge – Latest released version is 1.5.2  ) and unzip it. Example: wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.5.2/s3cmd-1.5.2.tar.gz * Change directory the s3cmd-1.5.2 (ie) “cd s3cmd-1.5.2″. * Install setup tools using below command: —— – For Debian OS use… Continue Reading S3cmd Installation on Linux