Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
erro ao executar programas gráficos num terminal
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Web
n00b
n00b


Joined: 10 Jun 2003
Posts: 26
Location: Blumenau/Santa Catarina/Brasil

PostPosted: Sun Dec 28, 2003 7:23 pm    Post subject: erro ao executar programas gráficos num terminal Reply with quote

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
View user's profile Send private message
gggm
n00b
n00b


Joined: 22 Dec 2003
Posts: 13
Location: Lisboa

PostPosted: Sun Dec 28, 2003 11:32 pm    Post subject: Reply with quote

numa sheel executa o comando:
Code:

# xhost localhost

para o X aceitar ligações locais, em principio deve funcionar.
_________________
Gonçalo Melo
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun Dec 28, 2003 11:34 pm    Post subject: Reply with quote

ou
[code]
"export DISPLAY=localhost:0.0"
[/quote]
_________________
linux: #232767
Back to top
View user's profile Send private message
humpback
Retired Dev
Retired Dev


Joined: 19 Oct 2002
Posts: 394
Location: Coimbra - Portugal

PostPosted: Mon Dec 29, 2003 12:08 am    Post subject: Reply with quote

Procurar antes por favor pessoal.

https://forums.gentoo.org/viewtopic.php?t=78965
_________________
Gustavo Felisberto
Humpback @ #gentoo-pt
------------
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html .
-------------
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Portuguese 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