CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] in the installation, the "gedit" step failed (https://www.cfd-online.com/Forums/openfoam-installation/185198-installation-gedit-step-failed.html)

YoungZN March 21, 2017 03: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
Code:

gedit $HOME/.bashrc
to set the environment.

but i failed, and there are tips on screen
Code:

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 15: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,
Bruno

JoshuaB-L September 10, 2019 13: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:

https://openfoam.org/download/7-ubuntu/

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?

Best,

Josh

wyldckat October 9, 2019 20:01

Quick answer @Josh: Follow the instructions at https://openfoam.org/download/windows-10/ - namely section "Enabling Graphical Applications"


All times are GMT -4. The time now is 08:07.