Difference between revisions of "AirTime: Instalasi"

From OnnoWiki
Jump to navigation Jump to search
Line 9: Line 9:
 
Jika kita ingin agar Airtime server mempunyai output audio secara langsung ke pemancar broadcast atau streaming encoder, server yang kita gunakan harus mempunyai sound card yang di dukung oleh ALSA. Sebetulnya hampir semua sound card di dukung ALSA dan biasanya sudah ada dalam kernel linux tanpa perlu kita install apa-apa lagi. Jika kita ragu-ragu kita dapat melihat http://www.alsa-project.org/main/index.php/Matrix:Main  
 
Jika kita ingin agar Airtime server mempunyai output audio secara langsung ke pemancar broadcast atau streaming encoder, server yang kita gunakan harus mempunyai sound card yang di dukung oleh ALSA. Sebetulnya hampir semua sound card di dukung ALSA dan biasanya sudah ada dalam kernel linux tanpa perlu kita install apa-apa lagi. Jika kita ragu-ragu kita dapat melihat http://www.alsa-project.org/main/index.php/Matrix:Main  
  
If your Airtime machine will only be used to stream to an Icecast streaming media server, you do not require a soundcard to be installed on the server side. This option is suitable for Airtime installations at your ISP's datacenter, remote from any transmitter.  
+
Jika AirTime digunakan untuk stream ke Icecast streaming media server di Internet, maka sebetulnya kita tidak perlu sound card di server. Pilihan instalasi AirTime ini cocok untuk digunakan di ISP dataceter, yang jauh / remote dari pemancar FM.
  
Set up repositories for Ubuntu
 
  
When installing on an Ubuntu server, a few of the packages that Airtime relies on are in the Ubuntu universe or multiverse repositories. If either of these repositories is disabled, you can enable them in the /etc/apt/sources.list file, by opening the nano editor in your server's console with the command:
 
  
$ sudo nano /etc/apt/sources.list
+
==Setup Repository Ubuntu==
  
For an Ubuntu Lucid server, find the lines which begin deb and end with lucid universe or lucid-updates universe, adding multiverse to the end of these lines, if it is not there already. The multiverse repository is required for the libmp3lame0 library, which is an MP3 encoder.
+
Edit sources.list
  
The exact repository mirror URLs in your sources.list file will differ from the above screenshot, depending on your location.
+
$ sudo vi /etc/apt/sources.list
  
The Sourcefabric repository contains packages for Airtime, and any other packages which Airtime requires. To add the Sourcefabric repository to an Ubuntu Lucid server, scroll to the end of the sources.list file and add the following line:
+
tambahkan
  
 +
deb http://apt.sourcefabric.org/ maverick main
 
  deb http://apt.sourcefabric.org/ lucid main
 
  deb http://apt.sourcefabric.org/ lucid main
  
For Ubuntu Maverick, substitute maverick in place of lucid in the line above.
 
  
Press Ctrl+O (the Ctrl key and the letter O together) to save the file, then Ctrl+X to exit the nano editor.
+
==Install Sourcefabric signing key==
Set up repositories for Debian
 
  
On Debian, you may need to install the sudo package, if it is not installed already. On a Debian squeeze server, after you have installed and configured sudo, you can edit the /etc/apt/sources.list file with the command:
+
Lakukan
 
 
$ sudo nano /etc/apt/sources.list
 
 
 
You can obtain the libmp3lame0 library package by adding the following repository to the end of the file:
 
 
 
deb http://www.debian-multimedia.org squeeze main non-free
 
 
 
To add the Sourcefabric repository to a Debian squeeze server, add the following line to the end of the file:
 
 
 
deb http://apt.sourcefabric.org/ squeeze main
 
 
 
Press Ctrl+O (the Ctrl key and the letter O together) to save the file, then Ctrl+X to exit the nano editor.
 
Install the Sourcefabric signing key
 
 
 
Reload the system's package list with:
 
  
 
  $ sudo apt-get update
 
  $ sudo apt-get update
 
You will see an error message about a missing public key.
 
 
 
 
To fix this system error, you need to install the sourcefabric-keyring package, which contains the package signing key. This encryption key is a security measure which helps ensure that the Airtime packages you will be downloading in future have not been tampered with by a third party. You can install the key with the command:
 
 
 
  $ sudo apt-get install sourcefabric-keyring
 
  $ sudo apt-get install sourcefabric-keyring
  
When prompted, press the y key on your keyboard to install the sourcefabric-keyring package without verification. If you wish to verify the authenticity of the package signing key, please contact Sourcefabric for assistance.
+
==Install Sekaligus==
  
 +
Instalasi sekaligus dapat dilakukan dengan perintah
  
 +
$ sudo apt-get install postgresql icecast2 airtime airtime-audio-samples
  
Update your computer's software sources again, to confirm that you are now using a trusted software repository:
 
  
$ sudo apt-get update
+
==Install satu per satu==
  
You should no longer see the error message about the missing public key.
+
===Install Database Management System===
Installing the database management system
 
  
Airtime uses a PostgreSQL database to keep track of media assets and associated metadata in its storage server. Depending on the scale of your Airtime installation and the hardware available, you may wish to install PostgreSQL on a separate server. If you only have one server, you can install the postgresql package on the same machine as Airtime with the command:
+
Airtime menggunakan PostgreSQL
  
 
  $ sudo apt-get install postgresql
 
  $ sudo apt-get install postgresql
  
