Execute chroot
into the root filesystem, and do the following:
1. Set DNS server
Add the following lines to /etc/resolv.conf
:
# campus network
nameserver 130.199.128.31
nameserver 130.199.1.1
# NSLS-II network
nameserver 10.65.2.25
nameserver 10.65.2.26
2. Install Debian packages
apt install telnet procserv -y
Check:
which procServ
> /usr/bin/procServ
3. Install systemd-softioc
git clone https://github.com/NSLS-II/systemd-softioc
Install the package:
sudo ./install.sh
Create directory for the IOC:
mkdir -p /epics/iocs
chown softioc:softioc /epics/iocs
chmod g+ws /epics/iocs
4. Use manage-iocs
to install and enable IOCs
In the IOC directory, create a config
file with the following content:
NAME=IOC_name
PORT=4051
HOST=hostname
USER=softioc
网友评论