How to install Icecast 2 on EndeavourOS Latest
Icecast 2 is a free, open-source audio streaming server that allows you to stream audio over the internet. If you're looking to set up a radio station, podcast or live music stream, Icecast 2 is a great option.
In this tutorial, we'll walk you through the steps to install Icecast 2 on EndeavourOS Latest.
Step 1: Update the System
Before installing Icecast 2, it's a good idea to ensure that your system is up to date. Run the below command to update the system:
sudo pacman -Syu
Step 2: Install Icecast 2
To install Icecast 2, run the below command:
sudo pacman -S icecast
After running the command, the system would ask for confirmation before proceeding with the installation. Type y and hit Enter.
The installation process may take some time depending on your internet speed.
Step 3: Configure Icecast 2
Once the installation is complete, you need to configure Icecast 2 before you can start streaming audio.
The configuration file is located at /etc/icecast.xml. Open the file with your preferred text editor:
sudo nano /etc/icecast.xml
The configuration file is well documented, you can read through the file to understand what each line means. However, for the purposes of this tutorial, we'll only focus on a few critical lines.
Configure Icecast 2 as follows:
- Edit the hostname to reflect the IP address of your server (use the command
ip addressto check your IP address).
<hostname>127.0.0.1</hostname>
- Set the password for the Icecast source (
source-password), and admin (admin-password) accounts.
<source-password>your_source_password_here</source-password>
<admin-password>your_admin_password_here</admin-password>
- Edit the port to the desired port. You can leave the default port number (8000).
<port>8000</port>
- Set the maximum number of listeners (
<clients>) and the maximum number of allowed sources (<sources>) respectively.
<clients>100</clients>
<sources>2</sources>
- Finally, set the server admin email address (
<admin>).
<admin>[email protected]</admin>
After editing the configuration file, save the changes and exit.
Step 4: Start Icecast 2
To start the Icecast 2 server, run the command:
sudo systemctl start icecast
To enable Icecast 2 to start automatically at boot time, run the command:
sudo systemctl enable icecast
You can check the status of the Icecast 2 server by running:
sudo systemctl status icecast
Step 5: Test the Icecast 2 Server
To test the Icecast 2 server, you can use a media player such as VLC. Open VLC and navigate to Media > Open Network Stream, enter the server URL in the format http://<IP_address>:<port>/stream and click Play.
If everything goes well, you should hear the audio stream on your media player.
Congratulations! You have successfully installed and configured Icecast 2 on EndeavourOS Latest. You can now start streaming audio over the internet.