Results 1 to 7 of 7

Thread: [SCRIPT] Install realplayer from local directory

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    [SCRIPT] Install realplayer from local directory

    Hi,

    another script to install something, while knoppix is running!

    One problem is, that it'll only work, if browser/realplayer is started from shell (konsole)...

    But for the moment you can live with it, can't you?

    Also you need to reopen, current shell or just do a:

    Code:
    . ~/.bashrc
    And I'll try to fix it )

    cu

    Fabian

    PS: Enjoy!

    Code:
    #!/bin/bash
    # 
    # Install realplayer + plugin from local directory
    # 
    # Note that browser plugin only works with programs started from commandline for now!
    # 
    # GPL 
    # 
    # Author: Fabian Franz <knx-rp@fabian-franz.de> 
            
    
    
    RP_NAME="rp8_linux20_libc6_i386_cs2_rpm"
    
    if [ -f "$RP_NAME" ]; 
    then
      mkdir -p /tmp/rp_inst
      cp $RP_NAME /tmp/rp_inst/
      cd /tmp/rp_inst
      # Unpack it
      rpm2cpio $RP_NAME | cpio --extract --make-directories
      
      # Install it
      mkdir -p $HOME/software
      cp -a usr/lib/RealPlayer8 $HOME/software/
    
      # Install mozilla plugin
      mkdir -p $HOME/.mozilla/plugins/ 
      ln -sf $HOME/software/RealPlayer8/rpnp.so $HOME/.mozilla/plugins/
      
      # Install netscape plugin
      mkdir -p $HOME/.netscape/plugins/
      ln -sf $HOME/software/RealPlayer8/rpnp.so $HOME/.netscape/plugins/
    
      # Scan for new plugins
      nspluginscan
    
      # Make start-script and symlinks
      mkdir -p $HOME/bin
      echo "#!/bin/sh" > $HOME/bin/realplayer
      echo "LD_LIBRARY_PATH=$HOME/software/RealPlayer8:$LD_LIBRARY_PATH exec $HOME/software/RealPlayer8/realplay \"\$@\"" >> $HOME/bin/realplayer
      chmod 755 $HOME/bin/realplayer
      
      ln -sf $HOME/bin/realplayer $HOME/bin/realplay
      ln -sf $HOME/bin/realplayer $HOME/bin/rvplayer
    
      # setuo $HOME/.bashrc
    
      mkdir -p $HOME/bin
      mkdir -p $HOME/lib
      mkdir -p $HOME/man
      
      cp $HOME/.bashrc $HOME/.bashrc.templ 
      cat $HOME/.bashrc.templ | grep -v "export MANPATH=\$HOME/man" | grep -v "export PATH=\$HOME/bin/" | grep -v "export LD_LIBRARY_PATH=\$HOME/lib" > $HOME/.bashrc 
      echo "export MANPATH=\$HOME/man/:\$MANPATH" >> $HOME/.bashrc 
      echo "export PATH=\$HOME/bin/:\$PATH" >> $HOME/.bashrc 
      echo "export LD_LIBRARY_PATH=\$HOME/lib:\$LD_LIBRARY_PATH" >> $HOME/.bashrc 
      rm -f $HOME/.bashrc.templ 
      
      # cleanup 
      cd $HOME
      rm -rf /tmp/rp_inst
    else
      echo "$RP_NAME is needed in current dir to install Realplayer" 
      echo "Please download it from: http://scopes.real.com/real/player/unix/unix.html"
    fi

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    Really great script. Would it be possible to include the (optional) Web download? So, it could be downloaded and installed by demand (and perhaps even be stored in persistent home). Would be great.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    no .. :-/

    Quote Originally Posted by probono
    Really great script. Would it be possible to include the (optional) Web download? So, it could be downloaded and installed by demand (and perhaps even be stored in persistent home). Would be great.
    It is not possible to store this file anywhere, because of the restrictive real-license, sorry.

    But once installed on a persistant home realplayer keeps to be available ...

    cu

    Fabian

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    Re: no .. :-/

    I mean in case there is no realplayer rpm it should automatically do a

    wget http://207.188.7.150/1528f27c56b3014...6_i386_cs2_rpm

    like the flash-installscript asks whether to download on the fly.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    Could you please add
    Code:
    # no nasty registration screen - by probono 
    cat >> ~/.RealNetworks_RealPlayer_60 <<EOF
    ERegistered=1
    EOF
    at the end of your script? That would prevent the annoying registration window from popping up when you start RealPlayer.

    probono

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    Re: [SCRIPT] Install realplayer from local directory

    Quote Originally Posted by Fabianx
    One problem is, that it'll only work, if browser/realplayer is started from shell (konsole)...
    Solved:

    just add
    Code:
    # menu entry and MIME file association - by probono
    cat >> ~/.kde/share/applnk/Multimedia/Viewers/realplayer.desktop <<EOF
    [Desktop Entry]
    Comment=
    Exec=\$HOME/bin/realplayer
    Icon=realplayer
    InitialPreference=1
    MimeType=audio/x-pn-realaudio;Application
    Name=RealPlayer
    ServiceTypes=
    Terminal=false
    Type=Application
    EOF
    at the end of your script.

    This does the following:
    * creates a KDE menu entry for realplayer
    * sets MIME file associations

    probono

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159

    Re: [SCRIPT] Install realplayer from local directory

    Has anyone got the realplayer *plugin* to work within Konqueror? On Knoppix or any other distribution? I would like to watch the movie in http://www.tagesschau.de/sendungen/0...SPM830,FF.html in konqueror, but had no luck so far. It only says "Unable to load Netscape plugin for...". Is it just me?

Similar Threads

  1. Locked /usr/local/bin directory
    By yadwin in forum General Support
    Replies: 9
    Last Post: 07-20-2004, 04:57 PM
  2. Replies: 10
    Last Post: 07-30-2003, 04:41 AM
  3. Replies: 0
    Last Post: 03-30-2003, 01:36 PM
  4. Replies: 0
    Last Post: 03-30-2003, 02:29 AM
  5. Realplayer, Flash...... install-script
    By Robert Michel in forum Ideas
    Replies: 1
    Last Post: 03-05-2003, 06:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used. picture

HP PROLIANT MICROSERVER MICRO SERVER HSTNS-5151 T4 Used.

$45.00



HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES

$174.99



HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED picture

HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED

$550.00



HPE Proliant Microserver Gen10 X3421 Perf AMS,  P03698-S01, 16GB Ram picture

HPE Proliant Microserver Gen10 X3421 Perf AMS, P03698-S01, 16GB Ram

$299.00



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS picture

Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS

$199.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00