LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-31-2005, 11:55 PM   #1
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Rep: Reputation: 30
mozilla install;no /usr dir, suse different?


Hi Everyone,

Not new to the site, but am STILL new to Linux. Trying to install Mozilla 1.7.6 in KDE in SuSe, try to create the default /usr/local/mozilla dir. but will not allow. Another look at parent dir's and see there is no /usr at all. Is this a Suse thing or merely that I am the only user on this system? What would be the next best dir to install to instead of /usr, that would make the program available to users added in the future. (Error 624)

Also, I used the default partitoning in YaSt, which made a 117GB drive into two partitions; /=115GB and /Swap=remainder. Shouldn't the home directory also be...optimally be, on its own partition?

One more, when installing the macromedia plugin, do you have to be in tty(x) in oder to unpack the prog?

Please spare no words when answering,

Mandrake or SuSe, if one had to choose? (Please don't say other OSes)

Much Appreciated

TIA
cjae
 
Old 04-01-2005, 03:03 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You definitely should have a /usr directory. What are the results of runnings "ls /".
 
Old 04-01-2005, 03:27 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 33
Yeah, you have to have a /usr dir. Is it failing to install to /usr because you aren't installing it as root, maybe? And you don't necessarily need to install it to the /usr directory. You also have the option to install third party applications in the /opt directory. Just pass the option...

Code:
--prefix=/opt
when installing the application, and it'll install it to your /opt directory.
 
Old 04-01-2005, 04:53 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Sometimes an installation for something like Mozilla might go under the /opt directory, however, I can't imagine a system not having a /usr directory. Most programs you install will go under /usr/bin, with the libraries in /usr/lib. It is normal for the /usr directory to be the second largest directory on a system, after the /home directory.

The home directory is a good candidate for being in it's own partition. It is large, and if you decide to install a new distro, you could leave it unformatted, so that the files in your old partition are retained. When I went from Mandrake to SuSE on my desktop, I added '-old' to my old home directory, and over a periiod of time, decided which files I wanted to move to my new home directory.

Another candidate for a seperate partition would be /usr/local. This is because this directory is where programs you install yourself, such as from tarballs can go. A re-installation will not change anything in this directory, as long as you don't re-format it of course.
 
Old 04-01-2005, 09:39 AM   #5
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok, I tried to switch to root by su command got the # and tried to launch the installer again, this is what I got:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0
linux:/home/cjae/mozilla/mozilla-installer

If I switch back to normal user and issue the same command the installer will open and then again not be able to create the /usr/local/mozilla dir.

After some sleep and another look at dir tree /usr dir exists.
 
Old 04-01-2005, 10:45 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Before switching to root using "su", you need to do "xhost +localhost" as a normal user (the one who started the gui), then do "su" and proceed with the installation.
 
Old 04-01-2005, 12:10 PM   #7
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Hi, Thanks for all the replies, but I am still having problems. Is that the exact syntax for those two commands (last reply). And may I do them for gui terminal or tty terminal.

Please feel free to correct my improper use of terms.

TIA
cjae
 
Old 04-01-2005, 12:24 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
start a terminal emulator such as konsole, then
Code:
$xhost +localhost
$su
#cd /home/cjae/mozilla/
#./mozilla-installer
The $ indicates that you are a normal user and # means that you are root.
 
Old 04-01-2005, 12:33 PM   #9
youngtom
Member
 
Registered: Feb 2005
Location: Rio de Janerio
Distribution: suse 9.1, suse 9.2, redhat enterprise, ubuntu, kubuntu
Posts: 104

Rep: Reputation: 15
On Suse (for mainline packages like mozilla), the easiest way to install software is using Yast . Here is a great link in the Suse forum that points out various Suse repositories that you can use.
 
Old 04-01-2005, 08:23 PM   #10
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Please help. Still having problems

cjae@linux:~> xhost +localhost
localhost being added to access control list
cjae@linux:~> su
Password:
linux:/home/cjae # cd /home/cjae/mozilla
linux:/home/cjae/mozilla # ./mozilla-installer
bash: ./mozilla-installer: is a directory
linux:/home/cjae/mozilla # cd mozilla-installer
linux:/home/cjae/mozilla/mozilla-installer # ./mozilla-installer
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0
linux:/home/cjae/mozilla/mozilla-installer # ls
. config.ini mozilla-installer MPL-1.1.txt xpi
.. installer.ini mozilla-installer-bin README
linux:/home/cjae/mozilla/mozilla-installer #
 
Old 04-01-2005, 08:58 PM   #11
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Show us the contents of /home/cjae/mozilla using ' ls -la ' command

Brian1
 
Old 04-01-2005, 10:17 PM   #12
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
cjae@linux:/home> cd cjae/mozilla
cjae@linux:~/mozilla> ls -la
total 13266
drwxr-xr-x 3 cjae users 152 2005-03-31 20:02 .
drwxr-xr-x 26 cjae users 1488 2005-04-01 20:58 ..
-rw-r--r-- 1 cjae users 13566615 2005-03-31 20:00 mozilla-i686-pc-linux-gnu-1.7.6-installer.tar.gz
drwxr-xr-x 3 cjae users 272 2005-03-21 18:24 mozilla-installer
 
Old 04-03-2005, 07:28 PM   #13
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
mozilla-installer appears to be a directory. Go into that directory and see what is there.

Brian1
 
Old 04-03-2005, 08:39 PM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
SuSE has a command called 'sux'. It is like 'su' but gives root the permission to run an x-windows program.

When I ran the installer, I got a graphic requester come up. I changed the name of the default installation directory from 'firefox-installer' to just 'firefox'. If you didn't get a graphical installer come up, perhaps you downloaded a weekly build tarball instead.

Also, I've made it a habit to run 'ldconfig' after installing something from a script, or tarball (e.g. not from rpm package). Sometimes this step gets skipped.
 
  


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
flash problem in mozilla can't find /usr/lib/mozilla ejbest Linux - Software 6 01-12-2010 10:48 AM
/usr/lib/mozilla-1.7.11/run-mozilla.sh: line 159: 3492 Segmentation fault behmjoe Linux From Scratch 2 11-28-2005 11:48 AM
/usr/lib/mozilla/plugins not valid install path for macromedia flash player 7? dr_zayus69 Linux - Software 2 08-14-2005 11:13 AM
cant create dir /usr/local/Acrobat dave bean Linux - Newbie 7 10-02-2003 10:12 AM
no /usr/src/linux dir ??!! Poe Slackware 6 06-21-2003 06:33 PM


All times are GMT -5. The time now is 05:12 AM.

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