====== 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''\\ [[http://www.imagemagick.org/Usage/montage/|Examples]] montage frame?.png -geometry 640x480+0+0 -tile 4x1 image.png * geometry: width x height + x_offset + y_offset * tile: cols x rows ===== 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'': .... ===== Change default shell ===== chsh -s /usr/bin/zsh USERNAME