Steps:
1. Switch to root user (If not in already):
$ su -
Enter password
2. Type the below command as root user:
# export DISPLAY=machine:0.0;
3. Check it is set or not by entering the below command:
#echo $DISPLAY
4. Disable the hostname access
# xhost + (or) # xhost + hostname
5. Check GUI is working or not by entering the below command:
# xclock
6. Switch to normal user :
# su - username
Enter password
7. Type below commands to access the GUI:
$ xhost +
8. Type xclock command in the command prompt
Note: If we need the same GUI in windows machine, need to install X client or windows related display tools.
1. Switch to root user (If not in already):
$ su -
Enter password
2. Type the below command as root user:
# export DISPLAY=machine:0.0;
3. Check it is set or not by entering the below command:
#echo $DISPLAY
4. Disable the hostname access
# xhost + (or) # xhost + hostname
5. Check GUI is working or not by entering the below command:
# xclock
6. Switch to normal user :
# su - username
Enter password
7. Type below commands to access the GUI:
$ xhost +
8. Type xclock command in the command prompt
Note: If we need the same GUI in windows machine, need to install X client or windows related display tools.
No comments:
Post a Comment