2020年2月27日星期四

A method for viewing image reconstruction results when connecting to a server remotely

When connecting to the server remotely, the internet speed may be slow. There are too many images saved in the experiment to open the folder.

One solution is as follows:

1. Use the command line to enter the folder where the images are saved;
2. Use the tar compression command to select some pictures (such as the latest epoch picture);
3. Compress them and transfer them to your local computer.

The above process can be simplified to the following command:

(base) user@xxx:~/xxx$ tar cvf temResult.tar ./web/images/epoch080_iter159*

Parse conf error: proxy [RDP] local_port error

This is an error that may occur when configuring frp files. The reason for this error may be that the configuration file (such as the ini file under windows) has a format error. E.g:

The comments in the .ini file are not #, nor%.



solve:

Just delete the comment or use the correct comment method.

Edit text on the command line using vim under Ubuntu

When you cannot mount remotely, you can use vim to edit simple text files.

Frequently used commands:

1. Use the arrow keys to move the cursor to the position you want to edit;

2. Press i to enter insert mode;

3. After editing, press esc to exit insert mode;

4. Use: wq to save and exit.



More detailed commands can refer to:

https://blog.csdn.net/weixin_37657720/article/details/80645991

How to keep programs running after ssh interruption?

After verification, at least the following two methods can be used:

method 1:

Use the nohup command. Suitable for a single, simple interactive command.

https://www.cnblogs.com/jinxiao-pu/p/9131057.html

Method 2:

Use the screen command. Suitable for complex interactive commands.

https://blog.csdn.net/qq_28832135/article/details/79831700

Solution for notability software cannot play recordings

Notability suddenly appeared unable to play the recording. Notes that were previously playable are now unplayable.



Solution:

Simply turn Notability off and back on (it is not necessary to restart the device)



Successfully resolved.

Remote access to lab / office server using frp

The server's external network access has been unstable, so I wanted to buy a cheap server + frp tool on Alibaba Cloud to achieve remote server external network access.


Step 1: The basic steps, that is, to achieve remote access to the intranet Windows computer by FRP, see:

https://www.computationalimaging.cn/2020/02/remote-access-to-office-school-windows.html


Step2: After completing step 1, you only need to install frpc on the server, and the configuration file is written as(assuming that you plan to access by ssh):


[common]
server_addr = 47.XXX.XX.XX
server_port = 7001
token=XXXXXX
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6060

Then execute ./frpc -c ./frpc.ini to run

Step 3: Remote access


ssh -p 6060 username@47.XXX.XX.XX

You can also complete file mounting through file mounting software such as winshffs / xshell. You only need to change the port from 22 to 6060.

Remote access to office / school windows computer using frp

When we want to access the computer at school or office at home, we can achieve it by the following steps: