Skip to main content

Xforward with sudo

 
 
LOGNAME=`logname`
xauth list | grep `uname -n` > /tmp/${LOGNAME}-xauth && chmod 660 /tmp/${LOGNAME}-xauth
sudo su - 
LOGNAME=`logname`
xauth add `tail -1 /tmp/${LOGNAME}-xauth`
virt-manager

Comments