Skip to content

Instantly share code, notes, and snippets.

@goldbattle
Last active May 19, 2023 02:11
Show Gist options
  • Save goldbattle/5fe4c87b540752801634ff38f0e1d26f to your computer and use it in GitHub Desktop.
Save goldbattle/5fe4c87b540752801634ff38f0e1d26f to your computer and use it in GitHub Desktop.
# to fix cookie problem because not behind proxy
# need to remove the following
# https://github.com/overleaf/overleaf/issues/1032#issuecomment-1279719119
SHARELATEX_SITE_URL
SHARELATEX_SECURE_COOKIE
SHARELATEX_BEHIND_PROXY
# docker in unraid cmd
docker container ls
docker exec 5de27fc2dea5 tlmgr install scheme-full
# update to scheme-full with older 2022 texlive
# https://github.com/overleaf/overleaf/issues/873#issuecomment-1498442727
bash
export TEXLIVE_PATH=/usr/local/texlive && \
ls -la "${TEXLIVE_PATH}" && \
export TEXLIVE_VERSION="$(find ${TEXLIVE_PATH} -type d -name "2*" -printf "%f\n" | tail -1)" && \
export PATH="${PATH}:${TEXLIVE_PATH}/${TEXLIVE_VERSION}/bin/x86_64-linux" && \
echo ${PATH} && \
tlmgr path add && \
(tlmgr update --self --all || (tlmgr option repository "https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${TEXLIVE_VERSION}/tlnet-final" && tlmgr update --self --all)) && \
luaotfload-tool -fu && \
tlmgr path add && \
tlmgr install scheme-full && \
luaotfload-tool -fu && \
tlmgr path add
# commit these changes....
docker commit 5de27fc2dea5 sharelatex/sharelatex:with-texlive-full
docker images sharelatex/sharelatex --format="{{ .Tag }}"
# paths to ensure we have things backed up
# https://github.com/overleaf/overleaf/wiki/Troubleshooting#running-overleaf-with-a-nfs-filesystem
Host Path 1: /mnt/user/data/sharelatex
Container Path: /var/lib/sharelatex/data
Host Path 2: /mnt/user/appdata/sharelatex/cache
Container Path: /var/lib/sharelatex/data/cache
Host Path 3: /mnt/user/appdata/sharelatex/compiles
Container Path: /var/lib/sharelatex/data/compiles
Host Path 4: /mnt/user/appdata/sharelatex/output
Container Path: /var/lib/sharelatex/data/output
Host Path 5: /mnt/user/appdata/sharelatex/tmp
Container Path: /var/lib/sharelatex/data/tmp
PUID: 99
Container Variable: PUID
PGID: 100
Container Variable: PGID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment