Posts

Showing posts with the label VirtualBox

Setup Auto-mount Shared Folder in VirtualBox between Windows 11 Host OS and Linux Guest OS

Image
This video show steps to setup Auto-mount Shared Folder in VirtualBox between Windows 11 Host OS and Linux Guest OS To set up Shared Folder in VirtualBox, make sure Guest Additions is installed . In VirtualBox control panel: Select target guest OS (Linux Mint) and click Settings. Select Shared Folders tab and click on "+" sign to add new shared folder. Select folder to share, Enable Auto-mount, click OK to finish setup. Start the guest OS (linux Mint). Try to access the shared folder in guest OS, but failed due to Permission denied. The shared folder belong to vboxsf group. To grant permission to user to access the shared folder, add user to vboxsf group: sudo usermod -G vboxsf -a <user> Log out and log in. Now you can access from both host Windows 11 and guest Linux.

Install Visual Studio Code on Linux Mint 21.2 (over VirtualBox/Windows 11)

Image
 Install Visual Studio Code1.81 on Linux Mint 21.2, over VirtualBox/Windows 11. Visit: https://code.visualstudio.com/ Download .deb for x64 It's two ways listed to install VS Code in Linux (.deb) Method one: sudo apt install ./<file>.deb It's first suggested, but in my test on Linux Mint 21.2, it reports error of Permission denied: N: Download is performed unsandboxed as root as file '/home/eric/Downloads/code_1.83.1-1696982868_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) Method two: sudo dpkg -i <file>.deb sudo apt-get install -f # Install dependencies For older Linux distribution, works for me with no error. next: ~  Install Espressif IDF Extension in VS Code to program ESP32-C3 Run on Linux Mint 21.2 (over Windows 11/VirtualBox) . ~  Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial . ~  Install PlatformIO on Visua...

Enable Host Webcam in VirtualBox Guest OS

Image
Enable Host Webcam in VirtualBox Guest OS (Tested on VirtualBox 7/Windows 11) Oracle VM VirtualBox includes a feature called webcam passthrough, which enables a guest to use a host webcam. ref: https://docs.oracle.com/en/virtualization/virtualbox/7.0/user/AdvancedTopics.html#webcam-passthrough To use Webcam Passthrough, Oracle VM VirtualBox Extension Pack have to be installed. Visit https://www.virtualbox.org/wiki/Downloads Install Extension Pack in VirtualBox: > File > Tools > Extension Pack Manager Click on Install button, locate the downloaded Extension Pack file. With Extension Pack installed, Webcams is listed under Devices of VirtualBox Menu.

Install Rust-embedded on Micro:bit, run on Linux Mint 21.1.

Image
Install Rust-embedded on Micro:bit, run on Linux Mint 21.1 (over Windows 11/VirtualBox). This post shows how I start in rust-embedded on my micro:bit . Basically, this post follow the on-line book Discovery (micro:bit version) to introduce you to micro:bit and Rust-embedded. Setting up a development environment:- Install rustc & Cargo: Install rustup by following the instructions at https://rustup.rs $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Install cargo-binutils: $ rustup component add llvm-tools-preview $ cargo install cargo-binutils --vers 0.3.3 $ cargo size --version Install prerequisites for cargo-embed: $ sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev Install cargo-embed: $ cargo install cargo-embed --vers 0.11.0 but fail: failed to select a version for requirement 'cargo_toml = "^0.9.0"'... Then I install the latest 0.18.0 instead of 0.11.0. The ...

Add USB Filter in VirtualBox to make USB device auto attach

Image
With USB device attached, in VitualBox Manager: > Setting > Select USB tab > Click "+", to "Adds new USB filter..." > Select the USB device to add it to USB Device Filters > OK

Install Linux Lite on VirtualBox/Windows 11

Image
This video show steps to install Linux Lite 6.4 on VirtualBox 7/Windows 11 Download Linux Lite 6.4 64bit iso: https://www.linuxliteos.com/download.php

Install Linux Mint 21.1 on VirtualBox 7 over Windows 11

Image
With VirtualBox 7 installed on Windows 11 , we can install Linux Mint on VirtualBox. Download Linux Mint ISO https://linuxmint.com/ , Xfce Edition is used here. Follow the steps in the video. Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. They consist of device drivers and system applications that optimize the guest operating system for better performance and usability. ref: https://www.virtualbox.org/manual/ch04.html To install Guest Additions, click on devices on VirtualBox Top Menu > Insert Guest Additions CD image... Open Terminal in the Guest Additions CD folder, run: $ sudo ./VBoxLinuxAdditions.run xeyes runnung: related: ~  Setup Auto-mount Shared Folder in VirtualBox between Windows 11 Host OS and Linux Guest OS

Install VirtualBox 7 on Windows 11

Image
 Installation of VirtualBox 7 on Windows 11 is straight forward. Visit https://www.virtualbox.org/wiki/Downloads  to download VirtualBox platform package of Windows host. But, for Windows, you have to install Python and win32api in advance. To install Python (currently 3.11.3) on Windows 11 - Visit https://www.python.org/downloads/ , download the latest version for Windows. - In the Setup dialog, enable Add python.exe to PATH, and Install Now. Then install win32api using pip, run the command: > pip install pywin32 next: ~ Install Linux Mint 21.1 on VirtualBox 7 over Windows 11

Create shared folder between Windows host and Linux guest in VirtualBox

Image
Make sure Guest Additions CD image is installed. Click on VirtualBox Menu Devices > Shared Folders > Shared Folders Settings... In the pop-up box, locate the shared folder in host, enable Auto-mount and Make permanent options. The shared folder in guest Linux is on /media/sf_share_LinuxMint. But, permission not granted. To grant permission to user, enter: $ sudo usermod -a -G vboxsf <user> Then restart the guest Linux. DONE after restarted.

Install Rust on Linux Mint 21.1 (Over VirtualBox)

Image
This video show steps to install Rust (1.67.1) on Linux Mint 21.1 (over VirtualBox). To install Rust on Linux (or macOS), enter the command in Terminal: $ curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh The command downloads a script and starts the installation of the rustup tool, which installs the latest stable version of Rust. ref: ~  https://doc.rust-lang.org/book/ch01-01-installation.html After Rust installed, you can follow the steps in the video to try your first Hello World using rustc, or using Cargo. rustc is fine for simple programs. But as your project grows, you’ll want to manage all the options and make it easy to share your code. Cargo will help you write real-world Rust programs. Cargo is Rust’s build system and package manager. Most Rustaceans use this tool to manage their Rust projects because Cargo handles a lot of tasks for you, such as building your code, downloading the libraries your code depends ...

Install Ubuntu MATE 22.04 LTS on VirtualBox 6.1

Image
Visit https://ubuntu-mate.org/download/ to download 64-bit PCs/Macs 22.04 LTS. It's strongly recpmmended to install Guest Additions CD image, as shown in the video.