Sample Header Ad - 728x90

xsel and xclip hang

9 votes
2 answers
1303 views
My objective is to make a text on my remote machine (CentOS 7.2) available to seamlessly paste on my local machine (OS X 10.12.2) with the standard ⌘V shortcut. My setup connects to the remote machine with ssh -Y and then attaches to tmux (or creates a new session if non-existent). When I run either echo "test" | xsel -ib or echo "test" | xclip it hangs. The $DISPLAY variable is localhost:10.0. If I exit tmux the $DISPLAY variable seems to be null and I get a can't open display error.
Asked by Kvass (221 rep)
Jan 4, 2017, 11:25 PM
Last activity: Jan 7, 2023, 12:36 PM