Tag.
Ich hab jetzt erfolgreich meinen ersten Java-Webservice zum laufen gebracht. Ich hatte allerding ein bisschen mühe beim setzten der Pfade.
Wann wird welche datei berücksichtigt?
Unter der reinen Konsole(f1-f6) sieht es so aus als /etc/profile gelten würde, starte ich allerding kde arbeitet er nur /home/foo/.bashrc ab. Und soweit ich gesehen habe hätte kde noch ein eigenes File für Variablen.
Hat hier jemand ein Link wo man nachlesen kann wann man wo welche Variable setzt?
gruss
manuel
Wo welchen Pfad setzen?
- Beowulf666
- Beiträge: 1476
- Registriert: 06.10.2002 14:03:08
- Wohnort: Lübeck
-
Kontaktdaten:
- suntsu
- Beiträge: 2947
- Registriert: 03.05.2002 10:45:12
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: schweiz
-
Kontaktdaten:
so ich habs mir jetzt ergooglet...
man bash meint dazu folgendes.
Wobei mir noch nicht klar ist welche files kde abarbeitet, aba das krieg ich auch noch raus
gruss
manuel
man bash meint dazu folgendes.
Code: Alles auswählen
The following paragraphs describe how bash executes its startup files. If any of the
files exist but cannot be read, bash reports an error. Tildes are expanded in file names
as described below under Tilde Expansion in the EXPANSION section.
When bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login option, it first reads and executes commands from the file /etc/profile, if that
file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and
~/.profile, in that order, and reads and executes commands from the first one that exists
and is readable. The --noprofile option may be used when the shell is started to inhibit
this behavior.
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout,
if it exists.
When an interactive shell that is not a login shell is started, bash reads and executes
commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc
option. The --rcfile file option will force bash to read and execute commands from file
instead of ~/.bashrc.
gruss
manuel
Verfasst am: 02.07.2003 14:18:38 Titel:
--------------------------------------------------------------------------------
Hallo,
Umgebungsvariablen (und PATH gehört dazu) können in /etc/environment für alle Nutzer angelegt werden. Diese Datei wird über das PAM System ausgewertet, und daher eigentlich bei jeder Login-Shell gelesen.
meine /etc/environment sieht so aus:
Seitdem funktioniert bei mir Java.
Gruß StP
--------------------------------------------------------------------------------
Hallo,
Umgebungsvariablen (und PATH gehört dazu) können in /etc/environment für alle Nutzer angelegt werden. Diese Datei wird über das PAM System ausgewertet, und daher eigentlich bei jeder Login-Shell gelesen.
meine /etc/environment sieht so aus:
Code: Alles auswählen
#/etc/environment
LANG=C
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/java/bin:/opt/javaws"
JAVA_HOME="/opt/java"
Seitdem funktioniert bei mir Java.
Gruß StP
- suntsu
- Beiträge: 2947
- Registriert: 03.05.2002 10:45:12
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: schweiz
-
Kontaktdaten:
So.. auch das wäre jetzt geklärt:suntsu hat geschrieben:Wobei mir noch nicht klar ist welche files kde abarbeitet, aba das krieg ich auch noch raus
http://www.debianforum.de/wiki/?page=pa ... va+setzten
gruss
manuel
- Operations
- Beiträge: 179
- Registriert: 13.10.2003 17:23:19