You are not logged in.
When I disconnect a internet network(WiFi or Wire) and disconnect (or reconnect), no programs will run and gets me following error:
[kamix@localhost ~]$ gedit
No protocol specified
** (gedit:5064): WARNING **: Could not open X display
No protocol specified
Unable to init server: Could not connect: Connection refused
(gedit:5064): Gtk-WARNING **: cannot open display: :0.0I've tested those on Xfce and KDE both has this problem.
Last edited by kamrava (2014-05-06 06:54:13)
Offline
... When I disconnect a internet network(WiFi or Wire) and reconnect to it again, no programs will run...
How, specifically, do you do that.
Also, are you issuing the gedit command from a terminal or a console?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
You can see the problem in this screencast :
http://www.mediafire.com/watch/99gi9gmb … roblem.mp4
Any helps would be great.
Offline
No one has the time to go through your screencast. Not to mention, people like me who have all media related websites blocked from their network at work.
If you cannot be bothered to take the time to describe your problem correctly with logs and useful information, then I guess no one will be bothered to help you out. Please learn how to ask questions the smart way !
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@ kamrava,
It seems that NetworkManager is somehow interfering with X. I would suggest you first start by disabling NetworkManager, and assign an IP manually to you network interface. Then check if you can reproduce the issue.
PS: By the way, take heed of what @ Inxsible said. Your video was way too long, and instead of writing about your problem in a Text editor inside a video, you should post the relevant stuff here.
Last edited by x33a (2014-05-05 17:32:03)
Offline
I tried watching the screen cast. None of it requires a movie. It's a movie of watching text being typed (slowly) into a text editor.
Just post that text here.
How do you start your X Session? Do you use any sort desktop sharing/remote x server/etc?
Last edited by Trilby (2014-05-05 18:27:13)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
How do you start your X Session?
`~/.xinitrc`
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec startkde
~
"/home/kamix/.xinitrc" 21L, 375C Do you use any sort desktop sharing/remote x server/etc?
No. I don't think so!
Offline
@ kamrava,
I would suggest you first start by disabling NetworkManager, and assign an IP manually to you network interface. Then check if you can reproduce the issue.
@kamrava
So, as suggested, try disabling NetworkManager from the beginning:
I disabled NetworkManager. But how do I assign an IP manually to my network interface?!
Offline
Read the wiki..
Moving to NC.
Offline
So it does work without NetworkManager?
Then give Netctl a try:
Offline
Thanks a lot. It solved by :
https://bbs.archlinux.org/viewtopic.php … 36#p684936
Offline