Git Product home page Git Product logo

Comments (3)

github0013 avatar github0013 commented on June 2, 2024 3

I encountered the same issue as I was trying to setup semantic-release-cli (running npx semantic-release-cli setup, you probably are running a different command though).

Environment

Mac => ssh => ubuntu (headless)

My server (headless)

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.2 LTS
Release:	20.04
Codename:	focal

I am using a mac to control the server.

 Model Name:	MacBook Air
  Model Identifier:	MacBookAir10,1
  Chip:	Apple M1

Things I tried (didn't work)

  1. install xsel on the ubuntu like it told me
  2. got out of tmux on the ubuntu, then run npx semantic-release-cli setup
  3. reconnecting to ubuntu by ssh -X ...

Solution

Then I did more googling and found an article saying to install X11(XQuartz) on Mac. So I did it like this.

  1. downloaded and installed X11(XQuartz)
  2. logged out & logged in (on Mac)
  3. ran XQuartz (opens a terminal, but I used my own terminal - iTerm2 to do the next step)
  4. then did ssh -X ...
  5. then ran the command I had this problem with
  6. worked!

from clipboardy.

sindresorhus avatar sindresorhus commented on June 2, 2024

Some possible workarounds:

https://unix.stackexchange.com/questions/566081/xsel-cant-open-display-null

https://stackoverflow.com/questions/18695934/unable-to-copy-ssh-id-rsa-pub

Would be nice if we could handle this case in Clipboardy. If not, we should at least improve the error message.

from clipboardy.

Davidalfa081 avatar Davidalfa081 commented on June 2, 2024

encountering same issue but there should be a command line for a solution to this isuue

from clipboardy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.