Setting Up Linux on a Virtual Machine to run LlamaEnc via wine
You can do this on, for example, OSX to encode your vid using LlamaEnc.
It *may* be possible to do this using Wine for OSX but I've no experience of that so a different guide will need to be made.
Things you will need:
Linux Mint 12 32 bit dvd (use the torrent download)
- Between 5 and 8GB free hard drive space.
I've chosen Linux Mint as the Linux distro purely because it will require the least amount of console use and the fewest number of mouse clicks to install for our purpose. [For example, it has winetricks in its standard package repository].
Download Linux Mint via the torrent and download and install Oracle Virtualbox VM. I'm assuming we're using Virtualbox version 4 for this guide.
Creating a new Virtual Machine
Open Virtualbox and click New!
Give your new machine a name (I've chosen LlamaMint)
and choose Linux and Ubuntu then click Next
In the example here I've set the amount of memory the virtual machine will have to be 1024 meg (i.e. a gig of ram) which should be fine. It defaults to be smaller but it's best to pad it out a little if possible for smoothness of operation.
Click Next and choose the hard drive type and size:
Normally I'd choose Fixed Size but I've opted for Dynamic here. It doesn't really if you have 8GB of hard drive space free.
Confirm all your options and you should have a new Virtual Machine listed in Virtualbox!
We need to set a few things before continuing, so with your new VM selected, click Settings
Most if not all the default are totally fine, we're just going to virtually 'insert a cd/dvd' into the drive of the virtual machine by mounting the Linux Mint .iso we downloaded.
Under Storage click the 'Empty' CD-looking entry under IDE Controller then click the CD icon at the far right and select Choose a virtual cd/dvd disk file then select your Linux Mint .iso that you torrented.
Now click ok.
With the dvd inserted, we can now start up our virtual machine and install Linux Mint!
Installing Linux Mint 12
This guide was written based around Linux Mint 12 but the instructions may work fine for newer versions.
Start up your virtual machine. Linux mint should load...
and after a few minutes you should get a live desktop
Double-click Install Linux Mint and go through the setup options. It's really a very simple setup process.
Choose Erase entire disk - don't worry, this means erase the entire Virtual Disk, not your actual hard drive! The virtual machine doesn't have access to your regular hard drive, the virtual hard drive is just a file that was created earlier when you set up the virtual machine.
Most of the options should be really self-explanatory:
Set up an account, this is the account that you'll be logging in as. I made a simple account called llama with a simple password and auto-login.
Now you wait...
After you click restart and you see the final screen here, double check that the CD icon at the bottom status bar of the Virtualbox window is now greyed out. This shows that the disc has been removed. If it's not, right click and unmount the .iso file.
When that's done, press return to restart the machine and boot into Linux Mint for the first time!
Setting Up Shared Folders
Now that we have linux running, we need a way to share files between your virtual machine and your real machine! For this we need Shared Folders. A Shared Folder is a folder on your real OS that you've elected to share with the virtual machine.
In the virtualbox window, choose Devices >> Shared Folders
Click the +add button (top right) and choose a folder to share. Personally, I'd make a new folder specifically for this purpose. In this example I made a VMShare folder.
Now back in linux land, we need to mount this shared folder so you can access it. First of all, you need a target folder on the Linux machine so go to Home and right-click and choose Create New Folder
I have created a VMShare folder in Linux to match the one in my regular OS. Now we need to open up a terminal to do a small amount of typing. It's not scary, honest.
Go to Applications > Accessories > Terminal
Now enter the following command:
sudo mount -t vboxsf VMShare ~/VMShare
Here, the first VMShare is the same as the Folder Name when you made the share in Virtual box (see above).
The 2nd VMShare is the one on the Linux machine. [~ is short for 'my home directory']
Type in your password, press return and you should hopefully get no errors. Now, you can put files in your VMShare folder and you should be able to see them in both Linux and your main OS. It doesn't matter which side you make the files. This particular shared folder allows writing but you can set up one-way shares where the linux machine can only read the files, not write.
The next thing we need to do is set up Wine. Wine is a Linux tool for running windows programs and it's kinda excellent. Installing Wine on Linux Mint is very easy.
Go to Other > Software Manager
Search for 'wine'
Select the Microsoft Windows Compatibility layer (meta package) - it should be the top result
Once Wine is installed you will get a new folder in Applications with various wine things. Before we do anything else we need to install some Microsoft drivers via something called winetricks
Go to Applications > Wine > Winetricks
Choose OK on 'select the default wineprefix'
Then choose Install a Windows DLL or component
Tick vcrun2008 and vcrun6 - these are the Visual C++ Runtime libraries and they are needed for things like Avisynth.
Click OK. It should now download and give you install prompts for two microsoft installers.
When both installers are done, simply cancel out of winetricks.
No we're ready to install LlamaEnc. You need to get the installer onto your linux machine. You can do this either by downloading it via Firefox (Internet > Firefox web browser) or by copying the installer into your shared folder.
Once there, right click the installer .exe and choose Open With Wine Windows Program Loader.
You will now get the LlamaEnc installer! All the default settings should be ok - wine has a 'pretend' C drive and a pretend 'Program Files' folder so you can just click ok for everything.
You will also be asked if you want to install Avisynth, you should say yes and again click OK on all the default installation options.
Once both installers are done, click Finish and you are ready to launch LlamaEnc!
It may take a little while to load up but you should be greeted with the following screen:
Congratulations, you can now use LlamaEnc. You will want to add folders you want to convert to your shared folder - LlamaEnc will use the same folder when converting so you can easily access any files it makes from your regular OS.