LlamaEnc2_v...rtual_linux

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:

  1. Linux Mint 12 32 bit dvd (use the torrent download)

  2. Oracle Virtualbox VM

  3. LlamaEnc2

  4. 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].

Setting up

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)

CreateNewVM-01.jpg

and choose Linux and Ubuntu then click Next

CreateNewVM-02.jpg

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:

CreateNewVM-03.jpg CreateNewVM-04.jpg CreateNewVM-05.jpg CreateNewVM-06.jpg

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!

CreateNewVM-07.jpg

Initial Settings

We need to set a few things before continuing, so with your new VM selected, click Settings

VMSettings-01.jpg

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.

VMSettings-02.jpg

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...

LinuxMint-01.jpg LinuxMint-02.jpg

and after a few minutes you should get a live desktop

LinuxMint-03.jpg

Double-click Install Linux Mint and go through the setup options. It's really a very simple setup process.

LinuxMint-04.jpg LinuxMint-05.jpg

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.

LinuxMint-06.jpg LinuxMint-07.jpg

Most of the options should be really self-explanatory:

LinuxMint-08.jpg LinuxMint-09.jpg

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.

LinuxMint-10.jpg

Now you wait...

LinuxMint-11.jpg LinuxMint-12.jpg LinuxMint-13.jpg LinuxMint-14.jpg

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!

SharedFolders-01.jpg

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.

SharedFolders-02.jpg

In the virtualbox window, choose Devices >> Shared Folders

SharedFolders-03.jpg

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.

SharedFolders-04.jpg

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

SharedFolders-06.jpg SharedFolders-07.jpg

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

SharedFolders-05.jpg

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']

SharedFolders-08.jpg

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.

SharedFolders-09.jpg

Installing Wine

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

Wine-01.jpg

Search for 'wine'

Wine-02.jpg

Select the Microsoft Windows Compatibility layer (meta package) - it should be the top result

Wine-03.jpg

Install it!

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

Wine-04.jpg

Choose OK on 'select the default wineprefix'

Wine-05.jpg

Then choose Install a Windows DLL or component

Wine-06.jpg

Tick vcrun2008 and vcrun6 - these are the Visual C++ Runtime libraries and they are needed for things like Avisynth.

Wine-07.jpg

Click OK. It should now download and give you install prompts for two microsoft installers.

Wine-08.jpg

Wine-09.jpg

Wine-10.jpg

When both installers are done, simply cancel out of winetricks.

Installing LlamaEnc

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.

Llama-01.jpg

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.

Llama-02.jpg Llama-03.jpg

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.

Llama-04.jpg Llama-05.jpg Llama-06.jpg Llama-07.jpg

Once both installers are done, click Finish and you are ready to launch LlamaEnc!

Simply go to Applications > Wine > Program Files > LlamaEnc2 > LlamaEnc2

Llama-08.jpg

It may take a little while to load up but you should be greeted with the following screen:

Llama-09.jpg

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.

ViddingSetups/LlamaEnc2_via_virtual_linux (last edited 2012-02-16 12:52:23 by AbsoluteDestiny)