External Email - Use Caution
Hi Maite, Apologies, forgot the final step in my last email - make a shortcut to the new 'config.xlauch' file and use this shortcut to start Xming when needed. You can also put the shortcut in your Windows start up folder if you would prefer Xming to start whenever Windows boots up (see: https://secure-web.cisco.com/1S3WrI1po1H5aOL8dIUWcbTzycoP0S2KBxXHtIlj16cwhd5...) for the steps.
Hope this helps.
Andrew ---- *Andrew Beaudin, PhD* | Postdoctoral Scholar University of Calgary | Cumming School of Medicine Department of Clinical Neurosciences HSC Rm 2935J, 3330 Hospital Drive N.W. | Calgary, AB | T2N 4N1 Phone: (403) 210-6273
-------------------------------------------------------------------------------------------------------------- *From:* Andrew Beaudin [mailto:abeaudin@ucalgary.ca] *Sent:* Tuesday, July 19, 2022, 09:52 *To:* a904665@alumni.unav.es *Cc:* freesurfer@nmr.mgh.harvard.edu *Subject:* [Freesurfer] Error connecting Ubuntu 18 to X-server Xming
Hi Maite, I just set my Ubuntu system up last night. The solution for me was to start XLaunch and on the 3 step (Specify parameter settings), check the "No Access Control", then save the configuration file. You will get a warning about using the '-ac' flag, but it was the only way I could get Xming to work properly.
Then in my .bashrc file, I added the following lines to automatically load the display IP address:
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
Remember, when you modify the Xming configuration file through XLaunch, make sure that Xming is not running or the updated config file will not be saved.
Hope this helps.
Andrew ---- *Andrew Beaudin, PhD* | Postdoctoral Scholar University of Calgary | Cumming School of Medicine Department of Clinical Neurosciences HSC Rm 2935J, 3330 Hospital Drive N.W. | Calgary, AB | T2N 4N1 Phone: (403) 210-6273