Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·61 lines (41 loc) · 1.82 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·61 lines (41 loc) · 1.82 KB
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
56
57
58
59
60
61
#!/usr/bin/env bash
SUDO=sudo
### Enable exit on error ######################################################
set -e
### Update package manager cache ##############################################
export DEBIAN_FRONTEND=noninteractive
$SUDO apt-get update -y
### Install poetry inside pipx ################################################
$SUDO python -m pip install pipx
$SUDO python -m pipx install poetry
$SUDO pipx ensurepath
export PATH="$PATH:$HOME/.local/bin" # Works at least for root. That's fine for docker/devcontainers
### Make available drawio in headless mode ####################################
# Install necessary libraries
$SUDO apt-get install -y libasound2t64 || $SUDO apt-get install -y libasound2
# Install drawio
if command -v drawio >/dev/null 2>&1; then
echo "drawio is already installed"
else
drawio_package=drawio-amd64-24.4.13.deb
curl -L -o "$drawio_package" "https://github.com/jgraph/drawio-desktop/releases/download/v24.4.13/$drawio_package"
$SUDO apt-get install -y "./$drawio_package"
rm "$drawio_package"
fi
# Install virtual X-Server
$SUDO apt-get install -y xvfb
### Install java needed by plantuml ###########################################
$SUDO apt-get install -y default-jre
### Install graphviz (dot) ####################################################
$SUDO apt-get install -y graphviz
dot -V
### Install mermaid command line tool #########################################
# Install nodejs (brings package manager npm with it)
curl -fsSL https://deb.nodesource.com/setup_20.x | $SUDO -E bash -
$SUDO apt-get install -y nodejs
# Install mermaid
$SUDO npm install -g @mermaid-js/mermaid-cli
mmdc --version
### Reload environment (variables) ############################################
source ~/.bashrc
### EOF #######################################################################