The officially official Devuan Forum!

You are not logged in.

#1 Documentation » Install music player daemon and set up it as a user service in Devuan » 2020-01-12 18:47:48

Replies: 1

This short guide  describes how to install mpd as a user service in Devuan 2.1 (ascii).
Install mpd and mpc

#apt install mpd mpc

Mpc is a command line user interface for MPD server.

By default Devuan installs mpd as a system service. We don't want this, so let's remove it from startup.
If mpd is running stop it first.

#/etc/init.d/mpd stop

We don't want MPD to be started as a system service. We want to run it from a regular user account. So we must disable it. Use this command:

#update-rc.d mpd disable

To build the user configuration, extract and copy the default config with command

gunzip -c /usr/share/doc/mpd/examples/mpd.conf.gz

to directory


(make this dir first).

Edit the config file according to your needs. For example, my config looks like this:

music_directory     "~/Music"
playlist_directory  "~/Playlists"
db_file             "~/.local/share/mpd/mpd.db"
log_file            "~/.local/share/mpd/mpd.log"
pid_file            "~/.local/share/mpd/"
state_file          "~/.local/share/mpd/mpd.state"
sticker_file        "~/.local/share/mpd/sticker.sql"

bind_to_address     ""
log_level           "default"
restore_paused      "yes"
metadata_to_use     "artist,album,title,track,date"
auto_update         "yes"

