Skip to content

Update the installation script to include Ubuntu 24.04.2 LTS and update the python version used #2

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 39 additions & 0 deletions docker/ubuntu_24042_lts/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
'(
Expand Down
17 changes: 17 additions & 0 deletions install/setup_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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
Expand Down
Loading