packages/computeruse/vagrant/README.md
This directory contains the Vagrant configuration for setting up a Windows 10 development environment for the ComputerUse project.
The VM is configured with:
C:/Users/vagrant/computeruse in the VMStart the VM:
vagrant up
Connect to the VM:
vagrant ssh
The workspace will be available at C:/Users/vagrant/computeruse inside the VM
To stop the VM:
vagrant halt
To destroy the VM and start fresh:
vagrant destroy
You can connect to the VM using Remote Desktop Protocol (RDP) in two ways:
Simply run:
vagrant rdp
This will automatically launch your default RDP client with the correct connection details.
If you need the current RDP connection details (which may change between VM restarts), run:
vagrant winrm-config
You can then use any RDP client (like Windows Remote Desktop Connection or Remmina) to connect using the details from the command output.
To use VS Code or Cursor with Remote SSH:
First, add this entry to your SSH config file:
For Windows (PowerShell):
$sshConfig = @"
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
LogLevel FATAL
"@
Add-Content -Path "$env:USERPROFILE\.ssh\config" -Value $sshConfig
For macOS/Linux (Bash):
cat << 'EOF' >> ~/.ssh/config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
LogLevel FATAL
EOF
You can change the Host name from default to anything you prefer.
Then connect using:
code --remote ssh-remote+default C:/Users/vagrant/computeruse
Replace default with your chosen hostname if you changed it.
When prompted for a password, use: vagrant
When working through SSH or non-interactive sessions, you can use the gui-shell tool to launch an interactive PowerShell shell in the active GUI user session (session 1). This allows you to interact with the Windows desktop environment as if you were logged in via RDP, even from SSH or VS Code Remote SSH. The shell you get is running in the correct session for GUI apps, so any GUI applications you launch from within it will appear on the Windows desktop.
To start an interactive PowerShell shell in the GUI session:
gui-shell
Once inside the shell, you can launch GUI applications or run any commands interactively as if you were at the Windows desktop.