Archive for the ‘Linux Enthousiasm’ Category

October-3-2011
Filed Under (Linux, Linux Enthousiasm) by martensson

So, I wanted an complete secure Moodle E-learning environment.. After completing the installation fully non-secure (HTTP) , I fiddled with al the configuration settings.. Seems there is no immediate logical / direct way for getting this done..

For reference, getting Moodle  on Nginx working completely secure (full SLL)

1) config.php –> change $CFG->wwwroot   = ‘https://yourmoodleurl’;
2) Disable HTTPS login under Administration –> Security –> HTTP
3) config.php –> add  $CFG->sslproxy=true;

And ofcourse change your nginx server/site configuration



February-21-2010
Filed Under (Linux Enthousiasm) by martensson

I hoped I could avoid situations like this, but unfortunately it did came on my path and it really was dead easy..

In this process I describe the conversion of the VHD (Virtual Harddisk Drive) from Virtual PC to Virtualbox (VDI). This was enough for me, just make a blank Windows machine and add the new (yet to produce) VDI file.

To do this, I proceeded as follow:

  1. install qemu package (sudo apt-get install qemu)
  2. convert .vhd file: qemu-img convert -O raw myfile.vhd myfile.bin
  3. once the file has been converted, we convert it to .vdi format using VBoxManage: VBoxManage convertfromraw myfile.bin myfile.vdi –variant standard
    note1: “variant” is specified to ensure we have an expandable vdi file (.bin file is 17Gb, .vdi file will be only 1.5Gb)
    note2: in previous version, “convertfromraw” command was called “convertdd”

Simple as that. Thanks to Willing Wheels for these instructions, worked perfect.

Don’t forget to reactive Windows as needed, since Windows Licensing works hardware based.



July-26-2009
Filed Under (Linux Enthousiasm) by martensson

Here is an howto, how to capture and ASF stream and Burn them to a disc (DVD, VCD, SVCD; whatever you prefer). This can be used to make a local copy of an online tv/streamprovider like the Uitzendinggemist (dutch) site which provides you with replayes of programmes.

First of all, we need to capture the streams. Turns out this is actually quite easy, since Mplayer has support for this Built-in.  The command you need

mplayer -dumpstream yoururltotheasfstream.asf

This will take a long time (dependig on the length of the stream ofcourse, but most streams are not < 15 min), so hold on your breath.

When it’s ready you will see a stream.dump file in the location you started mplayer. Let’s convert this to an MPEG2 format, so it’s usable as an SVCD disc in most players. You can convert (ofcourse) to other formats, depending on your needs. A normal VCD isn’t something I would recommend, SVCD could be used for streams > 70 minutes (and don’t have HQ), and ofcourse otherwise use DVD authoring.

For the process of making the MPEG2 file(s), I used Tovid. Perhaps not the most user-friendly application, but it does the job. First install Tovid:

sudo apt-get install tovid tovidgui

Damn that was easy. Just start Tovid right now. Make the Stupid menu item, add your source (stream.dump) and be sure you have the right video settings (TV format / Disc Format). Press Encode and wait… For a long time (ofcourse depending on your computer / length of stream etc)

Now you have an MPEG2 stream available, most likely to be named stream.dump.tovid_encoded.mpg. You can burn this to disc with Tovid, I prefer K3b.