Table of Contents

Useful Debian / Ubuntu Commands

Limit apt-get download speed

apt-get -o Acquire::http::Dl-Limit=100K <...>

Remove left-over package configuration files

dpkg -l | grep ^rc | cut -d ' ' -f3 | xargs dpkg --purge

Create Samba user

smbpasswd -a `whoami`

Note that the default passdb backends require the user to already exist in the system password file

Montage

Required packages: imagemagick
Examples

montage frame?.png -geometry 640x480+0+0 -tile 4x1 image.png

Merge AVI files

Required packages: mencoder

mencoder -ovc copy -oac copy video1.avi video2.avi -o completevideo.avi 

VLC server -> Dreambox streaming

PC

Required packges: vlc

vlc -d -I http --sout="#transcode{vcodec=mp2v,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=:9090}}"

Add Dreambox IP to /etc/vlc/http/.hosts

Dreambox (Gemini Project)

Required packges: vlcf
Can be installed via Blue Panel → Addons → Download (Gemini-Sever) → Plugins

cp /var/tuxbox/config/vlcf_original.xml /var/tuxbox/config/vlcf.xml

Edit vlcf.xml:

<server name="set1" ip="1.2.3.4" webif-port="8080" stream-port="9090" user="admin" pass="admin" />
....
<config name="set1" startdir="/home/username/videos" cddrive="/media/cdrom0" />

Change default shell

chsh -s /usr/bin/zsh USERNAME