Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wie findet das System meine ~.profile ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Andreas O.
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2003
Posts: 132
Location: Welthauptstadt der Biere

PostPosted: Thu Jan 09, 2003 6:52 pm    Post subject: wie findet das System meine ~.profile ? Reply with quote

Hallo,

ich habe vor, mir das Leben ein bischen angenehmer zu gestalten und möchte mir dazu verschiedene alias-Einträge in meiner /home/user/.profile-Datei erstellen.
So soll z.B. Openoffice starten mit
alias oo=/home/user/OpenOffice1.0.1/soffice
oder Sylpheed mit
alias sy=sylpheed
etc., etc.
Die Datei .profile habe ich bereits ausführbar gemacht, doch wie mache ich diese nun dem System bekannt

:roll:

Andreas
Back to top
View user's profile Send private message
Dimitri
Guru
Guru


Joined: 24 Jul 2002
Posts: 373
Location: Niederbayern/Germany

PostPosted: Thu Jan 09, 2003 6:56 pm    Post subject: Reply with quote

Hi,
auführbar hilft die garnichts.
Du kannst das ganze allerdings in die Datei .bashrc eintragen.
Falls sie nicht existiert anlegen. Das System schaut selbstständig danach.

Dim
_________________
Visit kde-forum.de
Back to top
View user's profile Send private message
Andreas O.
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2003
Posts: 132
Location: Welthauptstadt der Biere

PostPosted: Fri Jan 10, 2003 6:14 am    Post subject: Reply with quote

Dimitri wrote:
Hi,
auführbar hilft die garnichts.
Du kannst das ganze allerdings in die Datei .bashrc eintragen.
Falls sie nicht existiert anlegen. Das System schaut selbstständig danach.

Dim

Ich komm da irgendwie nicht mehr klar, es funktioniert einfach nichts mehr.
Ich habe mir also die ~.bashrc angelegt und habe nun folgendes drin stehen:
alias ev=evolution &
alias sy=sylpheed &
alias tk=tkppoe &
alias oo=/home/user/OpenOffice.org1.0.1/soffice &
alias ga=galeon &
alias mo=mozilla &
export LC_ALL=german
export LANG=de_DE@euro
export LANGUAGE=de_DE@euro
Dabei hat sich herausgestellt, dass diese scheinbar komplett vom System ignoniert wird, weil auch die Spracheinstellung nicht funktioniert hat.
Erst als ich manuell export LC_ALL=german eingegeben hatt e bzw. anschließend diesen Vermerk in der /etc/profile, hatte ich dauerhaft die deutsche Sprache in den Menüs.
Wenn ich nun einen Alias-Eintrag ausprobieren will, wird dieser nicht erkannt:
sh-2.05b$ sy
sh: sy: command not found
sh-2.05b$ bash
bash-2.05b$ sy
bash: sy: command not found
[1] Done alias ev=evolution
[2] Done alias sy=sylpheed
[3] Done alias tk=tkppoe
[4] Done alias oo=/home/user/OpenOffice.org1.0.1/soffice
[5]- Done alias ga=galeon
[6]+ Done alias mo=mozilla
bash-2.05b$ ev
bash: ev: command not found
bash-2.05b$
Also muß das alles doch irgendwie in die ~.profile !?

Andreas
Back to top
View user's profile Send private message
slyzer
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2002
Posts: 96

PostPosted: Sat Jan 11, 2003 11:31 am    Post subject: Reply with quote

Nein muss es nicht. Du musst es so schreiben:

alias sy='sylpheed &'

Du kannst das alles aber auch in die .profile packen und in er ~/.bashrc die Zeile "source ~/.profile" einfügen, das kommt dann aufs gleiche raus.

cu
slyzer
Back to top
View user's profile Send private message
Andreas O.
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2003
Posts: 132
Location: Welthauptstadt der Biere

PostPosted: Sat Jan 11, 2003 3:52 pm    Post subject: Reply with quote

slyzer wrote:
Nein muss es nicht. Du musst es so schreiben:

alias sy='sylpheed &'

Du kannst das alles aber auch in die .profile packen und in er ~/.bashrc die Zeile "source ~/.profile" einfügen, das kommt dann aufs gleiche raus.

cu
slyzer


Danke dir, hab's nun mit den einfachen Anführungszeichen in die .bashrc geschrieben und habe als root die Anmelde-Shell auf /usr/bin/bash gesetzt.
Ja, ja, die Syntax, die habe ich schon damals in der Schule mit basic-Programmierung nicht verstanden.
Auf alle Fälle klappts nun :D

Andreas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum