Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

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

Backlist HDMI sound modules from display

echo "blacklist snd_hda_codec_hdmi" | sudo tee -a /etc/modprobe.d/blacklist.conf

Links
http://wiki.archlinux.org/index.php/ALSA_Einrichten

Huawei UMTS USB Stick

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/
http://umtsmon.sourceforge.net/
http://www.bloggen.bwadewitz.eu/?p=95
http://www.dc-files.com - firmware

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/

API61
http://wiki.xbmc.org/?title=List_of_Built_In_Functions - List of Built In Functions

HowTo
http://YOUR_IP/xbmcCmds/xbmcHttp?command=ExecBuiltIn(XBMC.Notification(Header, Message, 3000, /usr/share/xbmc/addons/skin.confluence/media/OSDDvdFO.png))

Download
http://xbmcmediacenter.com/nightlies/ - XBMC nightlies
http://xbmc.org/wiki/?title=HOW-TO_XBMC_for_Linux
http://sourceforge.net/project/showfiles.php?group_id=87054
http://code.google.com/p/atvusb-creator/ - USB flash drive creator for the AppleTV
http://mirrors.kodi.tv/releases/android/arm/old/ - Old releases

Ubuntu repository
http://xbmc.org/forum/showthread.php?p=185738
http://wiki.xbmc.org/index.php?title=Installing_XBMC_for_Linux

Config
/usr/share/xbmc/system/Keymap.xml - This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC

Skins
http://xbmc.org/skins/ - Overview
http://blackbolt.x-scene.com/Jezz_X/MediaStream_Redux_0.9.5.rar - MediaStream Redux
http://download567.mediafire.com/51hfu5ej5fhg/mydlmmqnjiu/MediaStream+v1.00.zip - MediaStream

Add-on Repositories
http://wiki.xbmc.org/index.php?title=Unofficial_Add-on_Repositories

LiveTV

deb http://ppa.launchpad.net/yavdr/unstable-vdr/ubuntu lucid main 
deb-src http://ppa.launchpad.net/yavdr/unstable-vdr/ubuntu lucid main 
sudo aptitude install vdr vdr-plugin-vnsiserver
sudo aptitude install dvb-apps

https://launchpad.net/~yavdr/+archive/unstable-vdr
http://www.loggn.de/ubuntu-10-04-vdr-1-7-14-vnsi-server-fuer-xbmc-vorbereiten/

Asrock 330
ASLA analog audio output
aplay -D default:CARD=SB /storage/music/Noise.wav

Multimedia

Convert MP4 to MP3

# convert video to audio
IFS=$(echo -en "\n\b")
for INPUT_FILE in $(ls *.mp4); do
    ffmpeg -i "${INPUT_FILE}" -vn -ar 44100 -ac 2 -b:a 128k "${INPUT_FILE//.mp4/.mp3}"
done

Snippets

