saving . . . saved Unable to use gedit command has been deleted. Unable to use gedit command has been hidden .
Unable to use gedit command
Title
Question
Respected Sir/Madam, I am unable to use gedit command and always get the message as displayed below. Can you please guide me what should I change or do?

~/OpenFOAM/OpenFOAM-v2012/tutorials/incompressible/icoFoam/cavity/cavity/system$ gedit blockMeshDict
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 28, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
    from CommandNotFound.db.db import SqliteDatabase
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
    import apt_pkg
ImportError: /home/tarang/OpenFOAM/OpenFOAM-v2012/ThirdParty/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libapt-pkg.so.6.0)

OpenFOAM Creating-simple-geometry-in-OpenFOAM 01-02 min 40-50 sec 14-07-21, 4:04 a.m. tarangmehta1195

Answers:

Dear Tarang,

Which Operating system you are using? Is it Ubuntu or Windows Subsystem for Linux?

Regards,
Divyesh Variya
14-07-21, 10:55 a.m. divyesh7
Hi Divyesh, 
I am using Ubuntu in Windows.

Regards,
Tarang
14-07-21, 3:21 p.m. tarangmehta1195
Hi Tarang,

Try this video tutorial: https://youtu.be/VrDW1LOno_I
On the windows subsystem for Linux, you will have to install gedit software explicitly and enable the virtual screen.

Regards,
Divyesh Variya
14-07-21, 3:26 p.m. divyesh7
Hi Divyesh, 
Thanks for the youtube tutorial but I am still getting following errors.
~$ Unable to init server: Could not connect: Connection refused

(gedit:2416): Gtk-WARNING **: 18:23:17.531: cannot open display:


14-07-21, 9:55 p.m. tarangmehta1195
Dear Tarang,

Try this:

Open .bashrc and .zshrc files and remove last line. Command to open both the files are given below:

notepad.exe ~/.zshrc
Modify "export DISPLAY=X.X.X.X:0" line as shown below,
export DISPLAY=0:0
----------------------------------------------------------------------------------

notepad.exe ~/.bashrc
Modify "export DISPLAY=X.X.X.X:0" line as shown below,
export DISPLAY=0:0

Regards,
Divyesh Variya
15-07-21, 11:04 a.m. divyesh7

Login to add comment


Log-in to answer to this question.