Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

[SOLVED]Invalid MIT-MAGIC-COOKIE-1 key

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
sao98021
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 145
Joined: Tue Apr 03, 2012 2:59 pm
Location: Michigan

[SOLVED]Invalid MIT-MAGIC-COOKIE-1 key

  • Quote

Post by sao98021 » Mon Nov 12, 2018 1:29 pm

for about a month or two, once in a while... about once or twice a week almost random, this laptop will get that error when starting programs(any programs) (with or without optirun/bumblebee)

Code: Select all

Invalid MIT-MAGIC-COOKIE-1 key
(gedit:14188): Gtk-WARNING **: cannot open display: :0
i usually just reboot, cause indeed it only happens midway into the week, and i should reboot the pc anyway. I've had gentoo installed for years, but this only started happening relatively recently, i see that it could be a number of things, but i wanted to check here to see if this happening now specifically for other people as well.

come to think of it, i think it actually first had happened immediately after switching to comcast ISP over att, dunno if thats related or not.

lol, is someone haxing me via pen+steal/alter/createnew/takepwnership of my display cookie

interestingly, my cookie upon boot with everything working, just looks like a default xauthority with my name, but after the situation arises, it will be alterd with defunct symbols and itll have the word COMCAST added into it along with a bunch of symbols..

well, after digging around a bit on the forums i've narrowed it down and now have a pretty good idea of whats happening, so even though i haven't done anything yet i'll mark topic as solved, thanks.

if anyone is wondering, or facing something similar.. its probably due to nm-applet reassigning hostname after suspend/reconnecting to a network which then causes confliction, if you don't have or use nm-applet, then it could be NetworkManager doing something similar.
Top
tholin
Apprentice
Apprentice
Posts: 213
Joined: Sat Oct 04, 2008 11:44 am

  • Quote

Post by tholin » Mon Nov 12, 2018 2:23 pm

I had the same problem a while ago. It took me quite a while to figure out what was wrong. For me the problem was caused by dhcpcd changing my hostname to "localhost". It uses localhost as fallback in case the dhcp server doesn't set any hostname. I worked around the problem by setting "nohook hostname" in /etc/dhcpcd.conf.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Mon Nov 12, 2018 5:23 pm

A better workaround would be to get the hostname from `xauth list` and add it as a loopback address in /etc/hosts, so it's always valid.
Top
mortonP
Tux's lil' helper
Tux's lil' helper
Posts: 129
Joined: Tue Dec 22, 2015 9:39 am

  • Quote

Post by mortonP » Mon Nov 12, 2018 8:13 pm

I have dhcpcd and I have this problem since a few days when I setup a new system - but did not copy the dhcpcd.conf over....

Thanx you for posting this!
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic