Commit 48cf88ca authored by Eric Duminil's avatar Eric Duminil
Browse files

Don't start insel

parent dda1538f
...@@ -2,12 +2,6 @@ FROM jlesage/baseimage-gui:ubuntu-22.04-v4 ...@@ -2,12 +2,6 @@ FROM jlesage/baseimage-gui:ubuntu-22.04-v4
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install curl \ qpdfview yaru-theme-icon \
--no-install-recommends -y && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
################################################################################ ################################################################################
# Config # # Config #
################################################################################ ################################################################################
...@@ -25,6 +19,7 @@ ENV WEB_AUDIO=0 ...@@ -25,6 +19,7 @@ ENV WEB_AUDIO=0
################################################################################ ################################################################################
RUN apt-get update && \ RUN apt-get update && \
apt-get install tzdata make \ apt-get install tzdata make \
curl qpdfview yaru-theme-icon \
pluma qalculate-gtk \ pluma qalculate-gtk \
pcmanfm gtk2-engines-pixbuf adwaita-qt\ pcmanfm gtk2-engines-pixbuf adwaita-qt\
--no-install-recommends -y && \ --no-install-recommends -y && \
......
...@@ -10,9 +10,9 @@ set -u # Complains if a variable is undefined ...@@ -10,9 +10,9 @@ set -u # Complains if a variable is undefined
export HOME=/config export HOME=/config
cd $HOME cd $HOME
# NOTE: Home Required for Java preferences. Set by startup script to /dev/null otherwise # # NOTE: Home Required for Java preferences. Set by startup script to /dev/null otherwise
# NOTE: https://askubuntu.com/a/957184/743264 to avoid "GLX version 1.3 or higher is required"" # # NOTE: https://askubuntu.com/a/957184/743264 to avoid "GLX version 1.3 or higher is required""
export _JAVA_OPTIONS="-Duser.home=$HOME -Dprism.order=sw" # export _JAVA_OPTIONS="-Duser.home=$HOME -Dprism.order=sw"
######################## ########################
# Config files # # Config files #
...@@ -28,45 +28,45 @@ fi ...@@ -28,45 +28,45 @@ fi
# Documents folder # # Documents folder #
######################## ########################
mkdir -p /config/Documents/insel.work/inselUB/doc # mkdir -p /config/Documents/insel.work/inselUB/doc
mkdir -p /config/Documents/insel.work/inselUB/resources # mkdir -p /config/Documents/insel.work/inselUB/resources
mkdir -p /config/Documents/insel.work/inselUB/src # mkdir -p /config/Documents/insel.work/inselUB/src
#cp userblocks makefile #cp userblocks makefile
cp /usr/local/insel/makefile /config/Documents/insel.work/inselUB/resources/makefile # cp /usr/local/insel/makefile /config/Documents/insel.work/inselUB/resources/makefile
######################## ########################
# Welcome files # # Welcome files #
######################## ########################
# If volume was imported from another user # If volume was imported from another user
rm -f /config/Documents/insel.work/hello_*.txt # rm -f /config/Documents/insel.work/hello_*.txt
echo "Welcome to Web-INSEL, ${STUDENT}! # echo "Welcome to Web-INSEL, ${STUDENT}!
#
You can save your models in this folder. # You can save your models in this folder.
#
Here are some common symbols which you could copy-paste, e.g. for diagrams: # Here are some common symbols which you could copy-paste, e.g. for diagrams:
#
$ % & [ ] { } ² ³ / \\ ° # € $ % & [ ] { } ² ³ / \\ °
Α α, Β β, Γ γ, Δ δ, Ε ε, Ζ ζ, # Α α, Β β, Γ γ, Δ δ, Ε ε, Ζ ζ,
Η η, Θ θ, Ι ι, Κ κ, Λ λ, Μ μ, # Η η, Θ θ, Ι ι, Κ κ, Λ λ, Μ μ,
Ν ν, Ξ ξ, Ο ο, Π π, Ρ ρ, Σ σ/ς, # Ν ν, Ξ ξ, Ο ο, Π π, Ρ ρ, Σ σ/ς,
Τ τ, Υ υ, Φ φ, Χ χ, Ψ ψ, Ω ω # Τ τ, Υ υ, Φ φ, Χ χ, Ψ ψ, Ω ω
" > /config/Documents/insel.work/hello_${STUDENT}.txt # " > /config/Documents/insel.work/hello_${STUDENT}.txt
#
echo "Here is a folder shared between all users. # echo "Here is a folder shared between all users.
#
You can upload files to this folder at https://simstadt.hft-stuttgart.de/sence-mmb/upload/ # You can upload files to this folder at https://simstadt.hft-stuttgart.de/sence-mmb/upload/
#
Every day, models will be saved to https://simstadt.hft-stuttgart.de/download/Misc/sence_insel_models.zip # Every day, models will be saved to https://simstadt.hft-stuttgart.de/download/Misc/sence_insel_models.zip
" > /config/Documents/shared/README.md # " > /config/Documents/shared/README.md
#
if [ ! -f /config/Documents/insel.work/01_sum.vseit ]; then # if [ ! -f /config/Documents/insel.work/01_sum.vseit ]; then
echo "Adding example model" # echo "Adding example model"
cp /usr/share/01_sum.vseit /config/Documents/insel.work/ # cp /usr/share/01_sum.vseit /config/Documents/insel.work/
fi # fi
######################## ########################
# Start programs # # Start programs #
...@@ -74,7 +74,7 @@ fi ...@@ -74,7 +74,7 @@ fi
rm -rf /config/log rm -rf /config/log
#rm -rf /config/xdg #rm -rf /config/xdg
exec pcmanfm /config/Documents/insel.work & exec pcmanfm /config/ &
insel -v # insel -v
exec insel_8 # exec insel_8
#exec xterm -e bash exec xterm -e bash
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment