-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdebug-setup.sh
More file actions
executable file
·34 lines (30 loc) · 940 Bytes
/
debug-setup.sh
File metadata and controls
executable file
·34 lines (30 loc) · 940 Bytes
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
#!/usr/bin/env bash
INSTALL_LIST=""
for i in procps emacs24-nox vim htop curl dnsutils lsof net-tools tcpdump; do
echo "Install $i?"
select yn in "Yes" "No"; do
case $yn in
Yes )
INSTALL_LIST="$INSTALL_LIST $i"
break;;
No )
break;;
esac
done
done
apt-get update
apt-get install -y $INSTALL_LIST
echo "Install jmxterm to debug JMX connections?"
select yn in "Yes" "No"; do
case $yn in
Yes)
mkdir -p /usr/share/lensesio/tools/
wget https://archive.lenses.io/third-party/jmxterm/jmxterm-1.0.0-SNAPSHOT-uber.jar \
-O /usr/share/lensesio/tools/jmxterm-1.0.0.jar
echo "Installed at '/usr/share/lensesio/tools/jmxterm-1.0.0.jar'."
echo "Run with: 'java -jar /usr/share/lensesio/tools/jmxterm-1.0.0.jar'"
break;;
No)
break;;
esac
done