Add old sagemath config int he hopes that we can later uncomment it

This commit is contained in:
Gašper Fele-Žorž 2024-09-16 11:04:03 +02:00
parent bc6d0000a9
commit abaf6b19ee
36 changed files with 177 additions and 147 deletions

View file

@ -3,12 +3,16 @@
become: true
vars:
ansible_port: 1001
ansible_ssh_extra_args: '-o ForwardX11=yes'
# ansible_become_pass: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
# ansible_password: '{{ lookup("env", "ANSIBLE_PASSWORD") }}'
installers: /mnt/ucilnice_d/install
ansible_connection: 'ssh'
vars_files:
- vars/credentials.yml
- vars/software_keys.yml
roles:
# - all_classes
- fri_base
# - orange
- all_classes
# - fri_base
# - powerdesigner

View file

@ -5,6 +5,7 @@ dependencies:
- role: logisim
- role: stm32cube
- role: stm32duino
- role: putty
- role: ninja
- role: cmake
- role: gcc-arm

View file

@ -5,6 +5,7 @@ dependencies:
- role: stm32cube
- role: stm32duino
- role: vscode
- role: putty
- role: winidea
- role: gcc-arm
- role: git

View file

@ -1,7 +1,10 @@
AndroidSDK_packages:
- add-ons;addon-google_apis-google-24
- add-ons;addon-google_apis-google-24
- build-tools;34.0.0-rc3
- build-tools;35.0.0
- cmake;3.22.1
#- cmake;latest
- cmdline-tools;latest
- emulator
- extras;android;m2repository
@ -13,17 +16,21 @@ AndroidSDK_packages:
- extras;google;market_licensing
- extras;google;simulators
- extras;google;webdriver
- extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
- extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2
# - extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
# - extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2
- ndk-bundle
- patcher;v4
# - patcher;v4
- platform-tools
- platforms;android-34
- platforms;android-35
- platforms;android-32
- platforms;android-UpsideDownCakePrivacySandbox
- skiaparser;3
- sources;android-35
- sources;android-34
- system-images;android-35;google_apis;x86_64
- system-images;android-34;google_apis;x86_64
- system-images;android-32;google_apis;x86_64
- system-images;android-35;google_apis_playstore;x86_64
- system-images;android-34;google_apis_playstore;x86_64
- system-images;android-UpsideDownCakePrivacySandbox;google_apis_playstore;x86_64

View file

@ -5,7 +5,7 @@
- name: unpack Arduino
unarchive:
src: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.2.1_Linux_64bit.zip
src: https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.2_Linux_64bit.zip
dest: /opt/Arduino
remote_src: yes

View file

@ -1,10 +1,10 @@
# TODO install BayesFusion.yml
# https://download.bayesfusion.com/files.html?category=Academia#GeNIe
- name: Install Wine
apt:
name: wine-development
state: latest
- name: Install Wine binfmt support
apt:
name: wine-binfmt
state: latest
#- name: Install Wine
# apt:
# name: wine-development
# state: latest
#- name: Install Wine binfmt support
# apt:
# name: wine-binfmt
# state: latest

View file

@ -1,3 +1,4 @@
- name: Install CP210x USB to UART Bridge VCP Drivers
win_chocolatey:
ignore_checksums: true
name: cp210x-vcp-drivers-win10

View file

@ -11,12 +11,12 @@
- name: "Install docker"
apt:
name: docker
name: docker.io
state: latest
- name: "Install docker-compose"
apt:
name: docker-compose
name: docker-compose-v2
state: latest

View file

@ -20,3 +20,4 @@
name:
- firefox
state: latest
allow_downgrade: True

View file

@ -1,3 +1,6 @@
- name: Enable multiarch
command: dpkg --add-architecture i386
- name: Install generally useful packages
apt:
name:
@ -16,11 +19,13 @@
- qutebrowser
- chromium-browser
- firefox
- qemu
- qemu-system-x86
- qemu-kvm
- qemu-utils
- virt-manager
- wine-development
- wine
- wine32:i386
- wine-binfmt
- dosbox
- webext-ublock-origin-chromium
- webext-ublock-origin-firefox
@ -38,6 +43,9 @@
- overlayroot
- nfs-common
- cifs-utils
- samba-vfs-modules-extra
- samba-vfs-modules
- smbclient
- neovim-qt
- binwalk
- iotop
@ -110,7 +118,7 @@
mount:
boot: true
fstype: nfs
src: "10.32.254.16:/srv/nfs/clonezilla_images"
src: "ucilnicenfs.fri.uni-lj.si:/srv/nfs/clonezilla_images"
path: /home/partimag
state: mounted
opts: defaults,nofail

View file

