-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinstall-extra.sh
More file actions
executable file
·89 lines (74 loc) · 3.83 KB
/
install-extra.sh
File metadata and controls
executable file
·89 lines (74 loc) · 3.83 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
set -ex
cd /root
# contains prebuilt/source build software (not from apt/dnf) because of many reasons
# NGINX with custom patches
BUILDER_DIR=/usr/local/lib/nginx-builder; [ ! -d "$BUILDER_DIR" ] && \
git clone https://github.com/domcloud/nginx-builder/ $BUILDER_DIR || git -C $BUILDER_DIR pull
cd $BUILDER_DIR/ && make install DOWNLOAD_V=1.3.0 && make clean && cd /root
ln -fs /usr/local/sbin/nginx /usr/sbin/nginx # nginx compatibility
# Composer that's ree from apt deps
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# User scripts
curl -sSLo /usr/local/bin/restart https://raw.githubusercontent.com/domcloud/bridge/main/userkill.sh && chmod 755 /usr/local/bin/restart
curl -sSLo /usr/local/bin/loadenv https://raw.githubusercontent.com/domcloud/bridge/main/userloadenv.sh && chmod 755 /usr/local/bin/loadenv
# Proxyfix
PROXYFIX=proxy-fix-linux-$( [ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo "amd64" )
if ! command -v proxfix &> /dev/null; then
curl -sSLO https://github.com/domcloud/proxy-fix/releases/download/v0.2.5/$PROXYFIX.tar.gz
tar -xf $PROXYFIX.tar.gz && mv -f $PROXYFIX /usr/local/bin/proxfix && rm -rf $PROXYFIX*
fi
# Rdproxy
RDPROXY=rdproxy-linux-$( [ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo "amd64" )
if ! command -v rdproxy &> /dev/null; then
curl -sSLO https://github.com/domcloud/rdproxy/releases/download/v0.3.2/$RDPROXY.tar.gz
tar -xf $RDPROXY.tar.gz && mv -f $RDPROXY /usr/local/bin/rdproxy && rm -rf $RDPROXY*
fi
# Pathman
PATHMAN_V=0.6.0
if ! command -v pathman &> /dev/null; then
PATHMAN=pathman-v${PATHMAN_V}-linux-$( [ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo "amd64_v1" )
curl -sSLO https://github.com/therootcompany/pathman/releases/download/v$PATHMAN_V/$PATHMAN.tar.gz
tar -xf $PATHMAN.tar.gz && mv -f $PATHMAN /usr/local/bin/pathman && rm -f $PATHMAN.tar.gz
fi
# source build because of glibc issues in prebuild
if ! command -v nvim &> /dev/null; then
git clone https://github.com/neovim/neovim --branch release-0.11 --filter=tree:0
cd neovim; make CMAKE_BUILD_TYPE=RelWithDebInfo install; cd ..; rm -rf neovim
fi
# needed by tree-sitter
if ! . "$HOME/.cargo/env" &> /dev/null; then
curl "https://sh.rustup.rs" -sSf | sh -s -- -y --default-toolchain stable --profile minimal
. "$HOME/.cargo/env"
fi
# source build because of https://github.com/tree-sitter/tree-sitter/issues/282
if ! command -v tree-sitter &> /dev/null; then
git clone https://github.com/tree-sitter/tree-sitter --branch release-0.26 --filter=tree:0
cargo install --path tree-sitter/crates/cli; rm -rf tree-sitter
mv /root/.cargo/bin/tree-sitter /usr/local/bin/
fi
# prebuilt Lazygit
LAZYGIT_V=0.58.0
if ! command -v lazygit &> /dev/null; then
LAZYGIT=lazygit_${LAZYGIT_V}_Linux_$( [ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo "x86_64" )
curl -sSLO https://github.com/jesseduffield/lazygit/releases/download/v$LAZYGIT_V/$LAZYGIT.tar.gz
tar -xf $LAZYGIT.tar.gz && mv lazygit /usr/local/bin/ && rm -f $LAZYGIT.tar.gz
fi
# prebuilt Lazydocker
LAZYDOCK_V=0.24.3
if ! command -v lazydocker &> /dev/null; then
LAZYDOCK=lazydocker_${LAZYDOCK_V}_Linux_$( [ "$(uname -m)" = "aarch64" ] && echo "arm64" || echo "x86_64" )
curl -sSLO https://github.com/jesseduffield/lazydocker/releases/download/v$LAZYDOCK_V/$LAZYDOCK.tar.gz
tar -xf $LAZYDOCK.tar.gz && mv lazydocker /usr/local/bin/ && rm -f $LAZYDOCK.tar.gz
fi
# Forked Neofetch
curl -sSLo /usr/local/bin/neofetch https://github.com/hykilpikonna/hyfetch/raw/1.99.0/neofetch
chmod +x /usr/local/bin/neofetch
# Rdfind
RDFIND=rdfind-1.6.0
curl -sSL https://rdfind.pauldreik.se/$RDFIND.tar.gz | tar -xzf -
cd $RDFIND; ./configure --disable-debug ; make install; cd .. ; rm -rf $RDFIND*
# Earlyoom
EARLYOOM=1.9.0
git clone https://github.com/rfjakob/earlyoom --filter=blob:none
cd earlyoom; make install; cd .. ; rm -rf earlyoom