Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clone ncmpcpp git repository
- git clone git://repo.or.cz/ncmpcpp.git
- install dependencies
- 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
- install mpd , mpc , alsa equal
- sudo apt-get install mpd mpc libasound2-plugin-equal
- i always stopping mpd service in my default autostart
- sudo service mpd stop
- sudo update-rc.d mpd disable
- create alsa config in home ( ~/.asoundrc ) like this:
- pcm.!default {
- type hw
- 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
- }
- ctl.!default {
- type hw
- card 1
- }
- ctl.equal {
- type equal;
- }
- pcm.plugequal {
- type equal;
- slave.pcm "plughw:1,0";
- }
- pcm.!default {
- type plug;
- slave.pcm plugequal;
- }
- reload alsa
- sudo alsa force-reload
- and then type alsamixer -D equal
- SETTING UP mpd config
- create mpd and playlists directory with following command :
- mkdir -p ~/.mpd/playlists
- CREATE THIS FILES with following command:
- touch ~/.mpd/{mpd.db,mpd.log,mpd.pid,mpdstate,tag_cache}
- CREATE ~/.mpd/mpd.conf like this:
- music_directory "/home/rndtx/Music" # Your Music Directory
- playlist_directory "/home/rndtx/.mpd/playlists"
- db_file "/home/rndtx/.mpd/tag_cache"
- log_file "/home/rndtx/.mpd/mpd.log"
- pid_file "/home/rndtx/.mpd/mpd.pid"
- state_file "/home/rndtx/.mpd/mpdstate"
- bind_to_address "127.0.0.1"
- audio_output {
- type "alsa"
- name "My ALSA Device"
- device "hw:1" # optional # Your default soundcard ( default is hw:0 )
- format "44100:16:2" # optional
- mixer_device "default" # optional
- mixer_control "PCM" # optional
- mixer_index "0" # optional
- }
- audio_output {
- type "fifo"
- name "My FIFO"
- path "/tmp/mpd.fifo"
- format "44100:16:2"
- }
- add audio to mpd group:
- sudo usermod -aG audio mpd
- now: type mpd
- if you get this error db: Database corrupted just ignore :)
- now start to type ncmpcpp
- press TWO (2) button on your keyboard to see you music directory
- press SPACE button to add your music to playlist
- if you see ( Volume n/a ) add this to your mpd.conf
- mixer_type "software"
- and then type ncmpcpp again
- if not change, stop mpd service first ( mpd --kill ) and type mpd again
- now volume information is show!!!
- play the music, with ENTER button
- to download lyrics press L button
- to see equalizer , press 8
- to change equalizer type: press space button
- to stop the music press S
- THANKS FOR WATCHING!!!!!
Advertisement
Add Comment
Please, Sign In to add comment