ALSA
umount channels
amixer set Master 75 unmute
amixer set PCM 75 unmute
amixer set IEC958 100 unmute
# save settings
alsactl store
# test
aplay /usr/share/sounds/alsa/Noise.wav
umount channels
amixer set Master 75 unmute
amixer set PCM 75 unmute
amixer set IEC958 100 unmute
# save settings
alsactl store
# test
aplay /usr/share/sounds/alsa/Noise.wav
Mobile Connect Settings (under Mac OS X)
Profile Name: t-mobile
Access Point Name: internet.t-mobile
Telephone Number: *99***1#
Account Name: t-mobile
Password: tm
Authentication: CHAP
NetzClub APN
pinternet.interkom.de
disable pin on sim card
sudo mmcli -i 0 --disable-pin --pin=
#sudo apt-get install gsm-utils
#sudo gsmctl -d /dev/ttyACM0 -o unlock sc all YOUR_PIN_NUMBER
Links
http://blog.surgeons.org.uk/2008/02/three-cheers-for-vodafone.html
http://www.draisberghof.de/usb_modeswitch/
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
YouTube download
https://yt-dl.org/update
https://github.com/ytdl-org/youtube-dl/releases
wget -q https://github.com/ytdl-org/youtube-dl/releases/download/2019.04.30/youtube-dl -O /tmp/youtube-dl
sudo cp /tmp/youtube-dl /usr/local/sbin/
sudo chmod a+x /usr/local/sbin/youtube-dl
# download audio (mp3) only
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=foo
# download whole channel
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" -v https://www.youtube.com/user/OpenStackFoundation/videos
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
<?php
$URL="http://dl.panticz.de/scripts/rip.sh";
echo "wget $URL";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Console
if [ $(dpkg -l dvdbackup | grep ii | wc -l) -eq 0 ]; then
sudo apt-get install dvdbackup
fi
dvdbackup -M -o ~/Videos/
OPTIONAL: set region code on your DVD drive (fix Error cracking CSS key for)
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
delete files with auto close messagerm /media/CAMCARD/DCIM/100NIKON/*.JPG; sync; sleep 1 | zenity --title CleanCAMCARD --progress --auto-close
view message
zenity --info --text "blah"
vgs - Display information about volume groups (free space etc.)
lvs - Display information about logical volumes
lvdisplay - display attributes of a logical volume
lvremove - remove a logical volume
install
apt-get intall -y lvm2
create volume group
pvcreate /dev/md1
vgcreate vg2 /dev/md1
pvdisplay
create lvm volume
lvcreate --name VOLUME_NAME --size 4G vg2
# lvcreate -n NAME -l 100%FREE vg0
mkfs.ext3 /dev/vg2/VOLUME_NAME
renamee lvm
lvrename /dev/vg01/mx-swap /dev/vg01/mx-swap.org
# extract audio from video file
IFS=$(echo -en "\n\b")
for i in $(ls /media/${USER}/*/*); do
avconv -i $i -vn -c:a copy /tmp/${i##*/}.mp3
done
# join multiple PDF files
cd /media/*/Linux-Magazin*/pdf
for DIR in $(ls); do
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/tmp/lm2013-${DIR}.pdf ./${DIR}/*.pdf
done
# lm
for i in $(ls *.jpg); do
convert -page A4 -density 72 $i $i.pdf
done
rm /tmp/lm20*.pdf
for x in {01..12}; do
pdftk lm13/c/cover-${x}-*.pdf lm13/pdf/${x}/*.pdf cat output /tmp/lm2013-${x}.pdf
done
# wipe enclosure
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh";
echo "wget $URL -O - | bash -s";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Install newest Version
wget https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh -O - | bash -s -- -n
#
# OLD?
#
# sudo apt-get install -y libsdl1.2debian
# pre configure
debconf-set-selections <<\EOF
openttd openttd/datafiles select
EOF
# install openttd
sudo apt-get install -y openttd timidity
wget http://www.tt-ms.de/downloads/ttdwin302011.rar -P /tmp
mkdir /tmp/ttd
unrar x /tmp/ttdwin302011.rar /tmp/ttd
# copy data
sudo cp /tmp/ttd/*.grf /tmp/ttd/*.cat /usr/share/games/openttd/data
sudo cp /tmp/ttd/gm/* /usr/share/games/openttd/gm
# clean up
rm /tmp/ttdwin302011.rar
rm -r /tmp/ttd
# Links
http://wiki.ubuntuusers.de/Spiele/OpenTTD
http://www.openttd.org/en/download-stable
http://www.tt-ms.de/downloads/
iPXE preseed netinstall
http://dl.panticz.de/ipxe/ipxe.pxe - PXE boot image
http://dl.panticz.de/ipxe/ipxe.iso - CD-ROM boot image
http://dl.panticz.de/ipxe/ipxe.usb - USB boot image
http://dl.panticz.de/ipxe/ipxe.lkrn - GRUB boot image (Install: http://www.panticz.de/Install-GRUB-iPXE-netboot)
http://preseed.panticz.de/pxelinux.cfg/ipxe.conf
http://preseed.panticz.de/ipxe/menu.ipxe
Preseed install
https://github.com/panticz/preseed
http://hands.com/d-i/
Automatic installation scripts for Ubuntu / Linux