个人工具

UbuntuHelp:RealPlayerInstallationMethods

来自Ubuntu中文

Wikibot讨论 | 贡献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