You are not logged in.

#1 2018-07-21 07:33:46

theoissilent
Member
Registered: 2018-07-21
Posts: 5

[SOLVED] No Applications Open On My Home Network

I have been searching for a solution for the past two days and I am not winning.

I recently installed Arch Linux with Plasma 5 on an HP ProBook and everything works fine when I am connected to the office network where I work. However, as soon as I get home where I have two connections - a mobile connection using a Huawei B618 router and a Fibre connection using a Huawei HG659 - I am only able to open applications within 5 minutes from login. After that, no applications opens. It will show on the task bar for a second or two then disappear.

Surprisingly, when I am at work, I am not asked for a password to connect to the Wi-Fi network there while a password to the two Wi-Fi networks at home is required every time I start a new session.

Below is how my /etc/hosts files looks like.

127.0.0.1       localhost
127.0.0.1       localhost.localdomain   localhost


I am not sure whether or not this is related to the /etc/hosts file or /etc/hostname with the following content.

localhost

Your help would be greatly appreciated.

Last edited by theoissilent (2018-07-21 09:10:54)

Offline

#2 2018-07-21 08:06:49

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

Re: [SOLVED] No Applications Open On My Home Network


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-21 08:15:27

theoissilent
Member
Registered: 2018-07-21
Posts: 5

Re: [SOLVED] No Applications Open On My Home Network

I have seen that section of the Wiki. Perhaps I should have added this. Before Arch Linux, I was running Fedora 25 where my hostname was set as "localhost" and there was no problem. I thought it would not be a problem on Arch Linux too.

Does Arch Linux not allow "localhost" as the host name? If so, how come it works perfectly fine when connected to the office network and not my home network?

Offline

#4 2018-07-21 08:24:47

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] No Applications Open On My Home Network

Try opening apps from a terminal, that should give some error output.
https://superuser.com/questions/671614/ … -confusion

Offline

#5 2018-07-21 08:26:47

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

Re: [SOLVED] No Applications Open On My Home Network

If you don't set a valid hostname, you will see exactly this sort of behaviour. Fedora is not Arch. And no, localhost is not a valid hostname. That is why it is explicitly mentioned in the Installation Guide.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2018-07-21 08:29:47

theoissilent
Member
Registered: 2018-07-21
Posts: 5

Re: [SOLVED] No Applications Open On My Home Network

Docbroke wrote:

Try opening apps from a terminal, that should give some error output.
https://superuser.com/questions/671614/ … -confusion

When I try opening Chromium, I get the following error:

[goodies@localhost ~]$ chromium
Invalid MIT-MAGIC-COOKIE-1 key
(chromium:4487): Gtk-WARNING **: 10:25:57.655: cannot open display: :0

Surprisingly, I get a different error message I try to open Firefox or Thunderbird:

[goodies@localhost ~]$ firefox
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Error: cannot open display: :0

Offline

#7 2018-07-21 08:39:48

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] No Applications Open On My Home Network

What happens after changing hostname to something unique ?

EDIT: MIT-MAGIC-COOKIE-1 should match hostname, otherwise x will not authorise program to open display.
Test with "xauth list"

Last edited by Docbroke (2018-07-21 08:46:51)

Offline

#8 2018-07-21 08:52:30

theoissilent
Member
Registered: 2018-07-21
Posts: 5

Re: [SOLVED] No Applications Open On My Home Network

Thank you very much, gentleman. It seems the issue was indeed the hostname. I have changed it to something unique and all is well.

I find it strange though that this only happens on my home networks and not at the office - unless the firewall used is the reason it does not happen there.

Once again, thank you so much.

Offline

#9 2018-07-21 09:08:54

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

Re: [SOLVED] No Applications Open On My Home Network

Please mark as [SOLVED] by editing the title in your first post.

https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

#10 2018-07-21 09:16:23

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] No Applications Open On My Home Network

theoissilent wrote:

Surprisingly, I get a different error message I try to open Firefox or Thunderbird:

Do you really expect developers of different programs to use the exact same wording for their error messages? They do both include the same error message produced by X about the cookie.

About the difference between the two networks: hostname can be supplied via DHCP. Maybe one of your home routers does this and your DHCP client changes the hostname only if the system doesn't currently have a valid hostname. The cookie would be generated when X starts and use the old, invalid hostname.

Last edited by Raynman (2018-07-21 09:17:29)

Offline

#11 2018-07-21 09:21:42

theoissilent
Member
Registered: 2018-07-21
Posts: 5

Re: [SOLVED] No Applications Open On My Home Network

Raynman wrote:

Do you really expect developers of different programs to use the exact same wording for their error messages? They do both include the same error message produced by X about the cookie.

My message was based on my prior assumptions. I had earlier thought it was a system error, hence I expected the error messages to be the same without considering they were application specific error messages.

Offline

Board footer

Powered by FluxBB