Jump to content
  • entries
    652
  • comments
    2,629
  • views
    874,089

DPC+ARM - Part 2, Guest Additions

SpiceWare

996 views

NOTE: This blog series is obsolete.  Head on over to the Harmony/Melody Club where you'll find information on the new Linaro compiler and the new CDFJ coprocessor/bankswitch scheme that has many improvements over DPC+.

 

When using a VM(virtual machine), the operating system installed on your real hardware is known as the Host. For me that's Mac OS X.

 

The operating system that's installed in the VM is known as the Guest, for us that's Linux.

 

By default, the Guest doesn't interact with Host. To make the Guest more useful we're going to install Guest Additions, which will give us a number of helpful features such as:

  • resizable VM window
  • share one or more Host directories with the Guest
  • share the clipboard between Host and Guest
  • Seemless Windows

Start up your Virtual Machine and log in. If you try to resize the window you'll see that while the window changes size, the VM's screen stays at 640x480:

 

 

 

 

original window size



blogentry-3056-0-18313800-1423784374_thumb.png

 

resized window

blogentry-3056-0-77617800-1423784440_thumb.png

If you try to adjust the size, you'll find that it can't be changed from 640x480.

 

 

 

 

display settings



blogentry-3056-0-59030600-1423784323_thumb.png

Install Guest Additions

 

Follow these steps to install the Guest Additions:

  1. Select the Devices menu
  2. Select the Insert Guest Additions CD image... menu option.
     
     
     
    blogentry-3056-0-18865600-1423784318.png

     

  3. You'll be prompted to run the software. Click on the button that's partially off screen
     
     
     
    blogentry-3056-0-04847800-1423784448_thumb.png

     

  4. You'll be prompted for your Linux account's password, enter it
     
     
     
    blogentry-3056-0-94698500-1423784431_thumb.png

     

  5. the installation will begin
     
     
     
    blogentry-3056-0-79007700-1423784379_thumb.png

     

  6. Hit Return when prompted
     
     
     
    blogentry-3056-0-53740300-1423784385_thumb.png

     

  7. Shut Down your VM
     
     
     
     
    blogentry-3056-0-25874500-1423784504_thumb.png
    blogentry-3056-0-90559400-1423784513_thumb.png

     

Add Shared Folder

 

Guest additions are now in place. While we're shut down, lets add our shared folder. On my Mac, all of my Atari projects are located in /Users/darrellspice/Projects/Atari, so that's the folder I'll be sharing.

  1. Click the Settings icon
     
     
     
    blogentry-3056-0-30918400-1423784349_thumb.png

     

  2. Click the Shared Folders tab, then the Add Shared Folder icon
     
     
     
    blogentry-3056-0-44146600-1423784475_thumb.png

     

  3. Drop down the Folder Path and select Other.
     
     
     
    blogentry-3056-0-77690700-1423784481.png

     

  4. Select your Atari project folder.
  5. Check Auto-mount then click OK.
     
     
     
    blogentry-3056-0-19261100-1423784488.png

     

  6. Review your shared folder, then click OK.
     
     
     
    blogentry-3056-0-27095400-1423784496_thumb.png

     

Start up your VM. You should notice that the window and VM screen size is larger than before. You can also change the window size and the VM will adjust accordingly.

 

So where's that shared folder? It's located in /media/ and the name will have an sf_ prefix, so my shared folder of Atari is /media/sf_Atari. To find it, we'll use the File browser:

 

 

 

File Browser



blogentry-3056-0-33524900-1423784361_thumb.png

In the Devices group click on Computer, then click on media.

 

 

 

media directory



blogentry-3056-0-02365700-1423784417_thumb.png

You'll find your shared folder there:

 

 

 

your shared folder



blogentry-3056-0-80270300-1423784461_thumb.png

however, you'll get an error if you try to access it:

 

 

 

no permission



blogentry-3056-0-63062500-1423784423_thumb.png

so you won't see what's in it:

 

 

 

appears empty



blogentry-3056-0-39241700-1423784344_thumb.png

To fix it, we'll need to run a command in the Terminal. To find it, click on the Search icon in the Launcher:

 

 

 

search



blogentry-3056-0-21007000-1423784455_thumb.png

Type in terminal to find it.

 

 

 

type terminal



blogentry-3056-0-64245900-1423784367_thumb.png

Click on it to start the terminal:

 

 

 

run terminal



blogentry-3056-0-86048100-1423784522_thumb.png

Since we'll be using the terminal a lot, now would be a good time to lock it to the Launcher. Find the Terminal icon in the Launcher, it'll be towards the bottom, and right-click on it then select Lock to Launcher

 

 

 

Lock to Launcher



blogentry-3056-0-90731600-1423784394_thumb.png

The Launcher is pretty full, so now might be a good time to get rid of things like LibreOffice which we're not going to use. Right-click on LibreOffice Writer then select Unlock to Launcher

 

 

 

Unlock from Launcher



blogentry-3056-0-25418100-1423784532_thumb.png

After all the unlocking, my Launcher looks like this. The "Guest Additions CD" is still in place, so we can eject it while we're here. Right-click on the CD icon and select Eject

 

 

 

eject



blogentry-3056-0-66606400-1423784355_thumb.png

To fix the permissions, we need to add our user account to the security group vboxsf (short for VirtualBox Shared Folders). The command we'll enter is:

sudo adduser username vboxsf

 

where username is your Linux username. Mine is darrell, so I entered sudo adduser darrell vboxsf. sudo is a way to run commands using a different account, typically root which is the administrator account. You'll be prompted for your password, enter it

 

 

 

 

run adduser



blogentry-3056-0-81150500-1423784338_thumb.png

In order for the change to take affect, you'll need to log out then log back in. Select the gear icon in the top-right corner then select Log Out...

 

 

 

 

logout



blogentry-3056-0-43113000-1423784410_thumb.png

Select the icon on the right to log out:

 

 

 

 

confirmation



blogentry-3056-0-78573300-1423784402_thumb.png

After logging back in, use the File browser and you'll now be able to see the contents of your shared folder

 

 

 

 

access granted



blogentry-3056-0-25499300-1423784329_thumb.png

Share the Clipboard

 

Lastly, if you'd like to share your clipboard do the following while using your VM:

  1. Select the Devices menu
  2. Select the Shared Clipboard submenu
  3. Select the Bidirectional submenu option

share clipboard



blogentry-3056-0-49803200-1423784468.png


0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...