Add build files with SSH client, VPN scripts, and auto-setup
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
Includes: - Dockerfile extending dockurr/windows with openssh-client - SSH key for Windows VM access - Startup script for network setup and script deployment - VPN automation scripts (vpn-login.js, socks5.js, vpn.bat) - Windows setup scripts (install-nodejs.ps1, setup-autologin-sshd.ps1, setup-ssh-keys.ps1) - Technical README 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
30
apps/rego-tunnel/build/scripts/install-nodejs.ps1
Normal file
30
apps/rego-tunnel/build/scripts/install-nodejs.ps1
Normal file
@@ -0,0 +1,30 @@
|
||||
# Install Node.js on Windows
|
||||
# Run as Administrator in PowerShell
|
||||
|
||||
$nodeVersion = "22.9.0"
|
||||
$nodeUrl = "https://nodejs.org/dist/v$nodeVersion/node-v$nodeVersion-x64.msi"
|
||||
$installerPath = "$env:TEMP\node-installer.msi"
|
||||
|
||||
Write-Host "Downloading Node.js v$nodeVersion..." -ForegroundColor Cyan
|
||||
Invoke-WebRequest -Uri $nodeUrl -OutFile $installerPath
|
||||
|
||||
Write-Host "Installing Node.js..." -ForegroundColor Cyan
|
||||
Start-Process msiexec.exe -Wait -ArgumentList "/i `"$installerPath`" /quiet /norestart"
|
||||
|
||||
# Refresh PATH
|
||||
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
||||
|
||||
Write-Host "Verifying installation..." -ForegroundColor Cyan
|
||||
node --version
|
||||
npm --version
|
||||
|
||||
Write-Host "Node.js installed successfully!" -ForegroundColor Green
|
||||
|
||||
# Cleanup
|
||||
Remove-Item $installerPath -Force
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Next steps:" -ForegroundColor Yellow
|
||||
Write-Host "1. Copy vpn-login.js, socks5.js, vpn.bat to C:\Users\alexz\vpn_scripts\"
|
||||
Write-Host "2. Open CMD in C:\Users\alexz\vpn_scripts\ and run: npm install ws otplib"
|
||||
Write-Host "3. Add vpn.bat shortcut to shell:startup folder"
|
||||
Reference in New Issue
Block a user