ssh key management

1# @Time : 2021-05-25 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] ssh key 反正就是突发奇想,决定解决下杂乱无章ssh key管理方案。首先所里内网服务器过多,以及一堆跳板服务器用来访问不同子网,所以ssh key登录所内网的方案会很麻烦,老老实实用密码登录(可能这也是我一直没有使用ssh key的一个原因)。但最近vps机器增多,导致使用密码登录会很闹心。 ...

May 25, 2021 · 1 min · 345 words · DW

LaTeX 基础语法

1# @Time : 2020-12-28 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] 因为要准备写大论文了,之前写 JACoW 论文都是直接拿template往里填充,对TeX语法也并不熟悉,决定稍微学习下,文章基于overleaf的教程和<latex入门-简版>-刘海洋。 ...

December 28, 2020 · 4 min · 1811 words · DW

Real time performance

1# @Time : 20200602 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] 实时操作系统性能分析 因为最近需要测试下Raspberry Pi 4B作为EPICS IOC的实时性能,所以复习了下操作系统实时性相关的知识(用了本科的教材《操作系统概念(第七版)》郑扣根译)。本文不会再细讲CPU调度的内容,只会着重分析实时性相关内容。 ...

June 2, 2020 · 3 min · 1415 words · DW

Raspberry pi

1# @Time : 2020-04-17 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] Raspberry pi Some memo during the usage of Raspberry Pi Linux Kernel How to obtain the kernel config options ? https://superuser.com/questions/287371/obtain-kernel-config-from-currently-running-linux-system sudo modprobe configs cat /proc/config.gz | gunzip > running.config less running.config Using a proxy vim /etc/environment 1export http_proxy="http://yourproxy:prot" 2export https_proxy="https://yourproxy:prot" 3export no_proxy="localhost, 127.0.0.1" Then run sudo visudo, add below line: Defaults env_keep+="http_proxy https_proxy no_proxy" ...

April 17, 2020 · 1 min · 82 words · DW

ssh learning

1# @Time : 2020-04-13 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] 关于ssh的配置 每天都要通过ssh登陆远程主机,所以一些偷懒的配置是必不可少的。ssh是基于非对称加密的RSA算法,连接过程也包括了host的认知,user的认证几个过程,这些知识包含很多密码学的内容,有很多博客都有讲。我就单记录一下自己的一些配置。 ...

April 13, 2020 · 3 min · 1023 words · DW

Shell Script Learning

1# @Time : 2019-12-07 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] Shell 脚本编程 一直以来只是使用bash或者zsh,对于shell脚本并不了解,上次组会导师告知可以通过shell script进入epics IOC的shell,进而通过dbl命令获取所有IOC的所有PV,虽然只是获取了PV名,进一步获取PV Type,Value还需要进一步执行dbpr等命令,不过可以先试着玩一下。 ...

December 7, 2019 · 3 min · 1387 words · DW

How to build MRF Timing System

1# @Time : 2019-11-30 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] Build MRF EVR230 on vxWorks This file is a guide to build your own MRF Timing IOC on vxworks as well as write your own device support to meet your own demand of EPICS record. Some links might be helpful: MRF Company EPICS mrfioc2 MSI devlib2 Requirements EPICS Base >= 3.14.8.2 devLib2 (2.9) MSI (Macro expansion tool) Required with Base < 3.15.1 Build mrfioc2 Download mrfioc2-2.2.0.tar.gz and extract to directory, name as “mrfioc2-2.2.0” ...

November 30, 2019 · 2 min · 387 words · DW

How to build EPICS on vxWorks

1# @Time : 2019-11-29 2# @Language: Markdown 3# @Software: VS Code 4# @Author : Di Wang 5# @Email : [email protected] EPICS Base Installation Instruction Check this site for the detail. README This MEMO will introduce how to build EPICS Base 3.14.12.5 on linux and run IOC on vxWorks, VME5500 . If you have any problem of the basic structure of EPICS (e.g. confused about the Host ARCH and Target ARCH), please refer to the EPICS Application Developer’s Guide. (Though it may take several days to read :) ...

November 29, 2019 · 3 min · 481 words · DW