Putty - Can't Open Display

Error: Can't open display:

If you are getting any error  while using the GUI - " Error: Can't open display" 



One of the reason is X11 forwarding is not enabled in your putty setup.

Solution:
Open Putty again -> Click on SSH -> X11 -> Tick mark "Enable X11 Forwarding" (as shown in fig)



Go back to your Session -> enter your "Host Name" -> Click on Open -> enter your username and password


and now test with "xclock" command -> this time you will get below screen (Note: Remember you should have already runing xming in the background).



Note: If you are getting below error -
"PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
Error: Can't open display: localhost:10.0"

Please start xming first and then enter "xclock" command.



I hope this will solve your problem.
    • Related Articles

    • Setting-up Putty Environment at VLSI EXPERT - Window User

      For Windows users: Step 1: Download Putty Click on the link Download PuTTY -Download PuTTY - a free SSH and telnet client for Windows And if you don’t know your computer architecture then please, first check the architecture. Window -> System -> ...
    • Putty showing error while runing wv (waveform viewer)

      When trying to run wv (waveform viwer) - getting below error Error message: Putty X11 proxy: unable to connetc to forwarded X server: Network error: Connection refused. Reason: Whenever any such error comes where keyword such as "X11 forwading", ...
    • Install putty - For Linux user

      Install Putty on running Ubuntu machine. Putty is available in universe repository to enable universe repository to run this command. Step 1. Enable repository. sudo add-apt-repository universe Step 2. Update packages repository sudo apt update Step ...
    • To Increase putty terminal Font

      Right click on putty upper left corner => Go to change setting => click on Appearance (in the left- hand side Category section) => click on Change You will get a popup like below. Select the Font, Font Style, and Font Size as per your requirement. ...
    • Setting-up Putty Environment at VLSI EXPERT - MAC User

      Mac Users Mac Users already have built-in terminal utility, so putty installation and configuration is not required. For X-Server, the utility to use is XQuartz (equivalent to XMing utility in windows). Step 1: Configure XQuartz Download Xquartz and ...