+SpiceWare Posted October 6, 2019 Share Posted October 6, 2019 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. If you see a System Notification Helper just hit the close button and ignore it for now. 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 window larger than 800x600, padding added 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. Click on K-Gear Click on Konsole type the commands: sudo apt-get update sudo apt-get install build-essential gcc make perl 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. Install Guest Additions Now that those are installed we can insert the Guest Additions CD Image Select the Devices menu Select the Insert Guest Additions CD image... menu option. A Device Notifier will pop up. Click the drop-down icon Then click on Open with File Manager Once it opens, click the X to close the window. Open the Konsole like before, then type following commands: cd /media/atari/VBox_GAs_6.0.12 sudo ./VBoxLinuxAdditions.run 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: cd /me<TAB>/a<TAB>/VB<TAB> sudo ./VB<TAB>L<TAB> 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 Click the Shared Folders tab, then the Add Shared Folder icon Drop down the Folder Path and select Other. Select your Atari project folder. Check Auto-mount then click OK. Review your shared folder, then click OK. 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: 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. A leading / in /media/sf_Atari is known as root. So click on Root, then double click on media You'll notice there's a lock is on the shared folder: If you try to open it you'll get a could not enter... message. 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 You'll need to log out then back in for this to take effect. Click K-Gear Click Leave Click Logout Log back in then try to open your shared folder using Dolphin. I now see all of my projects Share the Clipboard If you'd like to share your clipboard do the following while using your VM: Select the Devices menu Select the Shared Clipboard submenu Select the Bidirectional submenu option 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) Click on Desktop Behavior under the Workspace group Click on Screen Locking uncheck Lock screen automatically... 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. Click on Display and Monitor You'll need to scroll the settings on the right down to reveal Scale Display Click it and you'll see the scale is currently set to 1 Slide it to 2, then click OK 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 Then change the Scale Factor on the Display tab. 1 Link to comment Share on other sites More sharing options...
Lillapojkenpåön Posted January 17, 2020 Share Posted January 17, 2020 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. 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts