Compare commits

...

5 commits

Author SHA1 Message Date
Raphael Dannecker
879850373e Increase default font size for codeblocks 2025-12-22 10:31:14 +01:00
Raphael Dannecker
787a8c843f Set default NumLock state to ON for KDE 2025-12-22 10:15:17 +01:00
Raphael Dannecker
37eb2b8232 Prevent login without krb5-ticket on non localhome machines 2025-12-18 16:27:29 +01:00
Raphael Dannecker
cf7bf30e05 Make IP addresses of teacherpc configurable (for the firewall in exam mode) 2025-12-18 16:18:23 +01:00
Raphael Dannecker
a008ef0506 Correct the determination of the teacher's PC's IP address (a75934c) 2025-12-18 12:37:32 +01:00
4 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,15 @@
if [[ "$UID" -gt 10000 ]] && [[ ! -f ~/.config/codeblocks/default.conf ]] ; then
mkdir -p ~/.config/codeblocks
cat <<EOF > ~/.config/codeblocks/default.conf
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1">
<editor>
<FONT>
<str>
<![CDATA[Monospace 18]]>
</str>
</FONT>
</editor>
</CodeBlocksConfig>
EOF
fi

View file

@ -156,6 +156,11 @@
dest: /etc/profile.d/ dest: /etc/profile.d/
mode: '0644' mode: '0644'
- name: Copy codeblocks config scripts
ansible.builtin.copy:
src: lmn-codeblocks.sh
dest: /etc/profile.d/
mode: '0644'
- name: Copy fvs-config.js to configure plasma - name: Copy fvs-config.js to configure plasma
ansible.builtin.copy: ansible.builtin.copy:
@ -188,6 +193,15 @@
action/switch_user=false action/switch_user=false
#action/lock_screen=false #action/lock_screen=false
- name: Configure NumLock ON
ansible.builtin.blockinfile:
path: /etc/xdg/kcminputrc
create: true
mode: '0644'
block: |
[Keyboard]
NumLock=0
- name: Start with empty session by default - name: Start with empty session by default
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/xdg/ksmserverrc dest: /etc/xdg/ksmserverrc

View file

@ -52,10 +52,11 @@
- name: Append teacherPC to exam_destination_allowed_ipv4 addresses - name: Append teacherPC to exam_destination_allowed_ipv4 addresses
ansible.builtin.set_fact: ansible.builtin.set_fact:
exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + [ ansible_default_ipv4.address[:-1] ~ exam_teacherpc_last_digit ] }}" exam_destination_allowed_ipv4: "{{ exam_destination_allowed_ipv4 + (exam_teacherpc_ips | default([ ansible_default_ipv4.address.rsplit('.', 1)[0] ~ '.' ~ exam_teacherpc_last_digit ])) }}"
when: when:
- exam_destination_allowed_ipv4 is defined - exam_destination_allowed_ipv4 is defined
- exam_destination_allowed_ipv4 | length > 0 - exam_destination_allowed_ipv4 | length > 0
- exam_teacherpc_ips is defined or exam_teacherpc_last_digit | default('') | string | length > 0
- name: Install no-way-out-policy - name: Install no-way-out-policy
ansible.builtin.template: ansible.builtin.template:

View file

@ -9,7 +9,9 @@ ad_domain = {{ domain }}
id_provider = ad id_provider = ad
access_provider = ad access_provider = ad
use_fully_qualified_names = False use_fully_qualified_names = False
{% if localhome is defined and localhome %}
cache_credentials = True cache_credentials = True
{% endif %}
krb5_store_password_if_offline = True krb5_store_password_if_offline = True
default_shell = /usr/bin/bash default_shell = /usr/bin/bash
# default: # ldap_id_mapping = True # default: # ldap_id_mapping = True