astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.03k stars 73 forks source link

Can't open display: (null) #129

Open mk48 opened 3 years ago

mk48 commented 3 years ago

I am trying simple command and getting Can't open display error. See the below screen. Anything wrong here?

image

wantToHawaii commented 3 years ago

the same issue on macos (iterm2, zsh) Error: Can't open display: (null)

hackerb9 commented 3 years ago

Microsoft's Azure and Apple's MacOS do not run an "X server" by default, and thus there is no DISPLAY for xclip to connect to.

mk48 commented 2 years ago

I am using Azure to host Ubuntu VM and I installed xlcip on ubuntu.

hackerb9 commented 2 years ago

Xclip is only a client that speaks to your X server. Do you have one installed and running? I haven't used Azure in a while, but my recollection is that their version of Ubuntu lacks an X server. Do you have the same problem when you try Ubuntu on your own machine instead of Azure?

hackerb9 commented 2 years ago

Did you get it figured out?

betterthanever2 commented 4 months ago

Having this issue on regular Ubuntu. X server seems to be running just fine. Any ideas what can this be?