How to remove a symbolic link and the file it targets

ls -al NameOfFile | awk ‘{print “rm “$9”; rm “$11}’ The above command will show you what is to be removed ls -al NameOfFile | awk ‘{print “rm “$9”; rm “$11}’ | sh -x Piping the output into sh -x will execute the commands and remove both the source and the target. Be certian you […]

Command to convert folder(s) of .MTS to .mp4 for editing

For this command to run correctly every .MTS file that has been split in multiple .MTS files by the camera (for example where the recording size has exceeded 2.0GB and the camera has automatically split it into mulitple files) these files need to be concatenated back into a single file. This can be done manually […]

How to convert .MTS files to .AVI in Ubuntu using ffmpeg

Just a quick post. If you want to bulk convert .MTS files (from JVC or Sony HD camcorders) then you can use the below script: You’ll need csh and ffmpeg installed: sudo apt-get install csh ffmpeg Make a new file called convert (I use joe but you can use nano or whatever you prefer) joe […]

Setting up Munin on Ubuntu 10.04

Server setup (as root): apt-get install apache2 munin munin-node munin-plugins-extra munin-libvirt-plugins munin-java-plugins a2dissite default Edit munin apache config to enable stats to be veiwed from anywhere: joe /etc/apache2/conf.d/munin change Allow localhost ::1 line to: allow all Restart apache2: /etc/init.d/apache2 restart Setup hosts we want to monitor in /etc/munin/munin.conf . For each host we need to […]