Reply To: Creating a random cookie (a 16-hex-digit string)

Forum / NoMachine for Linux / Creating a random cookie (a 16-hex-digit string) / Reply To: Creating a random cookie (a 16-hex-digit string)

#1282
Britgirl
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 😉