مقایسه کامیتها
1 کامیتها
46e19f5d7d
...
4382f14695
| مولف | SHA1 | تاریخ | |
|---|---|---|---|
| 4382f14695 |
45
installJRMC
45
installJRMC
@@ -74,17 +74,13 @@ 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
|
||||
|
||||
@@ -94,9 +90,14 @@ 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
|
||||
@@ -986,11 +987,13 @@ EOF"
|
||||
fi
|
||||
fi
|
||||
|
||||
[[ -z $_vncpass ]] && _vncpass=""
|
||||
|
||||
if ! echo "$_vncpass" | vncpasswd -f > "$_vncpassfile"; then
|
||||
err "Could not create VNC password file"
|
||||
return 1
|
||||
if [[ -n $_vncpass ]]; then
|
||||
if ! echo "$_vncpass" | vncpasswd -f > "$_vncpassfile"; then
|
||||
err "Could not create VNC password file"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
_novncauth="true"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -1084,6 +1087,24 @@ 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
|
||||
@@ -1105,7 +1126,7 @@ After=syslog.target network.target
|
||||
Type=simple
|
||||
$_user_specifier
|
||||
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill $_display > /dev/null 2>&1 || :'
|
||||
ExecStart=/usr/bin/vncserver $_display -geometry 1440x900 -alwaysshared -fg -rfbauth $HOME/.vnc/jrmc_passwd -xstartup $HOME/.vnc/jrmc-xstartup
|
||||
ExecStart=$_exec_start_cmd
|
||||
ExecStop=/usr/bin/vncserver -kill $_display
|
||||
|
||||
[Install]
|
||||
@@ -1123,7 +1144,7 @@ EOF"
|
||||
|
||||
_setX11VNCPass
|
||||
|
||||
if [[ "$_novncauth" == "true" ]]; then
|
||||
if [[ -n $_novncauth ]]; 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"
|
||||
|
||||
مرجع در شماره جدید
Block a user