You are not logged in.

#1 2016-11-19 13:23:48

TheEnd
Member
Registered: 2011-01-10
Posts: 8

[Solved]can't open any GUI after connecting

after connecting with

wifi-menu

i can't open any program with graphic interface(like firefox or even terminal), receving this message

No protocol specified
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :0

i can fix  temporaly launching

hostnamectl set-hostname localhost

but i should launch it at every start up and more than one time in each session when this problem occour again(think it's random)

Any idea?(just installed arch+awesome)

Last edited by TheEnd (2016-11-19 15:44:32)

Offline

#2 2016-11-19 13:51:45

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [Solved]can't open any GUI after connecting

man 1 hostnamectl wrote:

If a static hostname is set, and is valid (something
       other than localhost), then the transient hostname is not used.

As per the above I would suggest using a valid hostname.

Offline

#3 2016-11-19 15:43:12

TheEnd
Member
Registered: 2011-01-10
Posts: 8

Re: [Solved]can't open any GUI after connecting

loqs wrote:
man 1 hostnamectl wrote:

If a static hostname is set, and is valid (something
       other than localhost), then the transient hostname is not used.

As per the above I would suggest using a valid hostname.

Thanks for help,fixed by pasting on /etc/hostname

127.0.0.1       localhost
127.0.1.1       myhostname.localdomain myhostname 

Offline

#4 2016-11-19 16:05:10

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [Solved]can't open any GUI after connecting

TheEnd wrote:

Thanks for help,fixed by pasting on /etc/hostname

127.0.0.1       localhost
127.0.1.1       myhostname.localdomain myhostname 

Would expect the contents of /etc/hostname to be a single string

Offline

#5 2016-11-19 16:17:42

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [Solved]can't open any GUI after connecting

and without ip-addresses .

TheEnd, it looks like you copied /etc/hosts content .

just use one string , check "man 5 hostname"


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB