OS

Debian GNU/Linux 12 (bookworm)

Code Server

Homepage

Install

curl -fsSL https://code-server.dev/install.sh | sh
sudo systemctl enable --now code-server@$USER

Extention

LaTeX Workshop

TeX Live

Homepage

Install

mkdir ~/.cache/texlive
cd ~/.cache/texlive
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
zcat < install-tl-unx.tar.gz | tar xf -
mv install-tl-unx.tar.gz backup-install-tl-unx.tar.gz
cd install-tl-*
perl ./install-tl --no-interaction 
# perl ./install-tl --no-interaction --repository https://your.mirror/CTAN/systems/texlive/tlnet

Add texlive to $PATH at ~/.bashrc

# set PATH so it includes texlive bin if it exists
if [ -d "/usr/local/texlive/2023/bin/x86_64-linux" ] ; then
    PATH="/usr/local/texlive/2023/bin/x86_64-linux:$PATH"
fi

Manage

Document

tlmgr option 
tlmgr option repository https://your.mirror/CTAN/systems/texlive/tlnet

tlmgr update -list -self -all
sudo `which tlmgr` update <-self|-all|pkgs>

Apache2

Modules

sudo a2enmod rewrite proxy proxy_http

Site Configuration

Reference

# /etc/apache2/sites-available/code.conf
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*)           ws://ip:8080/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*)           http://ip:8080/$1 [P,L]
ProxyRequests off
ProxyPass / http://ip:8080/ nocanon
ProxyPassReverse / http//ip:8080/