Installing a streaming server
 
  
Optionally, you may wish to stream directly from Airtime to an Icecast media distribution server, without requiring a soundcard or mixer in the broadcast chain. This option is particularly suitable for fully automated stations, in which all shows are played out using Airtime. You can install the icecast2 package on your server with the command:
+
===Install Streaming Server===
 +
 
 +
Install icecast
  
 
  $ sudo apt-get install icecast2
 
  $ sudo apt-get install icecast2
 +
  
 
In some scenarios, you may wish to stream from Airtime to a remote Icecast server, for example when Icecast is installed on a server in a datacenter with greater bandwidth available than an Airtime server located at your broadcast studio has. This separation may become necessary if your stream becomes popular, because each additional listener which connects to the Icecast stream uses additional bandwidth. In this case, you do not need to install the icecast2 package on the Airtime server.
 
In some scenarios, you may wish to stream from Airtime to a remote Icecast server, for example when Icecast is installed on a server in a datacenter with greater bandwidth available than an Airtime server located at your broadcast studio has. This separation may become necessary if your stream becomes popular, because each additional listener which connects to the Icecast stream uses additional bandwidth. In this case, you do not need to install the icecast2 package on the Airtime server.
  
Remove PulseAudio
+
==Remove PulseAudio==
  
The PulseAudio sound server is not compatible with Airtime, but is installed by default on Ubuntu. To remove PulseAudio from an Ubuntu machine, type the following command:
+
PulseAudio sound server tidak compatible dengan Airtime, tapi di instalasi oleh Ubuntu. Untuk membuangnya dapat menggunakan perintah
  
 
  $ sudo apt-get purge pulseaudio
 
  $ sudo apt-get purge pulseaudio

Revision as of 11:27, 14 July 2011

Siapkan Server

Ubuntu di rekomendasikan sebagai AirTime Server. Sebaiknya mempunyai 1GHz processor dan 512MB RAM. Tidak banyak harddisk yang digunakan. Hot-swap RAID sebaiknya digunakan untuk arip media sekiranya terjadi kerusakan harddisk. Sebaiknya pakai UPS untuk pengaman jika terjadi mati listrik sebentar.

Interface administrasi AirTime dirancang untuk bekerja dengan semua browser, desktop atau mobile. Browser yang di rekomendasikan adalah Mozilla Firefox 3.6.

Soundcard

Jika kita ingin agar Airtime server mempunyai output audio secara langsung ke pemancar broadcast atau streaming encoder, server yang kita gunakan harus mempunyai sound card yang di dukung oleh ALSA. Sebetulnya hampir semua sound card di dukung ALSA dan biasanya sudah ada dalam kernel linux tanpa perlu kita install apa-apa lagi. Jika kita ragu-ragu kita dapat melihat http://www.alsa-project.org/main/index.php/Matrix:Main

Jika AirTime digunakan untuk stream ke Icecast streaming media server di Internet, maka sebetulnya kita tidak perlu sound card di server. Pilihan instalasi AirTime ini cocok untuk digunakan di ISP dataceter, yang jauh / remote dari pemancar FM.


Setup Repository Ubuntu

Edit sources.list

$ sudo vi /etc/apt/sources.list

tambahkan

deb http://apt.sourcefabric.org/ maverick main
deb http://apt.sourcefabric.org/ lucid main


Install Sourcefabric signing key

Lakukan

$ sudo apt-get update
$ sudo apt-get install sourcefabric-keyring

Install Sekaligus

Instalasi sekaligus dapat dilakukan dengan perintah

$ sudo apt-get install postgresql icecast2 airtime airtime-audio-samples


Install satu per satu

Install Database Management System

Airtime menggunakan PostgreSQL

$ sudo apt-get install postgresql


Install Streaming Server

Install icecast

$ sudo apt-get install icecast2


In some scenarios, you may wish to stream from Airtime to a remote Icecast server, for example when Icecast is installed on a server in a datacenter with greater bandwidth available than an Airtime server located at your broadcast studio has. This separation may become necessary if your stream becomes popular, because each additional listener which connects to the Icecast stream uses additional bandwidth. In this case, you do not need to install the icecast2 package on the Airtime server.

Remove PulseAudio

PulseAudio sound server tidak compatible dengan Airtime, tapi di instalasi oleh Ubuntu. Untuk membuangnya dapat menggunakan perintah

$ sudo apt-get purge pulseaudio

Removing the pulseaudio package on a desktop Ubuntu machine may force the removal of the ubuntu-desktop metapackage. However, this metapackage is only installed on the system for managing upgrades; removing it does not remove the GNOME desktop.

After removing PulseAudio, if your Airtime machine has a desktop and a soundcard, you can install a mixer applet which can control the ALSA soundcard driver directly, such as gnome-alsamixer:

$ sudo apt-get install gnome-alsamixer

On a server with a soundcard but without a desktop, you can control sound input and output levels using the command line program alsamixer:

This program should already be installed on an Ubuntu or Debian machine with a soundcard. If not, you can install it with the command:

$ sudo apt-get install alsa-utils

Now your server should be ready for Airtime to be installed.



Referensi

Pranala Menarik