The problem is this:
processes some photos on the server, and sometimes you want to look directly at the images on the server. But the server is Ubuntu Server, with no graphical interface. If we use feH, or cv2.imshow(), the error will be reported as follows:
Feh ERROR: Can’t open X display. It is running, yeah?
Solutions:
It should be in the server side ~/.bashrc file
export DISPLAY=localhost=10.0
On the server side the /etc/ssh/ssh_config file should be set to :
Host *
ForwardX11 yes
Use the following parameters when sshing to the server.
ssh -CAXY your-server-name@your-server-ip
Read More:
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- How to Enable X11-forwarding with MobaXterm
- [Solved] Remote Server error: Server sent passive reply with unroutable address…
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- [Solved] WSUS client access server exception error – 0x8024401f
- [Solved] Error in OpenSSL when compiling code locally for raspberry pie
- VScode connect Remote Linux Server Error: Resolver error: Error
- [How to Solve] Apache cannot be restarted with Windows Server + Open SSL
- [Solved] Error: X_LINK_COMMUNICATION_NOT_OPEN or X_LINK_ERROR
- [Solved] Ubuntu Open jpg Image Error: Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
- [Solved] TclError: couldn‘t connect to display “localhost:11.0“
- Ubuntu Server: How to Install Chrome
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Set the cursor of Ubuntu terminal to turn on automatic display
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed