randalltux

ncmpcpp guide

Mar 14th, 2015
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. clone ncmpcpp git repository
  2.  
  3. git clone git://repo.or.cz/ncmpcpp.git
  4.  
  5. install dependencies
  6.  
  7. libboost-all-dev fftw2 fftw-dev libfftw3-dev libfftw3-3 libreadline-dev curl libcurl4-gnutls-dev libcurl3-nss libncursesw5-dev libtaglib-cil-dev libncurses5-dev g++ make cmake autoconf
  8.  
  9. install mpd , mpc , alsa equal
  10.  
  11. sudo apt-get install mpd mpc libasound2-plugin-equal
  12.  
  13. i always stopping mpd service in my default autostart
  14.  
  15. sudo service mpd stop
  16. sudo update-rc.d mpd disable
  17.  
  18. create alsa config in home ( ~/.asoundrc ) like this:
  19.  
  20. pcm.!default {
  21. type hw
  22. card 1 # my default card is 1 maybe your default card is 0 , to find your default card . Check on /etc/asound/cards with cat ( maybe i wrong :3 sorry ) for easy to find your default soundcards.. check with alsamixer
  23. }
  24.  
  25. ctl.!default {
  26. type hw
  27. card 1
  28. }
  29.  
  30. ctl.equal {
  31. type equal;
  32. }
  33.  
  34. pcm.plugequal {
  35. type equal;
  36. slave.pcm "plughw:1,0";
  37. }
  38.  
  39. pcm.!default {
  40. type plug;
  41. slave.pcm plugequal;
  42. }
  43.  
  44. reload alsa
  45.  
  46. sudo alsa force-reload
  47.  
  48. and then type alsamixer -D equal
  49.  
  50. SETTING UP mpd config
  51.  
  52. create mpd and playlists directory with following command :
  53.  
  54. mkdir -p ~/.mpd/playlists
  55.  
  56. CREATE THIS FILES with following command:
  57.  
  58. touch ~/.mpd/{mpd.db,mpd.log,mpd.pid,mpdstate,tag_cache}
  59.  
  60. CREATE ~/.mpd/mpd.conf like this:
  61.  
  62. music_directory "/home/rndtx/Music" # Your Music Directory
  63. playlist_directory "/home/rndtx/.mpd/playlists"
  64. db_file "/home/rndtx/.mpd/tag_cache"
  65. log_file "/home/rndtx/.mpd/mpd.log"
  66. pid_file "/home/rndtx/.mpd/mpd.pid"
  67. state_file "/home/rndtx/.mpd/mpdstate"
  68. bind_to_address "127.0.0.1"
  69. audio_output {
  70. type "alsa"
  71. name "My ALSA Device"
  72. device "hw:1" # optional # Your default soundcard ( default is hw:0 )
  73. format "44100:16:2" # optional
  74. mixer_device "default" # optional
  75. mixer_control "PCM" # optional
  76. mixer_index "0" # optional
  77. }
  78. audio_output {
  79. type "fifo"
  80. name "My FIFO"
  81. path "/tmp/mpd.fifo"
  82. format "44100:16:2"
  83. }
  84.  
  85. add audio to mpd group:
  86.  
  87. sudo usermod -aG audio mpd
  88.  
  89. now: type mpd
  90.  
  91. if you get this error db: Database corrupted just ignore :)
  92.  
  93. now start to type ncmpcpp
  94.  
  95. press TWO (2) button on your keyboard to see you music directory
  96.  
  97. press SPACE button to add your music to playlist
  98.  
  99. if you see ( Volume n/a ) add this to your mpd.conf
  100.  
  101. mixer_type "software"
  102.  
  103. and then type ncmpcpp again
  104.  
  105. if not change, stop mpd service first ( mpd --kill ) and type mpd again
  106.  
  107. now volume information is show!!!
  108.  
  109. play the music, with ENTER button
  110.  
  111. to download lyrics press L button
  112.  
  113. to see equalizer , press 8
  114.  
  115. to change equalizer type: press space button
  116.  
  117. to stop the music press S
  118.  
  119.  
  120.  
  121. THANKS FOR WATCHING!!!!!
Advertisement
Add Comment
Please, Sign In to add comment