LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Access to Gnome desktop problem (https://www.linuxquestions.org/questions/linux-newbie-8/access-to-gnome-desktop-problem-164133/)

hiplainsdrifter 03-30-2004 08:14 AM

Access to Gnome desktop problem
 
Specs -
SuSE 9.0 user
Native Linux box
Gnome user
Running Apache2 & Tomcat
Logging in as root
(This is all working)

Background:
I needed to add the JAVA_HOME to my environment settings to get Tomcat running (after installing JDK) - and in reading about how to do so - I saw an advisory that I should NOT actually change /etc/profile BUT should make a file called profile.local instead.

Being a newbie I just cp'ed the profile to profile.local and made the additions.
(...and it worked because Apache finally started as did Tomcat.)


Anyways to make sure the changes took I shutdown and restarted the system. ...and it appears to boot fine.

The problem is >
When I Login as Root (or any user) at the Gnome Login and then enter the password and the screen just goes blank when I enter to the gnome desktop.

What I'm doing now is
Starting up under failsafe -
logging in a the command line as root ---
which leaves me with a "Have Fun" statement - kind of no man's land
I can then <Ctrl> Z C Q (can't remember as I'm at work)
and break to a bash prompt and do
startx which brings up Gnome.

I'm gathering something is botched up in the profile.local or by having it there to begin with. Thoughts or assistance would be appreciated. Thanks.

hp_tux 03-30-2004 11:03 AM

Hello,

Code:

Being a newbie I just cp'ed the profile to profile.local and made the additions.
oh, that seems to be the problem! In "/etc/profile" from SuSE 9.0 I found the following line:
Quote:

test -s /etc/profile.local && . /etc/profile.local
So you have created a fine endless loop...

cu

hp_tux

hiplainsdrifter 03-30-2004 11:09 AM

Thanks!

So do you suggest just #'ing it out in
profile
and deleting it in
profile.local
?

hp_tux 03-30-2004 11:24 AM

Hello,

Quote:

So do you suggest just #'ing it out in
profile
and deleting it in
profile.local
?
no!

Initially you wanted to add some stuff to "/etc/profile", right?! Put this stuff, and no more, into "~/profile.local", and you're done! :cool:

cu

hp_tux

hiplainsdrifter 03-30-2004 11:28 AM

OK so profile.local is just a supplement to profile got it. Thanks!!!


All times are GMT -5. The time now is 07:40 AM.