.README.bbcode 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. [size=20pt]installJRMC[/size]
  2. This program installs [url=https://www.jriver.com/]JRiver Media Center[/url] and associated services on most Linux distributions.
  3. You can find the latest version of installJRMC, changelog, and documentation in [url=https://git.bryanroessler.com/bryan/installJRMC]my repository[/url].
  4. [size=18pt]tl;dr (One-line MC install)[/size]
  5. [code]curl https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC|bash[/code]
  6. [size=18pt]Instructions[/size]
  7. Download and unzip installJRMC from the attachment below or grab the latest stable version directly:
  8. [code]curl -O https://git.bryanroessler.com/bryan/installJRMC/raw/master/installJRMC &&
  9. chmod +x ./installJRMC &&
  10. ./installJRMC [--option [ARGUMENT]]
  11. [/code]
  12. [tt]installJRMC[/tt] defaults to [tt]--install=repo[/tt] on distros with MC repositories and [tt]--install=local[/tt] on all others.
  13. Specifying [tt]--build[/tt], [tt]--createrepo[/tt], [tt]--service[/tt], or [tt]--uninstall[/tt] disables the default install method.
  14. [size=18pt]Options[/size]
  15. [code]
  16. $ installJRMC --help
  17. --install, -i repo|local
  18. repo: Install MC from repository, future updates will be handled by the system package manager.
  19. local: Build and install MC package from official source package.
  20. --build[=suse|fedora|centos]
  21. Build RPM from source DEB but do not install.
  22. Optionally, specify a target distro for cross-building (ex. --build=suse, note the '=').
  23. --compat
  24. Build/install MC without minimum dependency version requirements.
  25. --mcversion VERSION
  26. Specify the MC version, ex. "33", "34.0.51", or "34.0.51-1" (default: latest).
  27. --arch ARCH
  28. Specify the target MC architecture, ex. "amd64", "arm64", etc (default: host architecture).
  29. --mcrepo REPO
  30. Specify the MC repository, ex. "bullseye", "bookworm", "noble", etc (default: host or official).
  31. --outputdir PATH
  32. Generate reusable installJRMC output in this PATH (default: ./output).
  33. --restorefile RESTOREFILE
  34. Restore file location for automatic license registration.
  35. --betapass PASSWORD
  36. Enter beta team password for access to beta builds.
  37. --service, -s SERVICE
  38. See SERVICES section below for the list of services to deploy.
  39. --service-type user|system
  40. Starts services at boot (system) or user login (user) (default: per-service, see SERVICES).
  41. --container, -c CONTAINER (TODO: Under construction)
  42. See CONTAINERS section below for a list of containers to deploy.
  43. --createrepo[=suse|fedora|centos]
  44. Build rpm, copy to webroot, and run createrepo.
  45. Optionally, specify a target distro for non-native repo (ex. --createrepo=fedora, note the '=').
  46. --createrepo-webroot PATH
  47. The webroot directory to install the repo (default: /var/www/jriver/).
  48. --createrepo-user USER
  49. The web server user if different from the current user.
  50. --no-update
  51. Disable the installJRMC update check.
  52. --yes, -y, --auto
  53. Always assumes yes for questions.
  54. --version, -v
  55. Print installJRMC version and exit.
  56. --debug, -d
  57. Print debug output.
  58. --help, -h
  59. Print help dialog and exit.
  60. --uninstall, -u
  61. Uninstall JRiver MC, service files, firewall rules, etc.
  62. [/code]
  63. [size=18pt]Services[/size]
  64. [code]jriver-mediaserver (user)
  65. Enable and start a mediaserver systemd service (requires an existing X server).
  66. jriver-mediacenter (user)
  67. Enable and start a mediacenter systemd service (requires an existing X server).
  68. jriver-x11vnc (user)
  69. Enable and start x11vnc for the local desktop (requires an existing X server, does NOT support Wayland).
  70. --vncpass and --display are also valid options (see below).
  71. jriver-xvnc (system)
  72. Enable and start a new Xvnc session running JRiver Media Center.
  73. --vncpass PASSWORD
  74. 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 else no password.
  75. --display DISPLAY
  76. Manually specify display to use for x11vnc/Xvnc (ex. ':1').
  77. jriver-createrepo (system)
  78. Install hourly service to build latest MC RPM and run createrepo.
  79. [/code]
  80. Services use a sane default [tt]--service-type[/tt] listed next to the service name in the Services description.
  81. User services can be manipulated as an unprivileged user, for example: [tt]systemctl --user stop jriver-mediacenter[/tt] and begin at user login.
  82. System services are manipulable as root, for example: [tt]sudo systemctl stop jriver-servicename@username.service[/tt] and begin at system boot.
  83. Note that it is possible to run all services of a particular user at boot using [tt][url=https://www.freedesktop.org/software/systemd/man/loginctl.html]sudo loginctl enable-linger username[/url][/tt].
  84. Multiple services (but not [tt]--service-types[/tt]) can be installed at one time using multiple [tt]--service[/tt] blocks:
  85. [code]installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter[/code]
  86. [size=14pt][tt]jriver-x11vnc[/tt] versus [tt]jriver-xvnc[/tt][/size]
  87. [url=http://www.karlrunge.com/x11vnc/]jriver-x11vnc[/url] shares your existing X display via VNC and can be combined with additional services to start Media Center or Media Server. Conversely, [url=https://tigervnc.org/doc/Xvnc.html]jriver-xvnc[/url] creates a new Xvnc display and starts a JRiver Media Center service in the foreground of the new VNC display.
  88. [size=18pt]Containers[/size]
  89. [b]Coming soon![/b]
  90. [size=18pt]Firewall[/size]
  91. installJRMC automatically creates port forwarding firewall rules for remote access to Media Network (52100-52200/tcp, 1900/udp DLNA) and Xvnc/x11vnc (if selected), using firewall-cmd or ufw (if available).
  92. [size=18pt]Other Nicities[/size]
  93. [list]
  94. [*]Automatically updates [tt]installJRMC[/tt] to the latest release.
  95. [*]Activates external third-party repositories for improved media playback (hardware decoding, etc.).
  96. [*]Adds temporary legacy repositories to provide deprecated libraries.
  97. [*]Links non-standard SSL certs.
  98. [*]Activates MC if a valid license file is found in common locations.
  99. [/list]
  100. [size=18pt]Examples[/size]
  101. [code]installJRMC[/code]
  102. Install the latest version of MC from the best available repository.
  103. [code]installJRMC --mcversion 33 --debug[/code]
  104. Install the latest version of MC33 from the best available repository with debugging output.
  105. [code]installJRMC --install local --compat[/code]
  106. Install a more widely-compatible version of the latest MC version.
  107. [code]installJRMC --install repo --service jriver-mediacenter --service-type user[/code]
  108. Install MC from the repository and start/enable jriver-mediacenter.service as a user service.
  109. [code]installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 34.0.51[/code]
  110. Build and install an MC 34.0.51 comptability RPM locally and activate it using the [tt]/path/to/license.mjr[/tt].
  111. [code]installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code]
  112. Build an RPM locally for the current distro, move it to the webroot, and run createrepo as www-user.
  113. [code]installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --createrepo-user www-user[/code]
  114. Install the jriver-createrepo timer and service to build the RPM, move it to the webroot, and run createrepo as www-user hourly.
  115. [code]installJRMC --install repo --service jriver-x11vnc --service jriver-mediacenter --vncpass "letmein"[/code]
  116. Install services to share the existing local desktop via VNC and automatically run MC on startup.
  117. [code]installJRMC --install repo --service jriver-xvnc --display ":2"[/code]
  118. Install an Xvnc server on display ':2' that starts MC.
  119. [code]installJRMC --uninstall[/code]
  120. Uninstall MC, services, and firewall rules. This will [b]not[/b] remove your media, media library/database, or library backups.
  121. [size=18pt]Additional Info[/size]
  122. Did you find installJRMC useful? [url=https://paypal.me/bryanroessler]Paypal me a coffee![/url]
  123. [url=bitcoin:bc1q7wy0kszjavgcrvkxdg7mf3s6rh506rasnhfa4a]↓ ↓ ↓ Bitcoin ↓ ↓ ↓[/url]
  124. [url=bitcoin:bc1q7wy0kszjavgcrvkxdg7mf3s6rh506rasnhfa4a][img]https://repos.bryanroessler.com/files/bc1q7wy0kszjavgcrvkxdg7mf3s6rh506rasnhfa4a.png[/img][/url]