LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2008, 11:39 PM   #1
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Not able to play on line games in firefox


I am not able to play online games in my Firefox. And i am using an user account. But i am able to play when i logged in as root. I installed flash-plugin as root it self. What is the solution?....Tankyou.
 
Old 06-13-2008, 12:17 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Originally Posted by bkcreddy17 View Post
I installed flash-plugin as root it self.
Did you install a package as root (which is normal) or where you logged in as root and using the browser?

If the latter, you need to change your behavior. NEVER, EVER, log into KDE or Gnome as root.
NEVER, EVER browse the internet as root. The games you want to play are not worth the risk. Fix the problem itself.

Do you have a 32bit or 64 bit disto. If a 32bit distro look in /usr/lib/firefox for a plugins directory. There should be a file in there named "flashplayer.xpt". Look in /usr/lib/browser-plugins/ for a file named "libflashplayer.so.0".

Look at the output of the command "which firefox". It will probably point to a /usr/bin/firefox or /usr/local/bin/firefox command which is really a symbolic link to a startup wrapper script.
ls -l $(which firefox)
file --dereference $(which firefox)

If it is a script, look at it with "less". It should have commands which call firefox.bin after setting the environment to add the paths to libflashplayer.so.0.

Here is how you can check this out. First start firefox from the shell, and then look up which process PID it has.
Code:
jschiwal@hpamd64:~> ps
  PID TTY          TIME CMD
16875 pts/1    00:00:00 bash
25672 pts/1    00:00:00 firefox
25677 pts/1    00:00:03 firefox-bin
25775 pts/1    00:00:00 ps
Or use "ps -u <username> | grep firefox-bin" if you started firefox from the gui.

Next cd into /proc/<PID of firefox> and check for the value of LD_LIBRARY_PATH in firefox's environment.

Code:
jschiwal@hpamd64:~> cd /proc/25677/
jschiwal@hpamd64:/proc/25677> tr '\0' '\n' <environ | grep LD_
LD_PRELOAD=/usr/$LIB/libaoss.so
LD_LIBRARY_PATH=/usr/lib64/firefox/plugins:/usr/lib64/firefox
The paths to the plugin files I mentioned should be listed.

Note: I am basing this information on Firefox 2.0. I haven't upgraded to Firefox 3.0 yet. I don't know if there might be differences or if flash plugins are available for firefox 3.0

Last edited by jschiwal; 06-13-2008 at 12:31 AM.
 
Old 06-13-2008, 01:28 AM   #3
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
Thank you jschiwal,
I am using Firefox-2.0.0.14. I have downloaded this .tar file and extracted as and in to /usr/lib/firefox. My distro is RHEL5 Server 32-Bit, which has some 1.5 version and using it. These were some outputs.
Code:
ll /usr/lib/flash-plugin/
total 9788
-rwxr--r-- 1 root root    1367 May 10 06:51 homecleanup
-rwxr-xr-x 1 root root 9953520 May 10 06:54 libflashplayer.so
-rw-r--r-- 1 root root   34516 May 10 06:51 LICENSE
-rw-r--r-- 1 root root    3179 May 10 06:51 README
-rwxr--r-- 1 root root    3116 May 10 06:51 setup
[root@seas3 ~]# ll /usr/lib/firefox/plugins/
total 152
lrwxrwxrwx 1 root root     39 Jun 13 11:40 libflashplayer.so -> /usr/lib/flash-plugin/libflashplayer.so
-rwxr-xr-x 1 root root  19160 Apr  5 03:32 libnullplugin.so
-rwxr-xr-x 1 root root 127260 May 29 11:37 nppdf.so
[root@seas3 ~]# ls -l /root/.mozilla/plugins/
total 8076
-rw-r--r-- 1 root root     856 Dec 15  2006 flashplayer.xpt
-rwxr-xr-x 1 root root 8115888 Mar 24 18:02 libflashplayer.so
-rwxr-xr-x 1 root root  127260 May 29 11:37 nppdf.so
[root@seas3 ~]# ls /usr/lib/firefox-1.5.0.9/
browserconfig.properties  firefox                 libgfxpsshar.so    libxpcom_compat.so      plugins         updater
chrome                    firefox-bin             libgkgfx.so        libxpcom_core.so        README.txt      updater.ini
components                firefox-xremote-client  libgtkembedmoz.so  libxpcom.so             removed-files   updates
defaults                  greprefs                libgtkxtbin.so     libxpistub.so           res
dependentlibs.list        icons                   libjsj.so          LICENSE                 run-mozilla.sh
extensions                init.d                  libmozjs.so        mozilla-xremote-client  searchplugins
[root@seas3 ~]# ls /usr/lib/firefox/
browserconfig.properties  greprefs        libnssckbi.so       libxpcom_core.so                 removed-files
chrome                    icons           libplc4.so          libxpcom.so                      res
components                install.log     libplds4.so         libxpistub.so                    run-mozilla.sh
defaults                  libfreebl3.chk  libsmime3.so        mozilla-xremote-client           searchplugins
dictionaries              libfreebl3.so   libsoftokn3.chk     old-homepage-default.properties  updater
extensions                libmozjs.so     libsoftokn3.so      plugins                          updater.ini
firefox                   libnspr4.so     libssl3.so          readme.txt                       updates
firefox-bin               libnss3.so      libxpcom_compat.so  registry                         xpicleanup
when i typed ps command, there is no output for firefox, but i got this..
Code:
[root@seas3 ~]# ps -x | grep firefox
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
 5330 ?        S      0:00 /bin/sh /usr/lib/firefox/firefox
 5333 ?        S      0:00 /bin/sh /usr/lib/firefox/run-mozilla.sh /usr/lib/firefox/firefox-bin
 5338 ?        Sl     0:38 /usr/lib/firefox/firefox-bin
What shall i do further?

Last edited by bkcreddy17; 06-13-2008 at 01:35 AM.
 
Old 06-13-2008, 10:56 PM   #4
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Original Poster
Rep: Reputation: 15
Thank you. I got it.
 
  


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
Dosbox to play old games? tur third Linux - Games 10 12-04-2006 02:18 PM
Can't play some games... rrfish72 Linux - General 1 11-19-2004 02:06 PM
Please help me play these games... TippyToes Linux - Games 1 01-19-2004 07:19 PM
I want to play games.....Is that so much to ask?! Abe_the_Man Linux - Software 0 07-30-2003 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:14 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
Open Source Consulting | Domain Registration