Skip to content

Instantly share code, notes, and snippets.

View amolkhanorkar's full-sized avatar

Amol Khanorkar amolkhanorkar

View GitHub Profile
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=<git@weboniselab.com>
Sep 26 02:17:44 git postfix/cleanup[17280]: 5758F56C1E0F: message-id=<5243d1884f8d3_18943f8eb79cde7c7042@git.mail>
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: "")
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
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
@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
#### VSFTPD Installation Steps ####
1) Install vsftpd package.
sudo apt-get install vsftpd
2) Open up the configuration file.
vim /etc/vsftpd.conf
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
@amolkhanorkar
amolkhanorkar / Nginx + Passenger + Ubuntu init script
Last active August 29, 2015 14:04
Nginx + Passenger + Ubuntu init script
Here is the init script for Nginx while we are going to use with Phusion Passenger on ubuntu. I have used it on Ubuntu 12.04 LTS.
Create a file "/etc/init.d/nignx" and add below code into it.
vim /etc/init.d/nignx
Then add nginx into update-rc.d for start nginx whenever system boot,
update-rc.d nginx defaults
Make that file executable by changing permission,
chmod +x /etc/init.d/nignx
@amolkhanorkar
amolkhanorkar / Postgresql Database Backup & Restore
Last active August 29, 2015 14:00
Postgresql Database Backup & Restore
First take dump using this method
Dump schema of database:
pg_dump -Fp -s -v -f abc-schema.sql -U postgres dbname
Dump contents of database:
pg_dump -Fc -v -f abc-full.dump -U postgres dbname
Then restore using this methodology
@amolkhanorkar
amolkhanorkar / Convert openssl .crt file to .pem
Created April 10, 2014 12:10
Convert openssl .crt file to .pem
For converting .crt file to .pem
openssl x509 -in mycert.crt -out mycert.der -outform DER
You would then take the output of that, (i.e. mycert.der) and call:
openssl x509 -in mycert.der -inform DER -out mycert.pem -outform PEM
Setup PHP different framework on Nginx
To install PHP-FPM with nginx please follow the below link
https://sites.google.com/a/weboniselab.com/webonisers/devops/nginx-setup
Setup Cake PHP with nginx
1. Download Cake PHP from : https://github.com/cakephp/cakephp/zipball/2.4.6
2. Extract it at /var/www/<app-name>
3. Create Nginx conf file
server {
listen 80;