More > JRiver Media Center 33 for Linux

installJRMC - MC installer for Linux

<< < (3/25) > >>

Awesome Donkey:
I'll probably get Mint 22 and double check it later.

Been meaning to ask but can any sort of script auto-update be implemented? Like it checks for script updates on start then downloads/applies/restarts the script to run the new one sort of deal? I would imagine there's multiple users who are using older versions without knowing there's an update.

BryanC:

--- Quote from: Awesome Donkey on September 03, 2024, 10:09:08 am ---Been meaning to ask but can any sort of script auto-update be implemented? Like it checks for script updates on start then downloads/applies/restarts the script to run the new one sort of deal? I would imagine there's multiple users who are using older versions without knowing there's an update.

--- End quote ---

Done in 1.3.1. Thanks for the idea, now I can "push" changes to installJRMC service timers like createrepo.

If installJRMC is in a git repo it will pull and run the new version. If it's not in a git repo, it will download, update, and run the latest version. Hopefully this is the last time anyone will need to download installJRMC! ;D

Also fixed Linux Mint issues and tested on Jammy. 

Required some larger refactoring so testing would be appreciated.

terrym@tassie:
Using 1.3.1 to install MC33 on Linux Mint 21.3, I got the following problem with the user service that was created:

The service was constantly restarting and showed the following status:

--- Code: ---systemctl --user status  jriver-mediacenter
● jriver-mediacenter.service - JRiver Media Center 33
     Loaded: loaded (/usr/lib/systemd/user/jriver-mediacenter.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: core-dump) since Wed 2024-09-18 14:51:17 AEST; 8s ago
    Process: 15701 ExecStart=/usr/bin/mediacenter33 (code=exited, status=0/SUCCESS)
    Process: 15702 ExecStop=/usr/bin/mc33 /MCC 20007 (code=dumped, signal=SEGV)
   Main PID: 15701 (code=exited, status=0/SUCCESS)
        CPU: 101ms

--- End code ---

I looked at the service file and commented out the 'Environment=DISPLAY=' line (file shown below) and then the service started normally.

/usr/lib/systemd/user/jriver-mediacenter.service

--- Code: ---[Unit]
Description=JRiver Media Center 33
After=default.target

[Service]
Type=simple

Environment=XAUTHORITY=/home/terry/.Xauthority
#Environment=DISPLAY=
ExecStart=/usr/bin/mediacenter33
KillMode=none
ExecStop=/usr/bin/mc33 /MCC 20007
Restart=always
RestartSec=10
TimeoutStopSec=30

[Install]
WantedBy=default.target

--- End code ---

EDIT:
Looking into this a bit more, neither of the Environment statements are required for Linux Mint 21.3 as they are already set:

--- Code: ---$ systemctl --user show-environment
HOME=/home/terry
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
LOGNAME=terry
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/u>
SHELL=/bin/bash
SYSTEMD_EXEC_PID=861
USER=terry
XDG_DATA_DIRS=/usr/share/xfce4:/home/terry/.local/share/flatpak/exports/share:/>
XDG_RUNTIME_DIR=/run/user/1000
GTK_MODULES=gail:atk-bridge
QT_ACCESSIBILITY=1
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=xfce
DISPLAY=:0
GDMSESSION=xfce
GDM_LANG=en_AU
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK3_MODULES=xapp-gtk3-module
IM_CONFIG_PHASE=1
PWD=/home/terry
SHLVL=1
SSH_AUTH_SOCK=/tmp/ssh-XXXXXX173Non/agent.1140
XAUTHLOCALHOSTNAME=
XAUTHORITY=/home/terry/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/terry
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
_=/usr/bin/dbus-update-activation-environment

--- End code ---

If Environment=DISPLAY is included, it should be: Environment=DISPLAY=:0 (on my system)

BryanC:

--- Quote from: terrym@tassie on September 18, 2024, 12:38:58 am ---Using 1.3.1 to install MC33 on Linux Mint 21.3, I got the following problem with the user service that was created:

*snip*

--- End quote ---

Thanks, that should be fixed now, it was legacy cruft from old Debian systemd.

Also, since installJRMC is now self-updating I'm dropping versioning from the release zips to simplify things.

terrym@tassie:
Thanks, really appreciate the effort you put into this incredibly useful utility.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version