47 Commits

Author SHA1 Message Date
032b159827 Cleanup latest version checks 2022-01-12 16:56:46 -05:00
1f12e56dfb Small cleanup, finally remove EXEC_USER 2022-01-12 15:47:34 -05:00
c3f6f4d629 Docs 2022-01-12 13:42:25 -05:00
06f9934b64 Fix bash commands 2022-01-12 13:14:39 -05:00
6812b457cb Squashed it 2022-01-12 13:12:15 -05:00
f8c60b6240 Squashing service_type bug 2022-01-12 13:09:01 -05:00
43dbdddfdd Squashing service_type bug 2022-01-12 13:07:51 -05:00
eb328453ea Squashing service_type bug 2022-01-12 13:06:04 -05:00
d8c452eb4d Squashed service_type bug 2022-01-12 12:56:28 -05:00
01e8f3a488 Temp debug, don't use 2022-01-12 12:53:45 -05:00
bdf57f59a7 Temp debug, don't use 2022-01-12 12:47:14 -05:00
ddf5aac1ca Temp debug, don't use 2022-01-12 12:46:04 -05:00
2a45dbb3b7 Temp debug, don't use 2022-01-12 12:42:36 -05:00
e24d1bd4bf Temp debug, don't use 2022-01-12 12:23:15 -05:00
52a5734ee2 Remove pesky legacy cmds 2022-01-12 11:55:25 -05:00
73f15fa946 Add user services to uninstall 2022-01-12 11:52:59 -05:00
eda53412fa Finally remove agnostic commands 2022-01-12 11:35:38 -05:00
690700bff3 Small refactor 2022-01-12 10:12:05 -05:00
79c185770e Finally get rid of INSTALL_TYPE 2022-01-12 09:28:47 -05:00
f2e7924aab Cleanup debug code 2022-01-12 08:46:16 -05:00
a60ab0935a Remove unecessary terminators 2022-01-11 21:39:36 -05:00
678db9591a Fix up translations 2022-01-11 19:10:35 -05:00
d99d41827e Fix up translations 2022-01-11 19:09:18 -05:00
cdae1f9b20 Add neon support 2022-01-10 15:46:34 -05:00
d2ac84802f Add neon support 2022-01-10 15:24:17 -05:00
a5ff3d9fe1 Add --service-type and rework permissions 2022-01-10 15:03:11 -05:00
76e1c5e908 Start simplifying user 2022-01-08 13:15:10 -05:00
382b462922 Prevent injections 2022-01-07 23:35:30 -05:00
fa96735448 Expand eval usage 2022-01-07 23:09:17 -05:00
824a47864d Expand eval usage 2022-01-07 23:05:08 -05:00
8c52649990 Expand eval usage 2022-01-07 22:11:27 -05:00
8d8f710633 Expand eval usage 2022-01-07 21:36:36 -05:00
77fa9825f2 Expand eval usage 2022-01-07 21:35:42 -05:00
5719cac546 Expand eval usage 2022-01-07 19:03:33 -05:00
edc2568efb Expand eval usage 2022-01-07 19:02:22 -05:00
4169b18789 Expand eval usage 2022-01-07 18:58:50 -05:00
21064eb7d0 Expand eval usage 2022-01-07 18:55:58 -05:00
c746dd3fc9 Try new eval method 2022-01-07 17:17:23 -05:00
b1eb2a47ac Try new eval method 2022-01-07 17:12:26 -05:00
c63ae42a5f Try new eval method 2022-01-07 17:06:06 -05:00
a232119b8d Increase crossbuilding flexibility 2022-01-07 12:20:44 -05:00
e7c447332e Increase crossbuilding flexibility 2022-01-07 12:16:54 -05:00
7c4ed17dbe Increase crossbuilding flexibility 2022-01-07 12:15:56 -05:00
7a548df5d1 Increase crossbuilding flexibility 2022-01-07 12:14:09 -05:00
c65205c8e6 Increase crossbuilding flexibility 2022-01-07 12:12:50 -05:00
c37ff5ec34 Increase crossbuilding flexibility 2022-01-07 12:10:40 -05:00
7ea4205c3a Increase crossbuilding flexibility 2022-01-07 12:08:31 -05:00
2 changed files with 615 additions and 690 deletions

View File

