redguardtoo / mastering-emacs-in-one-year-guide

Be great at emacs in one year
6.36k stars 898 forks source link

paste-from-x-clipboard error #118

Closed shyung closed 5 years ago

shyung commented 6 years ago

When I try to paste with ,zz, it comes following:

usr/bin/xsel: Can't open display: (null)
: Inappropriate ioctl for device

I have no idea what it means.
I just wonder the reason and how to copy/paste successfully. Thanks for your help.

redguardtoo commented 6 years ago

Run ssh -X -C -c blowfish-cbc,arcfour $@ instead of simply ssh, see https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely

You can also read http://www.tldp.org/HOWTO/XWindow-User-HOWTO/index.html for some background knowledge

shyung commented 6 years ago

I guess I catch your point. In order to use those servers in my lab, I need to ssh to them by using Xshell on my desktop which OS is windows. I made it with the "Xshell+Xmanager" solution. Thanks for your help again.

redguardtoo commented 5 years ago

I solved this problem by swtiching to xclip.el