MPDNCMPCPP.pdf

  • Upload
    want90x

  • View
    221

  • Download
    0

Embed Size (px)

Citation preview

  • 8/10/2019 MPDNCMPCPP.pdf

    1/7

    MPD+NCMPCPPusing Cygwin, Xming and urxvt

    Original instructions by: hal

    Set-up guide by: Lullatone

    First of all, you should download and install the x32bit

    version of cygwin. When doing so, make sure to checkrxvt-unicode-X package which is

    under the Shellscategory.

    The rest should be rather straight forward, base cygwin should do you well from here on out.

    Youll want to go ahead and grabXming, which is an X server.

    Grab all the files you need here:

    mpd (win32.zip)

    http://www.musicpd.org/download/win32/0.17.4/

    ncmpcpp files

    http://www.mediafire.com/download/1rq62m3exkf25g1/ncmpcpp_git.zip

    *Batch download that contains both .rar

    http://www.mediafire.com/download/w5d6adth095m8z2/MPD%2BNCMPCPPBATCH.rar

    http://www.google.com/url?q=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fxming%2F&sa=D&sntz=1&usg=AFQjCNE_g-hXFfwIgOfmBzqseioym6_EJghttp://www.google.com/url?q=http%3A%2F%2Fwww.mediafire.com%2Fdownload%2Fw5d6adth095m8z2%2FMPD%252BNCMPCPPBATCH.rar&sa=D&sntz=1&usg=AFQjCNFpt0SghvtvwV8lNyaYoJW31-mfkAhttp://www.google.com/url?q=http%3A%2F%2Fwww.musicpd.org%2Fdownload%2Fwin32%2F0.17.4%2F&sa=D&sntz=1&usg=AFQjCNE1Zlj8Yzcg7O4rgHLphJbF8ModnQhttp://www.google.com/url?q=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fxming%2F&sa=D&sntz=1&usg=AFQjCNE_g-hXFfwIgOfmBzqseioym6_EJghttp://www.google.com/url?q=http%3A%2F%2Fcygwin.com%2Finstall.html&sa=D&sntz=1&usg=AFQjCNE3wasLOR0-sgfZDrzNCAeF1uuzdghttp://www.google.com/url?q=http%3A%2F%2Fcygwin.com%2Finstall.html&sa=D&sntz=1&usg=AFQjCNE3wasLOR0-sgfZDrzNCAeF1uuzdg
  • 8/10/2019 MPDNCMPCPP.pdf

    2/7

    Setting up MPD

    Extract MPD (I.E Extract to C:/MPD)

    Inside the MPD folder, you will need to make a .mpd folder, which will have:

    playlists folder

    mpd.db

    mpd.log

    *in order to do so, open up the cygwin terminal and type mkdir .mpd (make sure that cd into

    the right folder for mpd i.e C:/MPD)

    You can just make mpd.db and mpd.log using notepad++, just open up an empty text file and

    save it as "mpd.db", etc! Just make an empty folder for "playlists"

    In the end, you should have a folder like "C:/mpd/.mpd/" which has all 3 required things within.

    In the SAME FOLDER WITH THE .exe, make a .txt file called "config"

    Now, copy and paste this:

    port "6600"

    music_directory "L:/Music"playlist_directory "C:/Users/ullr/.mpd/playlists"

    db_file "C:/Users/ullr/.mpd/mpd.db"

    log_file "C:/Users/ullr/.mpd/mpd.log"

    audio_output {

    type "winmm"

    name "My Windows Device"

    }

    *NOTE: IT IS IMPORTANT TO CHANGE THE LOCATIONS THAT FIT YOUR COMPUTER FOR

    MUSIC, PLAYLISTS, ETC. I.E Instead of "L:/Music", let's say you have your music in

    C:/User/Anon/Music

    For the playlist, mpd.db and mpd.log, you should only need to change the root part {C:/} to where

    you extracted the .mpd

    Example: Instead of C:/Users/, it could be C:/mpd/.mpd/

    *Don't use \, only use /.

  • 8/10/2019 MPDNCMPCPP.pdf

    3/7

    You don't need to change anything else beside the locations for directories and files.

    Now, when you are done with that, simply drag the config file and place it on the .exe. This will

    cause mpd to open up with the configurations you set.

    *NOTE: If you receive and error upon first-time opening, it is okay, just leave it open. If it is

    bothering you, you could close mpd and re-open it with the configuration. It should open a blank

    window with no text.

    Xming

    Go ahead and get Xming set up if you haven't already. Just keep hitting continue. When finished,

    open up xLaunch and choose multi-window when applicable, and any other settings you want.

    Make sure Xming is open, you can check the tray for it or check your services list in Task

    manager.

    Cygwin and Urxvt/bash

    Hopefully, you already have cygwin installed with urxvt. Go ahead and open up the cygwin

    terminal.

    First: Type: export DISPLAY=:0

    Press Enter

    Type: urxvt&

    Press Enter

    It should say something like: "[1] Done" and a window should open up.*There can be some delay to the window opening. If one does not open up, open Task

    manager and kill the urxvt.exe service under services. Then try again.

    You should now see a window that looks really ugly(blue, big text, maybe some green). This is

    BASH, and it shows that you're pretty much ready for ncmpcpp, but we need to do a bit of ricing

    before hand.

    RICE: Urxvt and You

    In order to rice out your new, ugly urxvt terminal to look slick and good lookin', you'll need to do a

    couple of things.

    One, open up Notepad++ and set EOL Conversion to UNIX

    Edit > EOL Conversion > UNIX Format

    Two, you will need to make sure you have a .Xdefaults file, or make one if there isn't one.

    touch ~/.Xdefaults

  • 8/10/2019 MPDNCMPCPP.pdf

    4/7

    This will create a .Xdefaults file. If you want to check where it is at specifically, it should be

    /home/your name/ in your cygwin folder. (i.e C:/cygwin/home/Lin/)

    Go ahead and just drag that .Xdefaults file into notepad++

    IF THERE IS NOTHING THERE:

    Copy and Paste this example:

    urxvt*font: xft:lemon-j:size=4

    urxvt*boldFont: xft:lemon-j:size=4

    urxvt*termName: rxvt

    urxvt.foreground: #ffffff

    urxvt.background: #1a1a1aurxvt.cursorColor: #ffffff

    urxvt*scrollBar: false

    urxvt*matcher.button: 1

    urxvt.transparent: false

    urxvt*allow_bold: true

    Xft*dpi: 96

    Xft*antialias: true

    Xft*hinting: full

    URxvt*geometry: 85x16

    URxvt*fading: 0

    URxvt*tintColor: #ffffff

    URxvt*shading: 0

    URxvt*inheritPixmap: False

    *background: #0f0f0f

    *foreground: #c8c8c8

    !black

    urxvt.color0: #2f2f2f

    urxvt.color8: #2f2f2f

    !red

    urxvt.color1: #ffffff

    urxvt.color9: #ffffff

    !green

    urxvt.color2: #3e3e3e

  • 8/10/2019 MPDNCMPCPP.pdf

    5/7

    urxvt.color10: #3e3e3e

    !yellow

    urxvt.color3: #2f2f2f

    urxvt.color11: #2f2f2f

    !blue

    urxvt.color4: #ffffffurxvt.color12: #ffffff

    !magenta

    urxvt.color5: #3e3e3e

    urxvt.color13: #3e3e3e

    !cyan

    urxvt.color6: #adadad

    urxvt.color14: #adadad

    !white

    urxvt.color7: #adadad

    urxvt.color15: #adadad

    *NOTE: You'll notice that the colors are just 3 repeated, that's because this is the color

    scheme for one of my screenshots. If you want to use your own colors, do so. The "!" tells you

    which colors should go where: i.e !red should have red colors.

    For "urxvt*font", you need to use a font that is installed on your computer. I can accurately

    guess that lemon is not installed on your computer (unless you have a .tff of it) since it is a .bdf,

    and you have to install it the linux way. Make sure to change the font and its size to meet your

    preferences.

    If you do have things there, then go ahead and start changing things.

    You should mess around with the colors. If you want to try other people's colors, then go to

    http://dotshare.it/category/terms/colors/, and check out the user submitted colors. Just copy and

    paste them (replacing the current colors you have). If you have urxvt open, just close it and

    re-open it for the changes to apply.

    ncmpcpp and You

    Close any open terminals before doing this. I don't believe it matters, but I do it anyways just to

    avoid any problems.

    Make sure you have the ncmpcpp files from the .rar provided at the top of the guide.

    Extract the .rar and copy/paste everything in it to your /bin/ folder in your cygwin folder (i.e:

    c:/cygwin/bin/) REPLACE WHEN APPLICABLE.

    Now, open up a urxvt terminal and type ncmpcpp

    http://www.google.com/url?q=http%3A%2F%2Fdotshare.it%2Fcategory%2Fterms%2Fcolors%2F&sa=D&sntz=1&usg=AFQjCNGHDOOU3Vu-bKiY81SOdiCUH0ThWw
  • 8/10/2019 MPDNCMPCPP.pdf

    6/7

    If you see: Connected to local host at the bottom, you are done! Press F1 to see a list of

    hotkeys. Press 2 to open up your music file directory. You should see all of your music.

    Make sure that your music is working by playing some songs. If they don't work..then maybe it's

    a location error? I don't really know what to tell you if they do not work besides trying to messaround with your music folder and the mpd config.

    Ncmpcpp: You, Yourself and Rice

    You mostly see people with different ncmpcpp rice. If you want use someone else's

    configuration, follow these short steps.

    First: open up a urxvt terminal if you haven't already and do the following:

    (cd to ~/ if you aren't in that directory)

    mkdir .ncmpcppcd ~/.ncmpcpp/

    touch config

    What you've just done was make a config file for ncmpcpp. Go ahead and open that file in

    notepad++. You'll notice that it is probably empty. No worries, go ahead and go to

    http://dotshare.it/category/mpd/ncmpcpp/to grab a config that you like. Just copy and paste the

    code into notepad++ and save.

    Then, if ncmpcpp is open, close that window and open a new one. You should see that the

    changes have taken effect.

    By the by, let's say you want to add music to your music folder to play in ncmpcpp. When you

    add a folder, ncmpcpp will NOT update automatically. It will not notice the new folder. You will

    have to update the database by opening ncmpcpp and simply pressing "u". It will say "Database

    is updating" at the bottom. When it is done, check to see if your music has been added [press 2

    and look for the music you added].

    I made the mistake of not reading the F1 hotkeys, and deleted the original database in .mpd,

    causing a database error and many tears. Don't do that.

    If you have any questions, feel free to ask me when you see me around. I do not use IRC (yet),

    so you will only find me either on 4chan /w/, /wg/, /g/, or on deviantArt under the username

    "sayounarasensei".

  • 8/10/2019 MPDNCMPCPP.pdf

    7/7