@ -7,6 +7,12 @@
name: HideFileExt
data: 0
type: dword
- name: Allow SMB insecure guest access
win_regedit:
path: HKLM:\Software\Policies\Microsoft\Windows\LanmanWorkstation
name: AllowInsecureGuestAuth
data: 1
type: dword
- name: Install PSCX
community.windows.win_psmodule:
name: Pscx

View file

@ -1,6 +1,6 @@
- name: install Haskell platform
- name: install Emacs haskell mode
apt:
name: haskell-platform
name: elpa-haskell-mode
state: latest
- name: install Haskell Tool Stack

View file

@ -1,11 +1,11 @@
- name: Install OpenJDK 18
- name: Install OpenJDK 21
apt:
name: openjdk-18-jdk
name: openjdk-21-jdk
state: latest
- name: Install OpenJDK 19
- name: Install OpenJDK 17
apt:
name: openjdk-19-jdk
name: openjdk-17-jdk
state: latest
- name: Install OpenJDK 11
@ -31,11 +31,11 @@
- libc6-x32
state: latest
- name: Install Oracle JDK 20
- name: Install Oracle JDK 22
apt:
deb: "https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.deb"
deb: "https://download.oracle.com/java/22/latest/jdk-22_linux-x64_bin.deb"
- name: Install Java docs
apt:
deb: "https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.deb"
deb: "https://download.oracle.com/java/22/latest/jdk-22_linux-x64_bin.deb"

View file

@ -7,6 +7,7 @@
state: directory
- name: Download and unpack Logisim
unarchive:
src: https://altushost-swe.dl.sourceforge.net/project/circuit/2.7.x/2.7.1/logisim-generic-2.7.1.jar
src: https://deac-fra.dl.sourceforge.net/project/circuit/2.7.x/2.7.1/logisim-generic-2.7.1.jar
dest: /opt/logisim
remote_src: yes
creates: /opt/logisim/META-INF/MANIFEST.MF

View file

@ -1,2 +1,2 @@
dependencies:
- role: fri_base
# dependencies:
# - role: fri_base

View file

@ -4,9 +4,13 @@
license_path: \\ucilnicesmb.fri1.uni-lj.si\ucilnice_d\install\matlab\network.lic
dest_dir: D:\matlab
- name: Set ISO path
set_fact:
iso_path: "{{ installers }}\\matlab\\{{ target_version }}_Windows.iso"
- name: Mount Matlab ISO
win_disk_image:
image_path: "{{ installers }}\\matlab\\{{ target_version }}_Windows.iso"
image_path: "{{ iso_path }}"
state: present
register: disk_image
@ -22,7 +26,7 @@
- name: Unmount Matlab ISO
win_disk_image:
image_path: "{{ installers }}\\matlab\\matlab-{{ target_version }}_windows.iso"
image_path: "{{ iso_path }}"
state: absent
# TODO MATLAB throws license error -83 when run

View file

@ -1,8 +1,8 @@
- name: Download mysql workbench
get_url:
url: https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb
dest: /tmp/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb
url: https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community_8.0.38-1ubuntu24.04_amd64.deb
dest: /tmp/mysql-workbench-community_8.0.38-1ubuntu24.04_amd64.deb
http_agent: "Wget/1.21.3"
- name: Install mysql workbench
apt:
deb: /tmp/mysql-workbench-community_8.0.34-1ubuntu22.04_amd64.deb
deb: /tmp/mysql-workbench-community_8.0.38-1ubuntu24.04_amd64.deb

View file

@ -1,6 +1,6 @@
- name: Set Netbeans version
set_fact:
target_version: "19"
target_version: "22"
- name: Install Netbeans
win_package:

View file

@ -3,14 +3,14 @@
- name: Install notepad++
debug:
msg: "Install Notepad++"
- name: Install Wine
apt:
name: wine-development
state: latest
- name: Install Wine binfmt support
apt:
name: wine-binfmt
state: latest
#- name: Install Wine
# apt:
# name: wine-development
# state: latest
#- name: Install Wine binfmt support
# apt:
# name: wine-binfmt
# state: latest
- name: Create dir
file:

View file

@ -23,7 +23,7 @@
delete_archive: yes
- name: Move OMNet++ to final location
win_command: cmd.exe /c move "C:\\omnetpp-{{ target_version }}" "{{ target_dir }}"
win_command: cmd.exe /c move "C:\omnetpp-{{ target_version }}" "{{ target_dir }}"
- name: Create OMNet++ compile script
win_copy:

View file

@ -1,4 +1,8 @@
- name: Install pipx
apt:
name: pipx
state: latest
- name: Install orange
pip:
executable: pip3
executable: pipx
name: orange3

View file

