How to install CMUS 2.7.0 on Ubuntu 18.04

To install CMUS 2.7.0 on Ubuntu 18.04

CMus is an open source lightweight, fast and powerful terminal audio player for Unix/Linux like operating systems. CMus was designed to run on a text-only user interface, that reduces the resources required to run the application on older computers as well as systems where X window system isn' t available. The method to install CMUS 2.7.0 on Ubuntu 18.04 is covered in this tutorial.

Installation

Let' s start with updating the system repository.

root@linuxhelp1:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease       
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease      
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done

In order to install CMus enter the following command.

root@linuxhelp1:~# apt-get install cmus -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap
Use ' sudo apt autoremove'  to remove them.

The following additional packages will be installed:

.
.
Setting up cmus (2.7.1+git20160225-1build3) ...
Setting up libswresample2:amd64 (7:3.4.2-2) ...
Setting up va-driver-all:amd64 (2.1.0-3) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Setting up libavcodec57:amd64 (7:3.4.2-2) ...
Setting up libchromaprint1:amd64 (1.4.3-1) ...
Setting up libavformat57:amd64 (7:3.4.2-2) ...
Setting up cmus-plugin-ffmpeg (2.7.1+git20160225-1build3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

After installing you can run the following command on the terminal to launch CMUS.

root@linuxhelp1:~# cmus


You can verify the version from the top menu.

Here is the list of options we can use in CMUS application.

The ‘ up‘  and ‘ down‘  keys are used to choose a track, that you like to play and press ‘ Enter‘ .
Some of the CMus keys to control Play are:
Press *c* to pause/unpause
Press right/left to seek by 10 seconds
Press *< */*> * seek by one minute
Press " r"  to repeat the track
Press " s"  to random order to play all tracks.

Press *1* to open a Artist/Album
Press *2* to open a Library
Press *3* to open a Playlist
Press *4* to open a Play Queue
Press *5* to browse the file
Press *6* to open a Library filters
Press *7* to open a setting

With this, the method to install CMUS 2.7.0 on Ubuntu 18.04 comes to an end.

Tag : Cmus Ubuntu
FAQ
Q
CMUS is not working on 15.10?what will do?
A
One of the cmus dependencies starts a network server that causes cmus to hang while it never loads. The following resolves the issue:

$ apt-get purge libdnet dnet-common

You can perform a fresh cmus install without the server as so:

$ sudo apt-get --no-install-recommends install cmus cmus-plugin-ffmpeg
Q
Cmus not changing displayed artist name after updating metadata?
A
down vote
accepted

This ended up being a really simple issue. I updated the id3tag, but did not clear the cmus cache so it did not know the data had been updating.

To fix this I ran :update-cache within cmus which reloaded any changed id3tags.
Q
Is it possible to get Sound Menu integration for cmus?
A
Cmus does not natively support playback control via D-Bus/MPRIS. To my knowledge there is no third party plugin providing MPRIS control of cmus, at least I couldn't find any. Therefore we can not integrate it to the Indicator Sound menu the way we use to other MPRIS-capable players.
Q
No output plugins when installing cmus from source?
A
Dev packages needed to be installed for libraries used for input and output plugins. Most are not installed on a default Ubuntu 14.04 install. Found the list of library on an ArchLinux page (https://www.archlinux.org/packages/community/x86_64/cmus/)
Q
Cmus not responding to keyboard on Ubuntu 16.04?
A
Removing the contents of ~/.config/cmus fixed the issue.