Posts: 90
Threads: 8
Joined: Feb 2009
Reputation:
0
[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
Posts: 675
Threads: 107
Joined: Apr 2010
Reputation:
0
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.
Posts: 90
Threads: 8
Joined: Feb 2009
Reputation:
0
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
Posts: 90
Threads: 8
Joined: Feb 2009
Reputation:
0
2012-02-20, 06:12 PM
(This post was last modified: 2012-02-20, 06:15 PM by Bakshara.)
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
Posts: 675
Threads: 107
Joined: Apr 2010
Reputation:
0
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?