Difference between revisions of "Moc"

From ArchWiki
Jump to: navigation, search
(add troubleshooting)
m (codeline -> ic)
Line 94: Line 94:
 
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.
 
If you want scrobble songs to last.fm you need moc >= 2.5.0. See [[#Unstable versions]] above.
  
First install lastfmsubmitd. It is a daemon which is available in the "community" repository.  To install it, first edit {{Filename|/etc/lastfmsubmitd.conf}} and add both {{Codeline|lastfmsubmitd}} and {{Codeline|lastmp}} to the {{Codeline|DAEMONS}} array in {{Filename|/etc/rc.conf}}.
+
First install lastfmsubmitd. It is a daemon which is available in the "community" repository.  To install it, first edit {{Filename|/etc/lastfmsubmitd.conf}} and add both {{Ic|lastfmsubmitd}} and {{Ic|lastmp}} to the {{Ic|DAEMONS}} array in {{Filename|/etc/rc.conf}}.
  
 
Now configure moc:
 
Now configure moc:

Revision as of 17:19, 11 December 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Description

Music On Console is a lightweight music player. It consists of 2 parts, a server (Moc) and the player/interface (Mocp). This is similar to mpd, but unlike mpd, Moc comes with an interface.

Installation

Sync and install with pacman:

# pacman -S moc

Configuration

The package includes a sample configuration file at Template:Filename. To configure moc, copy this file to Template:Filename and edit it.

For instructions about customising the keybindings, read Template:Filename.

If you want to use Moc with OSS v4.1, see OSS#MOC.

Usage

To start moc:

$ mocp

This will start the server and interface. You will enter player interface. Some useful shortcuts to use mocp (case sensitive):

Start playing a track Enter
Pause track Space or p
Play next track n
Play previous track b
Switch from playlist browsing to filesystem browsing (and vice versa) tab
Add one track to the playlist a
Remove track from playlist d
Add a folder recursively to playlist A
Clear playlist C
Increase volume 5% . (dot)
Decrease volume 5% , (comma)
Increase volume 1% >
Decrease volume 1% <
Change volume to 10% meta + 1
Change volume to 20% meta + 2
etc, etc...
Quit player q

NOTE: To shut down the server, use the shift (capital) Q key or:

$ mocp -x

Unstable versions

You can obtain these from the AUR. MOC 2.4.0 (stable) was released in 2006. Features since then are in 2.5, but are not yet blessed “stable” as of writing.

MOC + last.fm

If you want scrobble songs to last.fm you need moc >= 2.5.0. See #Unstable versions above.

First install lastfmsubmitd. It is a daemon which is available in the "community" repository. To install it, first edit Template:Filename and add both lastfmsubmitd and lastmp to the DAEMONS array in Template:Filename.

Now configure moc:

$ vim ~/.moc/config

add line:

OnSongChange = "/usr/lib/lastfmsubmitd/lastfmsubmit --artist %a --title %t --length %d --album %b"

change permission:

$ sudo chmod -R 777 /var/spool/lastfm

thats all.

Frontends

dmenu_mocp is a dmenu frontend for moc

moc-tray is a perl gtk dock that gives you access to moc functions

Troubleshooting

moc fails to start

If moc fails to start, it's most probably because of something wrong in Template:Filename. You can try to fix it, or simply delete the folder Template:Filename.