Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I install Firefox?
#21

Try the following. Download firefox to example. /home/bakshara/Downloads. Extract anyway you like and you wil end up with a folder "firefox" . log into root. su - root, then type in your root password or use sudo if you have that configured: sudo. Then do the following command.



Code:
cp firefox /opt




or



Code:
sudo cp firefox /opt




 

Then you can make an icon for example make for example a shortcut to your desktop or your launcher wherever you please. For example on the desktop right click anywhere and create launcher. Give it a name under name and then under command type the following path:

 



Code:
/opt/firefox/firefox




 

After that you can click on the icon to select an icon. Browse to:

 



Code:
/opt/firefox/icons


and select mozicon.png

 

Apply and exit and try to launch firefox from the shortcut you created.

Reply
#22

Quote:I tried this both ways.
The question is: WHO do you want to run it as, not who DID you try it as.

 

My concern is that when you run it under one user account, it may create files that the other user account can't access - i.e.: by trying to run the same files as two different users is creating problems for you.

 

You should NEVER need to run anything as root - not only are you introducing possible security risks to your system, you're also creating content that normal (unpriv'd) user accounts may not be able to access, thus locking out normal users - which is what I believe happened here.

Reply
#23



Code:
ls -l /home/bakshara/downloads/firefox




 

post the results. so we can see what the permissions are.

Reply
#24

[bakshara@localhost ~]$ su -

Password:

[root@localhost ~]# cd /home/Bakshara/Download

[root@localhost Download]# cp firefox /opt

cp: omitting directory `firefox'

[root@localhost Download]# cd /..

[root@localhost /]# cp firefox /opt

cp: cannot stat `firefox': No such file or directory

[root@localhost /]# cd /home/Bakshara/Download

[root@localhost Download]# cp firefox /opt

cp: omitting directory `firefox'

[root@localhost /]# ls -l /home/Bakshara/Download/firefox

total 31768

-rw-r--r-- 1 root root 2149 2012-01-29 04:18 application.ini

-rw-r--r-- 1 root root 11678 2012-01-29 04:18 blocklist.xml

drwxr-xr-x 3 root root 4096 2012-01-29 04:18 chrome

-rw-r--r-- 1 root root 36 2012-01-29 04:18 chrome.manifest

drwxr-xr-x 2 root root 4096 2012-01-29 04:18 components

-rwxr-xr-x 1 root root 134036 2012-01-29 04:18 crashreporter

-rw-r--r-- 1 root root 3803 2012-01-29 04:18 crashreporter.ini

-rw-r--r-- 1 root root 583 2012-01-29 04:18 crashreporter-override.ini

drwxr-xr-x 3 root root 4096 2012-01-29 04:18 defaults

-rw-r--r-- 1 root root 142 2012-01-29 04:18 dependentlibs.list

drwxr-xr-x 2 root root 4096 2012-01-29 04:18 dictionaries

drwxr-xr-x 3 root root 4096 2012-01-29 04:18 extensions

-rwxr-xr-x 1 root root 55652 2012-01-29 04:18 firefox

-rwxr-xr-x 1 root root 55656 2012-01-29 04:18 firefox-bin

drwxr-xr-x 2 Bakshara Bakshara 4096 2011-12-20 19:56 hyphenation

drwxr-xr-x 2 root root 4096 2012-01-29 04:18 icons

drwxr-xr-x 3 root root 4096 2012-01-29 04:18 jsloader

-rw-r--r-- 1 root root 478 2012-01-29 04:18 libfreebl3.chk

-rwxr-xr-x 1 root root 311872 2012-01-29 04:18 libfreebl3.so

-rwxr-xr-x 1 root root 5868 2012-01-29 04:18 libmozalloc.so

-rwxr-xr-x 1 root root 627876 2012-01-29 04:18 libmozsqlite3.so

-rwxr-xr-x 1 root root 195024 2012-01-29 04:18 libnspr4.so

-rwxr-xr-x 1 root root 873212 2012-01-29 04:18 libnss3.so

-rwxr-xr-x 1 root root 388288 2012-01-29 04:18 libnssckbi.so

-rw-r--r-- 1 root root 478 2012-01-29 04:18 libnssdbm3.chk

-rwxr-xr-x 1 root root 122324 2012-01-29 04:18 libnssdbm3.so

-rwxr-xr-x 1 root root 99764 2012-01-29 04:18 libnssutil3.so

-rwxr-xr-x 1 root root 13776 2012-01-29 04:18 libplc4.so

-rwxr-xr-x 1 root root 10796 2012-01-29 04:18 libplds4.so

-rwxr-xr-x 1 root root 124176 2012-01-29 04:18 libsmime3.so

-rw-r--r-- 1 root root 478 2012-01-29 04:18 libsoftokn3.chk

-rwxr-xr-x 1 root root 193356 2012-01-29 04:18 libsoftokn3.so

-rwxr-xr-x 1 root root 184760 2012-01-29 04:18 libssl3.so

-rwxr-xr-x 1 root root 12204 2012-01-29 04:18 libxpcom.so

-rwxr-xr-x 1 root root 22222932 2012-01-29 04:18 libxul.so

-rwxr-xr-x 1 root root 55672 2012-01-29 04:18 mozilla-xremote-client

-rw-r--r-- 1 root root 6376419 2012-01-29 04:18 omni.ja

-rw-r--r-- 1 root root 135 2012-01-29 04:18 platform.ini

-rwxr-xr-x 1 root root 45104 2012-01-29 04:18 plugin-container

-rw-r--r-- 1 root root 1820 2012-01-29 04:18 precomplete

-rw-r--r-- 1 root root 35030 2012-01-29 04:18 removed-files

-rwxr-xr-x 1 root root 10380 2012-01-29 04:18 run-mozilla.sh

drwxr-xr-x 2 root root 4096 2012-01-29 04:18 searchplugins

-rw-r--r-- 1 root root 825 2012-01-29 04:18 Throbber-small.gif

-rw-r--r-- 1 root root 6 2012-01-29 04:18 update.locale

-rwxr-xr-x 1 root root 119504 2012-01-29 04:18 updater

-rw-r--r-- 1 root root 143 2012-01-29 04:18 updater.ini

[root@localhost /]#

 

Some of the text on the right was blue or green. What did that do?

 

Bakshara

Reply
#25

The problem is all your files are owned by root. And when you start firefox from /opt you are running it as normal user so you can't access it. You need to do the following.

1. Remove /opt/firefox(log in as root: su - root , then rm -rf /opt/firefox, switch back to normal user su - bakshara, and your also delete this file: /home/bakshare/downloadsfirefox.tar.gz file

2. redownload firefox to for example: /home/bakshara/downloads

3. once the file is downloaded, right click, open via archive manager and extract it to the same location.

4. log into root: su -

5. As root do the following: cp /home/bakshare/downloads/firefox /opt

6. switch back to normal user(su - bakshara) or exit commandline.

7. Create a desktop shortcut: under name(set a name): firefox, command: /opt/firefox/firefox , then click on the icon to browse an icon location and browse to /opt/firefox/icons

8. select your icon there: mozillaicon.png

9. Start firefox from your shortcut

 

 

the different colors was probably to show a different between certain information being displayed from the command.

Reply
#26

Quote:Some of the text on the right was blue or green. What did that do?
Blue are directories; green are files.

Reply
#27

Everything worked all the way up to this:

[root@localhost /]# cp /home/Bakshara/Download/firefox /opt

cp: omitting directory `/home/Bakshara/Download/firefox'

[root@localhost /]#

 

Now what?

 

Bakshara

Reply
#28

Use the "-r" option to recursively copy directories:

Code:
cp -r /home/Bakshara/Download/firefox /opt




Reply
#29

Here is what I did:

 

cp -r /home/Bakshara/Download/firefox /opt (root)

 

Dialog:Launcher Properties

Type: Application

Name: FireFox

Command: /opt/firefox/firefox

Comment: FireFox

 

When I click on that icon it does not seem to do anything.

 

Bakashara

Reply
#30
ok. I'll woul d have to try it out myself on a test machine. But don't have time for that now, will try to make some time later.. Just one question. Why do you need the newest firefox for? Do you need it for a specific application? or something else? Think 3 is still supported. What's your end goal?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)