Linux Desktop Art ! install mpd dan ncmpcpp


Yosh minna... ! lanjut dengan pembahasan kita kali ini, mengenai Linux Desktop Art hehe~ , sekarang lanjut bagian install ncmpcpp dan mpd (music player daemon). Secara fungsi MPD adalah server music player dan sedangkan NCMPCPP adalah Client yang menampilkan playlist dari Pelayanan MPD, jadi MPD sama NCMPCPP ada kaitannya yang kawan..

1. Pertama install dulu mpd sama ncmpcpp nya menggunakan perintah seperti di bawah ini

# apt-get install mpd ncmpcpp


2. Buat directory di /home/userMu , .mpd,.ncmpcpp untuk konfigurasi nya.

# mkdir .mpd
# mkdir .ncmpcpp
# cd .mpd
# touch mpd.log mpd.pid mpd.db mpdstate



3. Lanjut, masih di directory ".mpd" , buat mpd.conf lalu isi dengan konfigurasi seperti di bawah ini .

# nano mpd.conf
                                                                                         
music_directory "/home/shani/Music"
playlist_directory "/home/shani/Music"
db_file "/home/shani/.mpd/mpd.db"
log_file "/home/shani/.mpd/mpd.log"
pid_file "/home/shani/.mpd/mpd.pid"
state_file "/home/shani/.mpd/mpdstate"
audio_output {
        type "pulse"
        name "pulse audio"
}
audio_output {
    type                    "fifo"
    name                    "my_fifo"
    path                    "/tmp/mpd.fifo"
    format                  "44100:16:2"
}


bind_to_address "127.0.0.1"
port "6601"

NB : Sesuaikan /home/shani/Music dengan directory Music anda~

4. Simpan , lalu keluar dari directory ".mpd"

# cd ..
# cd .ncmpcpp
# nano config



5. isikan "config" dari ncmpcpp dengan script di bawah ini , sesaikan directory musik anda

% egrep -v '^#' .ncmpcpp/config
mpd_music_dir = "/home/shani/Music"
visualizer_in_stereo = "yes"
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
visualizer_sync_interval = "30"
visualizer_type = "spectrum"
visualizer_look = "◆▋"
message_delay_time = "3"
playlist_shorten_total_times = "yes"
playlist_display_mode = "columns"
browser_display_mode = "columns"
search_engine_display_mode = "columns"
playlist_editor_display_mode = "columns"
autocenter_mode = "yes"
centered_cursor = "yes"
user_interface = "alternative"
follow_now_playing_lyrics = "yes"
locked_screen_width_part = "60"
display_bitrate = "yes"
external_editor = "nano"
use_console_editor = "yes"
header_window_color = "cyan"
volume_color = "red"
state_line_color = "yellow"
state_flags_color = "red"
progressbar_color = "yellow"
statusbar_color = "cyan"
visualizer_color = "red"
mpd_host = "127.0.0.1"
mpd_port = "6601"
mouse_list_scroll_whole_page = "yes"
lines_scrolled = "1"
enable_window_title = "yes"
song_columns_list_format = "(25)[cyan]{a} (40)[]{f} (30)[red]{b} (7f)[green]{l}"


6. Yosh, simpan perubahan :'v , lalu matikan dulu service mpd, dan start lagi dan buka ncmpcpp nya

# killall mpd
# mpd
# ncmpcpp


Mudah bukan? Yukk komentar jika belum paham atau ada masalah <3 , nantikan Artikel Linux Desktop Art berikutnya

Postingan terkait:

1 Tanggapan untuk "Linux Desktop Art ! install mpd dan ncmpcpp"

  1. saya menginstall di ubuntu, knapa ya kok gak bisa keluar daftar lagunya, dan waktu ngetik mpd keluar tulisan failed to bind: "127.0.0.1:6601" already to use

    BalasHapus