曲曲的秘密学术基地

纯化欲望、坚持严肃性

欢迎!我是曲泽慧(@zququ),目前在深圳(ICBI,BCBDI,SIAT)任职助理研究员。


病毒学、免疫学及结构生物学背景,可以在 RG 上找到我已发表的论文

本站自2019年7月已访问web counter

lemonade configuration in remote

About the lemonade

You can find lemonade here.

github_lemonade

Because, neovim depends on xclip to copy and pasta from the remote Server (e.g. The computers in remote which has a greater computation power), for which, the $DISPLAY is needed. So we can only do copy from the local Client (local computer), we cannot do copy from the remote Server, however.

Here is a way to have the lemonade to make it.

  1. First, we need to install lemonade in both Client and the Server, be attention to the environment set.

  2. Second, we need to write a script in Server, named with remote:

#!/bin/bash
ps cax | grep lemonade> /dev/null
if [ $? -eq 0 ]; then
  echo "lemonade is running."
else
  echo "lemonade is not running."
  nohup lemonade server &
fi
ssh -R 2489:127.0.0.1:2489 -p $port $user@$ipadress

where, $port is the port, and $user is the user, $ipadress is the I adress of the remote Server IP adress :)

  1. Then copy these in neovim’s init.vim to config the copy or paste key to set the copy command.
let g:clipboard = {
            \'copy': { '+': 'lemonade copy', '*': 'lemonade copy' },
            \'paste': { '+': 'lemonade paste', '*': 'lemonade paste' },
            \'name': 'lemonade',
            \}

After chmod u+x remote ( which you created in the second step), you can then register to the Remote after running remote and inputing the password in the command-line.

Last One

The configuration of multi-ssh keygens

I have two keygens, one for github no password login, while the other for the remote server login. When I have generated key as usual:$ssh-keygen -t rsaAsk me if overwrite the default keygen (of course not!).So I make a new keygen file named rsa2,...…

LinuxMore
Next One

更新日常

写在前面,强烈谴责一下一些名字非常特别的程序,导致需要用的时候,抓耳挠腮也想不起来软件名字,在这里做一下备份。也可作为软件推荐用。alacarte用于添加软件到 Ubuntu 软件库,供兼容 i3wm rofi。其中桌面文件的地址,一般系统桌面文件在 /usr/share/applications/而 alacarte 的桌面文件管理地址为 ~/.local/applicationsi3-get-window-criteria查看 windows 信息,供添加到 i3wm config 文...…

DailyUpdateMore