[SOLVED] Slackware 14.2: Emacs doesn't start when Internet is off
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
no, doesn't start without the Internet connection.
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.
What's in /etc/HOSTNAME ? Also I found some info at StackExchange that might be relevant;
Quote:
One slow startup problem is usually that you don't have your machines fully qualified hostname declared in /etc/hosts which causes emacs to hang at some syscall during startup. However, that would not explain why emacs is faster than emacs -Q.
[...]
I had the same problem and solved it by adding machine name (not fully qualified) to /etc/hosts as a synonym for localhost. strace revealed that it used before 5 seconds opening an IP connection and another 4+4 seconds in two ioctls and still some seconds in other handling of these connections. Now it starts immediately
Tried, didn't help. But it seems, that this is the right way of investigation at least. Today when I launched GUI Emacs after some time I got a popup with the following message:
Quote:
The authenticity of host 'host.does.not.exist (127.0.0.1)' can't be established. ECDSA key fingerprint is SHA256:<hex code>. Are you sure want to continue connecting?
So, it's tramp trying to connect to my local machine for some reason.
have you tried to remove (rename) your .emacs.d , or what you use for emacs,
maybe there is some auto install update melpa other package manager configured that tries to get info from the net
did you tried to use emacs clean?
have you tried to remove (rename) your .emacs.d , or what you use for emacs,
maybe there is some auto install update melpa other package manager configured that tries to get info from the net
did you tried to use emacs clean?
Yes, I renamed both .emacs and .emacs.d --- didn't help.
Tried, didn't help. But it seems, that this is the right way of investigation at least. Today when I launched GUI Emacs after some time I got a popup with the following message:
So, it's tramp trying to connect to my local machine for some reason.
you could try with an IP address which belongs to the same subnet of your PC but is not used by any other PC, e.g. 192.168.1.253. I had the same problem a year ago and now in my /etc/host there is the following line:
you could try with an IP address which belongs to the same subnet of your PC but is not used by any other PC, e.g. 192.168.1.253. I had the same problem a year ago and now in my /etc/host there is the following line:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.