-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sw][linux][raspi][ioc] Raspberry Pi setup #78
Comments
ssh |
nodejsuse
|
docker
sudo apt-get update
sudo apt-get install ca-certificates curl case $(uname -a) in
*ubuntu*) HOST_OS=ubuntu;;
*Debian*) HOST_OS=debian;;
*)
echo "Unsupported system"
exit 1
;;
esac # Add Docker's official GPG key:
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/${HOST_OS}/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/${HOST_OS} \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo docker run hello-world |
Network
|
epics on raspisudo apt -y install git net-tools build-essential re2c libnet-dev libpcap-dev libusb-1.0-0-dev mkdir $HOME/EPICS
cd $HOME/EPICS
##git clone --recursive https://github.com/epics-base/epics-base.git
wget https://epics.anl.gov/download/base/base-7.0.8.1.tar.gz
tar xf base-7.0.8.1.tar.gz && ln -s base-7.0.8.1 epics-base
cd epics-base
make -j2 # rpi4b
~/EPICS/bin/linux-aarch64/caget
cat >> ~/.bashrc << 'EOF'
export PYEPICS_LIBCA=$HOME/EPICS/epics-base/lib/linux-aarch64/libca.so
EOF pythonsoftioc on raspi# because it will install 7.0.7.99.0.2 which will not work with latest softioc
uv pip install epicscorelibs==7.0.7.99.1.1
uv pip install softioc Then try with this test. pcaspy on raspisudo apt install -y swig mkdir ~/EPICS/support
cd ~/EPICS/support
wget https://github.com/epics-modules/pcas/archive/refs/tags/v4.13.3.tar.gz
mv v4.13.3.tar.gz pcas-4.13.13.tar.gz
tar xvzf pcas-4.13.3.tar.gz && rm pcas-4.13.3.tar.gz
cd ./pcas-4.13.3 cat > configure/RELEASE.local << EOF
EPICS_BASE = ${EPICS_BASE}
EOF make -j4 cat >> ~/.bashrc << EOF
export PCAS=~/EPICS/support/pcas-4.13.3
EOF source ~/.bashrc uv pip install pcaspy If encountered with: caget -V ldd ~/.virtualenvs/ioc/lib/python3.12/site-packages/pcaspy/_cas.cpython-312-aarch64-linux-gnu.so If epics version not matched with pcas build, then use cd $EPICS_BASE/lib/linux-aarch64/
ln -s libca.so.4.14.4 libca.so.4.14.3
ln -s libCom.so.3.23.1 libCom.so.3.23.0 |
serial port monitoringsudo apt install tio
tio -a latest --exclude-drivers=!(cp210x) |
raspberry-pi-imager
Select board type & os, then flash sd card.
apt mirrors
samba & tftp
raspi docs samba
# trouble shoot rm -rf /var/log/samba/log.smbd sudo rm -rf /var/lib/samba/registry.tdb
Test setup (TFTP)
Install fzf/zellij/zoxide
Download them from windows side
share-files-with-scp
Or just use samba on windows side.
Install nvim
rc-local
uv & python
rust
The text was updated successfully, but these errors were encountered: