-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVirtualConsole.sh
More file actions
executable file
·35 lines (27 loc) · 971 Bytes
/
VirtualConsole.sh
File metadata and controls
executable file
·35 lines (27 loc) · 971 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
35
#!/bin/bash
#FOR MAC OS:
# brew tap /homebrew/cask
# brew tap homebrew/cask-versions
# brew install java6
# FOR MAC OS WITH M1 CHIP
# curl -s "https://get.sdkman.io" | bash
# sdk list java
# sdk install java 11.0.10-zulu
# Verify version 6 is installed (and other versions)
# /usr/libexec/java_home -V
echo -n 'Host: '
read drachost
FILE="avctKVM.jar"
if [ ! -f $FILE ]; then
echo "KVM file does not exist..."
echo "Downloading..."
# This link is from the viewer.jnlp file.
# It is a necessary file.
wget https://$drachost:443/software/avctKVM.jar
fi
#echo -n 'Username: '
read -p "Username: " dracuser
dracuser=${dracuser:-root}
read -p "Password: " dracpwd
dracpwd=${dracpwd:-SECRET_PASSWORD}
/usr/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost title=$drachost kmport=5900 vport=5900 user=$dracuser passwd=$dracpwd apcp=1 version=2 vmprivilege=true "helpurl=https://$drachost:443/help/contents.html"