@@ -1,6 +1,6 @@
# installJRMC
This program will install [JRiver Media Center](https://www.jriver.com/) and associated helper services on Fedora, CentOS, Ubuntu, Debian, Linux Mint, and SUSE.
This program will install [JRiver Media Center](https://www.jriver.com/) and associated helper services on most major distros.
## README
@@ -18,37 +18,36 @@ Running `installJRMC` without any options will install the latest version of JRi
You can always find the latest supported options by running `installJRMC --help`.
```text
--install, -i repo|rpm
--install, -i repo|rpm|deb
repo: Install MC from repository, future updates will be handled by the system package manager
rpm: Build and install MC locally (RPM-based OSes only)
deb: Download and install official MC package locally (useful with --compat flag for older distros)
--build
Build RPM from source DEB (no installation)
--build-suse
Override OS detection and build SUSE RPM
Build RPM from source DEB but do not install
--target opensuse|fedora|centos
Crossbuild RPM for target distro
--compat
Build/install RPM without minimum library specifiers
--mcversion VERSION
Build or install a specific MC version, ex. "28.0.25"
--outputdir PATH
Generate rpmbuild output in this PATH (Default: ./output)
--restorefile RESTOREFILE
Restore file location for automatic license registration (Default: skip registration)
Restore file location for automatic license registration
--betapass PASSWORD
Enter beta team password for access to beta builds
--service, -s SERVICE
See SERVICES section below for the list of services to deploy
--service-user USER
Install systemd services and containers for user USER (Default: executing user)
--service-type user|system
Starts services at boot (system) or user login (user) (Default: system)
--container, -c CONTAINER (TODO: Under construction)
See CONTAINERS section below for a list of containers to deploy
--createrepo
Build rpm, copy to webroot, and run createrepo
--createrepo-suse
Override OS detection and run --createrepo with SUSE RPM
--createrepo-webroot PATH
The webroot directory to install the repo (Default: /var/www/jriver/)
--createrepo-user USER
The web server user (Default: current user)
--compat
Build/install RPM without minimum version specifiers
Build rpm, copy to webroot, and run createrepo.
--createrepo-webroot PATH
The webroot directory to install the repo (Default: /var/www/jriver/)
--createrepo-user USER
The web server user if different from the current user
--version, -v
Print this script version and exit
--debug, -d
@@ -56,12 +55,12 @@ You can always find the latest supported options by running `installJRMC --help`
--help, -h
Print help dialog and exit
--uninstall, -u
Uninstall JRiver MC, cleanup service files, and remove firewall rules (does not remove library files)
Uninstall JRiver MC, cleanup service files, and remove firewall rules (does not remove library or media files)
```
### services
When installing systemd services it is important to execute `installJRMC` as the user you wish to run the services. Typically this is your normal user account but for some installations (container) it may be necessary to execute the script as root. If so, use `--service-user root` to override safety checks.
When installing systemd services it is important to execute `installJRMC` as the user you wish to run the services. MC services are installed as system-level services (`--service-type=system`) by default. They can be manipulated by the root user: `sudo systemctl stop jriver-servicename@username.service`. It is also possible to create user-level services using `--service-type=user` that can be manipulated by the current user: `systemctl --user stop jriver-mediacenter`.
```text
jriver-mediaserver
@@ -74,11 +73,9 @@ jriver-x11vnc
jriver-xvnc
Enable and start a new Xvnc session running JRiver Media Center
--vncpass PASSWORD
Set vnc password for x11vnc/Xvnc access. If no password is set, the script
will either use existing password stored in ~/.vnc/jrmc_passwd or use no password
Set vnc password for x11vnc/Xvnc access. If no password is set, the script will either use existing password stored in ~/.vnc/jrmc_passwd or use no password
--display DISPLAY
Display to start x11vnc/Xvnc (Default: The current display (x11vnc) or the
current display incremented by 1 (Xvnc))
Manually specify display to use for x11vnc/Xvnc (ex. ':1')
jriver-createrepo
Install hourly service to build latest MC RPM and run createrepo
```
@@ -105,35 +102,39 @@ It is possible to install multiple services at one time using multiple `--servic
* `installJRMC`
Installs the latest version of JRiver Media Center from the repository.
Install the latest version of JRiver Media Center from the repository.
* `installJRMC --install repo --service jriver-mediaserver`
Installs JRiver Media Center from the repository and starts/enables the /MediaServer service.
Install JRiver Media Center from the repository and starts/enables the /MediaServer service.
* `installJRMC --install rpm --restorefile /path/to/license.mjr --mcversion 28.0.87`
Builds JRiver Media Center version 28.0.87 RPM from the source DEB, installs it (RPM distros only), and activates it using the specified .mjr license file.
Build JRiver Media Center version 28.0.87 RPM from the source DEB, installs it (RPM distros only), and activates it using the specified .mjr license file.
* `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user`
Builds the RPM, moves it to the webroot, and runs createrepo as `www-user`.
Build the RPM, moves it to the webroot, and runs createrepo as `www-user`.
* `installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user`
Installs the jriver-createrepo timer and service to build the RPM, move it to the webroot, and run createrepo as `www-user` hourly.
Install the jriver-createrepo timer and service to build the RPM, move it to the webroot, and run createrepo as `www-user` hourly.
* `installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter --vncpass "letmein"`
Installs services to share the existing local desktop via VNC and automatically run Media Center on startup.
Install services to share the existing local desktop via VNC and automatically run Media Center on startup.
* `installJRMC --install repo --service jriver-xvnc --display ":2"`
Installs an Xvnc server on display ':2' that starts Media Center.
Install an Xvnc server on display ':2' that starts Media Center.
* `installJRMC --install deb --compat`
Install a more widely-compatible version of MC on deb-based distros.
* `installJRMC --uninstall`
Uninstalls JRiver Media Center and its associated services and firewall rules. This will **not** remove your media, media library/database, or automated library backup folder.
Uninstall JRiver Media Center and its associated services and firewall rules. This will **not** remove your media, media library/database, or automated library backup folder.
## Additional Info

File diff suppressed because it is too large Load Diff