-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdependencies.yml
More file actions
149 lines (134 loc) · 3.51 KB
/
dependencies.yml
File metadata and controls
149 lines (134 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
- hosts: localhost
tasks:
- name: Get GPG key for kitware repo (for cmake)
shell: wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
- name: Add deadsnakes PPA
apt_repository:
repo: ppa:deadsnakes/ppa
state: present
- name: Add mozillateam PPA
apt_repository:
repo: ppa:mozillateam/ppa
state: present
- name: copy mozilla-firefox to /etc/apt/preferences.d
copy:
src: "files/apt-preferences-mozilla-firefox"
dest: /etc/apt/preferences.d/mozilla-firefox
mode: 0644
owner: root
group: root
- name: Disable unattended upgrades for firefox
lineinfile:
path: /etc/apt/apt.conf.d/51unattended-upgrades-firefox
state: present
create: true
regexp: '^Unattended-Upgrade'
line: 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";'
- name: Update apt cache
apt:
update_cache: yes
- name: Install Dependencies (Apt)
apt:
pkg:
- libhdf5-dev
- mosquitto-clients
- host
- dnsutils
- screen
- telnet
- chrony
#- telegraf
#- influxdb
#- influxdb-client
- vim
- nano
- less
- file
- telnet
- iptables
- python3-pip
- cmake
- xorg-dev
- libboost-all-dev
- minicom
- net-tools
- nmap
- iftop
- backport-iwlwifi-dkms
- firefox
- python3.13
- python3.13-dev
- python3.13-venv
- jq
# docker
- nvidia-container
- docker-buildx
- docker-compose-v2
- docker.io
# tuner control
- libusb-1.0-0
state: present
update_cache: yes
- name: Create a virtual environment
command: python3.13 -m venv /opt/radiohound/python313
- name: Remove interfering Python dependencies (Pip)
pip:
name:
- serial
state: absent
virtualenv: /opt/radiohound/python313
virtualenv_python: python
notify:
- Reinstall pyserial
- name: Install Python Dependencies (Pip)
pip:
name:
- paho-mqtt>=1.5.1
- requests>=2.26.0
- schedule>=0.6.0
- inotify>=0.2.10
- scipy>=1.8.0
- pytz>=2022.1
- numpy>=1.22.3
- pyvisa>=1.12.0
- PyVISA-py>=0.5.3
- psutil>=6.0.0
- gps>=3.19
- digital_rf
- spectrumx
- docker
- exceptiongroup
- aiomqtt
- anyio
- jsonargparse
- msgspec
# tuner control
- adafruit-blinka
- pyserial
# rfsoc control
- pyzmq
state: present
virtualenv: /opt/radiohound/python313
virtualenv_python: python
- name: Gather Docker runtimes
shell: docker info | grep -E "Runtimes:.*"
register: docker_runtimes
ignore_errors: yes
- name: Restart Docker to load nvidia-container
when: "'nvidia' not in docker_runtimes.stdout"
shell: service docker restart
- name: Remove unnecessary packages
apt:
pkg:
- gnome-initial-setup
- nftables
state: absent
handlers:
- name: Reinstall pyserial
pip:
name:
- pyserial
state: forcereinstall
virtualenv: /opt/radiohound/python313
virtualenv_python: python