-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser-data
37 lines (33 loc) · 1.16 KB
/
user-data
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
#cloud-config
hostname: os2borgerpc
manage_etc_hosts: localhost
apt:
conf: |
Acquire {
Check-Date "false";
};
users:
- name: superuser
groups: users,adm,dialout,audio,netdev,video,plugdev,cdrom,games,input,gpio,spi,i2c,render,sudo
shell: /bin/bash
lock_passwd: false
plain_text_passwd: superuser
ssh_pwauth: true
timezone: Europe/Copenhagen
runcmd:
- localectl set-x11-keymap "dk" pc105
- setupcon -k --force || true
- 'echo Downloader OS2BorgerPC klienten'
- 'curl -Lo OS2BorgerPC-client.zip "https://github.com/bibsdb/os2borgerpc-kiosk-rpi-image/archive/refs/heads/main.zip"'
- 'apt-get update'
- 'apt-get install unzip'
- 'unzip OS2BorgerPC-client.zip'
- 'rm OS2BorgerPC-client.zip'
- 'chmod +x os2borgerpc-kiosk-rpi-image-main/scripts/*.sh'
- 'touch os2borgerpc-kiosk-rpi-image-main/scripts/VERSION'
- 'echo 2.0.0 >> os2borgerpc-kiosk-rpi-image-main/scripts/VERSION'
- 'mv os2borgerpc-kiosk-rpi-image-main/scripts/* /usr/local/bin/'
- 'rm -r os2borgerpc-kiosk-rpi-image-main'
- 'cd /usr/local/bin'
- './install_dependencies.sh'
- 'sed -ir "s/^[#]*\s*preserve_hostname:.*/preserve_hostname: true/" /etc/cloud/cloud.cfg'