[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Real Server Basic on RaQ4r
- Subject: [cobalt-users] Real Server Basic on RaQ4r
- From: Lumir G Janku <lgjanku@xxxxxxxxxxxx>
- Date: Tue Apr 17 09:13:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Those of you that wonder about setting up Real A/V streaming, the matter is
fairly simple.
Unless you want to pay a bundle of bucks, you would opt for a Real Server
Basic, that allows 25 simultaneous streams.
Of course, some may point out that 25 streams is not that much. True, and
if you have RaQ4r with 512Mb Ram, then you can actually afford to have
several RSB's running on the system. In fact, 3 RSB's. Why 3? That's is how
many mounted partitions you have. I have been unsuccessful running more
than one server per partition, however 3 x 25 streams is way better than 25
only. The only thing one needs to premeditated are the ports, each of the
three would utilize different ones, otherwise the install would complain
that the ports are not available. But that is a simple matter.
Installation
========
Download RSB :
http://proforma.real.com/rn/servers/univdwnld/index.html?ulf=bas&src=noref,rnhmpg_041301,rnhmtn,prdctmn_041301,srvrbsc_011901
The partitions:
/
/var
/home
so
/ra
/var/ra2
/opt/ra3 (opt is on home partition)
Make sure that:
1. you have all the patches installed
2. log on to telnet or secure shell and su, chmod the directory where you
would be installing to 775
3. It is possible to install from one source location to all three install
directories, but for the sake of clarity and knowing where you are, it is
better to copy the .lic and .bin files into the install directory.
4. do not forget to chmod the rs-8-0-linux-libc6.bin to 755 so it is
executable.
5. it is best to have the license file in the same directory (one license
file will do for all 3 configurations, but you can fetch 3 licenses by
modifying your information in the download request form). Copy the license
file name to your clipboard!
6. execute the binary: ./rs-8-0-linux-libc6.bin
7. follow the prompts. The license file path is a full path, including the
license filename that you have on your clipboard. If you do not supply it
or it's incorrect, the RSB defaults to 10 streams only.
8. I recommend using different ports than defaults in some cases, in
parentheses are the numbers for the other 2 RSB's.
PNA: default 7070 (7071, 7072)
HTTP: 8082 (8083, 8084)
RSTP: default 554 (556 may be in use -- so 555, and 557)
Monitor: default 9090 (9091, 9092)
Admin: as is or you can modify to create a sequence for easy recollection:
23430 (23431, 23432)
9. run the browser base admin interface to modify the settings to your
liking (see configuration details below).
10. move the .lic and .bin files to another install location or remove when
you are done (the binary is 15Mb).
11. Before installation of a second server, change the defaults for encoder
(4040 to 4041) and pre-g (5050 to 5051) so you free the ports for other
installations, otherwise it may choke on it. Repeat after installing the
second server (4042, 5052), so again the ports are available for the third
install.
That is all to it as the installation is concerned (of course, if you
install only one RSB, than it is less hassle. I still recommend the ports
changed, because 8080 and 8081 may be used by other wares).
The configuration gory details
=====================
The 3 RSB's do work each as a standalone server. Hence, you would be
assigning sites to the servers. Say you plan to have about 100 sites on
your 4r, and at present you have about 60. You can wait with the 3rd RSB
till later and install just 2. Each would be assigned to handle 34 sites
(not all sites would be likely to use RSB, in fact about one fifth max.
would be a good estimate--so 6 sites would share 25 streams in this scenario.
You can discourage the bandwidth bottleneck by enabling the service for a
fee. :-)
General setup:
Ports:
You have your ports already set from install, but if you want to change
them, here is where.
It is better to keep a tap on admin privileges, so do not enable accesses
for other admins unless you are threatened. :-)
Include HTTP port in URLs for cloaked users: Yes
Logging:
Leave as is, unless you want to get creative
IP Binding:
0.0.0.0 (enables whatever IP's are connected to mount point paths)
MIME Types: fine as is
Mount Points:
add something you can easily parse in a cgi app, like Mount point: /site2/
; Description: Domain_name ; Path: /home/sites/site2/web/realaudio/
What this translates to is:
a) site dir for the audio binaries is realaudio (you can call it whatever
you like)
b) the url for the actual binary clip would
be www.domain.com:port#/site2/this_is_my_dog_barking.rm
Now, as far as things are, some browsers do not access the sound files
directly. Netscape is one of 'em, but older IE do not either. So, for the
sake of compatibility,
the binaries are accessed by an ascii file (pointer_to_my_dog_clip.ram).
This file can be anywhere, provided that it points to the right binary clip.
Example of URL's to binary clips in the ascii pointer:
pnm://www.domain.com:[.rm_port]/[mount_point]/rafile.rm
or
http://www.domain.com:[.mp3_port]/[mount_point]/mp3file.mp3
Where [rm_port]=554 and [mp3_port]=8082 and [mount_point]=site2
It is possible to insert an additional information to the ascii audio file
like :
pnm://www.domain.com:554/site2/blackmagicwoman.rm
Black Magic Woman|Santana|Strings Attached3|
or
http://www.domain.com:8082/site2/blackmagicwoman.mp3
Black Magic Woman|Santana|Strings Attached3|
and write a script that creates an audio file list
(http://www.dahcliffstah.com/music/audio.shtml)
To distinguish between rm and mp3 files, I devised an extension mpa which
is an ascii file for MP3 format and added this extension to the mime.types
(/etc/httpd/conf) as audio/x-pn-realaudio ram mpa
Thus my script parses both types in separate lists based on the extension.
There are other ways, of course, there can be only the .ram extension and
the entry under the binary clip URL can specify the file type.
***********
Over&out