Skip to content

Instantly share code, notes, and snippets.

@NikoWoot
Created December 16, 2014 10:01
Show Gist options
  • Save NikoWoot/53a04fccaf7372fef5e6 to your computer and use it in GitHub Desktop.
Save NikoWoot/53a04fccaf7372fef5e6 to your computer and use it in GitHub Desktop.
Launch virtualbox in other graphical terminal (vty)
#!/bin/bash
# FIXME : Lancement via la commande sudo, lance virtualbox en tant que Root (donc ne pas marche pas)
# FIXME : sudo X, bug parfois et plante le terminal (fonctionne avec un sudo avant)
sudo X :3 -ac -terminate & # Lance sur un nouveau serveur X affichage 3
sleep 2 # Attend 2 secondes que le serveur soit prêt
DISPLAY=:3 virtualbox --startvm $1 --fullscreen # Lance l'application dans une autre Xsession
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment