LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2003, 05:02 AM   #1
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Rep: Reputation: 15
help needed how to write & save a script to install realplayer on redhat9.0


hello Gurus

i tried the ld_assume_kernel stuff to install realplayer under all the directories

.bashrc
/etc/bashrc
/etc/profile

but it is not working ............... at the real.com realplayer for unix forums .... i came to know why real player is not working on red hat 9 ....... i dont know even 1% of programming but guys in that forums were speaking about native posix thread introduced in red hat 9.0 which is causing all the trouble for realplayer installation on redhat9

anyways.... one of the guys has written somekind of script to install and play realplayer8

i want to know where to copy and save the script?

do i have to first create a file under some system wide directory and then put the script in that file or what is it that i have to do?

here is copy of that script, i copied from real.com forum :-

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Info for redhat 9 users

Real player 8 won't work properly with the new Posix thread model. You have to tell the application to use the old thread library. You can do it like this (you also have to use this if you're running cinelerra, btw) with a script ( i call it runreal)

#!/bin/bash
if [ "$1" = "" ]; then
LD_ASSUME_KERNEL=2.2.5 realplay
else
{
LD_ASSUME_KERNEL=2.2.5 realplay $1
}
fi;

the second part will take a command-line arg - a url.
you can boot realplayer from command line with the first part, if you want to try it out.

Good Luck,
 
Old 11-05-2003, 06:11 AM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
You are on the right track. If you wanted to run it from the command line without using:

$./realrun.sh

then yes you need to put the executable in your $PATH (or sys wide dir as you said) So from the command line type:

$echo $PATH

this will give you a list of the dir's that bash checks for executable bianaries. But I am ahead of myself.

First take that script and highlight it. Right click and select copy. Paste to a plain text text editior and save as (anything really, but put the .sh extention on it) realrun.sh
Then open a terminal and cd to the directory where you saved it. Type:

$chmod +x realrun.sh

test it by running:

$./realrun.sh

(BTW I tried it for fun and it works fine). Then either save it to a dir that showed up is your $PATH or save it to your ~/user_name directory and create a launcher using the full path. Do you understand?


EDIT: I am sorry I reread the title of your thread and I see you also wanted to install it. I didn't use a script to install it. I just went to:

http://forms.real.com/real/player/unix/unix.html

and d/l'd the rpm (select the libc6 2.x RPM as your OS) and followed the instructions at the bottom of the page to install it. It worked without trouble. I then used the script snippit to run it and it didn't crash at all.

Good Luck!

Last edited by BigNate; 11-05-2003 at 06:18 AM.
 
Old 11-06-2003, 04:49 AM   #3
hasan
Member
 
Registered: Oct 2003
Distribution: N/A
Posts: 77

Original Poster
Rep: Reputation: 15
so what do i have to do first?

write and save the script first

or

install realplayer 8 ?

and when i write the script where do i save it? i mean u told me to do echo $PATH. what is the purpose of that?

u said " Then either save it to a dir that showed up is your $PATH or save it to your ~/user_name directory and create a launcher using the full path. Do you understand? "

this is what i get when i issue $PATH command

#echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
 
Old 11-06-2003, 10:00 AM   #4
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
here is my final steps for downloading and installation realplayer for linux/unix for who still want to download and install realplayer

http://www.linuxquestions.org/quest...&threadid=92292

one thing more i want to add its setup does not creat any shortcut on destop , can use new launcher for destop shortcut .

thanks for all who help for realplayer
 
Old 11-06-2003, 06:31 PM   #5
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Quote:
Originally posted by hasan
so what do i have to do first?

write and save the script first

or

install realplayer 8 ?
It doesn't matter. But it won't work until you do both.

Quote:
and when i write the script where do i save it? i mean u told me to do echo $PATH. what is the purpose of that?

u said " Then either save it to a dir that showed up is your $PATH or save it to your ~/user_name directory and create a launcher using the full path. Do you understand? "

this is what i get when i issue $PATH command

#echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Well I told you to save it in your path ($PATH) so if you save it to /usr/local/bin then it will be in your path. And you can run it by:

A. opening a terminal and typing:
$realrun

or

B. Making a desktop launcher with {realrun} as the command (no brackets).

If you do not want to save it to your path that is fine. you need only save it anywhere in your: home/hasan directory.
Then create a launcher with the full path to the file as the command:

command: /home/hasan/realrun

or whereever you save it. I am sorry if I was unclear.
 
Old 11-10-2003, 02:31 PM   #6
krome
Member
 
Registered: Oct 2003
Location: SF,CA
Distribution: Mandrake 9.2, RH9
Posts: 87

Rep: Reputation: 15
Or you can just DL realplayer 9 which is available at the usual site. they call it Beta or something. My rp8 was/is down so I gave it a try and it works well so far.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install a new distro & save my Home? johnmart Linux - Newbie 10 01-04-2005 10:48 AM
Help needed learning to write a shell script for logons nistur Linux - Networking 8 10-02-2004 02:34 AM
Realplayer 9 doesn't save settings. yakity Linux - Software 0 08-21-2004 02:55 PM
redhat9 && netbeans3.6 // install xviddivxoggmp3 Red Hat 1 05-27-2004 06:02 PM
Redhat9.1 install & nvidia acjt Linux - General 7 06-20-2003 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration