Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve setup message #10

Closed
changkun opened this issue Aug 25, 2021 · 0 comments
Closed

Improve setup message #10

changkun opened this issue Aug 25, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@changkun
Copy link
Member

changkun commented Aug 25, 2021

If the clipboard package is used in a cloud server environment, it may still not be possible to use the package on Linux. This is because x11 requires a frame buffer for GUI features.

This message:

panic(`cannot use this package, failed to initialize x11 display, maybe try install:
apt install -y libx11-dev

Suggests to install libx11-dev may not be helpful, change to the following might be helpful:

failed to initialize the x11 display, and the clipboard will not work properly. Install the following
dependency may help:
 
	apt install -y libx11-dev

If the clipboard package is in an environment without a frame buffer, such as a cloud server, it may also
necessary to install xvfb:

	apt install -y xvfb

and initialize a virtual frame buffer:

	Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
 	export DISPLAY=:99.0

If we don't write this in the package panic message, we may document this in the README.md

Issue discovered by @qcrao

changkun added a commit that referenced this issue Aug 29, 2021
@changkun changkun self-assigned this Sep 5, 2021
@changkun changkun added the enhancement New feature or request label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant