diff --git a/docker/ubuntu_24042_lts/Dockerfile b/docker/ubuntu_24042_lts/Dockerfile new file mode 100644 index 0000000..f3b6a2c --- /dev/null +++ b/docker/ubuntu_24042_lts/Dockerfile @@ -0,0 +1,39 @@ +FROM ubuntu:noble + +ARG DEBIAN_FRONTEND=noninteractive + +USER root + +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + build-essential \ + git \ + apt-transport-https \ + ca-certificates && \ + update-ca-certificates + +RUN useradd -ms /bin/bash org-user + +USER org-user + +WORKDIR /home/org-user/ + +ARG DEPLOYORG_VERSION=unknown +RUN git clone https://github.com/phrb/deploy-org.git + +WORKDIR /home/org-user/deploy-org + +# Requires sudo +USER root + +# Install dependencies +RUN ./install/install.sh -i + +# Does not require sudo +USER org-user + +# Install Emacs configuration +RUN ./install/install.sh -e + +# Test Emacs org exporter +RUN ./install/install.sh -t diff --git a/emacs.d/init.el b/emacs.d/init.el index 6dc06af..4340258 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -135,7 +135,7 @@ (setq-default c-default-style "linux" c-basic-offset 4) -(add-hook 'prog-mode-hook 'linum-mode) +(add-hook 'prog-mode-hook 'display-line-numbers-mode) (require 'which-key) (which-key-mode) @@ -223,6 +223,8 @@ (setq python-shell-completion-native-enable nil) +(setq org-babel-python-command "python3") + (org-babel-do-load-languages 'org-babel-load-languages '( diff --git a/install/setup_os.sh b/install/setup_os.sh index 255e07b..9410349 100755 --- a/install/setup_os.sh +++ b/install/setup_os.sh @@ -30,6 +30,19 @@ function debian_12_lts() { latexmk } +function ubuntu_24042_lts() { + echo "Installing dependencies (requires sudo privileges)" + apt-get update + apt-get install -y --no-install-recommends \ + python3 \ + r-base \ + emacs \ + texlive-latex-extra \ + texlive-science \ + texlive-xetex \ + texlive-luatex \ + latexmk +} function ubuntu_20043_lts() { echo "Installing dependencies (requires sudo privileges)" @@ -123,6 +136,10 @@ function check_os_eval() { ;; "Ubuntu") case "$OS_VERSION" in + "24.04.2 LTS (Noble Numbat)") + os_installing + ubuntu_24042_lts + ;; "20.04.3 LTS (Focal Fossa)") os_installing ubuntu_20043_lts