Skip to content

Instantly share code, notes, and snippets.

View un1versal's full-sized avatar

un1versal

  • error! out of memory
  • Scattered over the Atlantic
View GitHub Profile
@un1versal
un1versal / Installxbmc.sh
Last active February 9, 2017 18:10
Short and sweet install script.
#!/bin/bash
mkdir /home/setup
cd /home/setup
apt-get install pastebinit python-software-properties pkg-config -y
usermod --group sudo,cdrom,audio,video,plugdev,fuse xbmc > /dev/null 2>&1
adduser xbmc users > /dev/null 2>&1
@un1versal
un1versal / cd-dvd-automount.rules
Last active February 9, 2017 18:10
normal boot and mouting cd/dvd media.
# Rule automount on add|change|remove cd/dvd
ACTION!="add|change|remove", GOTO="cdrom_end"
# Define Device and attributes.
SUBSYSTEM=="block", KERNEL=="sr*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-1:0:0:0", ATTRS{type}=="5", ATTR{removable}=="1", ATTR{events}=="media_change eject_request"
# Mount on device attached from cold boot and at device change
ACTION=="add",KERNEL=="sr*", RUN+="/bin/mkdir -p '/media/cd-dvd'"
ACTION=="add",KERNEL=="sr*", RUN+="/bin/mount /dev/sr0 '/media/cd-dvd'"
@un1versal
un1versal / cd-dvd-automount-by-label.rules
Last active February 9, 2017 18:09
Boot time increases 3x but it mounts by label. a worthy note is the user that owns it is a large string of numbers.
# Rule automount on add|change|remove cd/dvd
ACTION!="add|change|remove", GOTO="cdrom_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="cdrom_end"
# Get label
PROGRAM=="/sbin/blkid -o value -s LABEL %N", ENV{dir_name}="%c"
# Use basename to correctly handle labels such as ../mnt/foo
PROGRAM=="/usr/bin/basename '%E{dir_name}'", ENV{dir_name}="%c"
ENV{dir_name}=="", ENV{dir_name}="usbhd-%k"
@un1versal
un1versal / Install_Linux_&_XBMC.md
Last active February 17, 2016 06:36
This is a quick Guide only to configuring Linux + xbmc compiled from github.
@un1versal
un1versal / kodi.conf
Last active January 2, 2016 14:09
Upstart script to start Kodi - It sets nice levels to aid audio
# kodi-upstart
# starts Kodi on startup by using xinit.
# by default runs as xbmc user, to change edit below.
env USER=xbmc
description "Kodi-barebones-upstart-script"
author "Matt Filetto - Tweaked by uNiversal"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
@un1versal
un1versal / sensors3.conf
Created January 8, 2014 10:24
/etc/sensors3.conf For ION1
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
@un1versal
un1versal / gcs.sh
Last active January 2, 2016 14:09
Git compile Script For Nvidia based systems like IONS with various Atom CPU's v1 is Nvidia GT9400 v2 is Nvidia GT210 v3 is Nvidia GT430 v4 is Nvidia GT520 v5 is Nvidia GT610 Any Nvidia GPU's base + any CPU type.
#!/bin/bash
###################################################################################
# ___ ___ __ #
# / _ \ / __\ / _\ # #
# / /_\/ / / \ \ # Git Compile Script #
# / /_\\_ / /____ _\ \ _ # Backup Your system before use! #
# \____(_) \____(_) \__/(_) # #
# #
###################################################################################
@un1versal
un1versal / sensors3.conf
Created January 9, 2014 12:13
/etc/sensors3.conf for ION 5
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
@un1versal
un1versal / Makefile
Last active February 29, 2016 16:43
libnfs 1.10.0 makefile for kodi
# A quick and dirty Makefile to download/build and install
#
# Usage:
# make
# sudo make install
# lib name, version
LIBNAME=libnfs
VERSION=1.10.0
SOURCE=$(LIBNAME)-$(VERSION)
@un1versal
un1versal / Makefile
Last active January 2, 2016 22:39
taglib Makefile
# A quick and dirty Makefile to download/build and install taglib
#
# Usage:
# make
# sudo make install
#
# lib name, version
LIBNAME=taglib
VERSION=1.8
SOURCE=$(LIBNAME)-$(VERSION)