Compare commits
47 Commits
23ab8b7adf
...
032b159827
| Author | SHA1 | Date | |
|---|---|---|---|
| 032b159827 | |||
| 1f12e56dfb | |||
| c3f6f4d629 | |||
| 06f9934b64 | |||
| 6812b457cb | |||
| f8c60b6240 | |||
| 43dbdddfdd | |||
| eb328453ea | |||
| d8c452eb4d | |||
| 01e8f3a488 | |||
| bdf57f59a7 | |||
| ddf5aac1ca | |||
| 2a45dbb3b7 | |||
| e24d1bd4bf | |||
| 52a5734ee2 | |||
| 73f15fa946 | |||
| eda53412fa | |||
| 690700bff3 | |||
| 79c185770e | |||
| f2e7924aab | |||
| a60ab0935a | |||
| 678db9591a | |||
| d99d41827e | |||
| cdae1f9b20 | |||
| d2ac84802f | |||
| a5ff3d9fe1 | |||
| 76e1c5e908 | |||
| 382b462922 | |||
| fa96735448 | |||
| 824a47864d | |||
| 8c52649990 | |||
| 8d8f710633 | |||
| 77fa9825f2 | |||
| 5719cac546 | |||
| edc2568efb | |||
| 4169b18789 | |||
| 21064eb7d0 | |||
| c746dd3fc9 | |||
| b1eb2a47ac | |||
| c63ae42a5f | |||
| a232119b8d | |||
| e7c447332e | |||
| 7c4ed17dbe | |||
| 7a548df5d1 | |||
| c65205c8e6 | |||
| c37ff5ec34 | |||
| 7ea4205c3a |
57
README.md
57
README.md
@@ -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
|
||||
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 (Default: current user)
|
||||
--compat
|
||||
Build/install RPM without minimum version specifiers
|
||||
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
|
||||
|
||||
|
||||
1230
installJRMC
1230
installJRMC
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user