help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to install emacs server on ubuntu


From: tomas
Subject: Re: How to install emacs server on ubuntu
Date: Thu, 26 Nov 2009 09:58:03 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----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 via email to

[Prev in Thread] Current Thread [Next in Thread]