Closed zoeye859 closed 3 years ago
The problem is more about
"how to connect to the X server when running the singularity container"
I don't think reinstall PGPLOT will automatically solve the problem (colleague suggested)
It may be some environmental parameter, my first thoughts.
Especially, when I try
$ exploredat Lband_topo_DM0.00.dat
It also gives me the error:
PGPLOT /xw: cannot connect to X server [:0]
So I guess, this error only appears when I need to interact with the pop-up image.
Let me investigate further.
OK. (I feel I am quite enjoying this monologue)
So when I ssh my ubuntu VM with '-X':
$ ssh -X xxx.xxx.xxx.xx -p xxx -l zoeye
Then I run
singularity exec ../presto_yhy.simg sh test.sh
(the test.sh is the updated .sh file in readme.md)
All pop-up images are fine.
Still, I need to solve the problem, why my mac still cannot find the X server.
I highly suspect it is a problem of X11 forwarding in Mac.
I just submitted an issue to the official singularity GitHub repo (https://github.com/hpcng/singularity/issues/5524)
I hope this problem can be solved.
The problem has been solved. Please see https://github.com/zoeye859/presto_v3_singularity/blob/master/Solution_to_MacXserver_problem.md
Well, I found some errors Hooray!
Need to solve this.