# 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
	ffmpeg -y -itsoffset -60 -i $i -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 ${i//.avi/.jpg} 2&1> /dev/null
done

# cut part from a video
ffmpeg -ss 00:30:00 -t 00:10:00 -i file_in.avi file_out.avi

# split m4a to mp3 files
IFS=$(echo -en "\n\b")
for INPUT in $(ls *.m4a); do
    LENGTH=300
    for i in {0..150}; do
        START=$((i*LENGTH))
        ffmpeg -ss ${START} -t ${LENGTH} -i ${INPUT} -vn -c:a mp3 ${INPUT%.*}_$((i+1)).mp3
    done
done

# rip dvd audio to mp3
for((x=1; x<=18; x++)) do
	transcode -i /dev/dvd -x dvd -T ${x},1,1 -a 0 -y wav -m track${x}.wav
	lame --abr 320 track${x}.wav track${x}.mp3
	rm track${x}.wav
done

# extract audio from video file
sudo apt-get install -y libav-tools
avconv -i FILE_IN.mp4 -vn -c:a copy FILE_OUT.mp3

# convert flv to mpeg2
ffmpeg -i input.flv -target pal-dvd output.mpg


# stream with vlc 1.1
vlc Sintel.2010.2K.SURROUND.x264-VODO.mp4 --sout '#standard{access=http,mux=ts,dst=:9070}'

to play:
vlc http://STREAM_PC_IP:9070

Convert stream to DVD
http://wiki.ubuntuusers.de/DVD-Authoring

Rip DVD

Install

sudo apt install -y dvdbackup hdparm libdvd-pkg
sudo dpkg-reconfigure libdvd-pkg

sudo nice -n 19 dvdbackup -M && chmod a-w * -R && eject

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
http://dl.panticz.de/scripts/rip.sh
[embed_url: http://dl.panticz.de/scripts/rip.sh]

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!

Directory to ISO

genisoimage -o output_image.iso directory_name

Links
http://dvd95.sourceforge.net/
http://k9copy.sourceforge.net/index.php
http://en.wikipedia.org/wiki/DVD_region_code

Zenity

delete files with auto close message

rm /media/CAMCARD/DCIM/100NIKON/*.JPG; sync; sleep 1 | zenity --title CleanCAMCARD --progress --auto-close

view message

zenity --info --text "blah"

LVM

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

Delete

# delete all VG
vgs --noheadings -o vg_name | xargs -L1 vgremove -y

# delete all PV
pvs --noheadings -o pv_name | xargs -L1 pvremove /dev/nvme0n1 --force --force -y

Activatie volume group

vgchange -ay

Disable all LVMs

vgchange -an

Restore LVM

pvcreate --uuid "5a3727b0-8d1c-4f41-b0fe-eea17baac244" --restorefile /etc/lvm/archive/vg1_00005.vg /dev/sda1
vgcfgrestore vg1

Clear VG

lvchange -an LV_NAME
vgchange -an VG_NAME

Thin pool

lvcreate -L 250G --thinpool kvm system
https://www.tecmint.com/setup-thin-provisioning-volumes-in-lvm/

Resize LV and filesystem

lvresize -r -L 120G /dev/mapper/containers_kvm--stage

Restart LVM

systemctl stop lvm2-lvmetad
rm /run/lvm/*
rm /etc/lvm/{archive,backup}/*
systemctl start lvm2-lvmetad

Remove PV

vgremove /dev/mapper/data
pvremove /dev/sdb

Resize swap

swapoff -a
lvresize /dev/system/swap -L 64G
mkswap /dev/system/swap 
swapon -a

Links
http://www.thegeekstuff.com/2010/08/how-to-create-lvm/
http://www.debian-administration.org/article/A_simple_introduction_to_working_with_LVM
http://www.linuxhaven.de/dlhp/HOWTO-test/DE-LVM-HOWTO-2.html

Scripts

Wipe all SAS disks

Install OpenTTD (Transport Tycoon Deluxe) under Ubuntu

Homepage
https://www.openttd.org/

Install from snap
https://snapcraft.io/install/openttd/ubuntu

sudo snap install openttd

Install from APT package
http://www.openttd.org/en/download-stable
[embed_url: https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh]

Install newest Version
wget https://raw.githubusercontent.com/panticz/installit/master/install.openttd.sh -O - | bash -s -- -n

Notes

# 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.tt-ms.de/downloads/

Install

Automatic installation scripts for Ubuntu / Linux
https://louwrentius.com/understanding-the-ubuntu-2004-lts-server-autoinstaller.html
https://github.com/panticz/installit

Manual install

URL=http://ftp.us.debian.org/debian/pool/main/t/terminator/terminator_2.1.3-1~bpo12+2_all.deb
wget ${URL} -P /tmp
sudo dpkg -i /tmp/terminator_*_all.deb

Run late_command script manually

wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/preseed/master/late_command.sh -O - | sudo bash -s #00:11:22:33:44:55

Create pressed autoinstall CD

wget -q https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/create.netinstall.ubuntu.cd.sh -O - | bash -

Post install second OS over KVM

sudo kvm -m 512 -hda /dev/sda -net nic,macaddr=$(LANG=en; ifconfig eth0 | grep "HWaddr" | tr -s " " | cut -d" " -f5) -net user -smp 2

Install default applications

# todo
# /tmp/debconf-answer.txt
# accept java licence
# sun-java6-bin shared/accepted-sun-dlj-v1-1    boolean true
apt-get -y install thunderbird vlc sun-java6-jre smbfs sun-java6-plugin bluefish putty tofrodos imagemagick p7zip-full smartmontools hwinfo lshw nfs-common rtorrent k9copy

gtk-recordmydesktop - Screencast creation for linux
unetbootin - create USB boot pen wirh different distributions

Packages

searchmonkey - powerful text searches on Linux using regular expressions
dosfstools - Utilities to create and check MS-DOS FAT filesystems
apt-get install gnome-do gnome-do-plugins
tofrodos - Converts DOS <-> Unix text files, alias tofromdos (dosfstools)
radiotray - Radio Tray is a simple streaming music player
apt-get install cclive - command line media download tool with low footprint (download YouTube videos)

Fonts

sudo apt-get install msttcorefonts
sudo apt-get install ttf-ubuntu-title
Ubuntu font directory:
/usr/share/fonts/truetype

Fix Java plugin in Hardy (only i386)

apt-get remove icedtea-gcjwebplugin
apt-get install -y sun-java6-plugin

Netboot install from harddisk

Pagination

  • Previous page
  • 12
  • Next page
linux
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung