unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: n179911 <n179911@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to install emacs server on ubuntu
Date: Thu, 26 Nov 2009 09:58:03 +0100	[thread overview]
Message-ID: <20091126085803.GA18691@tomas> (raw)
In-Reply-To: <3b9893450911260035t6b40c2b1h2da2bf5244ad2ed@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Nov 26, 2009 at 12:35:09AM -0800, n179911 wrote:
> I tried following this, I want emacs daemon starts/kills automatically:
> http://www.emacswiki.org/emacs/emacsd, which I did this (as root).

Meh. This init script is nice and all -- but so un-unixy that I want to
cry ;-)

> 
>    1. cp emacsd /etc/init.d/
>    2. chmod 755 /etc/init.d/emacsd
>    3. update-rc.d emacsd defaults

Did you copy it as-is? Then you'd have to make sure that you are user
1000 on the system.

You can find out by typing the command id into a shell.

> But I still get this error when I
> $ emacsclient -c examples.desktop
> emacsclient: can't find socket; have you started the server?
> To start the server in Emacs, type "M-x server-start".
> emacsclient: error executing alternate editor "emacs -Q"

As already stated, you have to provide emacsclient with a file which

 (a) gives it a hint on how to contact the server
 (b) gives it the authority to do so.

Typically, the server makes this file at start.

What's in this "example.desktop" file? 

Basically, I think it's not a good idea to start the server from init.d
- -- it's a user thing, so it should be started on user session.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLDkMbBcgs9XrR2kYRAt7KAJ0cjuXzSzX1o4vTowLxISUNTTJA/ACdHe0h
qH/QRTeBQyu4cRyC4pQN5nI=
=7K/3
-----END PGP SIGNATURE-----




  reply	other threads:[~2009-11-26  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 23:06 How to install emacs server on ubuntu n179911
2009-11-26  5:38 ` tomas
2009-11-26  8:35   ` n179911
2009-11-26  8:58     ` tomas [this message]
2009-11-26 18:09       ` n179911
2009-11-27  5:29         ` tomas
2009-11-28  8:34           ` n179911
2009-11-28 11:16             ` tomas
2009-11-26 18:35   ` Richard Riley
2009-11-26 20:50 ` Sven Bretfeld
2009-11-26 21:14   ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091126085803.GA18691@tomas \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=n179911@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).