From 6609372021a9d76610c2f73474b9b19691dccc88 Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Mon, 19 May 2025 12:44:23 +0200 Subject: [PATCH] initial setup --- Containerfile | 32 ++++++++++++++++++++++++++++++++ basics.list | 12 ++++++++++++ fret.list | 9 +++++++++ prep.sh | 3 +++ tex.list | 5 +++++ 5 files changed, 61 insertions(+) create mode 100644 Containerfile create mode 100644 basics.list create mode 100644 fret.list create mode 100644 prep.sh create mode 100644 tex.list diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..9072766 --- /dev/null +++ b/Containerfile @@ -0,0 +1,32 @@ +FROM ubuntu:rolling +# Nix + systemd +RUN apt update -y +RUN apt install curl systemd -y +RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \ + --extra-conf "sandbox = false" \ + --no-start-daemon \ + --no-confirm +ENV PATH="${PATH}:/nix/var/nix/profiles/default/bin" +RUN nix run nixpkgs#hello +CMD [ "/usr/lib/systemd/systemd" ] +# SSH +RUN apt update && apt install -y openssh-server +RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config +RUN echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config +RUN systemctl enable ssh +EXPOSE 22 +# Unminimize +RUN apt install -y unminimize +RUN yes | unminimize +# basic packages +COPY ./basics.list /tmp/apt.list +RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ") +RUN rm /tmp/apt.list +# Latex packages +COPY ./tex.list /tmp/apt.list +RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ") +RUN rm /tmp/apt.list +# FRET packages +COPY ./fret.list /tmp/apt.list +RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ") +RUN rm /tmp/apt.list diff --git a/basics.list b/basics.list new file mode 100644 index 0000000..78e7749 --- /dev/null +++ b/basics.list @@ -0,0 +1,12 @@ +# basics +zsh +fish +git +rsync +wget +vim +tmux +direnv +tcc +ffmpeg +man-db diff --git a/fret.list b/fret.list new file mode 100644 index 0000000..b3689cf --- /dev/null +++ b/fret.list @@ -0,0 +1,9 @@ +# FRET +#clang-19 +#clang-tools-19 +#clang-format-19 +python3-jinja2 +python3-matplotlib +python3-numpy +python3-reportbug +python3-scipy diff --git a/prep.sh b/prep.sh new file mode 100644 index 0000000..fd84b2d --- /dev/null +++ b/prep.sh @@ -0,0 +1,3 @@ +podman build -t ubuntu-nix-basepod . +podman create --name basepod -p 2222:22 -v /var/home/ab/code/envs/home:/root:z -v /var/home/ab/code:/root/code:z localhost/ubuntu-nix-basepod:latest + diff --git a/tex.list b/tex.list new file mode 100644 index 0000000..554715d --- /dev/null +++ b/tex.list @@ -0,0 +1,5 @@ +# latex +texlive-lang-english +texlive-lang-german +texlive-latex-extra +texlive-science