LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-27-2016, 01:02 PM   #31
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled

Quote:
Originally Posted by atelszewski View Post
Hi,


This does not look like a correct entry for /etc/hosts (i.e. IP address should be first).
Fixed the post.
 
Old 10-27-2016, 09:27 PM   #32
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by usr345 View Post
Tried it. It gave just the info about successfully loading my packages:
Hmm. I see a lot of stuff from your ~/.emacs.d directory loading.
 
Old 10-27-2016, 09:47 PM   #33
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,217

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by usr345 View Post
Hurray! After adding:

Code:
127.0.0.1 laptop
to /etc/hosts it started to work. Thank you, drgibbon, sir.
Nice! Emacs on By the way, if you have "laptop.local" as the hostname, I think it should be at least;
Code:
# For loopbacking.
127.0.0.1		localhost
127.0.0.1		laptop.local laptop
# End of hosts.
In /etc/hosts (plus whatever else you want in there).
 
Old 10-28-2016, 03:26 PM   #34
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by drgibbon View Post
By the way, if you have "laptop.local" as the hostname, I think it should be at least;
Code:
# For loopbacking.
127.0.0.1		localhost
127.0.0.1		laptop.local laptop
# End of hosts.
Done.
 
Old 10-28-2016, 05:13 PM   #35
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Quote:
Originally Posted by drgibbon View Post
Nice! Emacs on By the way, if you have "laptop.local" as the hostname, I think it should be at least;
Code:
# For loopbacking.
127.0.0.1		localhost
127.0.0.1		laptop.local laptop
# End of hosts.
In /etc/hosts (plus whatever else you want in there).
Doesn't Slackware usually put the correct information in /etc/hosts as part of the installation?

What happened here? Was the file edited by the OP?
 
Old 10-29-2016, 02:33 AM   #36
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
Doesn't Slackware usually put the correct information in /etc/hosts as part of the installation?
In my case it didn't. I installed fresh Slackware 14.2 and chose "laptop" as my host name.

Quote:
Originally Posted by rkelsen View Post
Was the file edited by the OP?
It was edited by me (needed to add names of locally developed websites), but I didn't delete anything from it.

Last edited by usr345; 10-29-2016 at 02:40 AM.
 
Old 10-29-2016, 08:46 AM   #37
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
BTW: never used that feature myself, but I know that you can start an "emacs daemon" and then when you launch emacs, it is spawned as a "client", usefull (at the time) to share memory between several "instances" of emacs in tmux or screen.

Anyway, I guess that on start of emacs, he tries to connect to a potential "daemon" first to know in which mode it must starts. And the daemon communication might goes through a "localhost" port and something in happens when the socket is created/bound, name resolution or something of this kind.

This would lead me to think that this problem could happen on some other application which use the a local socket too, and might have similar code than emacs to do it.

It was just to say...
 
Old 10-29-2016, 08:54 AM   #38
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,217

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Actually to connect to the server you need to run 'emacsclient'. The regular 'emacs' command doesn't do that
 
Old 11-03-2016, 09:17 AM   #39
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by drgibbon View Post
Actually to connect to the server you need to run 'emacsclient'. The regular 'emacs' command doesn't do that
Alright I did it again... Should have tried it before guessing .

Bests.
 
  


Reply

Tags
emacs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware current x64 and KDE doesn't start? hsahin4 Slackware 6 02-02-2011 02:00 PM
KDM on slackware 11 Doesn`t Start sanctusiuda Linux - Newbie 9 05-21-2007 11:26 PM
Slackware 10.2 sometimes system doesn't start from cold not even BIOS messages. kowkow Slackware 27 04-18-2007 03:00 AM
(x)emacs doesn't start thelonius Debian 8 07-21-2006 12:30 PM
LILO doesn't start up-Slackware 10 AM1SHFURN1TURE Linux - Software 7 10-01-2004 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration