Skip to content

Instantly share code, notes, and snippets.

View kgrvamsi's full-sized avatar
🎯
Focusing

Vamsi Kotipalli kgrvamsi

🎯
Focusing
  • Amazon (AWS)
  • Austin,TX
View GitHub Profile
@kgrvamsi
kgrvamsi / installing-openwhisk-on-ubuntu.md
Created June 25, 2018 06:19 — forked from epiphone/installing-openwhisk-on-ubuntu.md
Installing OpenWhisk on Ubuntu Server 16.04

Configuring the OpenWhisk server

This guide contains instructions on manually setting up Openwhisk and CouchDB on a fresh Ubuntu 16.04 server.

The guide is based on the OpenWhisk Ansible README, which at the time of writing is missing some key steps and gotchas - hence this new guide.

1. Dependencies

sudo apt-get update
@kgrvamsi
kgrvamsi / Edit_Repack_ISO_tutorial.md
Created June 4, 2018 06:38 — forked from AkdM/Edit_Repack_ISO_tutorial.md
Edit and repack .iso bootable image

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

@kgrvamsi
kgrvamsi / debian-preseeded-iso.sh
Created June 4, 2018 06:35 — forked from zuzzas/debian-preseeded-iso.sh
Create Debian netinstall iso with preseed file
set -e
set -u
# hat-tips:
# - http://codeghar.wordpress.com/2011/12/14/automated-customized-debian-installation-using-preseed/
# - the gist
# required packages (apt-get install)
# xorriso
@kgrvamsi
kgrvamsi / custom_live.sh
Created June 4, 2018 06:33 — forked from rexcze-zz/custom_live.sh
Ubuntu livecd creation script
#!/bin/sh
#https://help.ubuntu.com/community/LiveCDCustomization
#set -e
if [ "$1" = "" ];then
echo "Call this script with part1, part2 or clean as argument"
exit 0
fi
IMAGE_NAME="LIVE_TEST"
ISO="kubuntu-12.04.2-desktop-i386.iso"
@kgrvamsi
kgrvamsi / my_hello_world_distro.sh
Created June 4, 2018 06:32 — forked from Daniel-Abrecht/my_hello_world_distro.sh
Shellscript to build the most minimalistic linux live CD which just starts /sbin/init from the CD root directory and outputs "Hello World!"
#!/bin/bash
# Vorhandensein der Programme prüfen
MKISOFS=( $(which genisoimage mkisofs) )
if ! [ -x "$MKISOFS" ]; then echo "genisoimage aka mkisofs is missing"; exit 1; fi
if ! [ -x "$(which gcc)" ]; then echo "gcc is missing"; exit 1; fi
if ! [ -x "$(which nasm)" ]; then echo "nasm is missing"; exit 1; fi
if ! [ -x "$(which cpio)" ]; then echo "cpio is missing"; exit 1; fi
if ! [ -x "$(which tar)" ]; then echo "tar is missing"; exit 1; fi
# This script create a Centos Minimal Unattended ISO
# This method is based on excellent article http://pyxlmap.net/technology/software/linux/custom-centos-iso
#
# This script has be tested with CentOS 7.2 (on the orign server) to install CentOS 7.2 (on the target server)
# TODO:
# * test package update to reduce the update task on the target system. The following command downloads all updates :
# (cd $CENTOS_CUSTOM_PATH/Packages ; yumdownloader $(for i in *; { echo ${i%%-[0-9]*}; } ) )
# Some global settings :
@kgrvamsi
kgrvamsi / add-preseed-and-firmware-to-debian.sh
Created June 4, 2018 06:20 — forked from hedinasr/add-preseed-and-firmware-to-debian.sh
Script to add firmware files and preseed file to a debian ISO
#!/bin/bash
# add-preseed-and-firmware-to-debian: Add non-free firmware and preseed to Debian install media
#
# Copyright (C) 2016-2017 Hedi Nasr <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@kgrvamsi
kgrvamsi / create_config_iso.sh
Created June 4, 2018 06:15 — forked from nomadalex/create_config_iso.sh
cloud-init config creator
# Bridge for VMs (default on Fedora is virbr0)
BRIDGE=virbr0
# Cloud init files
USER_DATA=user-data
META_DATA=meta-data
CI_ISO=$1-cidata.iso
# cloud-init config: set hostname, remove cloud-init package,
# and add ssh-key
@kgrvamsi
kgrvamsi / Makefile
Created June 4, 2018 06:13
CentOS 7 - Custom Kickstart Build
build:
genisoimage \
-U -r -v -T -J -joliet-long \
-V 'CentOS 7 x86_64' \
-volset 'CentOS 7 x86_64' \
-A 'CentOS 7 x86_64' \
-b isolinux/isolinux.bin \
-c isolinux/boot.cat \
-no-emul-boot \
-boot-load-size 4 \
@kgrvamsi
kgrvamsi / build-core64.sh
Created June 4, 2018 06:13 — forked from Jared314/build-core64.sh
Remaster Tiny Core Linux Core for x64
#!/bin/sh
# Ubuntu 12.04
# sudo apt-get -y install p7zip-full genisoimage
wget http://www.tinycorelinux.net/4.x/x86/release/Core-current.iso
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/core64.gz
wget http://www.tinycorelinux.net/4.x/x86/release/distribution_files/vmlinuz64
# extract files
7z x Core-current.iso -ocore-current