-
Senior Member
registered user
[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:
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 <[email protected]>
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
Similar Threads
-
By yadwin in forum General Support
Replies: 9
Last Post: 07-20-2004, 04:57 PM
-
By Fabianx in forum Ideas
Replies: 10
Last Post: 07-30-2003, 04:41 AM
-
By Fabianx in forum Ideas
Replies: 0
Last Post: 03-30-2003, 01:36 PM
-
By Fabianx in forum Ideas
Replies: 0
Last Post: 03-30-2003, 02:29 AM
-
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
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1599.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU
$225.00

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00

1 X IBM 720 POWER SERVER WITH 32 GB RAM
$344.97

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012
$109.99

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99