Skip to content

Instantly share code, notes, and snippets.

@amolkhanorkar
amolkhanorkar / Capistrano_Installation_Manual.md
Last active March 20, 2022 15:43
Deployment Of ROR application with Capistrano By Using Remote Database Server

Deployment Of ROR application with Capistrano By Using Remote Database Server**

Steps To Deploy Application:

Prerequisites : 1. Ruby Installation Firstly install rvm using following command

Install dependencies

$ sudo apt-get install curl
Start and stop the server on Windows
Start and stop the server on Linux
Start and stop Apache
Start and stop the server on Windows
Start the server from the Start menu
Choose Start > All Programs > Adobe > Flash Media Server 4.5 > Start Adobe Flash Media Server 4.5.
Choose Start > All Programs > Adobe > Flash Media Server 4.5 > Start Flash Media Administration Server 4.5.
Stop the server from the Start menu
#### VSFTPD Installation Steps ####
1) Install vsftpd package.
sudo apt-get install vsftpd
2) Open up the configuration file.
vim /etc/vsftpd.conf
@amolkhanorkar
amolkhanorkar / Installation Of GitLab On Ubuntu 12.04
Last active December 22, 2015 07:18
Installation Of GitLab On Ubuntu 12.04
#Installation Of GitLab On Ubuntu/Debian
This installation guide was created for and tested on Debian/Ubuntu operating systems. Please read doc/install/requirements.md for hardware and operating system requirements.
This is the official installation guide to set up a production server. To set up a development installation or for many other installation options please consult the installation section in the readme.
The following steps have been known to work. Please use caution when you deviate from this guide. Make sure you don't violate any assumptions GitLab makes about its environment. For example many people run into permission problems because they changed the location of directories or run services as the wrong user.
If you find a bug/error in this guide please submit a pull request following the contributing guide.
Overview
The GitLab installation consists of setting up the following components:
1. Packages / Dependencies
Install Flash Media Server
wget http://download.macromedia.com/pub/flashmediaserver/updates/4_5_1/Linux_64/FlashMediaServer4.5_x64.tar.gz
tar xvf FlashMediaServer4.5_x64.tar.gz
cd FMS_4_5_1_r484/
sudo ./installFMS
If you got the error of libcap is not installed, then
ln -s /lib/x86_64-linux-gnu/libcap.so.2 libcap.so.1
Installing the Cacti Server Monitor on Ubuntu 12.04 Cloud Server
inShare
What the Red Means
The lines that the user needs to enter or customize will be in red in this tutorial!
The rest should mostly be copy-and-pastable.
Introduction
Cacti is a network monitoring tool that creates customized graphs of server performance. It is accessed and managed through a web front-end. Cacti can be used to log and graph multiple cloud servers from a single, unified interface.
Table of Contents
I got the error while I am trying to send mail using postfix on ubuntu 12.04 LTS server.
I checked the mail logs, below are the logs:
Sep 26 02:02:12 git postfix/qmgr[17117]: 85F4E56C1E10: removed
Sep 26 02:17:23 git postfix/master[17113]: terminating on signal 15
Sep 26 02:17:23 git postfix/master[17271]: daemon started -- version 2.9.6, configuration /etc/postfix
Sep 26 02:17:44 git postfix/pickup[17274]: 5758F56C1E0F: uid=1000 from=<[email protected]>
Sep 26 02:17:44 git postfix/cleanup[17280]: 5758F56C1E0F: message-id=<[email protected]>
Sep 26 02:17:44 git postfix/qmgr[17275]: 5758F56C1E0F: from=<>, size=885, nrcpt=1 (queue active)
Sep 26 02:17:44 git postfix/local[17282]: 5758F56C1E0F: to=<>, relay=local, delay=0.25, delays=0.01/0/0/0.24, dsn=5.1.1, status=bounced (unknown user: "")
Nagios check nrpe error could not complete ssl handshake
When you are tying to connect remote host from nagios server using check_nrpe you may get following error.
$ /usr/lib/nagios/plugins/check_nrpe -H remotehostIP
Output:
check_nrpe error could not complete ssl handshake
@amolkhanorkar
amolkhanorkar / Quick Installation of OpenVZ CentOS 6
Last active December 26, 2015 07:59
This quick installation quide assumes you have CentOS 6 64-bit installed with SELinux and Firewall disabled, and that the containers will be on the same subnet as the host node.
Quick OpenVZ setup on CentOS 6
This quick installation quide assumes you have CentOS 6 64-bit installed with SELinux and Firewall disabled, and that the containers will be on the same subnet as the host node.
The node's IP is 192.168.1.99/24 and the gateway is 192.168.1.1. The containers will have 192.168.1.101, 192.168.1.102, etc...
Add the OpenVZ yum repo
# wget -O /etc/yum.repos.d/openvz.repo http://download.openvz.org/openvz.repo
# rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ
I got an error while setting up an site, which is having some changes with their file names (Diff. in Upper/Lower case).
[Thu Oct 31 00:29:59 2013] [error] [client x.x.x.x] script '/var/www/www.abcd.com/wwwroot/mlbteamstandings_data.php' not found or unable to stat, referer: http://demo-abcd.xyz.com/index.php?option=com_content&view=article&id=86&Itemid=839
So, issue has been resolved by adding apache2 CheckSpelling and CheckCaseOnly module into the virtualhost file.
<VirtualHost *:80>
ServerName demo-abcd.xyz.com
DocumentRoot /var/www/www.abcd.com/wwwroot
<Directory /var/www/www.abcd.com/wwwroot>