Skip to content

Instantly share code, notes, and snippets.

View MeenachiSundaram's full-sized avatar

MeenachiSundaram V MeenachiSundaram

View GitHub Profile
@MeenachiSundaram
MeenachiSundaram / docker-rhel.sh
Last active January 17, 2017 08:14
docker installation in rhel
#!/usr/bin/env bash
set -eux
# Sample custom configuration script - add your own commands here
# to add some additional commands for your environment
#
# For example:
# yum install -y curl wget git tmux firefox xvfb
echo "Installing Updates"
@MeenachiSundaram
MeenachiSundaram / docker-chef
Created January 17, 2017 05:46
chef setup for docker
version: '2'
networks:
chef:
driver: bridge
services:
ws:
image: schoolofdevops/chef-controller:v1.2.0
ports:
@MeenachiSundaram
MeenachiSundaram / default
Created January 7, 2017 11:08
nginx port configuration file - "nginx/sites-enabled/default"
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
@MeenachiSundaram
MeenachiSundaram / deploy.rb
Created January 7, 2017 10:18
chef training Jan 07 - Nano Project - deploying a facebooc application
package ['make', 'sqlite3', 'libsqlite3-dev', 'git']
git '/opt/facebooc' do
repository 'https://github.com/schoolofdevops/facebooc.git'
revision 'master'
action :sync
end
execute 'make facebooc' do
cwd '/opt/facebooc'
@MeenachiSundaram
MeenachiSundaram / netbeans-linux.sh
Created January 5, 2017 06:42
Installing NetBeans in linux
sudo apt-get update -y
sudo apt install default-jdk -y
mkdir /downloads
cd /downloads && wget http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh
cd /downloads && chmod +x netbeans-8.2-linux.sh
cd /downloads && ./netbeans-8.2-linux.sh
@MeenachiSundaram
MeenachiSundaram / postgresql-ubuntu-xenial.sh
Created January 5, 2017 06:07
Installing PostgreSQL on Ubuntu 16.04
sudo apt-get update -y
sudo apt-get install postgresql postgresql-contrib -y
@MeenachiSundaram
MeenachiSundaram / xampp.sh
Created January 5, 2017 06:05
downloading and installing xampp in linux
echo "Installing XAMPP"
#Installing XAMPP
mkdir /xampp
cd /xampp && wget https://www.apachefriends.org/xampp-files/5.6.28/xampp-linux-x64-5.6.28-1-installer.run
cd /xampp && chmod 755 xampp-linux-*-installer.run
@MeenachiSundaram
MeenachiSundaram / docker-ubuntu-xenial.sh
Created January 5, 2017 06:04
Installing docker engine and docker compose in ubuntu-xenial
#!/bin/bash
echo "Installing Docker"
#Installing Docker
sudo apt-get update -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
@MeenachiSundaram
MeenachiSundaram / docker-ubuntu-trusty.sh
Last active January 3, 2017 09:09
Installing Docker Engine and compose on Ubuntu trusty
#!/bin/bash
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
Step 1. Check the blockdevices and the file systems that are assigned to those block devices.
lsblk
Step 2. What kind of device is sdb?
sudo lshw
or
sudo lshw | less