CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   [Other] in the installation, the "gedit" step failed (

YoungZN March 21, 2017 02:49

in the installation, the "gedit" step failed
hello everyone

i firstly installed OpenFOAM, and there is a problem.

i have installed the OpenFOAM document and the Thirdparty document.

and next i need to use

gedit $HOME/.bashrc
to set the environment.

but i failed, and there are tips on screen

error: XDG_RUNTIME_DIR not set in the environment.

(gedit:2858): Gtk-WARNING **: cannot open display:

i don't know much about the Linux system, so i need help!

wyldckat March 25, 2017 14:11

Greetings YoungZN and welcome to the forum!

A few questions, so that we are able to diagnose the problem:
  1. Which Linux Distribution are you using?
  2. Which installation instructions did you follow?
  3. Are you logged in directly in the workstation where OpenFOAM has been installed or are you accessing remotely?
    1. If you are accessing remotely, which protocol are you using? SSH or VNC?
Best regards,

JoshuaB-L September 10, 2019 12:03

Problem with user configuration on OpenFOAM v7 Ubuntu
Hello I had the same issue. It would be great to know how to problem solve.

I'm installing OpenFOAM v7 for Windows 10 (win64)

On Ubuntu following these installation instructions:

I successfully installed OpenFOAM but when I came to User Configuration

I typed:

gedit ~/.bashrc

Which returned:

~$ gedit ~/.bashrc
Unable to init server: Could not connect: Connection refused

(gedit:14): Gtk-WARNING **: 17:56:52.440: cannot open display:

I'm not sure what the issue is.

Please can you help?



wyldckat October 9, 2019 19:01

Quick answer @Josh: Follow the instructions at - namely section "Enabling Graphical Applications"

All times are GMT -4. The time now is 12:26.