LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-24-2005, 10:53 AM   #1
tripwire45
Member
 
Registered: Aug 2004
Distribution: Ubuntu 11.10
Posts: 59

Rep: Reputation: 15
Upgrading Firefox on Debian


"Dumb question" time again. I went to the mozilla-firefox site and downloaded Firefox 1.0.2 onto my Debian box. I moved the firefox-1.0.2.installer.tar.gz file to /tmp and then typed

tar -xzvf firefox-1.0.2.installer.tar.gz

The files extracted and created a firefox-installer directory. I typed cd firefox installer and found both a firefox-installer and firefox-installer-bin file (among others). I didn't see a README.txt file. I *thought* I could just type firefox-installer-bin to begin the installation but all I get is a command not found response. I'm logged in a root and root is the owner of these files. I've tried to google the answer without success (get mostly information about RPM packages). What am I missing here? Thanks.
 
Old 03-24-2005, 10:57 AM   #2
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
you probably need ./firefox-installer-bin because "." isnt in your $PATH (and it is bad practice to have it in your $PATH)
 
Old 03-24-2005, 12:55 PM   #3
tripwire45
Member
 
Registered: Aug 2004
Distribution: Ubuntu 11.10
Posts: 59

Original Poster
Rep: Reputation: 15
Here's what happened:

tripwire:/tmp/firefox-installer# ./firefox-installer-bin

(firefox-installer-bin:2651): Gtk-WARNING **: cannot open display:
tripwire:/tmp/firefox-installer#
 
Old 03-24-2005, 01:25 PM   #4
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Root has no Xauthority if you are logged in as a user (as you should). Copy ~/.Xauthority to /root/ and try again. You will have to do this every time you want to run something graphical as root, the .Xauthority file is recreated upon login.
 
Old 03-24-2005, 01:37 PM   #5
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
Quote:
Originally posted by Moloko
Root has no Xauthority if you are logged in as a user (as you should). Copy ~/.Xauthority to /root/ and try again. You will have to do this every time you want to run something graphical as root, the .Xauthority file is recreated upon login.
There has to be another way to do that. I can't remember if I ever had the same problem and just fixed it, (it's been 2+ years since I have installed Debian on this box) but I don't have to do that in order to run anything graphical as root.
 
Old 03-24-2005, 02:39 PM   #6
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
1. Install gksu by apt-get install gksu

2. Install Firefox with that installer through gksu ./firefox-installer-bin as a regular user.



(or install Firefox through apt-get... If you are using 'woody' there is one at backports.org)
 
Old 03-24-2005, 04:46 PM   #7
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Quote:
Originally posted by zuralin
There has to be another way to do that.
I never checked for another way, since I never run anything graphical as root, but did you do something with "xhost"? Might be the answer.

Quote:
it's been 2+ years since I have installed Debian
It just won't stop same here
 
Old 03-24-2005, 05:01 PM   #8
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
$ xhost +local:root
$ non-network local connections being added to access control list

 
Old 03-25-2005, 11:07 AM   #9
tripwire45
Member
 
Registered: Aug 2004
Distribution: Ubuntu 11.10
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by dastrike
[B]1. Install gksu by apt-get install gksu

2. Install Firefox with that installer through gksu ./firefox-installer-bin as a regular user.
Installed gksu and followed the above instructions while logged in as a regular user. Unfortunately, the result is as follows:

user@tripwire:/tmp/firefox-installer$ gksu ./firefox-installer-bin

(gksu:23906): Gtk-WARNING **: cannot open display:
jmpyles@tripwire:/tmp/firefox-installer$

Will keep plugging away at it.
 
Old 03-25-2005, 11:15 AM   #10
tripwire45
Member
 
Registered: Aug 2004
Distribution: Ubuntu 11.10
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Moloko
Root has no Xauthority if you are logged in as a user (as you should). Copy ~/.Xauthority to /root/ and try again. You will have to do this every time you want to run something graphical as root, the .Xauthority file is recreated upon login.
I must be misunderstanding what you are saying here. It looks like you are saying for me to use the cp command to copy ~/.Xauthority to /root/. Here's the result:

tripwire:~# cp ~/.Xauthority /root/
cp: `/root/.Xauthority' and `/root/.Xauthority' are the same file
tripwire:~#

Moloko, could you flesh out how I'm supposed to implement:
Quote:
$ xhost +local:root
$ non-network local connections being added to access control list
here? Just typing it returns a command not found
error. Thanks.

 
Old 03-27-2005, 11:26 AM   #11
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
The xhost command is part of the xbase-clients package:$ dpkg -l xbase-clients to see if you have it. I read that using xauth (same package) is a better way (more secure).
 
Old 03-27-2005, 01:17 PM   #12
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
type in as root

cp /home/username/.Xauthority ~
 
Old 04-01-2005, 02:07 PM   #13
tripwire45
Member
 
Registered: Aug 2004
Distribution: Ubuntu 11.10
Posts: 59

Original Poster
Rep: Reputation: 15
I cheated. As root I typed:

apt-get install mozilla-firefox

Firefox 1.0.1 installed automatically and was added in the Applications -> Internet menu. I added it as a panel item. Nothing else seemed to be working (at least for me) however I do appreciate everyone's time and effort. Thanks.

I tried your suggestion Moloko and got this:

tripwire:~# dpkg -l xbase-clients
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii xbase-clients 4.3.0.dfsg.1-8 miscellaneous X clients
tripwire:~#

Last edited by tripwire45; 04-01-2005 at 02:11 PM.
 
Old 04-01-2005, 02:26 PM   #14
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Hi, I just upgraded to Firefox 1.0.2 using a simple apt-get update/upgrade tonight.
Did you configure your sources right in your /etc/apt/sources.list ?
Could save you loads of trouble..
I never install from tarballs or rpms .. Why bother ?
In Debian, use apt-get, properly configured . In Mandrake urpmi, and
you're done
 
Old 04-01-2005, 11:00 PM   #15
f1dave
Member
 
Registered: Jan 2005
Location: Kinross, Western Australia
Distribution: Kubuntu 5.04 (Hoary)
Posts: 114

Rep: Reputation: 15
I'm with the apt-get solution myself.

Isn't there a "click here to update firefox" option in the browser itself as well?
 
  


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
Upgrading Firefox the right way duffmckagan Ubuntu 39 12-22-2005 01:40 PM
Upgrading Firefox ipodlinux Linux - Software 12 11-27-2005 12:13 AM
Difficulty upgrading FireFox... Eerath MEPIS 7 09-17-2005 10:08 AM
Upgrading Firefox in Ubuntu HellFace Linux - Software 3 05-16-2005 10:37 PM
Upgrading Firefox LiberteToujours Linux - Software 0 01-17-2005 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:51 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