Yangruipis / auto-setup

auto setup configs in a new linux env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

“` ./setup_all.sh “`

## forwrad clipboard over ssh

### 1. 在本地机器上监听5556端口,执行xsel(以arch linux为例)

“`bash while (true); do nc -lp 5556 | xsel -b; done “`

### 2. 登录远程机器时暴露端口 “`bash ssh root@xxx -R 5556:localhost:5556 “`

### 3. 远程端口转发 “`bash echo “RemoteForward 5556 localhost:5556” >> ~/.ssh/config “`

### 4. 开始共享剪切板

以下两条命令等价 “`bash cat xxx.file | nc -q0 localhost 5556 # 远程机器 cat xxx.file | xsel -i -b # 本地机器 “`

About

auto setup configs in a new linux env


Languages

Language:Emacs Lisp 86.0%Language:Shell 7.4%Language:YASnippet 4.5%Language:Awk 1.0%Language:Python 0.8%Language:Dockerfile 0.2%