Difference between revisions of "Streaming With Icecast"

From ArchWiki
Jump to: navigation, search
m (Step 2: Getting a Client: typo)
(Removed MPD and Client Install Instructions and added a link to the main Install page, as it would be redundant. Why is Step3 not complete?!)
Line 1: Line 1:
 
MPD is a program for playing music via a deamon process instead of using a client. It also incorperates a music database for quick access, playlists, and a variety of frontend options.
 
MPD is a program for playing music via a deamon process instead of using a client. It also incorperates a music database for quick access, playlists, and a variety of frontend options.
==Step 1: Set Up MPD==
 
*Install MPD via Pacman
 
  # pacman -S mpd
 
*Edit the config file
 
Open up /etc/mpd.conf in your favorite text editor. The first line you need to change is
 
  music_directory    "/mnt/music"
 
Replace /mnt/music with the location of your music files.
 
Uncomment out the lines beginning with db_file and pid_file as well.
 
*Create the database
 
MPD relies on a cache database to find and organize your music. To create this database execute:
 
  # mpd --create-db
 
*Start it up!
 
To start MPD, just execute
 
  # mpd
 
==Step 2: Getting a Client==
 
MPD has many clients. Personally, I prefer NCMPC, a ncurses-based client. If you prefer a GUI, you can install glurp.
 
Of course, both are availible via pacman.<br>Start up your client of choice, and play around with it.
 
  
==Step 3: Setting up Icecast==
+
==Step 1: Set Up MPD and Install a Client==
 +
Use the [[MPD_-_Music_Player_Daemon|MPD Install Guide]] to install and configure MPD and a client.
 +
 
 +
==Step 2: Setting up Icecast==
 
*Install Icecast via Pacman
 
*Install Icecast via Pacman
 
   # pacman -S icecast
 
   # pacman -S icecast
Line 29: Line 15:
 
*Test it.
 
*Test it.
 
Make sure Icecast is running by opening up http://localhost:8000/ in your web browser. You should be greeted by an Icecast2 Status page. This indicates everything is running properly.
 
Make sure Icecast is running by opening up http://localhost:8000/ in your web browser. You should be greeted by an Icecast2 Status page. This indicates everything is running properly.
==Step 4: Configure MPD to be an Icecast Source==
+
 
 +
==Step 3: Configure MPD to be an Icecast Source==
 
Again, open /etc/mpd.conf.
 
Again, open /etc/mpd.conf.

Revision as of 03:24, 5 December 2005

MPD is a program for playing music via a deamon process instead of using a client. It also incorperates a music database for quick access, playlists, and a variety of frontend options.

Step 1: Set Up MPD and Install a Client

Use the MPD Install Guide to install and configure MPD and a client.

Step 2: Setting up Icecast

  • Install Icecast via Pacman
 # pacman -S icecast
  • Edit the configuration file.

Open up /etc/icecast.xml in your text editor du jour. The main section you want to pay attention to is <authentication>. Inside the <authentication> block are all the passwords that icecast use. I STRONGLY RECOMEND you change them.
Icacest defaults to listening on port 8000, and you may also change that if you wish.

  • Start icecast

You can start icecast by executing:

 # icecast -b -c /etc/icecast.xml
  • Test it.

Make sure Icecast is running by opening up http://localhost:8000/ in your web browser. You should be greeted by an Icecast2 Status page. This indicates everything is running properly.

Step 3: Configure MPD to be an Icecast Source

Again, open /etc/mpd.conf.