Skip to content
Snippets Groups Projects
Commit fdbec04c authored by Florent Gluck's avatar Florent Gluck
Browse files

live-exam-os: added support for ntp time synchronization and i3 xfwm4 theme

parent f68650d6
Branches
No related tags found
No related merge requests found
...@@ -45,6 +45,9 @@ ADD ${config_dir}/xfce/xfce4-settings-manager.xml config/includes.chroot/etc/xdg ...@@ -45,6 +45,9 @@ ADD ${config_dir}/xfce/xfce4-settings-manager.xml config/includes.chroot/etc/xdg
ADD ${config_dir}/xfce/xfce4-power-manager.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/ ADD ${config_dir}/xfce/xfce4-power-manager.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
ADD ${config_dir}/xfce/xfwm4.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/ ADD ${config_dir}/xfce/xfwm4.xml config/includes.chroot/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
## Install i3 theme for xfwm4
ADD ${config_dir}/themes config/includes.chroot/usr/share/themes/
# syslinux (bios) cfg # syslinux (bios) cfg
ADD ${config_dir}/bootloader/isolinux.cfg config/includes.binary/isolinux/isolinux.cfg ADD ${config_dir}/bootloader/isolinux.cfg config/includes.binary/isolinux/isolinux.cfg
ADD ${config_dir}/bootloader/isolinux_splash.png config/includes.binary/isolinux/splash.png ADD ${config_dir}/bootloader/isolinux_splash.png config/includes.binary/isolinux/splash.png
...@@ -57,6 +60,9 @@ ADD ${config_dir}/bootloader/isolinux_stdmenu.cfg config/includes.binary/isolinu ...@@ -57,6 +60,9 @@ ADD ${config_dir}/bootloader/isolinux_stdmenu.cfg config/includes.binary/isolinu
# server pub cert to be installed (system wide) # server pub cert to be installed (system wide)
#ADD ${config_dir}/${nexus_cert} config/includes.chroot/usr/share/ca-certificates/nexus-server/nexus-server.crt #ADD ${config_dir}/${nexus_cert} config/includes.chroot/usr/share/ca-certificates/nexus-server/nexus-server.crt
# ntp server configuration
ADD ${config_dir}/ntp/timesyncd.conf config/includes.chroot/etc/systemd/
# firewall hook ran at boot time # firewall hook ran at boot time
ADD ${config_dir}/boot_hooks/firewall config/includes.chroot/lib/live/config/9999-firewall ADD ${config_dir}/boot_hooks/firewall config/includes.chroot/lib/live/config/9999-firewall
RUN echo "firewall ${server_ip} ${server_port}\n" >> config/includes.chroot/lib/live/config/9999-firewall RUN echo "firewall ${server_ip} ${server_port}\n" >> config/includes.chroot/lib/live/config/9999-firewall
......
...@@ -7,13 +7,14 @@ firewall () ...@@ -7,13 +7,14 @@ firewall ()
# Block all incoming and outgoing traffic # Block all incoming and outgoing traffic
ufw default deny incoming ufw default deny incoming
ufw default deny outgoing ufw default deny outgoing
# Allow outgoing http and https traffic # Allow outgoing http and https traffic to nexus-server
ufw allow out from any to $1 port 80 ufw allow out from any to $1 port 80
ufw allow out from any to $1 port 443 ufw allow out from any to $1 port 443
# Allow outgoing traffic to nexus-server API # Allow outgoing traffic to nexus-server API
ufw allow out from any to $1 port $2 ufw allow out from any to $1 port $2
# Allow outgoing ntp traffic # Allow outgoing ntp and dns traffic
# ufw allow out from any to any port 123 proto udp ufw allow out from any to any port 123 proto udp
ufw allow out from any to any port 53 proto udp
# Allow outgoing traffic to nexus VMs (Spice) # Allow outgoing traffic to nexus VMs (Spice)
ufw allow out from any to $1 port 1025:65535 proto tcp ufw allow out from any to $1 port 1025:65535 proto tcp
ufw allow out from any to $1 port 1025:65535 proto udp ufw allow out from any to $1 port 1025:65535 proto udp
......
set default=0 set default=0
set timeout=0 set timeout=0
loadfont $prefix/dejavu-bold-16.pf2
loadfont $prefix/dejavu-bold-14.pf2
loadfont $prefix/unicode.pf2
set gfxmode=auto
insmod all_video
insmod gfxterm
insmod png
source /boot/grub/theme.cfg
terminal_output gfxterm
...@@ -11,4 +11,5 @@ virt-viewer ...@@ -11,4 +11,5 @@ virt-viewer
firmware-iwlwifi firmware-iwlwifi
network-manager network-manager
network-manager-gnome network-manager-gnome
#systemd-timesyncd systemd-timesyncd
light
#!/bin/sh #!/bin/sh
apt-get remove -y light-locker libreoffice-common libreoffice-core firefox-esr firefox-esr-l10n-fr nano vim apt-get remove -y light-locker libreoffice-common libreoffice-core firefox-esr firefox-esr-l10n-fr nano vim aspell aspell-fr bluetooth bluez bluez-firmware dosfstools raspi-firmware fdisk
# Remove all packages marked as "rc", i.e. all packages deleted
# from the system but for which configuration files are still present
for i in `dpkg -l|grep ^rc|awk {'print $2'}`;do dpkg --force-all -P $i;done
#!/bin/bash #!/bin/bash
# Set brightness at 100% # Disable screen blanking (by default blanks the screen after 10min)
screen=`xrandr -q|grep ' connected'|head -n1|cut -d ' ' -f1`
xrandr --output $screen --brightness 1
# Disable screen blanking
xset s off xset s off
# Set brightness to 100%
light -S 100
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<property name="snap_to_border" type="bool" value="true"/> <property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/> <property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/> <property name="snap_width" type="int" value="10"/>
<property name="theme" type="empty"/> <property name="theme" type="string" value="i3"/>
<property name="title_alignment" type="string" value="center"/> <property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 9"/> <property name="title_font" type="string" value="Sans Bold 9"/>
<property name="title_horizontal_offset" type="int" value="0"/> <property name="title_horizontal_offset" type="int" value="0"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment