-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup_ubuntu.sh
executable file
·55 lines (52 loc) · 1.57 KB
/
setup_ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# apt packages
# * biber (for generating bibliography)
# * build-essential (for `make` to run the makefile)
# * cm-super (for type1ec.sty)
# * clang-format (to format C++ code snippets)
# * cmake (for building C++ plot generators)
# * dvipng (to convert DVIs to PNGs)
# * inkscape (to convert SVGs to PDFs)
# * latexmk
# * python3 >= 3.6 (for generating plots)
# * python3-pip (for installing required Python packages)
# * python3-requests (for .tex HTTP link checker)
# * python3-setuptools (for dependencies of setup.py)
# * python3-wheel (for "setup.py bdist_wheel")
# * texlive-base (for latexmk)
# * texlive-bibtex-extra (for additional BibTeX styles and bibliography
# databases)
# * texlive-generic-extra (for miscellaneous LaTeX .sty files)
# * texlive-latex-extra (for bibtex and makeglossaries)
# * texlive-xetex (for xelatex)
sudo apt-get update -y
sudo apt-get install -y \
biber \
build-essential \
cm-super \
clang-format \
cmake \
dvipng \
inkscape \
latexmk \
python3 \
python3-pip \
python3-requests \
python3-setuptools \
python3-wheel \
texlive-base \
texlive-bibtex-extra \
texlive-latex-extra \
texlive-xetex
# Install ImageMagick 7 (to compress JPEGs)
sudo apt-get remove imagemagick
git clone https://github.com/SoftCreatR/imei
pushd imei
chmod +x imei.sh
sudo ./imei.sh
popd
# The Ubuntu 22.04 packages are too old
# Python packages
# * black (to format Python source code)
# * pylint (for Python linting)
pip3 install --user --break-system-packages autoflake black==24.3.0 pylint qrcode