View previous topic :: View next topic |
Author |
Message |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Jul 18, 2010 7:50 am Post subject: Shell che inserisce caratteri illeggibili � |
|
|
Salve gente,
da qualche tempo ho un problema con tutte le shell del mio sistema (quindi non è un problema di Konsole, o Yakuake, o chicchessìa), ovvero quando immetto un comando come il seguente, mi vengono inseriti dei caratteri a cavolo:
Code: | $ ls -l /
ls: invalid option -- '�' |
Allora torno su con il cursore per vedere che diavolo "avevo scritto" (ovviamente come potete vedere ho scritto bene) ed ecco:
Vorrei capire chi diavolo è (forse un fantasma ) che mette quel punto interrogativo in mezzo ai miei comandi.
Posso intuire che sia un problema di charset, ma onestamente anche smanettando (e sono diversi mesi che ci provo) non riesco a trovare dove guardare.
Qualcuno ha un'idea di cosa potrebbe essere? _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MajinJoko l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2141073954400d1d942f9e.jpg)
Joined: 20 Sep 2005 Posts: 639 Location: Bergamo / Verona
|
Posted: Sun Jul 18, 2010 7:54 am Post subject: |
|
|
Hai qualcosa di "anomalo" in .bashrc ?
Con un altro utente capita la stessa cosa? _________________ [(.. watashi wa Urumi Kanzaki ga suki da ..)] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MajinJoko l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2141073954400d1d942f9e.jpg)
Joined: 20 Sep 2005 Posts: 639 Location: Bergamo / Verona
|
Posted: Sun Jul 18, 2010 8:03 am Post subject: |
|
|
Il discorso del .bashrc poteva avere un senso (minimo, per la verità) solo se la cosa capitasse solo per un certo utente. Non avevo capito che la cosa era "globalizzata".
A questo punto l'ipotesi più probabile è il fantasma. Prova a guardare qui se puoi risolvere.
Mi dispiace, in tutta onesta non mi viene in mente nulla di sensato per aiutarti ora. _________________ [(.. watashi wa Urumi Kanzaki ga suki da ..)] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Jul 18, 2010 8:36 am Post subject: |
|
|
Haahha!
LOL!
Guarda, non so se possa esserti utile, ma ecco il contenuto del file .bashrc:
Code: | if [[ $- != *i* ]] ; then
return
fi
if [[ -f ~/.dir_colors ]] ; then
eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
eval $(dircolors -b /etc/DIR_COLORS)
fi
alias grep='grep --colour=auto'
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
esac
|
Poi magari può anche darsi che mi sia sbagliato con il fatto che succeda da root o da altri utenti, ma credo di no, perché sono incappato in questo problema nelle situazioni più diverse. _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cloc3 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/39525275142a0fd302dc7e.gif)
Joined: 13 Jan 2004 Posts: 4810 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Sun Jul 18, 2010 8:54 am Post subject: |
|
|
fbcyborg wrote: |
Ogni tanto |
cosa succede se, subito dopo, digiti al buio un reset?
eventualmente due volte.
è strano che il fenomeno sia innescato da un semplice ls.
probabilmente, hai messo nel filesystem qualche file con un nome improbabile. _________________ vu vu vu
gentù
mi piaci tu |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Jul 18, 2010 9:22 am Post subject: |
|
|
In realtà non so quanto si possa diagnosticare in questo modo.
(Sto provando a ridigitare diverse volte ad es. ls -l per riprodurre l'errore, ma non si ripresenta il problema)
Dico questo perché la cosa succede "a random" e imprevedibilmente. Quando succede basta ridigitare la riga di comando (non facendo "freccia su" per lo storico dei comandi) e il problema non si ripresenta.
Quindi anche facendo il reset, non so quanto la sua efficacia possa essere ritenuta responsabile di un'eventuale risoluzione temporanea del problema.
Non so, forse l'unico modo è quello di indagare su qualche file di configurazione. _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
riverdragon Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1612070051450d4028d2ee7.jpg)
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Sun Jul 18, 2010 1:37 pm Post subject: |
|
|
Prova a seguire la guida per la localizzazione da zero, magari facendo copia-incolla dei comandi dalla guida. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
Posted: Sun Jul 18, 2010 1:54 pm Post subject: |
|
|
In realtà quella guida ufficiale è un po' vecchiotta, inoltre io non uso localizzazioni.
Comunque almeno una volta l'ho seguita (in inglese). Aggiungo in oltre che uso OpenRC.
Dunque, rileggendola, ecco alcuni dei file che potrebbero essere la causa del problema:
File: /etc/env.d/02locale
LANG="en_US.ISO-8859-1"
File: /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
it_IT ISO-8859-1
it_IT@euro ISO-8859-15
it_IT.UTF-8 UTF-8
File: /etc/conf.d/keymaps
keymap="it"
windowkeys="YES"
extended_keymaps=""
dumpkeys_charset=""
fix_euro="NO" _________________ [HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ago Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/6180337614ab953ee61ee4.jpg)
Joined: 01 Mar 2008 Posts: 1527 Location: Milan, Italy
|
Posted: Sun Jul 18, 2010 2:04 pm Post subject: |
|
|
Se il problema dovesse essere la localizzazione, segui un po qui |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pierino_89 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/18692480324ac90e951990e.jpg)
Joined: 03 Oct 2009 Posts: 524
|
Posted: Mon Jul 19, 2010 11:45 pm Post subject: |
|
|
Non potrebbe banalmente essere un falso contatto della tastiera? Con alt/ctrl o altri tasti talvolta escono dei caratteri non stampabili che poi a posteriori vedi col punto interrogativo. _________________ Linux registered user 461710 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pingoo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/136417866847a60cc708931.jpg)
Joined: 11 Jul 2006 Posts: 324
|
Posted: Tue Jul 20, 2010 9:19 pm Post subject: |
|
|
Non so se possibile, giusto uno spunto: dite che è possibile che sia legato in qualche modo ad X e connessi? Hai provato sempre nei terminali tipo konsole/gnome-terminal? Purtroppo non si riesce a creare in maniera sistematica, altrimenti verificherei nei terminali ai quali solitamente si accede ad es. con CTRL+ALT+F1 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkmanPPT Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/17921557334482c3649a0dc.jpg)
Joined: 13 Apr 2006 Posts: 1069 Location: vi/bo
|
Posted: Tue Jul 20, 2010 10:03 pm Post subject: |
|
|
leggevo questa discussione....
anche a me capita!
ma capita solo se uso le shell tra alt+F1 <--> alt+F6
in kde (konsole/yakuake) questo non m'è mai accaduto.
son curioso di capire quale possa esser la causa del tuo errore: sia mai che risolva anche il mio! _________________ Darkman |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
darkmanPPT Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/17921557334482c3649a0dc.jpg)
Joined: 13 Apr 2006 Posts: 1069 Location: vi/bo
|
Posted: Wed Jul 21, 2010 7:08 am Post subject: |
|
|
a me, su quelle shell, capita sempre.
a dirla tutta, la cosa s'è iniziata a manifestare da un bel po' di tempo.....
da circa un annetto.......
non credo sia un problema di charset perchè le lettere accentate strane me le legge _________________ Darkman |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
riverdragon Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1612070051450d4028d2ee7.jpg)
Joined: 14 Sep 2006 Posts: 1269 Location: Verona
|
Posted: Wed Jul 21, 2010 8:45 am Post subject: |
|
|
Il servizio consolefont è avviato? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xdarma l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/184279067143ff0e9b28a94.jpg)
Joined: 08 Dec 2003 Posts: 720 Location: tra veneto e friuli (italy)
|
Posted: Wed Jul 21, 2010 7:50 pm Post subject: |
|
|
Non è che in dmesg vi trovate qualcosa tipo "serial spurious ACK"? _________________ proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xdarma l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/184279067143ff0e9b28a94.jpg)
Joined: 08 Dec 2003 Posts: 720 Location: tra veneto e friuli (italy)
|
Posted: Fri Jul 23, 2010 7:12 pm Post subject: |
|
|
fbcyborg wrote: | Ho greppato il /var/log/messages e non sembra esservi traccia alcuna. |
Boh, un altra cosa che mi viene in mente è se hai definito un carattere in /etc/conf.d/consolefont
Qualcosa tipo:
Code: |
CONSOLEFONT="default8x16"
|
Ma non penso sia rilevante. _________________ proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fbcyborg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/155952675623570fd610b.jpg)
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|