Jump to content
IGNORED

Host Integration


SpiceWare

Recommended Posts

When using a VM(virtual machine), the operating system installed on your real hardware is known as the Host. For me, that's macOS.
 
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 "monitor" window
  • share one or more Host directories with the Guest
  • share the clipboard between Host and Guest
  • Seamless mode

 

Start up your Virtual Machine and log in.

 

200361268_ScreenShot2019-10-06at3_59_57PM.thumb.png.d33b3a2db5c82fecd158f265bc844a98.png

 

 

If you see a System Notification Helper just hit the close button and ignore it for now.

 

710699907_ScreenShot2019-10-06at4_26_11PM.thumb.png.b65b25c617badafe0a7f46d0c608c069.png

 

If you try to resize the window that represents the Guest's monitor you'll see that while the window changes size, the VM's display stays at 800x600

 

window smaller than 800x600, scrollbars added

171528020_ScreenShot2019-10-06at4_03_38PM.thumb.png.072b1feda17003abd05f4d15de6df39c.png

 

window larger than 800x600, padding added

1693547372_ScreenShot2019-10-06at4_00_09PM.thumb.png.8a2efbc10b0953ae7eca44d1a6725841.png

 

While you can select different resolutions, it's nicer to have Linux automatically adjust whenever you resize the virtual monitor's window. 

 

 

Install GCC and other tools

 

Guest Additions needs to use GCC and other tools, but since we did a minimal installation they are not installed.  To install those we'll need to open a terminal session, known as Konsole in Kubuntu.  

 

  1. Click on K-Gear
  2. Click on Konsole

 

743247763_ScreenShot2019-10-06at4_13_26PM.thumb.png.761caad6cf7e90d0699852be0ff8a0ef.png

 

type the commands:

  1.     sudo apt-get update
  2.     sudo apt-get install build-essential gcc make perl
  3.     reboot

 

sudo is a way to run commands using a different account, typically root which is the administrator account. For the first one you'll be prompted for your password, enter it. The password will remain active for a bit of time, so you won't need to enter it for the second sudo command; however, you'll be prompted with Do you want to continue? (Y/n) so watch for it. Since Y is capitalized it's the default answer, so you can just hit return to continue.


Do note that the reboot will take a while.

 

391283973_ScreenShot2019-10-06at4_16_34PM.thumb.png.29464599f5940bcc5a8cef3acf686f07.png

 

 

Install Guest Additions

 

Now that those are installed we can insert the Guest Additions CD Image

 

  1. Select the Devices menu
  2. Select the Insert Guest Additions CD image... menu option.

 

1735771029_Devicesmenu.thumb.png.7be7948e8d234aa63cca04f82b9ae4c3.png

 

 

A Device Notifier will pop up. Click the drop-down icon

 

2016682619_ScreenShot2019-10-06at4_25_23PM.thumb.png.e3694de771c4818697c67a9c79a236da.png

 

Then click on Open with File Manager

 

1339031139_ScreenShot2019-10-07at8_18_12PM.thumb.png.96c74c026ad40aeb3b30abdcc1d4749a.png

 

 

Once it opens, click the X to close the window.

 

1002020107_ScreenShot2019-10-07at8_18_21PM.thumb.png.e94384b9752fa847011f862e78f0cd26.png

 

 

Open the Konsole like before, then type following commands:

  1. cd /media/atari/VBox_GAs_6.0.12
  2. sudo ./VBoxLinuxAdditions.run
  3. shutdown now


NOTE: 6.0.12 is the version of VirtualBox at the time I wrote this, so might be higher when you follow these instructions.
 

TIP: Konsole supports command completion using the Tab key.  You can enter the above commands faster by pressing Tab:

 

  1. cd /me<TAB>/a<TAB>/VB<TAB>
  2. sudo ./VB<TAB>L<TAB>
  3. shut<TAB>now

 

Guest additions are now installed.

 

Note: if you did not open the CD with the File Manager then the cd /media... command will fail.

 

Added Shared Folder

 

I prefer to keep all my projects on my Mac - this allows me to use editors I'm familiar with, as well as use the Mac version of Stella to test my code, and have my Mac automatically make backups of my source code using Time Machine. In order for the compilers to access the source code we'll need to share our Atari Projects folder. On my Mac that's /Users/darrellspice/Projects/Atari, so that's the folder I'll be sharing.

 

Click on the Settings icon

 

1007061813_ScreenShot2019-10-06at4_31_04PM.thumb.png.aa55daba6ea4fa56f02e9e228eb348fc.png
 

Click the Shared Folders tab, then the Add Shared Folder icon

 

1344712220_ScreenShot2019-10-06at4_31_24PM.thumb.png.cff6f4eb0aa2dbc2dfebc5dbf7ca5b4f.png
 

Drop down the Folder Path and select Other.

 

1765557750_ScreenShot2019-10-06at4_32_03PM.thumb.png.3b35417ce120267e18c3d4a6ef47c3ee.png
 

Select your Atari project folder.
 

Check Auto-mount then click OK.

 

1139438846_ScreenShot2019-10-06at4_32_40PM.thumb.png.9118e669ccea3f84b1b888b7f03819df.png
 

Review your shared folder, then click OK.

 

1989160702_ScreenShot2019-10-06at4_32_45PM.thumb.png.5743be3757c65289a5e31017ed54e1d3.png

 

 

Start up your VM. You can now resize the window 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 Manager, which is known as Dolphin in Kubuntu:

 

1980101572_ScreenShot2019-10-06at4_34_12PM.thumb.png.6e8d26ad8640690fe2a1850b8bb4d10c.png

 

 

When Dolphin first opens we'll notice the Virtual Box Guest Additions CD is still inserted. We don't need it anymore, so Right-click on it and choose Eject.

 

1176444633_ScreenShot2019-10-06at4_34_39PM.thumb.png.7b3cc55232d1a29b778c0631ef87a1e4.png

 

 

A leading / in /media/sf_Atari is known as root.  So click on Root, then double click on media

 

1430724105_ScreenShot2019-10-06at4_35_08PM.thumb.png.1a2827c886c9d36f72cffb2a45b3078c.png

 

You'll notice there's a lock is on the shared folder:

 

1056627746_ScreenShot2019-10-06at4_35_18PM.thumb.png.b996e385964022f47a85fcb4c1eadb8e.png

 

If you try to open it you'll get a could not enter... message.

 

1517600654_ScreenShot2019-10-06at4_35_42PM.thumb.png.59dff629ad4c820ec73963c02a2b948b.png

 

To fix it we'll need to run a command in the terminal to grant yourself access to shared folders.  The command is:
sudo adduser username vboxsf

 

where username is yur Linux username. Mine is set as atari so I'll enter

  • sudo adduser atari vboxsf

 

852056602_ScreenShot2019-10-06at4_37_13PM.thumb.png.2384161e1d19f742d33ef75ff094085d.png

 

You'll need to log out then back in for this to take effect.

  • Click K-Gear
  • Click Leave
  • Click Logout

 

462750119_ScreenShot2019-10-06at4_37_58PM.thumb.png.6c7c35bdf16a6d3193588b734ec29ada.png

 

Log back in then try to open your shared folder using Dolphin.  I now see all of my projects

 

2057782338_ScreenShot2019-10-06at4_38_59PM.thumb.png.0c2133957b78a3a31e2b1d3072641d56.png

 

 

Share the Clipboard

 

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

 

clipboard.thumb.png.d0a858d083f818dc2b5c70f6ef5a1b2f.png

 

 

Disable Screen Locking

 

By default, Kubuntu will lock its screen after 15 minutes of idle time. That can become annoying, so let's turn it off.

 

First we need to open up System Settings. 

  • Click K-Gear
  • Click System Settings (just above Konsole)

 

599510475_ScreenShot2019-10-06at4_41_07PM.thumb.png.7102217a2b93296ea8cc9d0a3f311c86.png

 

Click on Desktop Behavior under the Workspace group

 

370425915_ScreenShot2019-10-06at4_41_17PM.thumb.png.f3ecad5872fa255c18c29eb3ff7de1a8.png

 

  1. Click on Screen Locking
  2. uncheck Lock screen automatically...
  3. Click Apply

 

If you don't have an HiDPI monitor then you're done for now.  If you do, then proceed

 

 

HiDPI

 

Since we're already in System Settings, now's a good time to configure Kubuntu to take advantage of HiDPI monitor. 
 

Click on Desktop Behavior in the upper-left to return to the major settings groups. Scroll the list down to find the Hardware section.

 

832216991_ScreenShot2019-10-06at4_43_07PM.thumb.png.e6a2dc43136ba915ff93de66377074ca.png

 

Click on Display and Monitor

 

1001402197_ScreenShot2019-10-06at4_43_37PM.thumb.png.35ec78de7ed9635c4b758c47e5f21751.png

 

You'll need to scroll the settings on the right down to reveal Scale Display

 

1265101945_ScreenShot2019-10-06at4_44_15PM.thumb.png.b7f97e00fc0cdea6e99fd4e046389264.png

 

Click it and you'll see the scale is currently set to 1

 

519358258_ScreenShot2019-10-06at4_44_46PM.thumb.png.ee657e9779c90518186af2fe81874cc4.png

 

Slide it to 2, then click OK

 

1691721606_ScreenShot2019-10-06at4_45_09PM.thumb.png.7bd1243457aabee30d57afa7730a0690.png

 

 

You'll need to restart your Virtual Machine for this to take effect.  Hint - start by clicking the K-Gear.

 

Now you'll need to restore the Scale Factor to 100%.  Click Settings on the VirtualBox Manager

 

1148914908_ScreenShot2019-10-06at8_33_30PM.thumb.png.27794a3c91cc4923d8e9c6149dcf3c35.png

 

Then change the Scale Factor on the Display tab.

 

1659931475_ScreenShot2019-10-06at8_33_36PM.thumb.png.75a66dc28c4881489e9582f92a2c250d.png

 

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

If anybody else with windows has postponed trying this, I found a very simple way to compile

 

 

download latest win32.exe from here
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
install

 

download latest Compressed 32-bit executable for Windows
https://dasm-assembler.github.io/

 

download one of the cdfj collect sources
unzip and copy dasm.exe to that folder (to keep it simple)

 

add an environment variable
arm-none-eabi
C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major\bin

 

open the Makefile with notepad and change this part

#TOOLCHAIN=arm-none-eabi
TOOLCHAIN=arm-eabi

 

to this
TOOLCHAIN=arm-none-eabi
#TOOLCHAIN=arm-eabi

 

and save. that was it I think, I had to use mingw32 for the make command.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...