Compare commits
1 Commits
0882cfba59
...
d6649fa249
| Author | SHA1 | Date | |
|---|---|---|---|
| d6649fa249 |
21
installJRMC
21
installJRMC
@@ -1076,10 +1076,19 @@ EOF"
|
|||||||
_setDisplayAndPort() {
|
_setDisplayAndPort() {
|
||||||
|
|
||||||
# Check _display, else DISPLAY, else set to :0 by default
|
# Check _display, else DISPLAY, else set to :0 by default
|
||||||
[[ -z $_display ]] && _display="${DISPLAY-":0"}"
|
if [[ -n $_display ]]; then
|
||||||
|
_next_display="$_display"
|
||||||
|
elif [[ -n $DISPLAY ]]; then
|
||||||
|
_display="${DISPLAY}"
|
||||||
|
_displaynum="${_display#:}" # strip colon
|
||||||
|
_displaynum="${_displaynum%.*}" # strip suffix
|
||||||
|
_next_displaynum=$(( _displaynum + 1 ))
|
||||||
|
_next_display=":$_next_displaynum"
|
||||||
|
else
|
||||||
|
_display=":0"
|
||||||
|
_next_display=":1"
|
||||||
|
fi
|
||||||
|
|
||||||
_displaynum="${_display#:}" # strip colon
|
|
||||||
_displaynum="${_displaynum%.*}" # strip suffix
|
|
||||||
_port=$(( _displaynum + 5900 ))
|
_port=$(( _displaynum + 5900 ))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1182,10 +1191,6 @@ EOF"
|
|||||||
|
|
||||||
_installPackage tigervnc-server
|
_installPackage tigervnc-server
|
||||||
|
|
||||||
local _next_displaynum=$(( _displaynum + 1 ))
|
|
||||||
_next_display=":$_next_displaynum"
|
|
||||||
#local _service_port=$(( _port + 1 ))
|
|
||||||
|
|
||||||
_setVNCPass
|
_setVNCPass
|
||||||
|
|
||||||
if [[ -n $_novncauth ]]; then
|
if [[ -n $_novncauth ]]; then
|
||||||
@@ -1232,7 +1237,7 @@ EOF"
|
|||||||
|
|
||||||
debug "Running: ${FUNCNAME[0]}"
|
debug "Running: ${FUNCNAME[0]}"
|
||||||
|
|
||||||
installPackage xorg-x11-utils
|
_installPackage xorg-x11-utils
|
||||||
_res=$(xdpyinfo | grep dimensions | awk '{print $2}')
|
_res=$(xdpyinfo | grep dimensions | awk '{print $2}')
|
||||||
}
|
}
|
||||||
_getResolution
|
_getResolution
|
||||||
|
|||||||
Reference in New Issue
Block a user