Applescripting A Remote X-Windows Session for Virt-Manager

This isn’t just for virt-manager, but any X-Windows app you’d want to tightly integrate into your daily routine. Instead of firing up X11, then SSH’ing to your VM box and typing out virt-manager (insane!) you can script X11 to do everything with 1 mouse click. I have it in my Dock, and Launchbar also recognizes it as an app.
tell application "Finder"
launch application "X11"
end tell
set results to do shell script “ssh -X haddad-vmserver ‘virt-manager’”
This isn’t just for virt-manager, but any X-Windows app you’d want to tightly integrate into your daily routine. Instead of firing up X11, then SSH’ing to your VM box and typing out virt-manager (insane!) you can script X11 to do everything with 1 mouse click. I have it in my Dock, and Launchbar also recognizes it as an app.
tell application "Finder"
launch application "X11"
end tell
set results to do shell script “ssh -X haddad-vmserver ‘virt-manager’”
Sweetness.
Also see my post about setting up a headless VM server using KVM.
Related Posts
'Linux/OSX: find out what network ports are in use'
MacBook Air Battery Drain While Sleeping
Making Better Use of your .ackrc file
Need Expert Help with Apache Cassandra?
Get professional consulting for your distributed systems challenges. Performance optimization, architecture design, and troubleshooting.