Monday, November 11, 2024
Linux Mint MPD

Cara Install MPD dengan NCMPCPP pada Linux Mint 20

mpd

“Cara Install MPD dengan NCMPCPP pada Linux Mint 20”

Pengantar

Music Player Daemon (MPD) adalah aplikasi pemutar musik sisi server yang efisien, efektif dan kuat untuk distro linux seperti Ubuntu dan Mint. Ini memainkan file audio, mengatur daftar putar dan memelihara basis data musik. MPD tidak dapat diakses secara langsung. Harus ada aplikasi sisi klien yang memungkinkan Anda untuk mengaksesnya. Untuk kasus kami, kami akan menggunakan ncmpcpp sebagai aplikasi klien kami.

Cara Install MPD dengan NCMPCPP pada Linux Mint 20

sudo apt-get update -y
  • Install MPD
sudo apt-get install mpd
  • Konfigurasi MPD
mkdir -p ~/.mpd/playlists/
vim ~/.mpd/mpd.conf

bind_to_address "127.0.0.1" 
#bind_to_address "~/.mpd/socket" 
music_directory "~/Music" 
playlist_directory "~/.mpd/playlists" 
db_file      "~/.mpd/mpd.db"   
log_file      "~/.mpd/mpd.log" 
pid_file      "~/.mpd/mpd.pid"  
state_file     "~/.mpd/mpdstate"   
audio_output {   

    type  "pulse" 
    name  "pulse audio" 
    device         "pulse" 
    mixer_type      "hardware"  
} 

audio_output { 
   type                    "fifo" 
   name                    "my_fifo" 
   path                    "/tmp/mpd.fifo" 
   format                  "44100:16:2" 
}
sudo gpasswd -a mpd <your login group> 
chmod 710 ~/ 
sudo gpasswd -a mpd audio
$ mpd
$ ss -tunelp | grep 6600
  • Install ncmpcpp
sudo apt-get update
sudo apt-get install ncmpcpp
  • konfigurasi ncmpcpp
mkdir ~/.ncmpcpp
cd ~/.ncmpcpp
vim config
# Files
 mpd_music_dir = "~/Music"  
 lyrics_directory  = ~/.ncmpcpp/lyrics
 ncmpcpp_directory  = ~/.ncmpcpp
 mpd_host = "localhost"
 mpd_port = "6600"  
 mpd_connection_timeout = "5"  
 mpd_crossfade_time = "5"  

 # Playlist
 playlist_disable_highlight_delay = "0"
 playlist_display_mode = "columns"  
 playlist_show_remaining_time = "yes"
 browser_display_mode = "columns"  
 autocenter_mode = "yes"  
 fancy_scrolling = "yes"  
 follow_now_playing_lyrics = "yes"  
 display_screens_numbers_on_start = "yes"  
 ignore_leading_the = "yes"  
 lyrics_database = "1"  
 song_columns_list_format = "(10)[blue]{l} (30)[green]{a} (30)[magenta]{b} (50)[yellow]{t}"  
 colors_enabled = "yes"  
 main_window_color = "white"
 main_window_highlight_color =  "blue"
 header_window_color = "cyan"  
 volume_color = "red"  
 progressbar_color = "cyan"  
 statusbar_color = "white"  
 active_column_color = "cyan"  
 active_window_border = "blue"
 alternative_header_first_line_format = "$0$aqqu$/a {$7%a - $9}{$5%t$9}|{$8%f$9} $0$atqq$/a$9"
 alternative_header_second_line_format = "{{$6%b$9}{ [$6%y$9]}}|{%D}"
 song_list_format = "{$3%n │ $9}{$7%a - $9}{$5%t$9}|{$8%f$9}$R{$6 │ %b$9}{$3 │ %l$9}"
 user_interface = "alternative"
 default_place_to_search_in = "database"

# visualizer
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
visualizer_sync_interval = "12"
#visualizer_type = "wave" (spectrum/wave)
visualizer_type = "spectrum" (spectrum/wave)
visualizer_in_stereo = "yes"
visualizer_look = "+|"  

## Navigation ##
cyclic_scrolling = "yes"
header_text_scrolling = "yes"
jump_to_now_playing_song_at_start = "yes"
lines_scrolled = "2"

## Other ##
system_encoding = "utf-8"
regular_expressions = "extended"

## Selected tracks ##
selected_item_prefix = "* "
discard_colors_if_item_is_selected = "no"

## Seeking ##
incremental_seeking = "yes"
seek_time = "1"

## Visivility ##
header_visibility = "yes"
statusbar_visibility = "yes"
titles_visibility = "yes"
progressbar_look =  "=>-"
progressbar_boldness = "yes"
progressbar_elapsed_color = "white"

now_playing_prefix = "> "
song_status_format = " $2%a $4⟫$3⟫ $8%t $4⟫$3⟫ $5%b "
autocenter_mode = "yes"
centered_cursor = "yes"

# Misc
display_bitrate = "yes"
# enable_window_title = "no"
follow_now_playing_lyrics = "yes"
ignore_leading_the = "yes"
empty_tag_marker = ""
  • Restart mpd server
sudo systemctl restart mpd
  • start ncmpcpp
$ ncmpcpp

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Cara Install MPD dengan NCMPCPP pada Linux Mint 20. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

(Visited 120 times, 1 visits today)

Similar Posts