Private
Public Access
11
1

Update Setup Computer Debian 12

2023-11-14 21:29:16 +01:00
parent a9917242ea
commit d658db58c6

@@ -27,7 +27,7 @@ NTP=d.psi.ch
- Add various packages:
```
sudo apt-get install fakeroot build-essential cvs flex bison openssh-server git-core geany synaptic joe jed subversion autoconf-archive cmake libreadline-dev libhdf5-dev pkg-config libxml2-dev libzmq3-dev liblog4cpp5-dev libelf-dev libssl-dev libarchive-dev libgtkmm-3.0-dev libatkmm-1.6-dev libglibmm-2.4-dev libncurses5-dev libxerces-c-dev libboost-dev xsltproc cifs-utils xterm meld default-jre autogen autoconf libtool libqwt-qt5-dev libqt5webkit5-dev rsync libboost-all-dev strace python3-numpy python3-pip python3-h5py python3-zmq python3-matplotlib python3-attr python3-scipy hdf5-tools dbus-x11 nfs-common nfs-kernel-server nfs4-acl-tools python3-pyepics locate debhelper quilt bc pahole
sudo apt-get install fakeroot build-essential cvs flex bison openssh-server git-core geany synaptic joe jed subversion autoconf-archive cmake libreadline-dev libhdf5-dev pkg-config libxml2-dev libzmq3-dev liblog4cpp5-dev libelf-dev libssl-dev libarchive-dev libgtkmm-3.0-dev libatkmm-1.6-dev libglibmm-2.4-dev libncurses5-dev libxerces-c-dev libboost-dev xsltproc cifs-utils xterm meld default-jre autogen autoconf libtool libqwt-qt5-dev libqt5webkit5-dev rsync libboost-all-dev strace python3-numpy python3-pip python3-h5py python3-zmq python3-matplotlib python3-attr python3-scipy hdf5-tools dbus-x11 nfs-common nfs-kernel-server nfs4-acl-tools python3-pyepics locate debhelper quilt bc pahole libcomedi-dev
sudo apt-get install linux-image-rt-amd64 linux-headers-rt-amd64
@@ -37,6 +37,9 @@ sudo apt install gnome-terminal dbus-x11
#this disables automatic kernel updates, avoids problems with missing modules, as they would have to be recompiled for a new kernel version (e.g. comedi, ethercat...)
sudo apt remove linux-image-amd64 linux-image-rt-amd64 linux-headers-rt-amd64
#if you need tango support
sudo apt install libtango-dev
```
@@ -89,7 +92,7 @@ sudo cp ~/work/stxm/SystemInstall/epics-7.0.6.conf /etc/ld.so.conf.d
sudo ldconfig
```
- Install PI libs
- Install PI libs (only if needed)
```
cd ~/Basesystem
@@ -114,38 +117,6 @@ sudo tar xfvz ~/work/stxm/SystemInstall/intens-4.5.15-snapshot-64-qt5.tar.gz
sudo cp ~/work/stxm/SystemInstall/libpython3.8.so.1.0 /lib/x86_64-linux-gnu/
```
- Compile Comedi
Note: Only needed if Agilent interferometer card needs to be supported. Nearly all Comedi drivers are now included in the Linux kernel and will be automatically detected and loaded. The Agilent driver we use was written by Jörg and only implements the features needed by Pixelator - this is why it requires special treatment.
Note: This requires a reboot after installing the Linux RT Kernel or else it will fail the configure
```
cd ~/Basesystem
git clone https://github.com/Linux-Comedi/comedi.git
git clone https://github.com/Linux-Comedi/comedilib.git
cd comedi
cp ../../work/stxm/SystemInstall/N1231B_reg.h comedi/drivers
patch -p1 < ~/work/stxm/SystemInstall/comedi.patch
./autogen.sh
./configure
make
sudo make install
sudo depmod -a
sudo mkdir /usr/local/include/linux
sudo cp include/linux/comedi.h /usr/local/include/linux/
cd ../comedilib
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
```
- Load Comedi driver and configure cards