Skip to content

Instantly share code, notes, and snippets.

View bot11's full-sized avatar

Ramakrishna Deepak Battu bot11

  • Sydney, Australia
View GitHub Profile
This document describes about installation and configuration of IPMI simulator.
We need: qemu-kvm, OpenIPMI, OpenIPMI-tools
1) Install the qemu-kvm. We need the qemu, which have the IPMI pacthes.
Use the source https://github.com/cminyard/qemu/tree/stable-2.2-ipmi
./configure, make and make install
2) Download the OpenIPMI libraries, from http://sourceforge.net/projects/openipmi/
Follow the process documented in lanserv/README.vm
./configure --prefix=/opt/openipmi/usr --sysconfdir=/opt/openipmi/etc \
--with-perlinstall=/opt/openipmi/usr/lib/perl \
@bot11
bot11 / Gstreamer
Last active January 12, 2022 03:41
Gstreamer notes
Lets say:
IP Address of Raspberry: 192.168.0.106
IP Address of ubuntu Desktop: 192.168.0.103
IP Address of remote linux server to copy image files: 192.168.0.200
1) On Raspberry pi , run the camera and stream using gstreamer as below:
raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch -v fdsrc ! h264parse ! gdppay ! tcpserversink host=192.168.0.106 port=5000
2) On Ubuntu desktop, run the local rtsp server as below:
@bot11
bot11 / install_java_from_source.txt
Created April 4, 2015 02:12
Install java from source
Download java from this link:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Alternatively , wget as below:
wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz
sudo mv jdk-7u51-linux-x64.tar.gz /usr/lib/jvm [create if /usr/lib/jvm not present, can be put in /usr/local also.]
sudo tar zxvf jdk-7u51-linux-x64.tar.gz
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 1
@bot11
bot11 / redirect.yaml
Created February 20, 2020 19:35
Why is this redirection not working ?!
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: tt
name: tt
spec:
containers:
- command:
@bot11
bot11 / maria_db.sh
Last active April 17, 2019 03:44
MySQL mariadb run a test container on your machine
1) Pull docker image
$ docker pull mysql:5.7
2) Generate mysql random password for rot user.
$ export MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | sed 1q)
3) create the container.
$ docker run -d --name mysql -p 3306:3306 --env MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} docker.io/mysql:5.7
4) Connect to the container to change the password and create new user if you want to connect from the host.
@bot11
bot11 / send_from_gmail.py
Created April 3, 2015 13:38
send mail using gmail.
import smtplib
gmail_user = "from@gmail.com"
gmail_pwd = "frompwd"
TO = 'to@someother.com'
SUBJECT = "Testing sending using gmail"
TEXT = "Testing sending mail using gmail servers"
server = smtplib.SMTP('smtp.gmail.com', 587)
@bot11
bot11 / kube-controller logs
Created November 15, 2017 13:07
kube-controller logs
I1115 02:12:54.697338 1 controllermanager.go:487] Started "bootstrapsigner"
E1115 02:12:54.848177 1 core.go:70] Failed to start service controller: WARNING: no cloud provider provided, services of type LoadBalancer will fail.
W1115 02:12:54.848205 1 controllermanager.go:484] Skipping "service"
W1115 02:12:54.848219 1 core.go:128] Unsuccessful parsing of cluster CIDR : invalid CIDR address:
I1115 02:12:54.848236 1 core.go:131] Will not configure cloud provider routes for allocate-node-cidrs: false, configure-cloud-routes: true.
W1115 02:12:54.848240 1 controllermanager.go:484] Skipping "route"
I1115 02:12:54.998878 1 controllermanager.go:487] Started "persistentvolume-binder"
I1115 02:12:54.998967 1 pv_controller_base.go:259] Starting persistent volume controller
I1115 02:12:54.998997 1 controller_utils.go:1041] Waiting for caches to sync for persistent volume controller
I1115 02:12:55.147719 1 controllermanager.go:487] Started "endpoint"
@bot11
bot11 / kubelet logs
Created November 15, 2017 13:06
kubelet logs
This file has been truncated, but you can view the full file.
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228459 27740 flags.go:52] FLAG: --register-schedulable="true"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228465 27740 flags.go:52] FLAG: --register-with-taints="<nil>"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228472 27740 flags.go:52] FLAG: --registry-burst="10"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228476 27740 flags.go:52] FLAG: --registry-qps="5"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228482 27740 flags.go:52] FLAG: --require-kubeconfig="false"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228486 27740 flags.go:52] FLAG: --resolv-conf="/etc/resolv.conf"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228492 27740 flags.go:52] FLAG: --rkt-api-endpoint="localhost:15441"
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228497 27740 flags.go:52] FLAG: --rkt-path=""
Nov 15 01:58:39 af867b kubelet[27740]: I1115 01:58:39.228501 27740 flags.go:52] FLAG: --rkt-stage1-imag
@bot11
bot11 / gist:b5dc7c67fd9348d844b2
Last active April 15, 2017 09:14
Install openstack controller using chef cookbooks
** Proxy configuration at the end of document. Make sure you have it in case if you internet is routed from proxy
Installation of chef server:
---------------------------
1) Install pre-requisites:
$ apt-get update
$ apt-get install build-essential
$ apt-get install ruby1.9.3
$ apt-get install ruby-dev
@bot11
bot11 / reinstall setuptools
Created February 10, 2015 09:20
devstack errors
stack@devstackmac:~/devstack$ sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY= HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --build=/tmp/pip-build.RMFAI 'prettytable>=0.7'
The directory '/home/stack/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
The directory '/home/stack/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want the -H flag.
DEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache.
The directory '/home/stack/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip wit