Skip to content

Instantly share code, notes, and snippets.

@Yashraj-10
Last active September 15, 2023 14:56
Show Gist options
  • Save Yashraj-10/9da0a7ec8f683a306de8c8b86619db6a to your computer and use it in GitHub Desktop.
Save Yashraj-10/9da0a7ec8f683a306de8c8b86619db6a to your computer and use it in GitHub Desktop.
Using GUI on remote system connected using GUI

Using GUI on a remote system connected using SSH

Connecting to a remote system using SSH

Let us take the dummy IP for this task as 255.255.255.0 and the username on the remote system as user12.

#command to connect to remote server
ssh user12@255.255.255.0

After this you will be prompted for connecting for the first time, write yes.
Now you will be prompted to enter user12's password, type the password and press Enter.

Enabling use of GUI

Write the following commands in the terminal to enable use of GUI.

DISPLAY=":0"
export DISPLAY

Now you are good to go and to use GUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment