-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-utilities.sh
27 lines (19 loc) · 1.01 KB
/
install-utilities.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
#!/bin/bash
# some apt-get utilities
apt-get update -qq && apt-get -y install vim git-lfs python3-venv libcurl4-openssl-dev libxml2-dev wget curl libtiff-dev qpdf
# awscli tool
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
# minio client
curl https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc && chmod +x /usr/local/bin/mc
# git config
git config --system pull.rebase false && \
git config --system credential.credentialStore cache && \
git config --system credential.cacheOptions "--timeout 30000" && \
echo '"\e[5~": history-search-backward' >> /etc/inputrc && \
echo '"\e[6~": history-search-forward' >> /etc/inputrc
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.0/gcm-linux_amd64.2.6.0.deb && dpkg -i gcm-*.deb && rm gcm-*.deb
# git-credential-manager configure --system
# ensure user owns all of /opt
mkdir /opt/share && chown -R ${NB_USER}:users /opt/share