Skip to content
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

Modified tools & dependancies #997

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions ansible/roles/common/tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
- gfortran
- libopencv-dev
- python3-opencv
- libc6:armhf
- libstdc++6:armhf
- libasound2:armhf
- libx11-6:armhf
- libxft-dev:armhf
- libxft2:armhf


#This was included because, for a period of time, SatDump didn't have dependencies included in the .deb file
Expand Down Expand Up @@ -163,23 +169,23 @@
executable: pip3
when: raspbian_version.stdout == 'bullseye'

- name: Installing predict on PCs
- name: Installing predict on PCs (amd64)
become: yes
apt:
deb: "{{ noaa_home }}/software/predict_2.2.3-4-b2_amd64.deb"
state: present
update_cache: no
when: system_architecture == 'amd64'

- name: Installing predict on Raspberry Pi
- name: Installing predict on Raspberry Pi (armhf)
become: yes
apt:
deb: "{{ noaa_home }}/software/predict_2.2.5+dfsg.1-1_armhf.deb"
state: present
update_cache: no
when: system_architecture == 'armhf'

- name: Installing predict on Raspberry Pi
- name: Installing predict on Raspberry Pi (arm64)
become: yes
apt:
deb: "{{ noaa_home }}/software/predict_2.2.5+dfsg.1-1_arm64.deb"
Expand All @@ -194,6 +200,13 @@
state: present
update_cache: no

- name: Create WXtoImg symbolic link for ARM64 architecture
file:
src: "/home/{{ target_user }}/raspberry-noaa-v2/software/wxtoimg-armhf-2.11.2-beta.deb"
dest: "/home/{{ target_user }}/raspberry-noaa-v2/software/wxtoimg-arm64-2.11.2-beta.deb"
state: link
when: system_architecture == 'arm64'

- name: Installing WXtoImg
become: yes
apt:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/common/tasks/sdr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
when: rtlsdr.changed

- name: generate build system for RTL-SDR software
command: cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
command: cmake ../ -DDETACH_KERNEL_DRIVER=ON
args:
chdir: /tmp/rtl-sdr/build
creates: /tmp/rtl-sdr/build/Makefile
Expand Down
27 changes: 27 additions & 0 deletions ansible/roles/common/tasks/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,33 @@
special_time: reboot
job: "{{ noaa_home }}/scripts/schedule.sh"

- name: Set permissions on set_os_config_kernel8.sh
file:
path: "/home/{{ target_user }}/raspberry-noaa-v2/scripts/tools/set_os_config_kernel8.sh"
state: file
owner: "{{ target_user }}"
group: "{{ target_user }}"
mode: 0755

- name: Set permissions on scratch_perms.sh
file:
path: "/home/{{ target_user }}/raspberry-noaa-v2/scripts/tools/scratch_perms.sh"
state: file
owner: "{{ target_user }}"
group: "{{ target_user }}"
mode: 0755

- name: Set kernel to kernel8.img
become: yes
command: "/home/{{ target_user }}/raspberry-noaa-v2/scripts/tools/set_os_config_kernel8.sh"
when: system_architecture == 'arm64'

- name: create Scratch Perm fix cron job @ reboot
cron:
name: Correct /run/user/uid perms after reboot
special_time: reboot
job: "{{ noaa_home }}/scripts/tools/scratch_perms.sh"

- name: create database
shell: "/usr/bin/sqlite3 {{ noaa_home }}/db/panel.db < {{ noaa_home }}/db_migrations/00_seed_schema.sql"
args:
Expand Down