LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.2: Emacs doesn't start when Internet is off (https://www.linuxquestions.org/questions/slackware-14/slackware-14-2-emacs-doesnt-start-when-internet-is-off-4175592080/)

usr345 10-23-2016 09:24 PM

Slackware 14.2: Emacs doesn't start when Internet is off
 
Emacs: 24.5.1 (i586-slackware-linux-gnu, GTK+ Version 2.24.28).

When I try to launch Emacs without Internet connection --- it doesn't run. Neither in GUI or console mode. I renamed my .emacs file to 1.emacs, and it still doesn't work. So it has nothing to do with my settings.

After I plug in the Internet cable, it starts to work. What's up? How can I fix it?

drgibbon 10-23-2016 11:14 PM

Does it start with
Code:

emacs -nw -Q
?

Also, what is in /etc/hosts ?

dederon 10-24-2016 06:27 AM

hahaha, this bug report gave me a good laugh, thank you for this. sorry i can't help in any way.

usr345 10-24-2016 09:48 AM

Quote:

Originally Posted by drgibbon (Post 5622133)
Does it start with
Code:

emacs -nw -Q
?


no, doesn't start without the Internet connection.

Quote:

Originally Posted by drgibbon (Post 5622133)
what is in /etc/hosts ?

Code:

# For loopbacking.
127.0.0.1              localhost
127.0.0.1              phpmyadmin
127.0.0.1              dubai
127.0.0.1              lwt
192.168.1.4            asus.asus asus
93.184.220.75          static1.dmcdn.net
208.64.123.130          bitcoin.org

# End of hosts.


atelszewski 10-24-2016 12:48 PM

Hi,

Try adding IPv6 for localhost to /etc/hosts:
Code:

::1                        localhost
::1                        [your full domain] [your hostname]

--
Best regards,
Andrzej Telszewski

Richard Cranium 10-24-2016 06:45 PM

Quote:

Originally Posted by usr345 (Post 5622096)
Emacs: 24.5.1 (i586-slackware-linux-gnu, GTK+ Version 2.24.28).

When I try to launch Emacs without Internet connection --- it doesn't run. Neither in GUI or console mode. I renamed my .emacs file to 1.emacs, and it still doesn't work. So it has nothing to do with my settings.

After I plug in the Internet cable, it starts to work. What's up? How can I fix it?

What do you mean "without internet connection"?

Do you have anything in your .emacs file (or newer equivalent)?

If you wait ~12 minutes (that's default TCP timeout, BTW), does it come up?

usr345 10-25-2016 06:56 AM

Quote:

Originally Posted by atelszewski (Post 5622371)
Hi,

Try adding IPv6 for localhost to /etc/hosts:
Code:

::1                        localhost
::1                        [your full domain] [your hostname]


Tried. Didn't help

usr345 10-25-2016 06:59 AM

Quote:

Originally Posted by Richard Cranium (Post 5622507)
What do you mean "without internet connection"?

When the Internet cable is unplugged, it doesn't start. When I plug in the cable, it starts.

Quote:

Originally Posted by Richard Cranium (Post 5622507)
Do you have anything in your .emacs file (or newer equivalent)?

Yes, I have. I renamed the file to 1.emacs to exclude any corruptions, and it still didn't work.

Quote:

Originally Posted by Richard Cranium (Post 5622507)
If you wait ~12 minutes (that's default TCP timeout, BTW), does it come up?

Will try.

usr345 10-25-2016 03:20 PM

Quote:

Originally Posted by Richard Cranium (Post 5622507)
If you wait ~12 minutes (that's default TCP timeout, BTW), does it come up?

Yes, it starts in around 10 minutes. Why is it trying to access the Internet?

asdrubale 10-25-2016 05:05 PM

Quote:

Originally Posted by usr345 (Post 5622096)
Emacs: 24.5.1 (i586-slackware-linux-gnu, GTK+ Version 2.24.28).

When I try to launch Emacs without Internet connection --- it doesn't run. Neither in GUI or console mode. I renamed my .emacs file to 1.emacs, and it still doesn't work. So it has nothing to do with my settings.

After I plug in the Internet cable, it starts to work. What's up? How can I fix it?

maybe you have to add
Code:

127.0.0.1  host.does.not.exist
to /etc/hosts, as explained here?

jmccue 10-25-2016 05:22 PM

I saw you renamed ~/.emacs with no luck. Also try renaming Directory ~/.emacs.d

Another thing to check, did you copy any files to /usr/share/emacs/site-lisp ?

John

kikinovak 10-25-2016 05:34 PM

Quote:

Originally Posted by usr345 (Post 5622096)
Emacs: 24.5.1 (i586-slackware-linux-gnu, GTK+ Version 2.24.28).

When I try to launch Emacs without Internet connection --- it doesn't run. Neither in GUI or console mode. I renamed my .emacs file to 1.emacs, and it still doesn't work. So it has nothing to do with my settings.

After I plug in the Internet cable, it starts to work. What's up? How can I fix it?

That's because it tries to report back to gnu.org and fails.

Try Vim instead.

:D

rkelsen 10-25-2016 05:44 PM

Quote:

Originally Posted by kikinovak (Post 5622947)
That's because it tries to report back to gnu.org and fails.

Is that true? Why?

Personally, I've never used Emacs. Never had the need. It has been installed on my computer for a very long time though.

Richard Cranium 10-25-2016 06:00 PM

Quote:

Originally Posted by rkelsen (Post 5622949)
Is that true? Why?

Personally, I've never used Emacs. Never had the need. It has been installed on my computer for a very long time though.

He's trying to see if your leg comes off if he pulls hard enough.

Richard Cranium 10-25-2016 06:05 PM

Quote:

Originally Posted by usr345 (Post 5622665)
When the Internet cable is unplugged, it doesn't start. When I plug in the cable, it starts.

Does eth0 think that it is still connected after you unplug the cable? As in, it still has an IP address?


All times are GMT -5. The time now is 09:42 AM.