Configuration of the Ubuntu 18.04 LTS system needed to compile the data system and is the lab demo laptop.
Modify the Netplan configuration to get a static IP from this page, this worked: https://linuxize.com/post/how-to-configure-static-ip-address-on-ubuntu-18-04/
network: version: 2 renderer: networkd ethernets: ens3: dhcp4: no addresses: - 192.168.121.199/24 gateway4: 192.168.121.1 nameservers: addresses: [8.8.8.8, 1.1.1.1]
sudo netplan apply
sudo adduser hdl
sudo passwd hdl #password is $h00tTh3M00n
sudo usermod -a -G adq hdl
mkdir ~/src mkdir ~/bin # put the code into ~/src/hdl_lab_demo
# need to do this as a sudo user sudo mkdir /opt/hdl sudo chown -R hdl:hdl /opt/hdl
sudo mkdir /opt/hdl sudo mkdir /opt/hdl/data sudo chown -R hdl:hdl /opt/hdl
Looks like this is a package that allows us to do all kinds of things with this computer, but the GPIO is in here for sure.
NOTE: AH, John realized we have DIO ports on the USB timer board, so no need to go down this road.
MC USB-CT08 compile and install instructions
Using lvis since it has sudo capability
sudo apt-get install gcc g++ make sudo apt-get install libusb-1.0-0-dev
cd ~lvis/Downloads wget -N https://github.com/mccdaq/uldaq/releases/download/v1.1.2/libuldaq-1.1.2.tar.bz2
cd ~/work tar -xvjf ~/Downloads/libuldaq-1.1.2.tar.bz2
cd libuldaq-1.1.2 ./configure && make sudo make install
I had this same problem outlined here: https://forum.manjaro.org/t/modemmanager-mobile-broadband-adapter-not-supported-anymore/45268
Trying to use a Keyspan 19HS USB to Serial adapter
sudo nano /lib/udev/rules.d/78-mm-whitelist-internal-modem.rules
ACTION!="add|change|move", GOTO="mm_whitelist_internal_modem_end" ATTRS{idVendor}=="06cd", ATTRS{idProduct}=="0121", ENV{ID_MM_DEVICE_PROCESS}="1" LABEL="mm_whitelist_internal_modem_end"
sudo udevadm control --reload sudo udevadm trigger
To talk to the javad
sudo minicom /dev/ttyUSB0 # should not need sudo to do this if in correct group
I also added hdl user to the dialin group with the following command
sudo adduser hdl dialout
cd ~/src/ADQ_SDK_linux_r44222/packages/Ubuntu_18.04/amd64 sudo apt install dkms sudo dpkg -i spd-adq-pci-dkms_1.17_all.deb sudo dpkg -i libadq0_0.44222_amd64.deb sudo dpkg -i adqtools_0.44222_amd64.deb sudo apt install pkg-config
sudo usermod -a -G adq hdl
sudo apt install jed
sudo apt install tasksel sudo tasksel install kubuntu-desktop
sudo apt install kdevelop
sudo apt update sudo apt install cmake
cd ~/Downloads wget http://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz
cd ~/src tar -zxvf ~/Downloads/libconfig-1.7.2.tar.gz
cd ~/src/libconfig-1.7.2 ./configure make sudo make install sudo ldconfig
sudo apt update sudo apt install libserialport-dev