linux

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

KODI / XBMC / Boxee

Play file
http://192.168.2.3/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"http://url.to.file.jpg"}}}
http://forum.kodi.tv/showthread.php?tid=157996

Google Music addon
http://forum.kodi.tv/showthread.php?tid=200640
https://github.com/vially/googlemusic-xbmc

Send YouTube to Kodi
(set "Video Quality" to "1080p (HD) on Kodi player under System > Settings > Add-ons > Video Add-ons > YouTube)
https://addons.mozilla.org/en-US/firefox/addon/send-to-xbmc/

API

Multimedia

http://www.free-hotspot.com/german/de_index.htm - list of all free hotspots
http://www.mtvmusic.com/
http://www.putpat.tv/
http://www.networkmultimedia.org/
http://www.xtreamer.net/ - Xtreamer (Media Player & Streamer)
http://linuxoniphone.blogspot.com/ - Android on iPhone
http://www.iconfinder.com/
http://www.bigbuckbunny.org/index.php/trailer-page/ - Big Buck Bunny Trailer

# enable SPDIF
amixer set IEC958 100 unmute

# create caver
DIR=/media/Volume
IFS=$(echo -en "\n\b")

for i in $(find $DIR -name "*.avi"); do
echo $i

OpenVPN connect to network with same ip range

#!/bin/bash
 
# delete routing for whole network
sudo route del -net 192.168.1.0 netmask 255.255.255.0 dev tap0
 
# add route to hosts
for ip in {30..50}; do
	sudo route add 192.168.1.${ip} dev tap0
done

Rip DVD

GUI

# echo "deb http://de.archive.ubuntu.com/ubuntu $(lsb_release -cs) universe" >> /etc/apt/sources.list
echo "deb http://de.archive.ubuntu.com/ubuntu quantal universe" > /etc/apt/sources.list.d/quantal.list
apt-get update
apt-get install k9copy
# old # apt-get install dvd95

Console
wget http://dl.panticz.de/scripts/rip.sh

#!/bin/bash

# check parameter
if [ -n "$1" ]; then
   PARAM="-n $1"
fi

# mount target device (optional)
sudo mount /dev/sdc1 /mnt

# install libdvdcss2
wget https://raw.github.com/panticz/installit/master/install.libdvdcss.sh -O - | sudo bash -

# enable universe
sudo sed -i "s/# \(deb .* universe\)/\1/" /etc/apt/sources.list
sudo apt-get update

# check if apps already installed
sudo apt-get install -y dvdbackup hdparm

# check if /dev/dvd exists
[ -f /dev/dvd ] || ln -s /dev/sr0 /dev/dvd

# set dvd speed
sudo hdparm -E 255 /dev/sr0

# rip dvd
sudo nice -n 19 dvdbackup -M -o /mnt ${PARAM}

# eject dvd
sudo eject

Console
if

; then
   sudo apt-get install dvdbackup
fi
dvdbackup -M -o ~/Videos/
 
<strong>OPTIONAL: set region code on your DVD drive (fix Error cracking CSS key for)</strong>
if you get this error:
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_1.VOB (0x00123445)!!
 
sudo apt-get install -y regionset
regionset
Enter the new region number for your drive [1..8]:2  (2 = europe)
New mask: 0xFFFFFFFD, correct? [y/n]:y
Region code set successfully!
 
 
 
# LINKS
http://dvd95.sourceforge.net/
http://k9copy.sourceforge.net/index.php
http://en.wikipedia.org/wiki/DVD_region_code

Merlin U630 PCMCIA UMTS Card

# download config
sudo wget http://www.panticz.de/sites/default/files/wvdial_0.conf -O /etc/wvdial.conf

# change carc PIN
PIN=1234
sudo sed -i 's|YOUR_PIN|$PIN|g' /etc/wvdial.conf

# download start script
sudo wget http://www.panticz.de/sites/default/files/start_umts. -O /usr/sbin/start_umts
sudo chmod a+x /usr/sbin/start_umts

configure tty
setserial /dev/ttyS3 auto_irq skip_test autoconfig

LINKS
http://wiki.ubuntuusers.de/Baustelle/Verlassen/Vodafone_UMTS_mit_Novatel_Merlin_U630

Remaster Ubuntu CD (TEST)

sudo apt-get install squashfs-tools mkisofs qemu
 
-- wget ubuntu-8.04-desktop-i386.iso
sudo mount download/iso/ubuntu-8.04-desktop-i386.iso /mnt/ -o loop
 
mkdir ~/live
cd ~/live
 
mkdir extract-cd
#rsync --exclude=/casper/filesystem.squashfs -a mnt/ extract-cd
 
mkdir squashfs
sudo mount -t squashfs -o loop /mnt/casper/filesystem.squashfs squashfs
 
mkdir edit
sudo cp -a squashfs/* edit/
 
sudo cp /etc/resolv.conf edit/etc/
 
sudo cp /etc/hosts edit/etc/
 
sudo mount --bind /dev/ edit/dev
 
sudo mount --bind /dev/ edit/dev
 
sudo chroot edit
mount -t proc none /proc
mount -t

Install LTSP

#!/bin/bash
 
# todo
# command to configure language
# command to configure timezone
 
apt-get update
apt-get -y dist-upgrade
 
# OPTIONAL: configure germany locale
# http://www.thomas-krenn.com/de/wiki/Locales_unter_Ubuntu_konfigurieren
#sudo sed -i 's|en_US.UTF-8|de_DE.UTF-8|g' /etc/environment
#sudo sed -i 's|en_US|de_DE|g' /etc/default/locale
sudo locale-gen de_DE.UTF-8
update-locale LANG=de_DE.UTF-8
update-locale LANGUAGE=de_DE
sudo sed -i 's|XKBLAYOUT="us"|XKBLAYOUT="de"|g' /etc/default/keyboard
 
 
 
reboot
 
# install ubuntu-desktop
sudo apt-get -y install ubuntu-deskto

Instal KVM (Kernel-based Virtual Machine)

script:
https://installit.googlecode.com/hg/install.kvm.sh
 
 
# configure locale
wget -q http://www.panticz.de/sites/default/files/scripts/configure_locale.sh -O - | bash -
 
# install on ubuntu
apt-get install -y qemu kvm ubuntu-vm-builder
 
# install on debian
apt-get install -y kvm
apt-get install -y libvirt-bin
apt-get install -y virtinst
 
/etc/init.d/libvirt-bin restart
 
# net
virsh net-start default
virsh net-autostart default
 
# vg
mkdir /etc/libvirt/storage
cat <<EOF> /etc/libvirt/storage/vg0.xml
<pool type='logical'>
  <name>vg0</name>
  <target>
    <path>/dev

CUPS

# view all available printer
lpstat -p -d
 
# enable webadmin
vi /etc/cups/cupsd.conf
#Listen localhost:631
Listen 0.0.0.0:631
 
<Location />
  Allow From 192.168.1.0/24
</Location>
<Location /admin>
  Allow From 192.168.1.0/24
</Location>
 
# print file from command line
lpr -P DeskJet_695C YOUR_FILE.pdf
 
# parallel
# install DeskJet_695C
sudo lpadmin -p HP695C -v parallel:/dev/lp0 -E -P /tmp/DeskJet_695C.ppd 
 
# usb 
hp:/usb/hp_business_inkjet_2300?serial=CN39E130GB
 
# PDF printer
sudo apt-get install cups-pdf
lpadmin -p PDF -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf

Ekiga 3.0 snapshot

#!/bin/bash
 
sudo su
 
 
# add intrepid repository
cat <<EOF> /etc/apt/sources.list.d/jaunty.list
deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted
EOF
 
# run update
apt-get update
apt-get install ekiga
 
# remove repository
rm /etc/apt/sources.list.d/jaunty.list
apt-get update
 
 
# LINKS
http://snapshots.ekiga.net/
http://packages.ubuntu.com/jaunty/ekiga
 
 
### OLD ###
 
wget http://ge.archive.ubuntu.com/ubuntu/pool/main/e/evolution-data-server/libedataserver1.2-9_2.22.3-0ubuntu2_i386.deb -P /tm
Syndicate content