@ -2,14 +2,14 @@
- name: Install Pelles
debug:
msg: "Install Pelles-C"
- name: Install Wine
apt:
name: wine-development
state: latest
- name: Install Wine binfmt support
apt:
name: wine-binfmt
state: latest
#- name: Install Wine
# apt:
# name: wine-development
# state: latest
#- name: Install Wine binfmt support
# apt:
# name: wine-binfmt
# state: latest
- name: Install icon
block:

View file

@ -1,4 +1,2 @@
- name: Install PowerDesigner
win_package:
path: "{{ installers }}\\PowerDesigner 12.5\\cd1\\setup\\setup.exe"
arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\""
# - name: Install PowerDesigner
# command: "wine {{ installers }}/PowerDesigner\\ 12.5/cd1/Setup/setup.exe /s /f1\"Z:\\mnt\\ucilnice_d\\install\\PowerDesigner 12.5\\setup.iss\""

View file

@ -1,10 +1,9 @@
# # SageMath se se prevede za Ubutnu 24.04: https://github.com/sagemath/sage/issues/38051#issuecomment-2123452861
# - name: Install SageMath
# apt:
# name: sagemath
# state: latest
# - name: Install SageMath - Jupyter
# apt:
# name: sagemath-jupyter
# state: latest
- name: Do not install SageMath
debug:
msg: SageMath is not installable on Ubuntu 24.04 right now

View file

@ -7,24 +7,23 @@
block:
- name: Set download filenames
set_fact:
# cubemx_download_file: C:\CubeMX.exe
cubemx_download_file: C:\CubeMX.exe
cubeprogrammer_download_file: C:\CubeProgrammer.exe
cubemonitor_download_file: C:\CubeMonitor.exe
# cufinder_download_file: C:\CUFinder.exe
cufinder_download_file: C:\CUFinder.exe
cubeide_download_file: C:\st-stm32cubeide_1.16.0_21983_20240628_1741_x86_64.exe
# - name: Download CubeMX
- name: Download CubeMX
# # win_get_url:
# win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EZhqHxJoAfdEjdlMu0uGWGcBOqrT0vTVv2_nhynWZ3fOwQ?e=ilAlzP&download=1" -O "{{ cubemx_download_file }}"
win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EZhqHxJoAfdEjdlMu0uGWGcBOqrT0vTVv2_nhynWZ3fOwQ?e=ilAlzP&download=1" -O "{{ cubemx_download_file }}"
# #dest: C:\CubeMX.exe
# #register: cubemx_download
# args:
# creates: "{{ cubemx_download_file }}"
args:
creates: "{{ cubemx_download_file }}"
# - name: Install CubeMX
# win_package:
# path: "{{cubemx_download.dest}}"
# path: "{{ cubemx_download_file }}"
# arguments: /S
#- name: Install CubeMX
# win_package:
# path: "{{ cubemx_download_file }}"
# arguments: /S
- name: Download CubeProgrammer
win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EXHsKDjM6hVAuEGwEWcMyBEB6bHd3HuOP38D7Wjt41vjTw?e=7jatnu&download=1" -O "{{ cubeprogrammer_download_file }}"
@ -34,10 +33,10 @@
args:
creates: "{{ cubeprogrammer_download_file }}"
# - name: Install CubeProgrammer
# win_package:
# path: "{{ cubeprogrammer_download_file }}"
# arguments: /S
- name: Install CubeProgrammer
win_package:
path: "{{ cubeprogrammer_download_file }}"
arguments: /S
- name: Download CubeMonitor
# TODO 2024: only zip distributions exists in zip file
@ -50,23 +49,23 @@
args:
creates: "{{ cubemonitor_download_file}}"
# - name: Install CubeMonitor
# win_package:
# path: "{{ cubemonitor_download_file }}"
# arguments: /S
- name: Install CubeMonitor
win_package:
path: "{{ cubemonitor_download_file }}"
arguments: /S
# - name: Download STM CUFinder
# win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EfesbSW7EftDoSjtt-nr_eYBH_EBzXnysW0Lk1wnNzx2Mw?e=HSSmDz&download=1" -O "{{ cufinder_download_file }}"
- name: Download STM CUFinder
win_command: wget "https://unilj-my.sharepoint.com/:u:/g/personal/rozman_fri1_uni-lj_si/EfesbSW7EftDoSjtt-nr_eYBH_EBzXnysW0Lk1wnNzx2Mw?e=HSSmDz&download=1" -O "{{ cufinder_download_file }}"
# #win_get_url:
# # dest: C:\CUFinder.exe
# #register: cubecufinder_download
# args:
# creates: "{{ cufinder_download_file }}"
args:
creates: "{{ cufinder_download_file }}"
# - name: Install STM CUFinder
# win_package:
# path: "{{ cubecufinder_download_file }}"
# arguments: /S
- name: Install STM CUFinder
win_package:
path: "{{ cubecufinder_download_file }}"
arguments: /S
- name: Download CubeIDE
# win_get_url:
@ -76,20 +75,20 @@
args:
creates: "{{ cubeide_download_file }}"
# - name: Install CubeIDE
# win_package:
# path: "{{ cubeide_download_file }}"
# arguments: /S
- name: Install CubeIDE
win_package:
path: "{{ cubeide_download_file }}"
arguments: /S
# TODO test the installers
# - name: Set CubeIDE default workspace
# win_lineinfile:
# path: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\stm32cubeide.ini
# regexp: "osgi.instance.area.default"
# line: "-Dosgi.instance.area.default=D:/RAVINOR/CubeIDE_Workspace"
- name: Set CubeIDE default workspace
win_lineinfile:
path: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\stm32cubeide.ini
regexp: "osgi.instance.area.default"
line: "-Dosgi.instance.area.default=D:/RAVINOR/CubeIDE_Workspace"
# Replace -installIU... with -list to get available packages.
# - name: Install QEMU
# win_command: stm32cubeidec.exe -application org.eclipse.equinox.p2.director -nosplash -repository https://download.eclipse.org/embed-cdt/updates/v6/ -installIU org.eclipse.embedcdt.debug.gdbjtag.qemu.feature.group
# args:
# chdir: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE
- name: Install QEMU
win_command: stm32cubeidec.exe -application org.eclipse.equinox.p2.director -nosplash -repository https://download.eclipse.org/embed-cdt/updates/v6/ -installIU org.eclipse.embedcdt.debug.gdbjtag.qemu.feature.group
args:
chdir: C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE

