Created
March 22, 2021 01:05
-
-
Save mhou1981/4269b6d1acfe6ad92dd685e2783d8a98 to your computer and use it in GitHub Desktop.
Add X11 forward to sudo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo touch /root/.Xauthority | |
sudo xauth add $(xauth -f ~${USER}/.Xauthority list | tail -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment