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

Changes in IOI's 2023 system #2

Open
wants to merge 155 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
b67ad9e
Bump Zabbix, change channel: 20.04 -> 22.04
radl97 May 20, 2023
f90204b
Remove codeblocks as an IDE
radl97 May 20, 2023
4dd3ce3
Remove eclipse
radl97 May 20, 2023
5755764
Bump VSCode extension versions
radl97 May 20, 2023
62048f8
Bump timezone in setup.sh
radl97 May 20, 2023
5fd4b39
Fix missing folder
radl97 May 20, 2023
9572c79
Fix missing directory
radl97 May 20, 2023
fa6be28
Remove openjdk
radl97 May 20, 2023
e08a805
Bump packages-to-remove versions
radl97 May 20, 2023
5f59c96
22.04: Remove nonexistent packages
radl97 May 20, 2023
0d63aca
Update: Bye heroku. Google Webfonts Helper is now available at gwfh.m…
radl97 May 20, 2023
a9cdf4d
Install atd
radl97 May 20, 2023
aafbe42
Fix: dash does not support (( math expr ))
radl97 May 20, 2023
e4fc386
Revert "Remove eclipse"
radl97 May 21, 2023
b20cd95
Remove logkeys management scripts
radl97 May 22, 2023
33932e9
Bump Eclipse, use C++ version instead of Java
radl97 May 22, 2023
d4fc68e
Bump timezone and date in texts
radl97 Jun 1, 2023
d0ba7ee
Fix removal of C++ build toolchain
radl97 Jun 1, 2023
75bf273
Fix: hardcode Eclipse mirror, because main page wants to serve HTML
radl97 Jun 1, 2023
b068a28
Add -y flag, fix typo
radl97 Jun 1, 2023
18ad1cd
Use autoinstall for reproducible, automatic installation
radl97 Jun 16, 2023
9957bc6
Merge pull request #1 from ioi-2023/update-packages
radl97 Jun 20, 2023
9ee28e3
Merge pull request #2 from ioi-2023/autoinstall
radl97 Jul 4, 2023
4512473
Fix typo
radl97 Jul 4, 2023
f92de6a
22.04 does not have ubuntu-desktop-minimal 'task' in tasksel
radl97 Jul 4, 2023
a7752ce
Install firefox
radl97 Jul 4, 2023
38e2b5b
Mark g++ as explicitly needed
radl97 Jul 4, 2023
c9febe6
fixup! 22.04 does not have ubuntu-desktop-minimal 'task' in tasksel
radl97 Jul 4, 2023
065a771
Eclipse release process: M2 -> R
radl97 Jul 4, 2023
5248a9c
Disable 22.04 needrestart prompt
radl97 Jul 4, 2023
e7138d2
Fix: do not show needrestart prompt
radl97 Jul 4, 2023
201cac9
Update README.md
niklaci Jul 11, 2023
c968bc0
Fix default shell (sh->bash) for user ioi occuring when user is alrea…
radl97 Jul 13, 2023
2f706fc
Steal my focus ext to work around bug with VSCode
radl97 Jul 13, 2023
ba72faa
Install stealmyfocus
radl97 Jul 13, 2023
a7fed33
Bump gnome-shell version to enable add-username-ext extension
radl97 Jul 13, 2023
3a85960
Merge branch 'master' of ssh://github.com/ioi-2023/contestant-vm
radl97 Jul 13, 2023
e217650
Move docs to /usr/share/doc
baltitenger Jul 16, 2023
d19439e
Merge pull request #4 from baltitenger/docs-to-usr
radl97 Jul 19, 2023
796d145
Remove CPP compile run VSCode extension
radl97 Jul 19, 2023
14998f8
Merge pull request #24 from ioi-2023/radl97-patch-1
radl97 Jul 19, 2023
cbadd97
Work on autoinstall
radl97 Jul 14, 2023
b2d906f
Remove vmware specific code, resolves #25
radl97 Jul 19, 2023
e69b12a
Fix #16: Add python-is-python3
radl97 Jul 19, 2023
c49bcd3
Fix #6
radl97 Jul 19, 2023
3e5194d
Fix #7
radl97 Jul 19, 2023
cce5f2c
Use deb package for atom; fixes #11. Thanks @horcsinbalint
radl97 Jul 19, 2023
02dde35
Resolve #14: Add neovim
radl97 Jul 19, 2023
655bbbf
Resolve #23
radl97 Jul 19, 2023
9254f52
Fix #22: DBus-related issue with gsettings
radl97 Jul 19, 2023
f1c317f
Resolve #12 based on the suggestion by @pobrn
radl97 Jul 19, 2023
f6c2932
Only remove cache in cleanup.sh
baltitenger Jul 19, 2023
b5cb24f
Remove reference to STL Manual
radl97 Jul 19, 2023
ae6fa4b
Fix #27
radl97 Jul 19, 2023
8607853
Fix #9: Mark as automatically installed instead of removal
radl97 Jul 19, 2023
9b79f2d
Merge pull request #28 from baltitenger/setup-no-clean
radl97 Jul 19, 2023
f850e59
Update wallpaper to 2023
radl97 Jul 19, 2023
d32c5b9
Prevent apt interactive prompts
radl97 Jul 19, 2023
8fa10f1
Fix networking: Apply 1b23c04 , with the fix in 0f671f8
radl97 Jul 19, 2023
0b30b4b
Do not remove Linux-related packages to support Qemu
radl97 Jul 19, 2023
0490ad0
Removed -y from apt-mark
horcsinbalint Jul 19, 2023
f6f9f4f
Removed -y from apt-mark
radl97 Jul 19, 2023
5235c49
Fix #38: install clangd
radl97 Jul 20, 2023
7c21ff0
update home page
niklaci Jul 20, 2023
e18656e
Eclipse should no longer ask for donations
horcsinbalint Jul 20, 2023
a262ca0
Added cmake as per #44
horcsinbalint Jul 20, 2023
f66ba6a
Be consistent with downloads
baltitenger Jul 23, 2023
280540c
Cleanup atom installation
radl97 Jul 27, 2023
5878e91
Install eclipse logo from installed eclipse instead of downloading
radl97 Jul 27, 2023
e7575c5
Merge pull request #61 from ioi-2023/baltitenger-cleanup
radl97 Jul 27, 2023
9b92731
Fix #48: Remove VisualVM
radl97 Jul 27, 2023
3e228ae
Fix #58: Document installing VSCode Vim extension
radl97 Jul 27, 2023
0d62795
Disabled webcam, bluetooth
horcsinbalint Jul 22, 2023
deaec1b
Disabled bluetooth even more
horcsinbalint Jul 22, 2023
ad0965c
Disabled wifi
horcsinbalint Jul 22, 2023
d776a82
Added some description
horcsinbalint Jul 23, 2023
c143caf
Use LVM
radl97 Jul 27, 2023
ab8f500
Fix #60: Make IntelliJ Idea Keybindings VSCode extension available
radl97 Jul 27, 2023
e15b663
Merge branch 'master' into native
radl97 Jul 27, 2023
e204fb5
Fix #62: Add terminal to sidebar, remove yelp (help function)
radl97 Jul 27, 2023
d2efc41
Use the snap version of neovim
baltitenger Jul 27, 2023
650c4ab
Merge pull request #66 from baltitenger/neovim-snap
radl97 Jul 27, 2023
04a04a9
Add bookmark for the directory of extra vscode extensions
pobrn Jul 27, 2023
e3f4337
Merge pull request #68 from ioi-2023/bookmark_extra_vsc_exts
radl97 Jul 28, 2023
fb3e1c4
Merge branch 'master' into native
radl97 Jul 30, 2023
77379c4
Merge branch 'master' into native
radl97 Jul 31, 2023
0569de6
Mention C/C++ extension in the manual
horcsinbalint Jul 28, 2023
6ab906d
Revert "Fix #60: Make IntelliJ Idea Keybindings VSCode extension avai…
radl97 Jul 27, 2023
d69bdde
Reapply "Revert "Fix #60: Make IntelliJ Idea Keybindings VSCode exten…
radl97 Jul 27, 2023
2766f39
Split setup.sh into smaller chunks
radl97 Jul 31, 2023
f07045b
Use bash builtin error handling and debug utility
radl97 Jul 31, 2023
0a8a2c1
Fix fatal: Configure zabbix only after install
radl97 Aug 1, 2023
2afae70
Fix fatal: Create /opt/ioi before installing IDEs and tools
radl97 Aug 1, 2023
3d73e0f
Use setup.d scripts instead of single-file setup.sh
radl97 Aug 1, 2023
2199ba0
setup scripts: Use bash instead of sh
radl97 Aug 1, 2023
a4a9ea0
Change to 'probably faster' eclipse download mirror
radl97 Aug 1, 2023
4a59dab
Fix #72: inconsistent maximum backup size, due to a comment missed by…
radl97 Aug 1, 2023
2dd3541
Add packages requested by '23 HSC
radl97 Aug 1, 2023
cfbc457
Formatting
radl97 Aug 1, 2023
509363b
fixup! Add packages requested by '23 HSC
radl97 Aug 1, 2023
0e18caf
Merge branch 'master' into native
radl97 Aug 1, 2023
c1463bc
Merge branch 'master' into native
radl97 Aug 2, 2023
11ccbb5
Add issue templates (#74)
radl97 Aug 2, 2023
9260d2b
Add boot setup (disabled)
radl97 Aug 2, 2023
7f1d1d5
Added button for python doc
horcsinbalint Jul 30, 2023
e5e35b9
Fix #75: install requested geany plugins
radl97 Aug 4, 2023
3a0800e
Fix #71: Add clangd extension, with disclaimer in VM manual
radl97 Aug 4, 2023
abfc75e
Use wget --continue instead of --no-clobber
radl97 Aug 4, 2023
32142b7
Change VPN config: tinc-up is retreived from upstream
radl97 Aug 4, 2023
5eca6d0
Set CMS Website
radl97 Aug 4, 2023
7c2b77e
Migration 20.04->22.04 (probably): systemd-resolve -> resolvectl
radl97 Aug 4, 2023
001c30e
Add '23 config
radl97 Aug 4, 2023
9f49248
Temporary: Create list of hosts for VPN instead of DNS
radl97 Aug 4, 2023
30377a9
Try automate autoinstall more
radl97 Aug 4, 2023
a12bd80
Tmp: Use HTTP for CMS
radl97 Aug 4, 2023
e6dc396
Remove scripts: gen_vpn_conf will move to automation repo
radl97 Aug 4, 2023
26e8b35
Remove tinc-up: it will be provided by POP server
radl97 Aug 4, 2023
daf527a
Temp: remove DNS config, because VPN does not provide proper DNS server
radl97 Aug 4, 2023
9932ea0
Fix SUBNET
radl97 Aug 4, 2023
defa9c5
Fix hostname
radl97 Aug 4, 2023
950c7d9
fixup! Try automate autoinstall more
radl97 Aug 4, 2023
6ce36f5
Update .gitignore
radl97 Aug 4, 2023
e50f85b
autoinstall: kill HTTP server when exiting
pobrn Aug 5, 2023
ae9e15a
Merge pull request #80 from ioi-2023/kill_http_server_when_exiting
radl97 Aug 6, 2023
8ac64d4
Merge branch 'master' into native
radl97 Aug 6, 2023
7c62237
Allow all VPN ports, and only from the config server's IP
radl97 Aug 7, 2023
98c4644
Native: Use UEFI to boot
radl97 Aug 7, 2023
c7aade5
Allow all VPN ports, and only from the config server's IP
radl97 Aug 7, 2023
e4f38b7
Autoinstall: Clonezilla script and usage
radl97 Aug 9, 2023
4e60561
Merge branch 'master' into native
radl97 Aug 9, 2023
072b5f4
Set dark mode background as well
pobrn Aug 9, 2023
6cf83ec
Disable zabbix-agent for now
radl97 Aug 9, 2023
5957ac5
Merge branch 'master' into native
radl97 Aug 9, 2023
5f99710
Update hostname
radl97 Aug 9, 2023
e448811
Fix comment
radl97 Aug 9, 2023
a4a08f6
Fix: boot with nosplash
radl97 Aug 9, 2023
7192317
Swap up logic: rollback if a key is pressed during bootup
radl97 Aug 9, 2023
266431f
Fix documentation
radl97 Aug 9, 2023
dc617e4
Shutdown after creating first snapshot
radl97 Aug 9, 2023
b104b12
Merge branch 'master' into native
radl97 Aug 9, 2023
e8bed92
Enable boot-setup
radl97 Aug 9, 2023
e7309fc
Reject disallowed outgoing packets instead of dropping them
pobrn Aug 9, 2023
44da979
Add alternative desktop icon for Eclipse (xwayland) (#85)
radl97 Aug 10, 2023
2494960
Merge pull request #86 from ioi-2023/reject_instead_of_drop
radl97 Aug 10, 2023
eee31da
Boot-up process did not really like booting after creating snapshot
radl97 Aug 11, 2023
4465dff
Remove zerofree hook, and reboot between each operation
radl97 Aug 11, 2023
73c7e46
Update cppreference to 20230810
baltitenger Aug 11, 2023
21583a0
Merge pull request #91 from baltitenger/update-cppref
radl97 Aug 11, 2023
3e42472
Fix wrong date
horcsinbalint Aug 13, 2023
86a91f7
Merge pull request #95 from ioi-2023/cpp-ref-92
radl97 Aug 13, 2023
6529a03
autoinstall: update iso download url
radl97 Aug 13, 2023
7b9a373
Fix bug in c7aade56 leading to firewall not starting up
radl97 Aug 14, 2023
015279e
Merge branch 'master' into native
radl97 Aug 14, 2023
e3da7cc
Merge pull request #94 from ioi-2023/update_iso_download_url
radl97 Aug 14, 2023
0782b8a
Merge branch 'master' into native
radl97 Aug 14, 2023
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
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Please complete the following information:**

- For pre-built, image release version: [VM build version]
- For manual build, commit: [none]
- I have used autoinstall: [yes/no]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/contestant-feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Contestant feature request
about: Suggest an idea or tool
title: ''
labels: contestant-requests
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Create a VM: 2 VCPU, 4 GB RAM, 25 GB disk.

Install Ubuntu 20.04 server. Defaults work fine (but please uncheck the "Set up this disk as an LVM group" option). Create a user account called `ansible`.
Install Ubuntu 22.04 server. Defaults work fine (but please uncheck the "Set up this disk as an LVM group" option). Create a user account called `ansible`.

When Ubuntu install completes, clone or copy this repo into a local directory. E.g.:

Expand Down
5 changes: 5 additions & 0 deletions autoinstall/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
disk.img
contestant-vm.tar.gz
contestant-vm.vmdk
ubuntu.iso
clonezilla.iso
27 changes: 27 additions & 0 deletions autoinstall/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Installing Ubuntu through autoinstall/cloud-init with Qemu

Run `start-autoinstall.sh` for setting up the disc. (This will call into setup.sh)

After running setup.sh -- done automatically, call `sudo cleanup.sh` in `/home/ansible/contestant-vm` with ansible user, `rm -rf /home/ansible/contestant-vm` and call into `sudo shutdown now`.

For `zerofree` step, you will have to boot into live-disk (`boot-live-disk.sh`), and initiate `zerofree /dev/sda2` from there.

DO NOT boot the disc afterwards: the boot after `cleanup.sh` is special. (the cloud-init script must not be run to create a new SSH identity for each VM)

## Creating a VM image

`qemu-img convert -f qcow2 -O vmdk disk.img contestant-vm.vmdk`

Copy the `contestant-vm.vmdk` file to a freshly created (correctly set up) VM from VMWare.

## Creating a native image with Clonezilla

I've started sshd on my system, so Clonezilla could log in and upload the device image (with a new user `guest`: `sudo useradd -mU guest` and `sudo passwd guest`).

Boot Clonezilla (`start-clonezilla.sh`): for me, it worked with `Other modes of Clonezilla live` and `Clonezilla live (KMS & To RAM)`.

`device-image` -> `ssh_server` (`dhcp` server and tell it to mount `guest@10.0.2.2:/home/guest`), the image will be uploaded there.

---

Select `beginner` and `savedisk`. Select default options from there.
8 changes: 8 additions & 0 deletions autoinstall/boot-live-disk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

test -f ubuntu.iso || curl https://www.releases.ubuntu.com/22.04/ubuntu-22.04.2-live-server-amd64.iso -o ubuntu.iso

echo 'You will need to initialize shell (e.g. `init=/bin/bash` kernel parameter in GRUB)'
echo 'From this shell, run `zerofree /dev/sda2`'
qemu-system-x86_64 -display gtk -hda disk.img -cdrom ubuntu.iso -m 2048 -net nic -net user -cpu host -machine accel=kvm -boot order=d

2 changes: 2 additions & 0 deletions autoinstall/meta-data
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
instance-id: iid-local01
local-hostname: cloudimg
23 changes: 23 additions & 0 deletions autoinstall/start-autoinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -x
set -e

if [ -z "$OVMF_PATH" ]
then
OVMF_PATH=/usr/share/qemu/OVMF.fd
fi

# 25G -> https://bugs.launchpad.net/subiquity/+bug/1907128
qemu-img create -f qcow2 disk.img 50G
wget -c -O ubuntu.iso https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.2-live-server-amd64.iso

# Open http server for port 8000
python3 -m http.server &
HTTP_SRV_PID=$!
trap 'kill $HTTP_SRV_PID' EXIT

# Make contestant-vm available
tar czvf contestant-vm.tar.gz --exclude autoinstall --exclude .git --exclude .github -C ../.. contestant-vm

qemu-system-x86_64 -display gtk -hda disk.img -cdrom ubuntu.iso -m 2048 -net nic -net user -cpu host -machine accel=kvm -smbios type=1,serial=ds='nocloud-net;s=http://10.0.2.2:8000/' -bios "$OVMF_PATH"
13 changes: 13 additions & 0 deletions autoinstall/start-clonezilla.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

set -x
set -e

if [ -z "$OVMF_PATH" ]
then
OVMF_PATH=/usr/share/qemu/OVMF.fd
fi

wget -c -O clonezilla.iso https://kumisystems.dl.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-amd64.iso

qemu-system-x86_64 -display gtk -hda disk.img -cdrom clonezilla.iso -m 2048 -net nic -net user -cpu host -machine accel=kvm -boot order=d -bios "$OVMF_PATH"
53 changes: 53 additions & 0 deletions autoinstall/user-data
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#cloud-config
autoinstall:
version: 1
#reporting:
# hook:
# type: webhook
# endpoint: http://example.com/endpoint/path
locale: en_US
keyboard:
layout: us
network:
network:
version: 2
ethernets:
alleths:
match:
name: en*
dhcp4: yes
storage:
layout:
name: lvm
identity:
hostname: ioi-0809
username: ansible
# Note: the real password will be ANSIBLE_PASSWORD
# ansible
password: $6$NH0tTrHw/4v3.Jbi$6NCVzJ45i3N4HFF1vJpPobpdkGhgBq0t56KAGzjm4/wg1saD8N7akmBMaLbSH.UmpIdmZV8TUaqN2/pDaSSS0.
ssh:
install-server: yes
#authorized-keys:
# - $key
allow-pw: no
packages:
- vim # for basic editing
- git # for cloning the repo
- curl
user-data:
# Will be merged into Cloud-init config
runcmd:
- 'curl 10.0.2.2:8000/contestant-vm.tar.gz -o /tmp/contestant-vm.tar.gz'
- 'mkdir -p /home/ansible'
- 'cd /home/ansible && tar -xf /tmp/contestant-vm.tar.gz && chown -R ansible:ansible contestant-vm'
- 'cd /home/ansible/contestant-vm && ./setup.sh'
users:
- default
- name: ioi
gecos: ioi
lock_passwd: false
# ioi
passwd: $6$ZMrIRti0JubrLV3t$mTkdv6Bmg0sGk3equaqqbwDFPL.t4ezClcVygHkxcKM/T7ovovNXncg1yLXDqWcXU/kXJY9sSfmHNb8P0Fu4R1
#error-commands:
# - tar c /var/log/installer | nc 192.168.0.1 1000

26 changes: 7 additions & 19 deletions bin/ioiconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,11 @@ do_config()
exit 1
fi

IP=$(cat $WORKDIR/vpn/ip.conf)
MASK=$(cat $WORKDIR/vpn/mask.conf)
DNS=$(cat $WORKDIR/vpn/dns.conf)

if ! check_ip "$IP" || ! check_ip "$MASK"; then
echo Bad IP numbers
rm -r $WORKDIR
exit 1
fi

echo "$IP" > /etc/tinc/vpn/ip.conf
echo "$MASK" > /etc/tinc/vpn/mask.conf
echo "$DNS" > /etc/tinc/vpn/dns.conf
rm /etc/tinc/vpn/hosts/* 2> /dev/null
cp $WORKDIR/vpn/hosts/* /etc/tinc/vpn/hosts/
cp $WORKDIR/vpn/rsa_key.* /etc/tinc/vpn/
cp $WORKDIR/vpn/tinc.conf /etc/tinc/vpn
cp $WORKDIR/vpn/tinc.conf /etc/tinc/vpn/
cp $WORKDIR/vpn/tinc-up /etc/tinc/vpn/
cp $WORKDIR/vpn/ioibackup* /opt/ioi/config/ssh/

rm -r $WORKDIR
Expand Down Expand Up @@ -160,8 +148,8 @@ EOM
if [ -f "/usr/share/zoneinfo/$2" ]; then
cat - <<EOM
Your timezone will be set to $2 at your next login.
*** Please take note that all dates and times communicated by the IOI 2022 ***
*** organisers will be in Asia/Jakarta timezone (GMT+07), unless it is ***
*** Please take note that all dates and times communicated by the IOI 2023 ***
*** organisers will be in Europe/Budapest timezone (GMT+2), unless it is ***
*** otherwise specified. ***
EOM
echo "$2" > /opt/ioi/config/timezone
Expand All @@ -187,20 +175,20 @@ EOM
Invalid argument to setautobackup. Specify "on" to enable automatic backup
of home directory, or "off" to disable automatic backup. You can always run
"ioibackup" manually to backup at any time. Backups will only include
non-hidden files less than 1MB in size.
non-hidden files less than 100KB in size.
EOM
fi
;;
setscreenlock)
if [ "$2" = "on" ]; then
touch /opt/ioi/config/screenlock
sudo -Hu ioi xvfb-run gsettings set org.gnome.desktop.screensaver lock-enabled true
sudo -Hu ioi dbus-run-session gsettings set org.gnome.desktop.screensaver lock-enabled true
echo Screensaver lock enabled
elif [ "$2" = "off" ]; then
if [ -f /opt/ioi/config/screenlock ]; then
rm /opt/ioi/config/screenlock
fi
sudo -Hu ioi xvfb-run gsettings set org.gnome.desktop.screensaver lock-enabled false
sudo -Hu ioi dbus-run-session gsettings set org.gnome.desktop.screensaver lock-enabled false
echo Screensaver lock disabled
else
cat - <<EOM
Expand Down
2 changes: 1 addition & 1 deletion bin/ioiexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ case $1 in
chfn -f "IOI Contestant" ioi
echo "Due to some issues, we have disabled VPN connection to CMS."
echo ""
echo "For now, open https://cms-public.ioi2022.id on Firefox,"
echo "For now, open https://cms-public.nonexistent on Firefox,"
echo "and log in using the following credentials:"
echo ""
echo "- Username: $(cat /opt/ioi/run/username.txt)"
Expand Down
2 changes: 1 addition & 1 deletion bin/ioisetup
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ do_setup()

if [ ${retval} -eq 2 ]; then
read -d '' -r MSG<<-EOM
Failed to communicate with the IOI 2022 configuration server.\n
Failed to communicate with the IOI 2023 configuration server.\n
Please try again. If this persists, please contact the HTC.
EOM
zenity "$ZENTITLE" $ZENARG \
Expand Down
2 changes: 2 additions & 0 deletions cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

apt clean
rm -rf /var/lib/snapd/cache/*

rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -59,5 +60,6 @@ PARTKEY=$(/opt/ioi/sbin/genkey.sh)
echo $PARTKEY

echo REMEMBER TO REMOVE SETUP DIRECTORY
echo REMEMBER TO FINALIZE VM IMAGE

# vim: ts=4
4 changes: 2 additions & 2 deletions config.local.sh.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Name the version. Otherwise we'll default to testMMDD.
VERSION=""
export VERSION=""
# Set a password, also used in GRUB. Otherwise we'll default to ansible.
ANSIBLE_PASSWD=""
export ANSIBLE_PASSWD=""
5 changes: 5 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export POP_SERVER="pop.cmsioi2023.hu"
export BACKUP_SERVER="backup.cmsioi2023.hu"
export CMS_PUBLIC_DOMAIN="cmsioi2023.hu"
export DNS_DOMAIN="ioi2023.loc"
export SUBNET="172.16.0.0/16"
10 changes: 5 additions & 5 deletions config.sh.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POP_SERVER="pop.toki.id"
BACKUP_SERVER="backup.toki.id"
CMS_PUBLIC_DOMAIN="cms.toki.id"
DNS_DOMAIN="toki.id"
SUBNET="10.0.0.0/16"
export POP_SERVER="pop.toki.id"
export BACKUP_SERVER="backup.toki.id"
export CMS_PUBLIC_DOMAIN="cms.toki.id"
export DNS_DOMAIN="toki.id"
export SUBNET="10.0.0.0/16"
14 changes: 7 additions & 7 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<title>IOI2022</title>
<title>IOI2023</title>
<style type="text/css">
/* share-regular - latin */
@font-face {
Expand Down Expand Up @@ -50,17 +50,17 @@
</style>
</head>
<body>
<h1 style="display: none;">IOI2022</h1>
<h1 style="display: none;">IOI2023</h1>
<div style="text-align: center;">
<img src="ioi-website-logo.png" alt="IOI 2022" style="max-height: 150px;" />
<img src="ioi-website-logo.png" alt="IOI 2023" style="max-height: 150px;" />
</div>
<div class="ll" style="margin: 1em 0;">
<a class="button" href="https://cms.ioi2022.id/">CMS WEBSITE</a>
<a class="button" href="http://cmsioi2023.hu/">CMS WEBSITE</a>
</div>
<div class="container">
<div class="ll"><a href="file:///opt/cppref/reference/en/index.html">C/C++ Reference</a></div>
<div class="ll"><a href="file:///usr/share/doc/stl-manual/html/index.html">STL Manual</a></div>
<div class="ll"><a href="file:///opt/ioi/html/vm.html">Contestant VM Manual</a></div>
<div class="ll"><a href="../cppreference/reference/en/index.html">C/C++ Reference</a></div>
<div class="ll"><a href="manual.html">Contestant Machine Manual</a></div>
<div class="ll"><a href="../python3.10/html/index.html">Python documentation</a></div>
</div>
</body>
</html>
Binary file modified html/ioi-website-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/manual-import-vsix-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/manual-import-vsix-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading