LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mozilla install;no /usr dir, suse different? (https://www.linuxquestions.org/questions/linux-newbie-8/mozilla-install%3Bno-usr-dir-suse-different-308460/)

cjae 03-31-2005 10:55 PM

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

reddazz 04-01-2005 02:03 AM

You definitely should have a /usr directory. What are the results of runnings "ls /".

Linux~Powered 04-01-2005 02:27 AM

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.

jschiwal 04-01-2005 03:53 AM

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.

cjae 04-01-2005 08:39 AM

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.

reddazz 04-01-2005 09:45 AM

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.

cjae 04-01-2005 11:10 AM

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

reddazz 04-01-2005 11:24 AM

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.

youngtom 04-01-2005 11:33 AM

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.

cjae 04-01-2005 07:23 PM

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 #

Brian1 04-01-2005 07:58 PM

Show us the contents of /home/cjae/mozilla using ' ls -la ' command

Brian1

cjae 04-01-2005 09:17 PM

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

Brian1 04-03-2005 06:28 PM

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

Brian1

jschiwal 04-03-2005 07:39 PM

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.


All times are GMT -5. The time now is 02:10 PM.