Skip to content

Instantly share code, notes, and snippets.

View atlury's full-sized avatar
💭
Working

Rahul Atlury atlury

💭
Working
View GitHub Profile
@atlury
atlury / gstreamer.sh
Created December 26, 2015 05:40
Install Gstreamer on Rasperry Pi
#!/bin/bash --debugger
set -e
[ -n "$1" ] && BRANCH=$1
# Create a log file of the build as well as displaying the build on the tty as it runs
exec > >(tee build_gstreamer.log)
exec 2>&1
# Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
@atlury
atlury / gstreamer-build.sh
Created December 26, 2015 05:45 — forked from sphaero/gstreamer-build.sh
Install & build gstreamer from git
#!/bin/bash --debugger
set -e
BRANCH="master"
if grep -q BCM2708 /proc/cpuinfo; then
echo "RPI BUILD!"
RPI="1"
fi
[ -n "$1" ] && BRANCH=$1
@atlury
atlury / Read-only FS on Arch Linux ARM.md
Created December 27, 2015 10:22 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up Arch Linux ARM on Raspberry Pi to boot from and use a read-only file-system

##Read-only FS on Arch Linux ARM

Unlike your typical computer where you usually shutdown properly, I cannot rely on this during the use of my Raspberry Pi. If the Raspberry Pi is improperly shutdown too many times, data corruption in the file system leading to unbootable SD card may result. So we should use a read-only file system.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

#Update everything first, remove cache then reboot to detect problems
pacman -Syu  
#May be needed if the pacman version has changed during the update
@atlury
atlury / rPi3-ap-setup.sh
Created March 20, 2016 09:20 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
if [[ $# -ne 1 ]];
then echo "You need to pass a password!"
echo "Usage:"
@atlury
atlury / config
Created April 6, 2016 20:13 — forked from mokomull/config
x86_64 config for Intel Edison
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.10.80 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@atlury
atlury / build-orangepipc-gentoo.py
Created April 7, 2016 12:05 — forked from atx/build-orangepipc-gentoo.py
Script for building a Gentoo image for the Allwinner H3, use at your own risk
#! /bin/bash
# This script builds a Gentoo image for the Allwinner H3
# Based on http://linux-sunxi.org/H3_Manual_build_howto
# Tested on Orange Pi PC
set -e
function green {
echo -e '\033[0;32m'$@'\033[0m'
U-Boot SPL 2015.10-00058-g8034408 (Oct 21 2015 - 13:48:20)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
U-Boot 2015.10-00058-g8034408 (Oct 21 2015 - 13:48:20 +0200) Allwinner Technology
CPU: Allwinner H3 (SUN8I)
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
@atlury
atlury / BeagleBoneLinuxUBootFromScratch.md
Created April 9, 2016 10:57 — forked from eepp/BeagleBoneLinuxUBootFromScratch.md
Building U-Boot and Linux 3.11 from scratch for the BeagleBone, and booting

Building U-Boot and Linux 3.11 from scratch for the BeagleBone, and booting

BeagleBone image

Introduction

@atlury
atlury / sideBySide.sh
Created May 1, 2016 09:47 — forked from jetsonhacks/sideBySide.sh
Gstreamer two MJPG Webcams
#!/bin/sh
# Run two video webcam feeds in two different windows
# Script assumes that:
# Microsoft LifeCam Studio is video0
# Logitech c920 is video1
# Both cameras run max 1920x1080 MJPG, but two have both on a USB bus they can run @ 1280x720 max
# MS is made a little smaller
# text overlay and clockoverlay may be added to the pipeline, but render poorly
VELEM="v4l2src device=/dev/video0 do-timestamp=true"
VCAPS="image/jpeg, width=640, height=480, framerate=30/1"
gst-launch-1.0 \
v4l2src device=/dev/video1 ! video/x-raw,width=864,height=480 ! videoconvert ! \
clockoverlay shaded-background=true time-format="%H:%M:%S" ! vp8enc ! tee name=videoTee \
pulsesrc ! vorbisenc ! tee name=audioTee \
webmmux name=streamMux ! shout2send ip=IP port=PORT password=PASSWORD mount=/tuna.webm \
webmmux name=fileMux ! filesink location=tuna.webm \
audioTee. ! queue ! streamMux.audio_0 \
videoTee. ! queue ! streamMux.video_0 \
audioTee. ! queue ! fileMux.audio_0 \
videoTee. ! queue ! fileMux.video_0