[xcrysden] Running xcrysden on windows subshell for linux (wsl)

Matic matic.poberznik at gmail.com
Fri May 8 08:24:13 CEST 2020


Hi Jeremy,

you need to install XMing, if you don't have it already. Then you can 
test the command "export DISPLAY=:0" simply by typing into the terminal 
(that will only work for the current session).

I suggest you paste it into your ~/.bashrc file; open it with an text 
editor and just paste the command there and then type "source ~/.bashrc" 
into the terminal (or restart the application).

You can test if the DISPLAY variable is set correctly by "echo $DISPLAY" 
(it should output :0)

Best,

Matic

> Hello,
>
> I am trying to run the latest version of xcrysden for wsl, version 
> 1.6.2. My issue is that when I try to run, it gives the following error:
>
>     application-specific initialization failed: no display name and no
>     $DISPLAY environment variable   Error in startup script: can't
>     read "xcrys(platform)": no such variable    while executing      
>                                                      "if {
>     $xcrys(platform) == "windows" } {                                
>                            # testing ...  rename exec _tcl_exec      
>                                                     proc exec {args} {
>     global env                                                      #
>     first try a normal exec..."                                      
>            (file
>     "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/cygwin.tcl"
>     line 19)                               invoked from within        
>                            "source $system(TOPDIR)/Tcl/cygwin.tcl"    
>                                                      (file
>     "/home/jeremy/quantumEspresso/xcrysden-1.6.2-bin-shared/Tcl/xcInit.tcl"
>     line 449)
>
>
> I see on the download page of the website it says I need to "define 
> the DISPLAY enviromental variable, i.e., export DISPLAY=:0". How do I 
> do this? Where would I do this? I'm quite lost.
>
> Thank you,
>
> -Jeremy Richard
>
>
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden

-- 
Matic Poberznik
J. Stefan Institute, Jamova 39, Ljubljana, Slovenia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20200508/af43dc14/attachment.htm 


More information about the XCrySDen mailing list