This guide will help you set up a development environment for web, desktop, and GUI applications with Linux terminal support on a Windows host using VirtualBox, VSCode, XServer (XDisplay), and SSH.
Before proceeding, ensure Python is installed on your Windows system:
- If not installed, download and install Python from https://www.python.org/
- Install pywin32 by running the following command in Windows Command Prompt:
pip install pywin32
Note: VirtualBox relies on Python and pywin32. Uninstalling Python from your host machine or removing pywin32 will disrupt the functionality of VirtualBox.
Option 1: Using Settings app
- Open the Settings app
- Go to Apps > Optional features
- Click "Add a feature"
- Select OpenSSH Server and OpenSSH Client
Option 2: Using PowerShell
Get-WindowsCapability -Name OpenSSH.Server.Feature -Online | Enable-WindowsOptionalFeature -Online -NoRestart
- Open the Services app
- Find the "OpenSSH SSH Server" service
- Set the startup type to "Automatic"
- Start the service
Open PowerShell as Administrator and run:
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
- VirtualBox: Download from https://www.virtualbox.org/
- Linux Mint (Cinnamon Edition): Download from https://linuxmint.com/
- If you prefer a different edition, download as per your preference
- Ubuntu is also an option: https://ubuntu.com/
- VSCode: Download from https://code.visualstudio.com/
- XServer: Download from https://sourceforge.net/projects/vcxsrv/
-
Install VirtualBox
- Proceed with default settings recommended by VirtualBox
-
Install VSCode
- Proceed with default settings recommended by VSCode
-
Install XServer
- Proceed with default settings recommended by vcxsrv
- Open VirtualBox and click on "New"
- Locate the Linux Mint ISO file and click "Finish"
- Press the start button after successful boot
- Select "Linux Mint (Compatibility Mode)" and proceed with installation
- After pressing "Install now", proceed through the installation steps
- In the final step, set up your username and password
- Check "Automatic login" to avoid entering password every time (you can change this setting later if required)
After Linux Mint installation is successful, open the terminal and run these commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server openssh-client xclock xeyes