user_farben unter ssh?

Du hast Probleme mit Deinem eMail-Programm, Webbrowser oder Textprogramm? Dein Lieblingsprogramm streikt?
Antworten
klaus_topmueller
Beiträge: 5
Registriert: 17.05.2002 19:31:37

user_farben unter ssh?

Beitrag von klaus_topmueller » 17.05.2002 19:44:39

hi all

ich hab da eine frage zu ssh.
hab woody laufen und erst grad neu installiert.

nun hab ich aber als normaler ssh-user keine farben auf meinem ssh-terminal. (weder bash noch vim)
wenn ich mich als root über ssh einlogge habe ich all die farben.

gruss

reboot
Beiträge: 2
Registriert: 12.05.2002 18:24:43
Wohnort: Hamburg

Beitrag von reboot » 18.05.2002 12:45:41

Hallo,

in der .bashrc im Home-Direcory müssen die Kommentar zeichen für dieFarb- Unterstüzung entfernt werden (enable color support)

klaus_topmueller
Beiträge: 5
Registriert: 17.05.2002 19:31:37

habs_probiert. geht nicht

Beitrag von klaus_topmueller » 19.05.2002 00:54:01

ich hab die farben enabeld. klappt trotzdem nicht. keine farben unter ssh
ausser als root. hab auch schon /root/.bashrc in meine .bashrc kopiert. immernoch no colors:

users .bashrc:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files for examples

# If running interactively, then:
if [ "$PS1" ]; then

# enable color support of ls and also add handy aliases

eval `dircolors`
alias ls='ls --color=auto -lh'
alias ll='ls -lAh'
#alias l='ls -CF'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'

# set a fancy prompt

PS1='\u@\h:\w\$ '
fi
--------------------------------------------

root .bashrc:

# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\h:\w\$ '
umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -lA'
alias l='ls $LS_OPTIONS -l'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

Benutzeravatar
uzul
Beiträge: 6
Registriert: 23.01.2002 14:54:40
Wohnort: Hamburg

Beitrag von uzul » 19.05.2002 23:25:31

Schau doch mal in Deiner .bash_profile, ob dort die .bashrc eingebunden wird (source .bashrc). Hier ist es ja eine Login-Shell und da ist das denk ich beim normalen User anders als bei root.

Antworten