Kanopri

kano's personal website

0%

shell command

连入aws

1
$ ssh -i "Documents/kanopri.pem" ubuntu@ec2-3-112-234-229.ap-northeast-1.compute.amazonaws.com

开启ngrok服务

1
$ sudo ./bin/ngrokd -tlsKey=server.key -tlsCrt=server.crt -domain="ngrok.kanopri.com" -httpAddr=":8081" -httpsAddr=":8082"

列出、连入已有screen

1
2
3
4
5
6
$ screen -r
```

### 新建screen
``` bash
$ screen -S

ctrl + a + c:创建新窗口(create)

ctrl + a + n:切换至下一个窗口(next)

ctrl + a + p:切换至上一个窗口(previous)

ctrl + a + w: 列出所有窗口

ctrl + a + A: 窗口重命名

ctrl + a + d:detach当前会话

ctrl + a + [1-9]: 切换到指定窗口(1-9为窗口号)

ctrl + d:退出(关闭)当前窗口

安装miniconda

1
2
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ chmod +x Miniconda3-latest-Linux-x86_64.sh; ./Miniconda3-latest-Linux-x86_64.sh

cd ngrok

修改jupyter配置

1
2
3
$ vim ~/.jupyter/jupyter_notebook_config.py

$ jupyter notebook --generate-config

远程拷贝

1
$ scp -i "Documents/kanopri.pem" ubuntu@ec2-3-112-234-229.ap-northeast-1.compute.amazonaws.com:/root/ngrok/bin/ngrok /home/kano/ngrok

unraid虚拟机挂载

1
2
3
$ sudo mount -t 9p -o trans=virtio /unraidvault /unraidvault -oversion=9p2000.L

$ sudo mount -t 9p -o trans=virtio /unraidvault /home/kano/unraidvault