You are not logged in.

#1 2017-05-30 05:08:29

snovik
Member
Registered: 2012-05-06
Posts: 140

Again: no protocol specified / can't open display: 0.0

As soon as I connect to wifi I cannot run new applications and get the errors like: no protocol specified or Error: Can't open display: :0.0

As described elsewhere I checked the /etc/hosts, /etc/hostname, /etc/NetworkManager/nm-system-settings.conf

These are the 3 possible solutions I found for the changing hostname issue. However the hostname still gets reset.

What else can I try?

Offline

#2 2017-05-30 05:20:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Again: no protocol specified / can't open display: 0.0

Maybe try including some relevant information: the output of hostnamectl, journal entries, etc...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-05-30 05:25:04

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Again: no protocol specified / can't open display: 0.0

No specific journal entries. Below is the output of hostname BEFORE I connect to the wifi

   Static hostname: localhost
Transient hostname: localhost.localdomain
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: b5cc086b74af4eeabe0199857db5a4cb
           Boot ID: 31219f012a014922b8b17bb25a5f6606
  Operating System: Arch Linux
            Kernel: Linux 4.11.2-1-ARCH
      Architecture: x86-64

And here is the output AFTER I connect to wifi

   Static hostname: localhost
Transient hostname: lanhost72
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: b5cc086b74af4eeabe0199857db5a4cb
           Boot ID: 31219f012a014922b8b17bb25a5f6606
  Operating System: Arch Linux
            Kernel: Linux 4.11.2-1-ARCH
      Architecture: x86-64

Offline

#4 2017-05-30 05:53:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Again: no protocol specified / can't open display: 0.0

So, fix your hostname.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-05-30 05:59:35

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Again: no protocol specified / can't open display: 0.0

Sure. But it is a work around. It happens every time I connect to wifi.

Offline

#6 2017-05-30 06:06:33

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Again: no protocol specified / can't open display: 0.0

did you actually set a hostname, as described in the installation guide?

Offline

#7 2017-05-30 06:06:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Again: no protocol specified / can't open display: 0.0

What is a workaround? How are you "fixing" it. Please provide something more than vague handwaving so that this thread doesn't degenerate further into an even more painful process of information extraction.

And be very specific about what exactly it is you have done: https://wiki.archlinux.org/index.php/Ne … e_problems


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2017-05-30 06:11:33

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Again: no protocol specified / can't open display: 0.0

I am setting it manually after I connect to the wifi

hostnamectl set-hostname localhost
hostnamectl set-hostname --transient localhost.localdomain

I have the following 2 as well but they dont help

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost
::1             localhost.localdomain   localhos

/etc/hostname

localhost

Offline

#9 2017-05-30 06:26:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Again: no protocol specified / can't open display: 0.0

localhost is a reserved word for hostnames, if your set your hostname to localhost your are not setting your hostname correctly. You can pretty much use anything else it just shouldn't be localhost (e.g. mine's arch-videl to indicate that it's my arch machine)

Offline

Board footer

Powered by FluxBB