Category: HowTo

  • 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 127.0.0.1/8 ::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…

  • How to get EIT working with MythTV; MythTV Satalite EIT Woes

    At work we’ve got a MythTV (mythbuntu) server with 2x DVB-S and 2x DVB-S2 cards. For a while I struggled away at trying to get the tv grabber to collect tv lisitings but it required me to configure each channel individually, not a pain if it’s a one off but for some reason I found…

  • Network problems after a Ubuntu 10.04 Lucid Lynx install and what fixed them for me

    After installing from a live CD where there was no problem with the network, I was supprised to boot a fresh install of Ubuntu 10.04 lucid lynx, with no network access. Fair enough, I thought probably just a one off, my PC. However after my work mate also had trouble with the network after a…

  • How to set the multiple Nvidia GPUs to auto fan in Ubuntu

    Just a quick one. I’ve recently purchased an additional card to go in my Ubuntu machine, but my cards when set up in SLI were running very hot. Using the information found here I was able to stick one GPU into auto fan mode, however the second GPU would stay at a fixed value and…

  • How to archive folders older than a certain date in Linux / Ubuntu

    Using the GUI this task is trivial (Sort by list view, click on the Date heading to order by date, select the relevant folders then right click and Compress.) Using the command line to achieve the same results is a trifle harder. Here’s the command line I came up with: tar zcvf ArchiveName.tar.gz `find *…