Forum / NoMachine for Linux / Creating a random cookie (a 16-hex-digit string) / Reply To: Creating a random cookie (a 16-hex-digit string)
December 13, 2013 at 18:19
#1282

Keymaster
The steps to generate the cookie are:
1) $ COOKIE=ps -ef | md5sum | cut -f 1 -d " "
2) $ sudo xauth -f /var/run/Xvfb-0.auth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
3) $ xauth add :0 MIT-MAGIC-COOKIE-1 $COOKIE
We’ll update the article 😉