个人工具

“UbuntuHelp:RealPlayerInstallationMethods”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/RealPlayerInstallationMethods}}
 
{{From|https://help.ubuntu.com/community/RealPlayerInstallationMethods}}
 
{{Languages|UbuntuHelp:RealPlayerInstallationMethods}}
 
{{Languages|UbuntuHelp:RealPlayerInstallationMethods}}
<<Include(Tag/ContentCleanup)>>
+
Parent: [[UbuntuHelp:Applications|Applications]]
<<Include(Tag/StyleCleanup)>>
+
=== Introduction ===
<<Include(Tag/NeedsExpansion)>>
+
![[UbuntuHelp:RealPlayer|RealPlayer]] is a media player originally developed by RealNetworks in 1995. It supports a number of audio and video codecs such as realaudio, realvideo, mp3, ogg vorbis and theora, h263, and AAC. [http://www.real.com/linux RealPlayer for Linux] is based on the open-source [https://player.helixcommunity.org/2005/downloads/ Helix Player] which can be found at the [https://www.helixcommunity.org/ Helix Community Website].  
[[UbuntuHelp:RealPlayerInstallationMethods/PageDiscussion|Discuss this page]]
+
{|border="1" cellspacing="0"
== Introduction ==
+
|'''Please Note''': [[UbuntuHelp:RealPlayer|RealPlayer]] is proprietary software, is not supported by the Ubuntu community, and is not available from the official Ubuntu repositories. It is located in the ''non-free'' section of third-party repositories which the user must specifically enable.
[http://www.real.com/player RealPlayer] is a media player originally developed by Real''''''Networks in 1995. It supports a number of audio and video codecs such as realaudio, realvideo 10, mp3, ogg vorbis and theora, h263, and AAC. [http://www.real.com/linux RealPlayer for Linux] is based on the open-source [https://player.helixcommunity.org/2005/downloads/ Helix Player] which can be found at the [https://www.helixcommunity.org/ Helix Community Website].  
+
|}
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=eyes.png '''Please NOTE''': Real''''''Player is proprietary software and is not supported by the Ubuntu community.
+
=== Screenshot ===
=== Installing RealPlayer ===
+
{|border="1" cellspacing="0"
==== Install RealPlayer from Canonical's Commercial Repositories ====
+
|https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=RealPlayer.png|| ||https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=[[UbuntuHelp:RealPlayer|RealPlayer]]1.png||
Add Canonical's Commercial Repositories to your system:
+
|}
* '''Ubuntu 6.06''' «'''Dapper Drake'''»: <pre><nowiki>
+
=== Installing RealPlayer11 ===
  deb http://archive.canonical.com/ubuntu dapper partner
+
When an newer version of [[UbuntuHelp:RealPlayer|RealPlayer]] becomes available change the file name accordingly in the terminal commands presented in this guide.
 +
![[UbuntuHelp:RealPlayer|RealPlayer]] can be installed through a variety of methods. The installation methods presented below are listed in priority to allow the best integration with Ubuntu.
 +
* Installations via a ''.deb'' package will be registered with APT. Third-party repositories may offer updates. Package removal can be accomplished via the ''Terminal'' or ''Synaptic''.
 +
* Some third-party repositories, like those maintained by [[http://www.medibuntu.org/  Medibuntu], have introduced authentication procedures which help ensure the integrity of the available files.
 +
* The ''.deb'' packages created with ''alien'' may differ from the same type of packages offered by third-party organizations. If possible, use existing ''.deb'' packages rather convert ''.rpm'' files.
 +
* ![[UbuntuHelp:RealPlayer|RealPlayer]] installations from ''.bin'' files will not be registered with APT, are not supported by respository updates, and must be removed manually.
 +
The release version of ![[UbuntuHelp:RealPlayer|RealPlayer]]11 is a 32-bit application. It can be run on 64-bit systems with 32-bit libraries which are automatically installed by Synaptic or APT. A true 64-bit version is under development. Please refer to the [[UbuntuHelp:RealPlayerInstallationMethods#64-bit_RealPlayer|64-bit RealPlayer]] section of this guide.
 +
Once installed, ![[UbuntuHelp:RealPlayer|RealPlayer]] is accessed via ''Applications > Sound & Video > ![[UbuntuHelp:RealPlayer|RealPlayer]]11'' or entering ''realplay'' or ''realplayer'' in the ''Terminal''. Since previous versions run only with the first command,  '''''realplay''''' will be used in this guide for compatibility purposes.
 +
After installation please review the [[UbuntuHelp:RealPlayerInstallationMethods#Running|Running RealPlayer]] section of this guide for setup notes.
 +
==== Install ''realplayer'' from the Repositories ====
 +
<ol><li>Add the Medibuntu Repositories</li></ol>
 +
 
 +
![[UbuntuHelp:RealPlayer|RealPlayer]] is available through the [http://www.medibuntu.org/ Medibuntu] ''non-free'' repository.
 +
* The following command will register the Medibuntu repository with your system's Advanced Packaging Tool (APT) and import the Medibuntu keyring. The command should be run in the ''Terminal'' (''Applications -> Accessories -> Terminal''). The command is not ''release specific'' - it will determine which version of Ubuntu is running and install the appropriate repositories.
 +
<pre><nowiki>
 +
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update
 
</nowiki></pre>
 
</nowiki></pre>
* '''Ubuntu 7.04''' «'''Feisty Fawn'''»: <pre><nowiki>
+
* A line similar to the following will be created in ''/etc/apt/sources.list.d/medibuntu.list''. The entry will reflect the codename of the Ubuntu release you are currently using (i.e. ''hardy, intrepid, jaunty'', etc).
  deb http://archive.canonical.com/ubuntu feisty partner
+
<code><nowiki>deb http://packages.medibuntu.org/ hardy free non-free </nowiki></code>
 +
* For more information about adding the Medibuntu repository, please visit the [[UbuntuHelp:Medibuntu|Medibuntu|wiki]].
 +
<ol><li>Install ![[UbuntuHelp:RealPlayer|RealPlayer]] via Synaptic or the ''Terminal''</li></ol>
 +
 
 +
'''Synaptic'''. Open Synaptic via ''System > Administration > Synaptic Package Manager''.
 +
* Press ''Reload'' to update the repository package lists.
 +
* Select ''realplayer'' from the package window, then ''Apply'' from the main Synaptic menu.
 +
{|border="1" cellspacing="0"
 +
|||||https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.synaptic.png|| ||Hint: If you can't find ''realplayer'' listed in Synaptic's right pane, ensure that ''All'' is selected in the left pane and type ''realplayer'' in the quick seach window near the top right. The lower right pane contains information about the selected package. If you can't find ''realplayer'' listed, open ''Settings, Repositories, Third-Party Software'' and ensure the Medibuntu repository is enabled.
 +
|}
 +
'''Terminal'''.  Open the ''Terminal'' via ''Applications > Accessories > Terminal''.
 +
<pre><nowiki>
 +
sudo apt-get update
 +
sudo apt-get install realplayer
 
</nowiki></pre>
 
</nowiki></pre>
If you need help with adding the repository, see [[UbuntuHelp:Repositories/Ubuntu#head-b75a0c6c7e357640731529980d3f3ad3614b9a76|Adding Canonical Commercial Repositories on Ubuntu]] or [[UbuntuHelp:Repositories/Kubuntu#head-9a7a4519857af012ff775e9c0f15fbce60173676|Kubuntu]] on the Repositories wiki pages.
+
'''Add/Remove'''.  The ''Add/Remove'' feature currently does not support ![[UbuntuHelp:RealPlayer|RealPlayer]], even after APT is updated and [[UbuntuHelp:RealPlayer|RealPlayer]] is installed.
* Once the repository has been added, select '''Add/Remove...''' from the '''''Applications''''' menu.
+
==== RealPlayer11GOLD.deb ====
* To find Real''''''Player, type '''Real''''''Player''' into the search box at the top. Check the box next to the search result and press '''OK'''
+
''Note'': The ''.deb'' package currently available from the RealNetworks site is a 32-bit build of ![[UbuntuHelp:RealPlayer|RealPlayer]]. The ''.deb'' file available from the Medibuntu repository will run on 64-bit systems.
* To uninstall Real''''''Player, return to '''Add/Remove Applications''', uncheck the box next to Real''''''Player, then press '''OK'''.
+
'''File Browser or Desktop Install'''
The package in the Commercial repository is called ''realplay''.
+
* Download the latest ![[UbuntuHelp:RealPlayer|RealPlayer]] ''.deb'' file from the [http://www.real.com/linux Real website].  
==== Install RealPlayer for Linux from the RealNetworks web site ====
+
* Select the ''[http://www.real.com/linux DEB Package link]''.
<ol><li>Install the package ''libstdc++5''. Type: <pre><nowiki>
+
* Locate the downloaded file. The default location for downloads is usually your Desktop (~/Desktop). If not found, use a file browser to locate the downloaded file. Double click ''[[UbuntuHelp:RealPlayer|RealPlayer]]11GOLD.deb''. The ''gdebi'' installer will open and install the ![[UbuntuHelp:RealPlayer|RealPlayer]] package.
$ sudo aptitude install libstdc++5
+
* The default installation location is ''/opt/real/[[UbuntuHelp:RealPlayer|RealPlayer]]''.
 +
{|border="1" cellspacing="0"
 +
|||||https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.gdebi.png|| ||Clicking the ''Install Package'' button will start the ''gdebi'' installer. A list of the additional packages which will be installed can be viewed by clicking the ''Details'' button, while additional files can be seen by selecting the ''Included Files'' tab.
 +
|}
 +
* Once installed, Synaptic will display the installation as ''realplayer''.
 +
* If you attempt to install the 32-bit .deb package on a 64-bit operating system you will get the following message: ''Error: Wrong architecture 'i386' ''
 +
* '''Terminal Installation'''. Open the Terminal (''Applications > Accessories > Terminal'') and enter the following:  
 +
<pre><nowiki>
 +
cd $HOME/Desktop
 +
sudo dpkg -i RealPlayer11GOLD.deb
 
</nowiki></pre>
 
</nowiki></pre>
</li><li>Go to the [http://www.real.com/linux [[UbuntuHelp:RealPlayer|RealPlayer]] for Linux] web page and download the installer to your Desktop. A PowerPC version is avaliable from the [https://player.helixcommunity.org/2005/downloads/ Helix Player Download] page.
+
* If the downloaded file is not on the user's Desktop, change the first command to the appropriate location.
</li><li>Open the terminal and navigate to the file `[[UbuntuHelp:RealPlayer|RealPlayer]]11GOLD.bin`. Type: <pre><nowiki>
+
* If asked for a password, enter your user password. You will not see any characters as you type.
  $ cd ~/Desktop
+
* If the version of ![[UbuntuHelp:RealPlayer|RealPlayer]] changes, either make the correction to the above command or type ''"sudo dpkg -i ![[UbuntuHelp:RealPlayer|RealPlayer]]"'' and press the Tab key twice to autocomplete the filename.
 +
==== RealPlayer11GOLD.bin ====
 +
Note: The [[UbuntuHelp:RealPlayer|RealPlayer]] package installed via this method is not registered by APT and will not be displayed in Synaptic. 64-bit versions of ![[UbuntuHelp:RealPlayer|RealPlayer]] are available from Real/Helix's [http://forms.helixcommunity.org/helix/builds/?category=realplay-current nightly builds] page.
 +
<ol><li>Download the ![[UbuntuHelp:RealPlayer|RealPlayer]] ''.bin'' package from the [http://www.real.com/linux RealPlayer for Linux web page]. The default download location is the user's Desktop.</li></ol>
 +
 
 +
{|border="1" cellspacing="0"
 +
|||https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=button_download_realplayer.gif  Clicking on this button on the RealPlayer web page will start the download process for the !RealPlayer .bin package. Installing !RealPlayer in this way is not the preferred method of installing this application.|| ||https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.bin.download.png
 +
|}
 +
<ol><li>Open the ''Terminal'' and navigate to the file `[[UbuntuHelp:RealPlayer|RealPlayer]]11GOLD.bin`. Type: <pre><nowiki>
 +
  cd ~/Desktop
 
</nowiki></pre>
 
</nowiki></pre>
</li><li>Verify that the file is executable. If it isn't, type: <pre><nowiki>
+
</li><li>Make the file executable: <pre><nowiki>
  $ chmod a+x RealPlayer11GOLD.bin
+
  chmod a+x RealPlayer11GOLD.bin
 
</nowiki></pre>
 
</nowiki></pre>
 
</li><li>Run the installer by typing the following command: <pre><nowiki>
 
</li><li>Run the installer by typing the following command: <pre><nowiki>
  $ sudo ./RealPlayer11GOLD.bin
+
  sudo ./RealPlayer11GOLD.bin
</nowiki></pre> Enter your password when asked.
+
</nowiki></pre></li></ol>
</li><li>Follow the prompts provided to finish installation.
+
</li><li>When you launch the player for the first time, a set-up assistant will take you through configuring your player. You can run the set-up assistant again at any time by choosing Reset Real''''''Player from the Help menu.</li></ol>
+
  
==== Install RealPlayer.deb using dkpg ====
+
Enter your password when asked. You will not see any characters as you type.
* Download the latest [[UbuntuHelp:RealPlayer|RealPlayer]] .deb file from [http://www.debian-multimedia.org/pool/main/r/realplay/ this mirror].
+
<ol><li>Follow the prompts provided to finish installation.
* To install Real''''''Player, open a Terminal command line and type: <pre><nowiki>
+
</li><li>The default location for the .bin installation of ![[UbuntuHelp:RealPlayer|RealPlayer]] is ''/opt/real/[[UbuntuHelp:RealPlayer|RealPlayer]]'' and the run command is ''/usr/bin/realplay''.
$ sudo dpkg -i realplayer_10.0.9-0.1_i386.deb (or replace with your downloads name)
+
</li><li>When you launch the player for the first time, a set-up assistant will take you through configuring your player. You can run the set-up assistant again at any time by choosing ''Reset ![[UbuntuHelp:RealPlayer|RealPlayer]]'' from the Help menu.
 +
</li><li>Create a link to the ''realplay'' startup script in ''/usr/local/bin'' to ensure the script is included in the system's $PATH:</li></ol>
 +
 
 +
<pre><nowiki>
 +
sudo ln -s /opt/real/RealPlayer/realplay /usr/local/bin
 
</nowiki></pre>
 
</nowiki></pre>
* To uninstall Real''''''Player, type: <pre><nowiki>
+
Note: A PowerPC version is avaliable from the [https://player.helixcommunity.org/2005/downloads/ Helix Player Download] page.
$ sudo dpkg -r realplayer
+
==== RealPlayer11GOLD.rpm ====
 +
Note: The ''.rpm'' downloads available on the Real site are currently 32-bit only. 64-bit versions of ![[UbuntuHelp:RealPlayer|RealPlayer]] are available from Real/Helix's [http://forms.helixcommunity.org/helix/builds/?category=realplay-current nightly builds] page.
 +
RPM (Redhat Package Manager) files can be converted to ''.deb'' files or installed directly with an application called ''alien'', which is available in ''Synaptic's'' ''main'' respository. Click [[UbuntuHelp:RPM/AlienHowto|here]] to learn about how to install ''alien''.
 +
* Download the latest ![[UbuntuHelp:RealPlayer|RealPlayer]] ''.rpm'' file from [http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.rpm here].
 +
* To convert the ![[UbuntuHelp:RealPlayer|RealPlayer]] ''.rpm'' to a ''.deb file'' : <pre><nowiki>
 +
sudo alien RealPlayer11GOLD.rpm
 
</nowiki></pre>
 
</nowiki></pre>
=== Troubleshooting RealPlayer for Linux ===
+
* To convert the ![[UbuntuHelp:RealPlayer|RealPlayer]] ''.deb'' file and then install it: <pre><nowiki>
==== RealPlayer and Firefox 2 ====
+
sudo alien -i RealPlayer11GOLD.rpm
* '''External Protocol Handling''': ''I want Real''''''Player to handle Real''''''Audio and Real''''''Video files and streams (file extensions .ra, .rm, .rv, .ram, .smil) as well as the ''rtsp network protocol'', but Firefox wants to open these files and links with the Totem player.''
+
* To make Firefox 2 call Real''''''Player for realaudio / video files, go to '''''Edit > Preferences > Content > File Types > Manage...'''''. Select the "real audio" file type and click "Change action.." Check the setting for "Open with the default application" (unless you have made changes to this setting previously, it will probably say Totem). If you want the file to open with an external program other than the default (like Real''''''Player), select "Open with this application" - you will then be prompted to select an application. Navigate to the start-up script for Real''''''Player ("realplay") located in the "Real''''''Player" program folder. The location will differ depending on the installation method you have chosen. For a typical install using the installer from the Real''''''Networks web site, it will be: <pre><nowiki>
+
  /usr/local/RealPlayer/realplay</nowiki></pre>
+
Save and close the preference panel. 
+
* To prevent the [[UbuntuHelp:MPlayer|MPlayer]] plugin from playing realaudio / video files, edit the plugin configuration file `~/.mplayer/mplayerplug-in.conf` and change or add the following three lines: <pre><nowiki>
+
enable-rm=0
+
enable-smil=0
+
enable-helix=0
+
 
</nowiki></pre>
 
</nowiki></pre>
* To make Firefox 2 use Real''''''Player for rtsp streams embedded in web page links, close Firefox and open the '''gconf editor''' from the '''Applications''' menu. Navigate to "desktop > gnome > url-handlers > rtsp". Check the value for "command" - it will probably read '''totem "%s"'''. Change the entry to read '''realplay "%s"''' and close gconf editor. '''Note''': make sure that a symbolic link of the "realplay" start-up script is in your system path, otherwise you'll need to enter the full path to "realplay" in the gconf entry. See below.
+
* The converted/installed ''.deb'' file will be registered in APT and will be listed in ''Synaptic'' as ''realplayer''. It can be viewed under ''Synaptic's'' ''All'' or ''Local/non-free'' filter.
* '''Note''': Firefox will only evaluate the mime types that the plugin supports either when such plugin is updated or when '''$HOME/.mozilla/firefox/pluginreg.dat''' is missing. Therefore when you change any option you also need to either remove '''pluginreg.dat''' <pre><nowiki>
+
<<Anchor(64-bit [[UbuntuHelp:RealPlayer|RealPlayer]])>>
rm $HOME/.mozilla/firefox/pluginreg.dat</nowiki></pre>
+
=== 64-bit RealPlayer ===
or simply update the plugin file time <pre><nowiki>
+
The ''realplayer'' version in the Medibuntu repositories is 64-bit compatible. Several 32-bit libraries will be installed as dependencies.
sudo touch /usr/lib/firefox/plugins/mplayerplug-in.so</nowiki></pre>
+
The ''.deb'' and ''.rpm'' files available from the [http://www.real.com/linux Real website] are 32-bit versions.
* Alternatively you can reset all of your mime type associations by deleting the '''mimeTypes.rdf''' file <pre><nowiki>
+
64-bit versions of ![[UbuntuHelp:RealPlayer|RealPlayer]] currently under development are available from Real/Helix's [http://forms.helixcommunity.org/helix/builds/?category=realplay-current nightly builds] page in ''tar.bz2'' files. Look for the download package with ''amd64'' in the title. Example: ''linux-2.6-glibc23-amd64''
rm $HOME/.mozilla/firefox/dvibi9j3.default/mimeTypes.rdf</nowiki></pre>
+
<<Anchor(Running)>>
which is visible after enabling "Show Hidden Files".  The '''.default'''   
+
=== Running RealPlayer ===
directory will have a random alpha-numeric name.
+
![[UbuntuHelp:RealPlayer|RealPlayer]] can be started via ''Applications > Sound & Video > ![[UbuntuHelp:RealPlayer|RealPlayer]]11'' or via the ''Terminal'' by typing:
<<BR>>
+
* '''Plugin Handling''': ''Firefox 2 won't play real media embedded in web pages.''
+
* Check whether the Real''''''Player plugin is installed correctly. Type '''about:plugins''' into the Firefox address bar. You will see a page with details of all currently installed plugins. Search for plugins that will handle real audio or real video files and streams. If you cannot find any, there is a problem with your plugin installation. Read on. More likely however, you will find at least two similarly named plugins that claim to handle real media: <pre><nowiki>
+
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible (compatible; Totem)
+
  File name: libtotem-complex-plugin.so
+
  The Totem 2.16.2 plugin handles video and audio streams.</nowiki></pre>
+
and <pre><nowiki>
+
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
+
  File name: nphelix.so
+
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
+
  version 0.4.0.572 built with gcc 3.2.0 on Sep 15 2005</nowiki></pre>
+
The first entry is a plugin for the Totem player; the second entry is the actual Real''''''Player plugin. Firefox will try to use the first plugin it finds that claims to handle a given file type. Unfortunately, the Totem plugin won't play real media files. Now, if we close the browser and look into the plugins folder of Firefox 2, located at <pre><nowiki>
+
  /usr/lib/firefox/plugins </nowiki></pre>
+
we can see that most plugins offer a pair of files named foo.so and foo.xpt, and that they use symbolic links that point to the original installation locations. Therefore, we can safely remove the symbolic links to the non-functional Totem real media plugin <pre><nowiki>
+
  $ sudo rm -v /usr/lib/firefox/plugins/libtotem-complex-plugin.*</nowiki></pre>
+
The plugin provided by Real''''''Player should now handle embedded real media.
+
<<BR>>
+
* ''When I try to view embedded real media in Firefox 2, a dialog box appears saying the following:'' <pre><nowiki>
+
  "Could not find an appropriate hxplay or realplay in the system path to use as an embedded player."</nowiki></pre>
+
* Firefox is telling you that it cannot find an instance of the "realplay" start-up script for Real''''''Player in the system path. Close the browser, open a Terminal and create a symbolic link in your system path that points at the "realplay" script. An example of an appropriate location for your symbolic link would be <pre><nowiki>
+
  $ ln -s /usr/local/RealPlayer/realplay /usr/local/bin/realplay</nowiki></pre>
+
Test your work: <pre><nowiki>
+
  $ which realplay
+
  $ /usr/local/bin/realplay</nowiki></pre>
+
The plugin provided by Real''''''Player should now handle embedded real media.
+
<<BR>>
+
* ''How can I verify that the Real''''''Player plugin for Firefox is properly installed?''
+
* Enter '''about:config''' into the Firefox address bar. You will see a large list of configurable options for the Firefox browser. In the search bar, enter "plugin". Look for an entry named '''plugin.expose_full_path''' and set its value to '''true'''. (This will allow you to see the full path to the plugins in the next step.)
+
* Enter '''about:plugins''' into the browser adress bar. You should now see a list of installed plugins along with some additional information and their locations in the file system. If you can see the ''Helix DNA Plugin: Real''''''Player G2 Plug-In Compatible'' plugin and the path to a file named ''nphelix.so'' is given, the plugin is installed correctly.
+
* Another way to check is to look for the file pair ''nphelix.so'' and ''nphelix.xpt'' in the Firefox plugins folder. Depending on the way Real''''''Player was installed on your system, the plugins folder should either hold copies of or symbolic links to the plugin file pair; either should be ok. Note that some installations will only make symbolic links in the other '''''iceweasel''''' plugins folder. You need to copy them to the Firefox plugins folder:  <pre><nowiki>
+
  $ sudo cp /usr/lib/iceweasel/plugins/nphelix.* /usr/lib/firefox/plugins/</nowiki></pre>
+
==== RealPlayer freezes or playback is jerky  ====
+
Many people complain that [[UbuntuHelp:RealPlayer|RealPlayer]] does not work right out of the box on Ubuntu. If you experience that try the following:
+
* Install ALSA wrapper for OSS: <code><nowiki> $ sudo apt-get install alsa-oss </nowiki></code>
+
* Start editing [[UbuntuHelp:RealPlayer|RealPlayer]] script: <code><nowiki> $ sudo gedit /usr/bin/realplay </nowiki></code> or <code><nowiki> $ sudo gedit /usr/bin/realplayer </nowiki></code> or <code><nowiki> $ sudo gedit /opt/RealPlayer </nowiki></code> depending how you installed the player
+
* Find lines
+
 
<pre><nowiki>
 
<pre><nowiki>
if [ -n "$LD_PRELOAD" ]; then
+
realplayer
    echo "Warning: LD_PRELOAD=\"$LD_PRELOAD\""
+
fi
+
 
</nowiki></pre>
 
</nowiki></pre>
and add these after them:
+
![[UbuntuHelp:RealPlayer|RealPlayer]] can run as a standalone media player or as a plugin to Firefox and some other browsers. Currently the 32-bit version integrates well with Ubuntu while the 64-bit version and plugins are still not fully developed.
 +
$PATH. If ![[UbuntuHelp:RealPlayer|RealPlayer]] won't start, make sure that a symbolic link of the ''realplay'' start-up script is in your system path. To check, run this command in ''Terminal'':
 
<pre><nowiki>
 
<pre><nowiki>
LD_PRELOAD="$LDPRELOAD:/usr/lib/libaoss.so"
+
which realplay
export LD_PRELOAD
+
# The command should return:
 +
/usr/bin/realplay
 
</nowiki></pre>
 
</nowiki></pre>
* Save the changes, close the editor and start [[UbuntuHelp:RealPlayer|RealPlayer]].
+
If it is not, the user will need to enter the full path to ''realplayer'' when the command is run or entered into scripts. If the ![[UbuntuHelp:RealPlayer|RealPlayer]] startup script (''realplay'') is not located in ''/usr/bin'' or ''/usr/local/bin'', create a symbolic link so the startup script will be located by the system. The following example is for a ![[UbuntuHelp:RealPlayer|RealPlayer]] installation into the ''/opt/real/Realplayer'' folder. If ![[UbuntuHelp:RealPlayer|RealPlayer]] was installed in another folder, change ''/opt/real/[[UbuntuHelp:RealPlayer|RealPlayer]]'' to reflect the actual location:
==== No sound (or freezes or playback or jerky) on 64 bit ====
+
As above you need ALSA wrapper for OSS; but if you are running on 64 bit you need to get yourself the 32bit version since Realplayer is a 32 bit binary.
+
* Grab the deb from: ftp://ftp.ubuntulinux.org/ubuntu/pool/universe/a/alsa-oss/alsa-oss_1.0.14-1ubuntu1_i386.deb
+
* Create a new directory, cd it into that directory and then unpack it by doing:
+
 
<pre><nowiki>
 
<pre><nowiki>
    dpkg --fsys-tarfile alsa-oss_1.0.14-1ubuntu1_i386.deb | tar -xvf -
+
sudo ln -s /opt/real/RealPlayer/realplay /usr/local/bin
 
</nowiki></pre>
 
</nowiki></pre>
* Now you need to setup LD_PRELOAD and also LD_LIBRARY_PATH to point to whereever you unpacked that deb; I use a little wrapper script called playreal (chmod +x this file to make it runnable):
+
External Protocol Handling: As a standalone player, the default Ubuntu settings may start Totem when a ![[UbuntuHelp:RealPlayer|RealPlayer]] file is selected (''.ra, .rm, .rv, .ram, .smil'', etc.). If these files are not opened with ![[UbuntuHelp:RealPlayer|RealPlayer]], the application may start and then crash or close.
 +
{|border="1" cellspacing="0"
 +
|rowspan=5|https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.association.png|| ||To change the default to ![[UbuntuHelp:RealPlayer|RealPlayer]], right click on the file, select ''Properties > Open With'' and then ''![[UbuntuHelp:RealPlayer|RealPlayer]]''. If it is not a choice, select ''Open with Other Application'' and select it.
 +
|-
 +
| || 
 +
|-
 +
| || 
 +
|-
 +
| ||If not listed, expand ''Use custom command'' and the ''Browse'' button to point it to the ![[UbuntuHelp:RealPlayer|RealPlayer]] run file. By default, this is ''/usr/bin/realplayer''. If not installed from the Medibuntu repositories, the location may be ''/opt/real/[[UbuntuHelp:RealPlayer|RealPlayer]]''.
 +
|-
 +
| || 
 +
|}
 +
=== Firefox 3 RealPlayer Plugin ===
 +
The ![[UbuntuHelp:RealPlayer|RealPlayer]] Firefox plugin will normally be created during the installation. The [http://plugindoc.mozdev.org/linux.html Mozilla plugin page] provides the details.
 +
* The plugin files are ''nphelix.so'' and ''nphelix.xpt''. With the Synaptic installation using the Medibuntu repositories, they are normally installed in ''/usr/lib/mozilla/plugins'' with symlinks placed in the appropriate Firefox folders.
 +
{|border="1" cellspacing="0"
 +
|rowspan=11|https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.association.png|| || '''Set Firefox to Play RealAudio/Video Files'''
 +
|-
 +
| || 
 +
|-
 +
| || From the Firefox main menu: ''Edit > Preferences: Applications'' tab. *
 +
|-
 +
| || Scroll to ''RA files'' or ''RealAudio Document''.
 +
|-
 +
| || In the ''Action'' column, click the enabled action (such as ''Always ask'').
 +
|-
 +
| || Select ''Use realplay''  or ''Use other'' and browse to the ''realplay'' run file.
 +
|-
 +
| || Using the Medibuntu repositories, this file will be ''/usr/bin/realplay''.
 +
|-
 +
| ||
 +
|-
 +
| ||
 +
|-
 +
| || * In FF 2, open ''Edit > Preferences > Content > File Types:  Manage''.
 +
|-
 +
| ||
 +
|}
 +
If Firefox will not open RealAudio/Video files:
 +
{|border="1" cellspacing="0"
 +
|Check the ![[UbuntuHelp:RealPlayer|RealPlayer]] plugin installation and location. Restart Firefox. From the Firefox 3 menu, select ''Edit > Preferences: Plugins''. You should see the ![[UbuntuHelp:RealPlayer|RealPlayer]] plugin as depicted in the screenshot to the right:|| ||https://help.ubuntu.com/community/[[UbuntuHelp:RealPlayer|RealPlayer]]InstallationMethods?action=AttachFile&do=get&target=realplayer.ff.plugin.png
 +
|}
 +
* It the plugin isn't listed, investigate further by accomplishing the following:
 +
* Set Firefox to display the full plugin path when the ''about:plugins'' feature is used:
 +
* Type '''''about:config''''' in the Firefox address bar and acknowledge the warning.
 +
* Type '''''plugin''''' in the ''Filter'' field.
 +
* Find ''plugin.expose_full_path''. Double click to change the value to '''''true'''''.
 +
* Type '''''about:plugins''''' in the Firefox address bar. 
 +
* Find the ![[UbuntuHelp:RealPlayer|RealPlayer]] plugin. You should see something similar to this if the plugin is installed:
 +
https://help.ubuntu.com/community/[[UbuntuHelp:RealPlayer|RealPlayer]]InstallationMethods?action=AttachFile&do=get&target=realplayer.plugin.png
 +
* Ensure the plugin references nphelix.so. If it points to a ''totem'' file, note the location and remove or rename that file.
 +
[[UbuntuHelp:MPlayer|MPlayer]] plugin conflicts (''if installed''):
 +
* To prevent the [[UbuntuHelp:MPlayer|MPlayer]] plugin from playing RealAudio/Video files, edit the plugin configuration file ''~/.mplayer/mplayerplug-in.conf'' and change or add the following three lines:
 +
{|border="1" cellspacing="0"
 +
|enable-rm=0
 +
|-
 +
|enable-smil=0
 +
|-
 +
|enable-helix=0
 +
|}
 +
* To make Firefox use ![[UbuntuHelp:RealPlayer|RealPlayer]] for rtsp streams embedded in web page links, close Firefox and open the gconf editor from the Applications menu:
 
<pre><nowiki>
 
<pre><nowiki>
    #!/bin/sh
+
gconf-editor /desktop/gnome/url-handlers/rtsp </nowiki></pre>
    export LD_PRELOAD=/whereiunpacked/alsa-oss/usr/lib/libaoss.so
+
* Check the value for "command" - it will probably read ''totem "%s"''. Change the entry to read '''''realplay "%s"''''' and then close gconf editor.  
    export LD_LIBRARY_PATH=/whereiunpacked/alsa-oss/usr/lib:$LD_LIBRARY_PATH
+
* Note: Firefox will only evaluate the mime types that the plugin supports either when such plugin is updated or when $HOME/.mozilla/firefox/pluginreg.dat is missing. To update the mime-types:
    linux32 /myrealplayer/RealPlayer/realplay $*
+
<pre><nowiki>
 +
sudo touch /usr/lib/firefox/plugins/mplayerplug-in.so  # If this file exists.
 +
# or
 +
rm $HOME/.mozilla/firefox/pluginreg.dat  # If this file exists.
 
</nowiki></pre>
 
</nowiki></pre>
* Now when I click on a .ram file and Firefox asks me what to run I tell it to run playreal.
+
=== Uninstalling RealPlayer ===
==== RealPlayer on Hardy ====
+
===== Removing .deb installs =====
I had problems with the alsa tricks on Hardy (Beta) and had to use Pulsaaudio; there is a program 'padsp' that you can
+
* Synaptic.
use to set up a preload in the same way that alsa-oss does.
+
* Highlight the ''realplayer'' package, right click and select ''Mark for removal'' or ''Mark for complete removal''.
For 64 bit I did a similar trick to above; I got the 32 bit version of pulseaudo-utils from the pool, unpacked it and then
+
* Press the ''Apply'' button in Synaptic's main menu.
do:
+
* ''Terminal''. Use ''one'' of the following commands:
echo "Playreal called with $*" > /tmp/playreal.log
+
export LD_PRELOAD=/whreiunpacked/usr/lib/libpulsedsp.so
+
linux32 /myrealplayer/[[UbuntuHelp:RealPlayer|RealPlayer]]/realplay $*
+
The audio works, but all the pixmap icons are broken. (penguin42)
+
==== Nightly RealPlayer 64-bit builds in Hardy ====
+
[[UbuntuHelp:RealPlayer|RealPlayer]] have nightly 64-bit builds available, with pulseaudio wrapper and simple configuration it works well under hardy 64-bit.
+
<ol><li>Download the latest bin package from http://forms.helixcommunity.org/helix/builds/?category=realplay-current
+
</li><li>make it executable and install it <pre><nowiki>
+
$ sudo chmod +x realplay-10.1.0.4261-linux-2.6-glibc23-amd64.bin [adapt the filename to your downloaded file]
+
$ sudo ./realplay-10.1.0.4261-linux-2.6-glibc23-amd64.bin
+
</nowiki></pre>
+
</li><li>Install the pulseaudio wrapper, provided in the pulseaudio-utils package <pre><nowiki>
+
$ sudo apt-get install pulseaudio-utils
+
</nowiki></pre>
+
</li><li>start [[UbuntuHelp:RealPlayer|RealPlayer]] with the command with the wrapper <pre><nowiki>
+
"padsp realplay"
+
</nowiki></pre>
+
</li><li>in [[UbuntuHelp:RealPlayer|RealPlayer]]'s preferences, goto Hardware tab, set audio driver to oss
+
</li><li>enjoy</li></ol>
+
 
+
you might want to add "padsp" to the realplay's startup script so that you don't have to manually invoke the wrapper all the time
+
==== RealPlayer and SCIM ====
+
[[UbuntuHelp:RealPlayer|RealPlayer]] might not start if using SCIM as the default input method. When trying to launch from the terminal one gets the error message
+
 
<pre><nowiki>
 
<pre><nowiki>
Segmentation fault (core dumped)</nowiki></pre>
+
sudo apt-get remove realplayer  # or
This issue can be resolved by setting the environment variable GTK_IM_MODULE to the value xim (instead of scim).
+
sudo apt-get purge realplayer    # or
 +
sudo dpkg -r realplayer
 +
</nowiki></pre>
 +
===== Removing .bin installs =====
 +
* To remove ![[UbuntuHelp:RealPlayer|RealPlayer]] package installed via the .bin file run the following command:
 
<pre><nowiki>
 
<pre><nowiki>
export GTK_IM_MODULE=xim</nowiki></pre>
+
sudo /opt/real/RealPlayer/postinst/postuninst.sh</nowiki></pre>
After typing this in a terminal, [[UbuntuHelp:RealPlayer|RealPlayer]] can be started from this terminal. In order to make this setting the default, one can for example write a small shell script which first sets the above environment variable and then launches the [[UbuntuHelp:RealPlayer|RealPlayer]].
+
* Once this script has been run it is safe to remove the ''/opt/real'' folder and subfolders.
== See also ==
+
* If the package was installed in another folder, run the ''postuninst.sh'' script from that folder.
 +
===== Removing .rpm installs =====
 +
* ![[UbuntuHelp:RealPlayer|RealPlayer]] installations made with .rpm files via ''alien'' are installed into the system as .deb files. Refer to that section for removal instructions.
 +
=== See also ===
 
* [[UbuntuHelp:RestrictedFormats| Restricted Formats wiki page]]
 
* [[UbuntuHelp:RestrictedFormats| Restricted Formats wiki page]]
 
* [[UbuntuHelp:FirefoxPlugins| Firefox Plugins wiki page]]
 
* [[UbuntuHelp:FirefoxPlugins| Firefox Plugins wiki page]]
== External links ==
+
=== External links ===
* [http://www.real.com/linux RealPlayer for Linux web page]
+
* [http://www.real.com/linux [[UbuntuHelp:RealPlayer|RealPlayer]] for Linux web page]
 +
* [http://service.real.com/test/ RealPlayer audio & video test files]
 
* [https://helixcommunity.org/ Helix Community web site]
 
* [https://helixcommunity.org/ Helix Community web site]
 
* [https://community.helixcommunity.org/2005/mailinglists Helix Community mailing list] and [https://helixcommunity.org/2002/irc/ IRC channel]
 
* [https://community.helixcommunity.org/2005/mailinglists Helix Community mailing list] and [https://helixcommunity.org/2002/irc/ IRC channel]
* [http://plugindoc.mozdev.org/linux.html Mozilla Plugin Support on Linux (x86)] and [http://plugindoc.mozdev.org/linux-amd64.html Linux (x86-64)], [http://plugindoc.mozdev.org/faqs/distronotes/ubuntu-x86.html Firefox Distribution Notes, Ubuntu Linux (x86)]
+
* [http://plugindoc.mozdev.org/linux.html Mozilla Plugin Support on Linux (x86)]
 +
* [http://plugindoc.mozdev.org/linux-amd64.html Mozilla Plugin Support on Linux (x86-64)]
 +
* [http://plugindoc.mozdev.org/faqs/distronotes/ubuntu-x86.html Firefox Distribution Notes, Ubuntu Linux (x86)]
 
* [http://kb.mozillazine.org/Changing_media_handling_behaviour MozillaZine Knowledge Base: Changing Media Handling Behaviour]
 
* [http://kb.mozillazine.org/Changing_media_handling_behaviour MozillaZine Knowledge Base: Changing Media Handling Behaviour]
 +
* [http://ubuntuguide.org/wiki/Ubuntu:Hardy#Installing_Real_Player_11_and_Configuring_Mozilla_Plugin Ubuntu 8.04 Hardy Guide - RealPlayer 11]
 
* [http://en.wikipedia.org/wiki/RealAudio Wikipedia page on RealAudio]
 
* [http://en.wikipedia.org/wiki/RealAudio Wikipedia page on RealAudio]
 
* [http://www.w3schools.com/media/media_mimeref.asp MIME type reference]
 
* [http://www.w3schools.com/media/media_mimeref.asp MIME type reference]
 +
----
 +
[[category:CategoryThirdPartySoftware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:01的最新版本

Parent: Applications

Introduction

!RealPlayer is a media player originally developed by RealNetworks in 1995. It supports a number of audio and video codecs such as realaudio, realvideo, mp3, ogg vorbis and theora, h263, and AAC. RealPlayer for Linux is based on the open-source Helix Player which can be found at the Helix Community Website.

Please Note: RealPlayer is proprietary software, is not supported by the Ubuntu community, and is not available from the official Ubuntu repositories. It is located in the non-free section of third-party repositories which the user must specifically enable.

Screenshot

RealPlayerInstallationMethods?action=AttachFile&do=get&target=RealPlayer.png https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=RealPlayer1.png

Installing RealPlayer11

When an newer version of RealPlayer becomes available change the file name accordingly in the terminal commands presented in this guide. !RealPlayer can be installed through a variety of methods. The installation methods presented below are listed in priority to allow the best integration with Ubuntu.

  • Installations via a .deb package will be registered with APT. Third-party repositories may offer updates. Package removal can be accomplished via the Terminal or Synaptic.
  • Some third-party repositories, like those maintained by [Medibuntu, have introduced authentication procedures which help ensure the integrity of the available files.
  • The .deb packages created with alien may differ from the same type of packages offered by third-party organizations. If possible, use existing .deb packages rather convert .rpm files.
  •  !RealPlayer installations from .bin files will not be registered with APT, are not supported by respository updates, and must be removed manually.

The release version of !RealPlayer11 is a 32-bit application. It can be run on 64-bit systems with 32-bit libraries which are automatically installed by Synaptic or APT. A true 64-bit version is under development. Please refer to the 64-bit RealPlayer section of this guide. Once installed, !RealPlayer is accessed via Applications > Sound & Video > !RealPlayer11 or entering realplay or realplayer in the Terminal. Since previous versions run only with the first command, realplay will be used in this guide for compatibility purposes. After installation please review the Running RealPlayer section of this guide for setup notes.

Install realplayer from the Repositories

  1. Add the Medibuntu Repositories

!RealPlayer is available through the Medibuntu non-free repository.

  • The following command will register the Medibuntu repository with your system's Advanced Packaging Tool (APT) and import the Medibuntu keyring. The command should be run in the Terminal (Applications -> Accessories -> Terminal). The command is not release specific - it will determine which version of Ubuntu is running and install the appropriate repositories.
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update
  • A line similar to the following will be created in /etc/apt/sources.list.d/medibuntu.list. The entry will reflect the codename of the Ubuntu release you are currently using (i.e. hardy, intrepid, jaunty, etc).

deb http://packages.medibuntu.org/ hardy free non-free

  • For more information about adding the Medibuntu repository, please visit the Medibuntu|wiki.
  1. Install !RealPlayer via Synaptic or the Terminal

Synaptic. Open Synaptic via System > Administration > Synaptic Package Manager.

  • Press Reload to update the repository package lists.
  • Select realplayer from the package window, then Apply from the main Synaptic menu.
RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.synaptic.png Hint: If you can't find realplayer listed in Synaptic's right pane, ensure that All is selected in the left pane and type realplayer in the quick seach window near the top right. The lower right pane contains information about the selected package. If you can't find realplayer listed, open Settings, Repositories, Third-Party Software and ensure the Medibuntu repository is enabled.

Terminal. Open the Terminal via Applications > Accessories > Terminal.

sudo apt-get update
sudo apt-get install realplayer 

Add/Remove. The Add/Remove feature currently does not support !RealPlayer, even after APT is updated and RealPlayer is installed.

RealPlayer11GOLD.deb

Note: The .deb package currently available from the RealNetworks site is a 32-bit build of !RealPlayer. The .deb file available from the Medibuntu repository will run on 64-bit systems. File Browser or Desktop Install

  • Download the latest !RealPlayer .deb file from the Real website.
  • Select the DEB Package link.
  • Locate the downloaded file. The default location for downloads is usually your Desktop (~/Desktop). If not found, use a file browser to locate the downloaded file. Double click RealPlayer11GOLD.deb. The gdebi installer will open and install the !RealPlayer package.
  • The default installation location is /opt/real/RealPlayer.
RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.gdebi.png Clicking the Install Package button will start the gdebi installer. A list of the additional packages which will be installed can be viewed by clicking the Details button, while additional files can be seen by selecting the Included Files tab.
  • Once installed, Synaptic will display the installation as realplayer.
  • If you attempt to install the 32-bit .deb package on a 64-bit operating system you will get the following message: Error: Wrong architecture 'i386'
  • Terminal Installation. Open the Terminal (Applications > Accessories > Terminal) and enter the following:
cd $HOME/Desktop
sudo dpkg -i RealPlayer11GOLD.deb
  • If the downloaded file is not on the user's Desktop, change the first command to the appropriate location.
  • If asked for a password, enter your user password. You will not see any characters as you type.
  • If the version of !RealPlayer changes, either make the correction to the above command or type "sudo dpkg -i !RealPlayer" and press the Tab key twice to autocomplete the filename.

RealPlayer11GOLD.bin

Note: The RealPlayer package installed via this method is not registered by APT and will not be displayed in Synaptic. 64-bit versions of !RealPlayer are available from Real/Helix's nightly builds page.

  1. Download the !RealPlayer .bin package from the RealPlayer for Linux web page. The default download location is the user's Desktop.
RealPlayerInstallationMethods?action=AttachFile&do=get&target=button_download_realplayer.gif Clicking on this button on the RealPlayer web page will start the download process for the !RealPlayer .bin package. Installing !RealPlayer in this way is not the preferred method of installing this application. RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.bin.download.png
  1. Open the Terminal and navigate to the file `RealPlayer11GOLD.bin`. Type:
     cd ~/Desktop
    
  2. Make the file executable:
     chmod a+x RealPlayer11GOLD.bin
    
  3. Run the installer by typing the following command:
     sudo ./RealPlayer11GOLD.bin
    

Enter your password when asked. You will not see any characters as you type.

  1. Follow the prompts provided to finish installation.
  2. The default location for the .bin installation of !RealPlayer is /opt/real/RealPlayer and the run command is /usr/bin/realplay.
  3. When you launch the player for the first time, a set-up assistant will take you through configuring your player. You can run the set-up assistant again at any time by choosing Reset !RealPlayer from the Help menu.
  4. Create a link to the realplay startup script in /usr/local/bin to ensure the script is included in the system's $PATH:
sudo ln -s /opt/real/RealPlayer/realplay /usr/local/bin

Note: A PowerPC version is avaliable from the Helix Player Download page.

RealPlayer11GOLD.rpm

Note: The .rpm downloads available on the Real site are currently 32-bit only. 64-bit versions of !RealPlayer are available from Real/Helix's nightly builds page. RPM (Redhat Package Manager) files can be converted to .deb files or installed directly with an application called alien, which is available in Synaptic's main respository. Click here to learn about how to install alien.

sudo alien RealPlayer11GOLD.rpm
  • To convert the !RealPlayer .deb file and then install it:

sudo alien -i RealPlayer11GOLD.rpm

  • The converted/installed .deb file will be registered in APT and will be listed in Synaptic as realplayer. It can be viewed under Synaptic's All or Local/non-free filter.

<<Anchor(64-bit RealPlayer)>>

64-bit RealPlayer

The realplayer version in the Medibuntu repositories is 64-bit compatible. Several 32-bit libraries will be installed as dependencies. The .deb and .rpm files available from the Real website are 32-bit versions. 64-bit versions of !RealPlayer currently under development are available from Real/Helix's nightly builds page in tar.bz2 files. Look for the download package with amd64 in the title. Example: linux-2.6-glibc23-amd64 <<Anchor(Running)>>

Running RealPlayer

!RealPlayer can be started via Applications > Sound & Video > !RealPlayer11 or via the Terminal by typing:

realplayer

!RealPlayer can run as a standalone media player or as a plugin to Firefox and some other browsers. Currently the 32-bit version integrates well with Ubuntu while the 64-bit version and plugins are still not fully developed. $PATH. If !RealPlayer won't start, make sure that a symbolic link of the realplay start-up script is in your system path. To check, run this command in Terminal:

which realplay
# The command should return:
/usr/bin/realplay

If it is not, the user will need to enter the full path to realplayer when the command is run or entered into scripts. If the !RealPlayer startup script (realplay) is not located in /usr/bin or /usr/local/bin, create a symbolic link so the startup script will be located by the system. The following example is for a !RealPlayer installation into the /opt/real/Realplayer folder. If !RealPlayer was installed in another folder, change /opt/real/RealPlayer to reflect the actual location:

sudo ln -s /opt/real/RealPlayer/realplay /usr/local/bin

External Protocol Handling: As a standalone player, the default Ubuntu settings may start Totem when a !RealPlayer file is selected (.ra, .rm, .rv, .ram, .smil, etc.). If these files are not opened with !RealPlayer, the application may start and then crash or close.

RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.association.png To change the default to !RealPlayer, right click on the file, select Properties > Open With and then !RealPlayer. If it is not a choice, select Open with Other Application and select it.
If not listed, expand Use custom command and the Browse button to point it to the !RealPlayer run file. By default, this is /usr/bin/realplayer. If not installed from the Medibuntu repositories, the location may be /opt/real/RealPlayer.

Firefox 3 RealPlayer Plugin

The !RealPlayer Firefox plugin will normally be created during the installation. The Mozilla plugin page provides the details.

  • The plugin files are nphelix.so and nphelix.xpt. With the Synaptic installation using the Medibuntu repositories, they are normally installed in /usr/lib/mozilla/plugins with symlinks placed in the appropriate Firefox folders.
RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.association.png Set Firefox to Play RealAudio/Video Files
From the Firefox main menu: Edit > Preferences: Applications tab. *
Scroll to RA files or RealAudio Document.
In the Action column, click the enabled action (such as Always ask).
Select Use realplay or Use other and browse to the realplay run file.
Using the Medibuntu repositories, this file will be /usr/bin/realplay.
* In FF 2, open Edit > Preferences > Content > File Types: Manage.

If Firefox will not open RealAudio/Video files:

Check the !RealPlayer plugin installation and location. Restart Firefox. From the Firefox 3 menu, select Edit > Preferences: Plugins. You should see the !RealPlayer plugin as depicted in the screenshot to the right: https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.ff.plugin.png
  • It the plugin isn't listed, investigate further by accomplishing the following:
  • Set Firefox to display the full plugin path when the about:plugins feature is used:
  • Type about:config in the Firefox address bar and acknowledge the warning.
  • Type plugin in the Filter field.
  • Find plugin.expose_full_path. Double click to change the value to true.
  • Type about:plugins in the Firefox address bar.
  • Find the !RealPlayer plugin. You should see something similar to this if the plugin is installed:

https://help.ubuntu.com/community/RealPlayerInstallationMethods?action=AttachFile&do=get&target=realplayer.plugin.png

  • Ensure the plugin references nphelix.so. If it points to a totem file, note the location and remove or rename that file.

MPlayer plugin conflicts (if installed):

  • To prevent the MPlayer plugin from playing RealAudio/Video files, edit the plugin configuration file ~/.mplayer/mplayerplug-in.conf and change or add the following three lines:
enable-rm=0
enable-smil=0
enable-helix=0
  • To make Firefox use !RealPlayer for rtsp streams embedded in web page links, close Firefox and open the gconf editor from the Applications menu:
gconf-editor /desktop/gnome/url-handlers/rtsp 
  • Check the value for "command" - it will probably read totem "%s". Change the entry to read realplay "%s" and then close gconf editor.
  • Note: Firefox will only evaluate the mime types that the plugin supports either when such plugin is updated or when $HOME/.mozilla/firefox/pluginreg.dat is missing. To update the mime-types:
sudo touch /usr/lib/firefox/plugins/mplayerplug-in.so  # If this file exists.
# or
rm $HOME/.mozilla/firefox/pluginreg.dat  # If this file exists.

Uninstalling RealPlayer

Removing .deb installs
  • Synaptic.
  • Highlight the realplayer package, right click and select Mark for removal or Mark for complete removal.
  • Press the Apply button in Synaptic's main menu.
  • Terminal. Use one of the following commands:
sudo apt-get remove realplayer   # or
sudo apt-get purge realplayer    # or
sudo dpkg -r realplayer
Removing .bin installs
  • To remove !RealPlayer package installed via the .bin file run the following command:
sudo /opt/real/RealPlayer/postinst/postuninst.sh
  • Once this script has been run it is safe to remove the /opt/real folder and subfolders.
  • If the package was installed in another folder, run the postuninst.sh script from that folder.
Removing .rpm installs
  •  !RealPlayer installations made with .rpm files via alien are installed into the system as .deb files. Refer to that section for removal instructions.

See also

External links