View file

@ -1,13 +1,14 @@
- name: create destination
file:
path: /opt/Arduino
state: directory
#- name: create destination
# file:
# path: /opt/Arduino
# state: directory
- name: unpack Arduino
unarchive:
src:
dest: /opt/Arduino-cli
remote_src: yes
# - name: unpack Arduino
# unarchive:
# src:
# dest: /opt/Arduino-cli
# remote_src: yes
#- name: Add .json for new boards
#
# https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
# TODO: write this task file!

View file

@ -1,4 +1,4 @@
- name: Install TensorFlow
pip:
executable: pip3
executable: pipx
name: tensorflow

View file

@ -1,2 +1,3 @@
- name: Do not install TwinCat 3 on Linux
debug: Do not install TwinCat 3 on Linux
debug:
msg: Do not install TwinCat 3 on Linux

View file

@ -1,5 +1,6 @@
- name: Install TwinCat 3
win_chocolatey:
name: visualstudio2019community
# Maybe sometime use https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 with the costlier version
debug:
msg: TODO - write twincat installer scripts
#win_package:
# path: "{{ installers }}\\TwinCat3\\setup\\setup.exe"
# arguments: "/s /f1\"{{ installers }}\\PowerDesigner 12.5\\setup.iss\" /f2\"C:\\powerdesigner_log.iss\""

View file

@ -2,11 +2,11 @@
- name: PowerDesigner
debug:
msg: "Unity"
- name: Install Wine
apt:
name: wine-development
state: latest
- name: Install Wine binfmt support
apt:
name: wine-binfmt
state: latest
#- name: Install Wine
# apt:
# name: wine-development
# state: latest
#- name: Install Wine binfmt support
# apt:
# name: wine-binfmt
# state: latest

View file

@ -1,4 +0,0 @@
- import_tasks: main_win.yml
when: ansible_connection == 'winrm'
- import_tasks: main_lin.yml
when: ansible_connection == 'ssh'

View file

@ -1,2 +0,0 @@
- name: Do not install VisualStudio on Linux
debug: Do not install VisualStudio on Linux

View file

@ -1,5 +0,0 @@
- name: Install Microsoft Visual Studio
win_chocolatey:
name: visualstudio2022community
# Maybe sometime use https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022 with the costlier version

View file

@ -1,2 +1,3 @@
- name: Do not install VisualStudio on Linux
debug: Do not install VisualStudio on Linux
debug:
msg: Do not install VisualStudio on Linux

View file

@ -6,5 +6,9 @@
vtype: boolean
- name: "Install Wireshark"
apt:
name: wireshark-qt
name: wireshark
state: latest
- name: "Install text-mode wireshark"
apt:
name: tshark
state: latest

View file

@ -13,11 +13,10 @@
- vars/credentials.yml
- vars/software_keys.yml
roles:
# - fri_base
- matlab
# - all_classes
# - android_studio
# - octave
# - audacity
# - vmware_player
# - stm32cube
- android_studio
#- OR-63717
#- RA-63703
#- VN-63728