the itjerk

my adventures with technology

Monthly Archives: August 2010

command line music player

Screenshot from 2014-05-26 03:41:59
Is this cool or what?! Music On Console is a command line music player. It brings me way back into the days of DOS, but this is no retro app. It's full featured, supports output to ALSA, JACK and OSS, and is fun and easy to use. For instance, to play a Squeezebox Server stream, simply run mocp, type "o" to open the stream, and enter "http://localhost:9000/stream.mp3". Next, open a browser to the Squeezebox Server interface and viola! Thanks to Linux Journal's October issue for the tip. This got my geek up big time!

On the web:
Music On Console

enter  -- starts playing
  s      -- stops playing
  n      -- plays next item from the playlist
  b      -- plays previous item from the playlist
  space  -- pause
  p      -- pause

  S      -- plays at random
  R      -- repeats the same song in a loop,
	    Next (X button below) must be OFF
  X      -- switches to play sequentially
  o      -- plays a file from the Internet
  u      -- moves playlist item up
  j      -- moves playlist item down
  Ctrl+u -- adds the URL to the playlist
  g      -- searches marked string in file names
  /      -- searches marked string in file names

  r      -- rereads the directory
  T      -- switches to the theme selection menu
  f      -- toggles display mode of song titles
  TAB    -- switches marker bar between the playlist
	    and the file manager panels
  l      -- switches between displaying the playlist
            or the file manager panel
  P      -- switches full path in the playlist
  H      -- toggles hidden files view
  Ctrl-t -- toggles song duration time
  Ctrl-f -- toggles format file view
  m      -- moves to directory entered in config file
  G      -- moves to directory with currently played file
  i      -- moves to marked directory
  U      -- moves to upper directory
  a      -- adds a file to the playlist
  A      -- adds a directory recursively to the playlist
  C      -- clears the playlist
  V      -- saves the playlist
  d      -- removes marked item from the playlist
  Y      -- removes all empty items from the playlist

  < -- decreases volume by 1%
  ,      -- decreases volume by 5%
  >      -- increases volume by 1%
  .      -- increases volume by 5%

  x      -- toggles the mixer channel
  ?      -- shows help

  !      -- goes to a fast dir 1 (set in config file)
  @      -- goes to a fast dir 2
  #      -- goes to a fast dir 3
  $      -- goes to a fast dir 4
  %      -- goes to a fast dir 5
  ^      -- goes to a fast dir 6
  &      -- goes to a fast dir 7
  *      -- goes to a fast dir 8
  (      -- goes to a fast dir 9
  )      -- goes to a fast dir 10

  F1     -- executes ExecCommand1 (set in config file)
  F2     -- executes ExecCommand2
  F3     -- executes ExecCommand3
  F4     -- executes ExecCommand4
  F5     -- executes ExecCommand5
  F6     -- executes ExecCommand6
  F7     -- executes ExecCommand7
  F8     -- executes ExecCommand8
  F9     -- executes ExecCommand9
  F10    -- executes ExecCommand10
Advertisements

wireless router


Can you believe it? The old wireless router went bad. Couldn't stream FLAC files to my Squeezebox, and even some MP3/OGG files would drop out. Off to the newly remodeled Microcenter and found this one: Trendnet 432BRP. Yes, it's only offers "g", but I only have "g" wireless devices. Total price $21.97 priced matched with NewEgg PLUS a $20 rebate – that about makes it free! It features with an Energy Star wall wart and supports all the things I needed from a router. I did have to update the firmware on the router right away, which fixed a problem with date/years.

A couple of notes about setting a wireless router. First, use channels 1, 6, or 11, and test the strength on each. Channels do overlap, and this can be especially problematic if like me, you live in a high-density area. I must have about 25 ssids I can identify from my living room! Second, use WPA security, please. People will find and use your bandwidth. Finally, be sure to change the default password for your router, otherwise, it can be hacked quite easily.

And yes, my Squeezebox is streaming happily once again!