How to Use Mumble to Build A Voice Server?

Source: Internet
Author: User
Keywords mumble server setup how to configure mumble server setting up mumble server
Preface
I used WeChat voice when I started black CSGO with my friends, and it was not easy to speak without a button. There are too many advertisements for YY Voice and I can't bear to look at it directly, and Discord is blocked again. I happen to have an Alibaba Cloud server, so I want to build a voice server myself, which is also convenient for setting up discussion groups during online classes. So I searched the Internet and found a voice software called Mumble. Its voice client supports all platforms. The official build document is introduced in detail, which is simply a black artifact. Not much to say, the next step is my build process
Simple Application Server
USD1.00 New User Coupon
* Only 3,000 coupons available.
* Each new user can only get one coupon(except users from distributors).
* The coupon is valid for 30 days from the date of receipt.

Download the Mumble server installation package
The official Mumble download page is here, choose to download Static Linux Server, then copy the download link from the browser's download management, and use wget DOWNLOAD_ADDERSS to download on the server (DOWNLOAD_ADDRESS is the download link just copied)

If the official link is too slow, the server installation package, Windows installation package, and macOS installation package of Mumble V1.3.0 are also provided on my server. You can find and download it from this page. Use the download address provided by my server to download Mumble Server:
wget http://fisher.lazybone.xyz/downloads/software/murmur-static_x86-1.3.0.tar.bz2
Unzip the installation package, add users and user groups
After downloading the installation package, unzip it and move it to the specified directory. At the same time copy a configuration file from the installation package to /etc
tar -vxjf ./murmur-static_x86-1.3.0.tar.bz2
sudo mkdir /usr/local/murmur
sudo cp -r ./murmur-static_x86-1.3.0/* /usr/local/murmur/
sudo cp ./murmur-static_x86-1.3.0/murmur.ini /etc/murmur.ini
Create users, user groups, data folders, and log folders. At the same time modify the permissions and owners of the created files and folders
sudo groupadd -r murmur
sudo useradd -r -g murmur -m -d /var/lib/murmur -s /sbin/nologin murmur
sudo mkdir /var/log/murmur
sudo chown murmur:murmur /var/log/murmur
sudo chmod 0770 /var/log/murmur
Configure server parameters
Use vim to edit the murmur.ini file

vim /etc/murmur.ini
Specify the following 3 parameters

database=/var/lib/murmur/murmur.sqlite
logfile=/var/log/murmur/murmur.log
pidfile=/var/run/murmur/murmur.pid
The following parameters can be modified according to your needs

# Welcome to the server information, you can modify it to your favorite
welcometext="Welcome to Fisher's mumble server!"
# Voice server port, the corresponding firewall port needs to be opened later
port=64738
# Server password, it will ask for input when entering the server
serverpassword=12345678
# Maximum voice bandwidth, I changed it to 128kbit/s, you can modify it according to your needs
bandwidth=128000
# Maximum number of users allowed to enter the server
users=10
Add system service module
Add a system service unit to allow Mumble to run in the background

Create murmur.service with root privileges

sudo vim /etc/systemd/system/murmur.serivce
Copy the following data to murmur.service, then save and exit

[Unit]
Description=Mumble Server (Murmur)
Requires=network-online.target
After=network-online.target mariadb.service time-sync.target

[Service]
User=murmur
Type=forking
ExecStart=/usr/local/murmur/murmur.x86 -ini /etc/murmur.ini
PIDFile=/var/run/murmur/murmur.pid
ExecReload=/bin/kill -s HUP $MAINPID

[Install]
WantedBy=multi-user.target
Since the current operating system will discard the changes in var/run when restarting, in order to recreate the PID folder of Mumble, we need to create the murmur.conf file

Create murmur.conf with root privileges

sudo vim /etc/tmpfiles.d/murmur.conf
Copy the following data to murmur.conf, then save and exit

d /var/run/murmur 775 murmur murmur
Configuration log file
Create murmur with root privileges

sudo vim /etc/logrotate.d/murmur
Copy the following data into murmur

/var/log/murmur/*log {
    su murmur murmur
    dateext
    rotate 4
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /bin/systemctl reload murmur.service> /dev/null 2>/dev/null || true
    endscript
}
Configure firewall
Different cloud server vendors set up firewalls in different ways. For Alibaba Cloud's lightweight server, click on the firewall in the server's management interface to add port 64738 for TCP and UDP (the port changes according to the configuration file above)

Firewall configuration

Start the server
Refresh system service

sudo systemd-tmpfiles --create /etc/tmpfiles.d/murmur.conf
sudo systemctl daemon-reload
Allow Mumble service to be started automatically after boot

sudo systemctl enable murmur.service
Officially start the Mumble server

sudo systemctl start murmur.service
When you see active (running), it means that the Mumble server started successfully

Start the server

Connect to the server, complete!
Open Mumble on your computer, click the small globe in the upper left corner, click Add, fill in your server address, and make a username of your own (not SpuerUser, this is the Mumble administrator account). Click OK to connect, enter the password, and you're done!

Add server

Advanced operation: add and modify channels
If you use too many friends and you need to use different channels separately, you need to use SuperUser to connect to the server and modify the root channel. To use SuperUser is very simple, you can use the password randomly assigned by the system when you first start it, or you can set a password yourself

For the password randomly assigned by the system, use the following command:
cat /var/log/murmur/murmur.log
Find the log <W>year-month-day hour:min:sec 1 => Password for'SuperUser' set to'supersecretpassword', the password is the string of supersecretpassword. Since my server has been used for a long time, and the series of logs have been overwritten, there is no screenshot here (escape

For setting a password for yourself, use the following command:
cd /usr/local/murmur
./murmur.x86 -ini /etc/murmur.ini -supw PASSWORD
Change PASSWORD to the password you want to set. Next, add your own server in the Mumble software, use SuperUser as the username and fill in the password you just set

SuperUser

After connecting to the server, right-click on the root channel to add, modify, and delete channels. Finally, configure your audio input and output, and you can happily black out with your friends!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.