https://wiki.mumble.info/api.php?action=feedcontributions&user=Notnamed&feedformat=atomMumble Wiki - User contributions [en]2024-03-29T12:26:39ZUser contributionsMediaWiki 1.31.0https://wiki.mumble.info/index.php?title=Install_CentOS7&diff=9307Install CentOS72016-05-30T23:12:25Z<p>Notnamed: Setting PIDFile in the murmur.service causes warnings in journalctl on start (it's already defined in murmur.ini anyway)</p>
<hr />
<div>Installation of murmur server on CentOS 7 (RHEL 7) using the static mumble server.<br />
== Install ==<br />
Download the static murmur server. Then run the following commands to install:<br />
<pre><br />
tar -vxjf ./murmur-static_x86-1.2.8.tar.bz2<br />
sudo mkdir /usr/local/murmur<br />
sudo cp -r ./murmur-static_x86-1.2.8/* /usr/local/murmur/<br />
sudo cp ./murmur-static_x86-1.2.8/murmur.ini /etc/murmur.ini<br />
</pre><br />
Now create the murmur user and group, data directory, and logging directory:<br />
<pre><br />
sudo groupadd -r murmur<br />
sudo useradd -r -g murmur -m -d /var/lib/murmur -s /sbin/nologin murmur<br />
sudo mkdir /var/log/murmur<br />
sudo chown murmur:murmur /var/log/murmur<br />
sudo chmod 0770 /var/log/murmur<br />
</pre><br />
<br />
== System Configuration ==<br />
=== Murmur.ini ===<br />
Make sure that the following settings are configured correctly in /etc/murmur.ini:<br />
<pre><br />
logfile=/var/log/murmur/murmur.log<br />
pidfile=/var/run/murmur/murmur.pid<br />
# Reminder: When changing the port that murmur will listen to you will need to also update the firewall.<br />
# Update the firewall by editing /etc/firewalld/services/murmur.xml<br />
# Then run "sudo firewall-cmd --reload"<br />
port=64738<br />
# Comment out the following setting since the service will already be executing as the correct user:<br />
# uname=murmur<br />
</pre><br />
=== Allow to run as a background process ===<br />
Create a systemd unit file so that the murmur service can be managed by the operating system. Using your text editor of choice, create the file '/etc/systemd/system/murmur.service' (Requires root). Copy and paste the following:<br />
<pre><br />
[Unit]<br />
Description=Mumble Server (Murmur)<br />
Requires=network-online.target<br />
After=network-online.target mariadb.service time-sync.target<br />
<br />
[Service]<br />
User=murmur<br />
Type=forking<br />
ExecStart=/usr/local/murmur/murmur.x86 -ini /etc/murmur.ini<br />
<br />
[Install]<br />
WantedBy=multi-user.target<br />
</pre><br />
<br />
On modern systems /var/run is discarded after reboot. To regenerate the pid directory for murmur, create the configuration file '/etc/tmpfiles.d/murmur.conf' as root and copy and paste:<br />
<pre><br />
d /var/run/murmur 775 murmur murmur<br />
</pre><br />
<br />
=== Firewall ===<br />
Setup firewalld so that it allows the service to listen to TCP/UDP. If you adjusted murmur.ini so that it listens to a non-default port, then you will need to change this step to reflect your modifications. As root, create the configuration file '/etc/firewalld/services/murmur.xml' and copy and paste:<br />
<pre><br />
<?xml version="1.0" encoding="utf-8"?><br />
<service><br />
<short>Murmur</short><br />
<description>Mumble Server (Murmur)</description><br />
<port protocol="tcp" port="64738" /><!-- Reminder: Update /etc/murmur.ini so that it uses the same ports --><br />
<port protocol="udp" port="64738" /><br />
</service><br />
</pre><br />
Then add the firewall rule to the default zone and then reload:<br />
<pre><br />
sudo firewall-cmd --permanent --add-service=murmur<br />
sudo firewall-cmd --reload<br />
</pre><br />
<br />
=== SELinux ===<br />
'''Note''': The steps outlined here will probably make security folks cringe. If anyone has the time and patience to figure out SELinux, please consider updating this document with a proper solution.<br />
<br />
SELinux by default will prevent murmur from functioning correctly. The quick and easy solution is to simply disable it. To disable temporarily (until the next reboot), run:<br />
<pre><br />
sudo setenforce 0<br />
</pre><br />
To disable permanently (after the next reboot), edit '/etc/sysconfig/selinux' and change the "SELINUX" line to:<br />
<pre><br />
SELINUX=disabled<br />
</pre><br />
<br />
=== Finishing up ===<br />
Update your system so that it is ready to start the murmur service:<br />
<pre><br />
sudo systemd-tmpfiles --create /etc/tmpfiles.d/<br />
sudo systemctl daemon-reload<br />
</pre><br />
To temporarily start the murmur service (until the next reboot), run:<br />
<pre><br />
sudo systemctl start murmur.service<br />
</pre><br />
To tell the system to autostart the murmur service (this will NOT immediately start murmur, instead it will start on the next reboot):<br />
<pre><br />
sudo systemctl enable murmur.service<br />
</pre><br />
<br />
[[Category:Documentation English]]</div>Notnamed