input {
        plugin "curl"

audio_output {
        type            "alsa"
        name            "Headset"
        mixer_type      "software"      

audio_output {
    type        "fifo"
    name        "mpd_fifo"
    path        "/tmp/mpd.fifo"
    format      "44100:16:2"

Don't forget to create the needed directories (~/Playlists and ~/.local/share/mpd)

Run mpd.

$ mpd

If everything is ok, it directly detaches itself. (so it looks like it exits). It might complain that the db_file cannot be found, you can safely ignore this.

In order to build the database file, MPD must scan into the music_directory. A MPD client is required to request this task, for example with mpc the command is

$ mpc update


You most likely want to have mpd started automatically when logging into tty. To start MPD on login add the following to

# MPD daemon start (if no other user instance exists)
[ ! -s ~/.config/mpd/pid ] && mpd

That's it. Now you can enjoy your favorite music.


In this simple set up i use command line user interface for MPD server. Here you can see the commands used in mpc. But there are more clients in the official Devuan repository (TUI and GUI).


#2 Re: Other Issues » Is VirtualBox (or alternative) in the repo? » 2020-01-12 13:10:02

Head_on_a_Stick wrote:

If you don't like GUI management tools see my fdn guide

It is exelent guide. This instruction helped me a lot!

#3 Re: Other Issues » Is VirtualBox (or alternative) in the repo? » 2020-01-11 19:36:28

Ron wrote:

Am I missing it, or is Virtualbox not in the repo? Any alternatives in the repo?

Hello. Virtualbox is in  ascii-backports - contrib repo. But, for my opinion, it is a crap. I prefer qemu-kvm- QEMU Full virtualization on x86 hardware. It is in ascii - main repo.

#4 Re: Installation » installing nvidia drivers on ascii 2.1 » 2020-01-11 13:40:27

Hello. How do I install Nvidia driver? It is very simple. Add contrib and non-free to your


Then install



 # apt install nvidia-detect

Run it (as normal user). Here example output:

$ nvidia-detect
Detected NVIDIA GPUs:
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 430] [10de:0de1] (rev a1)
Your card is supported by the default drivers.
It is recommended to install the

Now, install Linux headers for the kernel you are using. If you are using 4.9 Linux kernel in Devuan Ascii:

# apt-get install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//')

Then you can install the package:

# apt-get update
# apt-get install nvidia-driver 

Restart your system to enable the nouveau blacklist. This method i used on all my machines.


Do not use this method if you have bublebee.

#5 Re: Off-topic » Show your desktop (rebooted) » 2019-12-23 13:34:24

HevyDevy, looks nice and minimal. Good work!

#7 Re: Other Issues » [SOLVED] Apt-get show one package per line? » 2019-12-18 12:58:23

bgstack15 wrote:

@Head_on_a_Stick solved it. That's good enough. Wow. Apparently I didn't read the right man pages or right sections of the man pages. This -V is such a game-changer.

edit: Showing the version numbers is even a nice bonus!


 -V, --verbose-versions 

show full versions for upgraded and installed packages.

#8 Re: Other Issues » [SOLVED] Apt-get show one package per line? » 2019-12-17 12:25:04

How about aptitude? Maybe with this tool is possible to show one package per line?

#9 Re: Off-topic » Show your desktop (rebooted) » 2019-11-30 12:55:46

Nili wrote:

...but showing the above wasn't my goal, this is the first time i have come down to this level tweaking "x86_64" so low in ram.I wouldn't reach it if wasn't for Devuan 2.1 wink

Very impressive!

#10 Re: DIY » KISS: a new systemd-free distribution that aims to "keep it simple" » 2019-11-23 17:40:40

Head_on_a_Stick wrote:

OK, been trying it out a bit more. No X yet because it takes so long to compile stuff.
It is incredibly minimalist, even more so than Alpine Linux.Nice :-)

Thank you Head_on_a_Stick, for testing it. I think it is not my cup of tea. Compiling ALL stuff takes so many time.

#11 Re: DIY » KISS: a new systemd-free distribution that aims to "keep it simple" » 2019-11-20 17:27:46

Head_on_a_Stick wrote:

Though this might be of interest to some folks here

Hello. Did you try this distro?

#12 Re: News & Announcements » ASCII 2.1 point release » 2019-10-27 18:02:31

Thanks goes to devs! Nice works, guys!

#14 Re: Off-topic » Show your desktop (rebooted) » 2019-08-01 17:52:54

Nili wrote:

Fluxbox after long time in Openbox. A bit of colorfull

Very nice. As always! Keep a good work!

#15 Re: Off-topic » Boom Times or financial apocalypse » 2019-06-27 16:30:37

The world is finally ready for Marxism!

#17 Re: Off-topic » » 2019-06-27 15:11:16

macondo wrote:

Ogi: you're right, I should use it as user.

Hi! I read the official documentation. As I understood, you need to use super-user rights. That's what this program is designed for...

#18 Re: Off-topic » » 2019-06-26 17:21:24

But why use super-user rights to see how much RAM is used? I never understood the benefits of this program (ps_mem).

#19 Re: Other Issues » [SOLVED] Security update delays » 2019-06-19 13:14:12

fsmithred wrote:

Here's the explanation that was posted on devuan-dev mailing list yesterday. (The script failed if there was a read timeout.)

Thanks for the answer.

#20 Re: Other Issues » [SOLVED] Security update delays » 2019-06-18 13:19:32

I'm sorry, but i want to ask. Why do such delays happen?

#21 Re: Other Issues » Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved] » 2019-06-13 14:58:26

You can put

ALWAYS_SET_PATH yes in /etc/login.defs

to get an approximation of the old behavior.
Or put the system administration directories (/sbin, /usr/sbin, /usr/local/sbin) in your regular account's PATH.

#22 Re: Off-topic » Show your desktop (rebooted) » 2019-06-07 13:34:07

And here is mine:

startup_message off
set wingravity n 
set transgravity center
set bargravity nw
set winname title
set winfmt %n %s %t
msgwait 3
set font "Monospace-8"
set fgcolor blue
set bgcolor black
set winliststyle column
rudeness 12
warp on
addhook key banish
set border 0 
set padding 0 0 0 0
set barpadding 0 0 
escape C-z
bind c exec xterm
definekey top s-F1 exec ~/.scripts/
definekey top s-F2 exec ~/.scripts/dmenu_fm
definekey top s-F3 exec ~/.scripts/screenshot
definekey top s-F4 exec ~/.scripts/select-screenshot
definekey top s-F5 exec xterm -e /usr/bin/ranger
definekey top s-F6 exec firefox
definekey top s-w exec ~/.scripts/

#24 Re: Off-topic » Google search gives DEVUAN as DEAD ? » 2019-06-07 13:29:43

nixer wrote:

I just did a quick search for "devuan" in google and all the hits on the first page were directly related to devuan not debian.

Same here.

#25 Re: Off-topic » Show your desktop (rebooted) » 2019-06-06 13:34:16

Ratpoison showing the .ratpoisonrc, FF

Nice. I like Ratpoison very much!

Board footer

Forum Software