Compare commits
1 Commits
4382f14695
...
46e19f5d7d
| Author | SHA1 | Date | |
|---|---|---|---|
| 46e19f5d7d |
39
installJRMC
39
installJRMC
@@ -74,13 +74,17 @@ OPTIONS
|
||||
Uninstall JRiver MC, cleanup service files, and remove firewall rules (does not remove library files)
|
||||
|
||||
SERVICES
|
||||
|
||||
mediaserver
|
||||
Create and enable a mediaserver systemd service (requires an existing X server)
|
||||
|
||||
mediacenter
|
||||
Create and enable a mediacenter systemd service (requires an existing X server)
|
||||
|
||||
x11vnc
|
||||
Create and enable an x11vnc server (requires an existing X server)
|
||||
--vncpass and --display are valid options (see below)
|
||||
|
||||
vncserver
|
||||
Create and enable a new VNC X server
|
||||
|
||||
@@ -90,14 +94,9 @@ OPTIONS
|
||||
--display DISPLAY
|
||||
Display to start vncserver/x11vnc (Default: The current display or :0 if current display
|
||||
is unaccessible)
|
||||
|
||||
createrepo
|
||||
Install hourly service to build latest MC RPM and run createrepo
|
||||
|
||||
TODO:
|
||||
CONTAINERS
|
||||
mediaserver
|
||||
mediacenter
|
||||
createrepo
|
||||
EOF
|
||||
|
||||
# Exit using passed exit code
|
||||
@@ -987,14 +986,12 @@ EOF"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n $_vncpass ]]; then
|
||||
[[ -z $_vncpass ]] && _vncpass=""
|
||||
|
||||
if ! echo "$_vncpass" | vncpasswd -f > "$_vncpassfile"; then
|
||||
err "Could not create VNC password file"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
_novncauth="true"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -1087,24 +1084,6 @@ EOF"
|
||||
|
||||
_setVNCPass
|
||||
|
||||
if [[ -n $_novncauth ]]; then
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -SecurityTypes None -xstartup $HOME/.vnc/jrmc-xstartup"
|
||||
else
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -rfbauth $HOME/.vnc/jrmc_passwd -xstartup $HOME/.vnc/jrmc-xstartup"
|
||||
fi
|
||||
|
||||
if [[ -n $_novncauth ]]; then
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -SecurityTypes None -xstartup /usr/bin/mediacenter$_mversion"
|
||||
else
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -rfbauth $HOME/.vnc/jrmc_passwd -xstartup /usr/bin/mediacenter$_mversion"
|
||||
fi
|
||||
|
||||
if [[ -n $_novncauth ]]; then
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -SecurityTypes None -xstartup /usr/bin/xterm"
|
||||
else
|
||||
_exec_start_cmd="/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -rfbauth $HOME/.vnc/jrmc_passwd -xstartup /usr/bin/xterm"
|
||||
fi
|
||||
|
||||
echo "mediacenter$_mversion" > "$HOME/.vnc/jrmc-xstartup"
|
||||
|
||||
if [[ -z $_display ]]; then
|
||||
@@ -1126,7 +1105,7 @@ After=syslog.target network.target
|
||||
Type=simple
|
||||
$_user_specifier
|
||||
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill $_display > /dev/null 2>&1 || :'
|
||||
ExecStart=$_exec_start_cmd
|
||||
ExecStart=/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -rfbauth $HOME/.vnc/jrmc_passwd -xstartup $HOME/.vnc/jrmc-xstartup
|
||||
ExecStop=/usr/bin/vncserver -kill $_display
|
||||
|
||||
[Install]
|
||||
@@ -1144,7 +1123,7 @@ EOF"
|
||||
|
||||
_setX11VNCPass
|
||||
|
||||
if [[ -n $_novncauth ]]; then
|
||||
if [[ "$_novncauth" == "true" ]]; then
|
||||
_exec_start_cmd="/usr/bin/x11vnc -display $_display -noscr -geometry 1920x1080 -auth guess -forever -bg -nopw"
|
||||
else
|
||||
_exec_start_cmd="/usr/bin/x11vnc -display $_display -noscr -geometry 1920x1080 -auth guess -forever -bg -rfbauth $HOME/.vnc/jrmc_passwd"
|
||||
|
||||
Reference in New Issue
Block a user