clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update

sspaeti aeae1852 e6315a21

+34 -17
+32 -15
hypr/.config/hypr/sspaeti/windows-ms/start-windows.sh
··· 29 29 docker-compose up & 30 30 COMPOSE_PID=$! 31 31 32 - # Wait for RDP port to be available and RDP service to be ready 33 - echo "Waiting for RDP port to open..." 34 - while ! nc -z 127.0.0.1 3389; do 35 - echo " Port 3389 not ready yet..." 36 - sleep 10 32 + # Wait for container to be running 33 + echo "Waiting for Windows container to start..." 34 + while true; do 35 + CONTAINER_STATUS=$(docker inspect --format='{{.State.Status}}' windows 2>/dev/null) 36 + if [ "$CONTAINER_STATUS" = "running" ]; then 37 + echo "Container is running!" 38 + break 39 + fi 40 + echo " Container status: $CONTAINER_STATUS" 41 + sleep 2 37 42 38 43 # Check if docker-compose process is still running 39 44 if ! kill -0 $COMPOSE_PID 2>/dev/null; then ··· 42 47 fi 43 48 done 44 49 45 - echo "Port 3389 is open, waiting for Windows VM to fully initialize..." 46 - echo "This can take 2-3 minutes for Windows to boot completely..." 50 + # Check if web interface is responding (faster than waiting for RDP) 51 + echo "Checking if Windows VM web interface is responding..." 52 + while true; do 53 + if curl -s --connect-timeout 5 http://127.0.0.1:8006 > /dev/null 2>&1; then 54 + echo "Web interface is responding at http://127.0.0.1:8006" 55 + break 56 + fi 57 + echo " Web interface not ready yet..." 58 + sleep 3 59 + done 47 60 48 - # Additional wait for Windows to fully boot and RDP service to be ready 49 - sleep 60 61 + # Now wait for RDP port specifically 62 + echo "Waiting for RDP service to be ready..." 63 + while ! nc -z 127.0.0.1 3389; do 64 + echo " RDP port not ready yet..." 65 + sleep 5 66 + done 50 67 51 - # Test RDP connection availability 52 - echo "Testing RDP connection..." 53 - timeout 10 rdesktop -g 640x480 -u docker 127.0.0.1:3389 -p admin 2>/dev/null 68 + echo "RDP port is open, testing connection..." 69 + # Quick RDP test with shorter timeout 70 + timeout 5 rdesktop -g 1920x1200 -u docker 127.0.0.1:3389 -p admin 2>/dev/null 54 71 if [ $? -ne 0 ]; then 55 - echo "RDP not fully ready yet, waiting another 30 seconds..." 56 - sleep 30 72 + echo "RDP not fully ready yet, waiting 20 more seconds..." 73 + sleep 20 57 74 fi 58 75 59 76 echo "Starting RDP connection..." ··· 63 80 $RDP_COMMAND 64 81 65 82 # If RDP exits, cleanup 66 - cleanup 83 + cleanup
linux_applications/.local/share/applications/icons/windows.png

This is a binary file and will not be displayed.

+2 -2
linux_applications/.local/share/applications/windows-vm.desktop
··· 2 2 Name=Windows VM 3 3 Comment=Start Windows VM via Docker and connect with RDP 4 4 Exec=uwsm app -- /home/sspaeti/.config/hypr/sspaeti/windows-ms/start-windows.sh 5 - Icon=computer 5 + Icon=/home/sspaeti/.local/share/applications/icons/windows.png 6 6 Terminal=false 7 7 Type=Application 8 - Categories=System;Virtualization; 8 + Categories=System;Virtualization;