Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tastaturproblem
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
Gabriel Shear
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 152
Location: München, Frankfurt am Main, Rostock @ Germany

PostPosted: Fri Sep 24, 2004 9:53 am    Post subject: Tastaturproblem Reply with quote

Hallo

habe leider durch ein zu schnelles etc-update meine Konfiguration zerschossen.

nen großteil habe ich schon wieder hinbekommen, aber zwei Probleme sind geblieben.

zum einen kann ich in der Konsole die entfernen und einfügen Taste nicht mehr wie gewünscht drücken, da kommt jetzt immer eine ~,
habe mit der Keymap etc. schon probiert, bringt aber alles nichts

weis jemand woran das liegen könnte?

das zweite ding ist, das immer wenn ich su ausführe, in der bash immer der Name der bash steht und nicht der neue User samt verzeichnis, erst ein source... bringt abhilfe, aber das ging vor dem debakel auch ohne ?

da fehlt doch sicher nur irgendwo eine Zeile, aber wo und welche?

Vielen Dank.

mfg Gabriel
_________________
man believe what he sees and hears
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Fri Sep 24, 2004 10:14 am    Post subject: Reply with quote

zu 1)
Da hast du wohl deine /etc/inputrc etwas "beschädigt". Diese Zeilen sollten das richten:

Code:
#
# Common standard keypad and cursor
#
"\e[1~":        beginning-of-line
"\e[2~":        yank
"\e[3~":        delete-char
"\e[4~":        end-of-line
"\e[5~":        history-search-backward
"\e[6~":        history-search-forward



zu 2)
Denke eine der "Bash-Startfiles" (/etc/profile, /etc/bashrc ...) hat was abbekommen.
Back to top
View user's profile Send private message
Gabriel Shear
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 152
Location: München, Frankfurt am Main, Rostock @ Germany

PostPosted: Fri Sep 24, 2004 10:22 am    Post subject: Reply with quote

HI,

hm also das steht da eigentlich so drin, hier mal die ganze Datei:

Code:
# /etc/inputrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/inputrc,v 1.8 2004/02/19 19:29:18 azarah Exp $

# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on

$if mode=emacs

# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word

# for rxvt
"\e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/Debian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif

# fix Home and End for German users
"\e[7~": beginning-of-line
"\e[8~": end-of-line


das mit der profile habe ich mir schon gedacht, jedoch weis ich nicht was da rein muss damit bei jedem su vom prinzip her source /etc/profile ausgeführt wird.

ich glaube mich auch darn erinnern zu können das beim normalen benutzer der Name grün war und beim root rot, zur zeit sind beide einfach nur weis ??

Danke.

mfg Gabriel
_________________
man believe what he sees and hears
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Fri Sep 24, 2004 10:53 am    Post subject: Reply with quote

Also für das aussehen der commandline ist im allgemeinen die Variable 'PS1' zuständig.

Code:
find /etc -exec grep "PS1" {} /dev/null \;


Das sollte dir zeigen in welchen Dateien unter /etc der String 'PS1' vorkommt.
Es ist dann denke ich am einfachsten die liveCD zu mounten und diese Files (+ /etc/inputrc) runterzukopieren!
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Fri Sep 24, 2004 12:20 pm    Post subject: Reply with quote

Hi,

zu dem Problem mit der Tilde gibt dieses posting die Lösung.

Zu dem Problem mit dem Prompt, mache doch einfach mal ein
Code:
echo "source /etc/profile" >> ~/.bashrc

Das sollte helfen.

Poly
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Gabriel Shear
Apprentice
Apprentice


Joined: 17 Apr 2004
Posts: 152
Location: München, Frankfurt am Main, Rostock @ Germany

PostPosted: Sun Sep 26, 2004 9:58 pm    Post subject: Reply with quote

hi,

ok vielen Dank, das hat beides soweit funktioniert.

mfg Gabriel
_________________
man believe what he sees and hears
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