View previous topic :: View next topic |
Author |
Message |
Web n00b
Joined: 10 Jun 2003 Posts: 26 Location: Blumenau/Santa Catarina/Brasil
|
Posted: Sun Dec 28, 2003 7:23 pm Post subject: erro ao executar programas gráficos num terminal |
|
|
Olá pessoal.
Quando executo qualquer programa em um terminal (após mudar de usuário com o comando su) aparece esta mensagem:
Quote: | [root@athlon /]# kportage
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
kportage: cannot connect to X server :0.0
[root@athlon /]# |
Neste caso o usuário normal está no KDE e uma janela de terminal como root.
Como faço para executar o programa, estando logado como usuário normal?
Obs.: No Conectiva Linux que tenho instalado a mensagem não aparece e o programa executa sem problemas. |
|
Back to top |
|
|
gggm n00b
Joined: 22 Dec 2003 Posts: 13 Location: Lisboa
|
Posted: Sun Dec 28, 2003 11:32 pm Post subject: |
|
|
numa sheel executa o comando:
para o X aceitar ligações locais, em principio deve funcionar. _________________ Gonçalo Melo |
|
Back to top |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun Dec 28, 2003 11:34 pm Post subject: |
|
|
ou
[code]
"export DISPLAY=localhost:0.0"
[/quote] _________________ linux: #232767 |
|
Back to top |
|
|
humpback Retired Dev
Joined: 19 Oct 2002 Posts: 394 Location: Coimbra - Portugal
|
|
Back to top |
|
|
|