From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: n179911 Newsgroups: gmane.emacs.help Subject: Re: How to install emacs server on ubuntu Date: Thu, 26 Nov 2009 00:35:09 -0800 Message-ID: <3b9893450911260035t6b40c2b1h2da2bf5244ad2ed@mail.gmail.com> References: <3b9893450911251506y251af321n15150ddff15a3a0b@mail.gmail.com> <20091126053809.GA31980@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e64be862994d490479420dc6 X-Trace: ger.gmane.org 1259224551 27216 80.91.229.12 (26 Nov 2009 08:35:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 08:35:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 09:35:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NDZpF-0006By-RD for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 09:35:42 +0100 Original-Received: from localhost ([127.0.0.1]:47596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDZpF-0006MC-2S for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 03:35:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDZoq-0006LV-1N for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 03:35:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDZol-0006J8-Jg for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 03:35:15 -0500 Original-Received: from [199.232.76.173] (port=51614 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDZol-0006J5-Do for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 03:35:11 -0500 Original-Received: from mail-pz0-f181.google.com ([209.85.222.181]:61250) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDZok-0005zN-Vl for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 03:35:11 -0500 Original-Received: by pzk11 with SMTP id 11so364319pzk.14 for ; Thu, 26 Nov 2009 00:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=IkuZ+x5JGHgGrFeB2jN3s8T3ivjrBRI/l0VUNi6bwWE=; b=xXbf7TnNmcUvGLtOvgr45UD6WC7rEqMaUnwiFBxMMk14Xj3hxfRpNcKhosc6DNVHJh 8BXT94uatt0Z0YB2awg2jDHuD3wg1I/QDjmd5w6WqYKeWSULqLYacKfLGLmQSwNuqdOG BXfpJ+gZxj3IGNBJ5F94hbj/z74Dizz24DzRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=kYtboglz6tYneuBtDFaUwIntdqi5frh9/pfqxEb7OsKtdyllam1FWwaDIRKgRzISK4 slLLENrTIcqRgYOvDFcGC6rJwsUFkWFeVRE4oiiotNR08IvmrfE5piAkRoV9z7djahqL TKmEiXJ8K/0I2A7ilGC2dlB5hTjBgLjlUr1Ks= Original-Received: by 10.115.113.4 with SMTP id q4mr18050265wam.54.1259224509795; Thu, 26 Nov 2009 00:35:09 -0800 (PST) In-Reply-To: <20091126053809.GA31980@tomas> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70136 Archived-At: --0016e64be862994d490479420dc6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tried following this, I want emacs daemon starts/kills automatically: http://www.emacswiki.org/emacs/emacsd, which I did this (as root). 1. cp emacsd /etc/init.d/ 2. chmod 755 /etc/init.d/emacsd 3. update-rc.d emacsd defaults 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" Thank you for any help. On Wed, Nov 25, 2009 at 9:38 PM, wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wed, Nov 25, 2009 at 03:06:36PM -0800, n179911 wrote: > > Hi, > > I read this follow wiki entry trying to install emacs server on ubuntu: > > http://www.emacswiki.org/emacs/EmacsClient#toc5 > > > > I have download the following script and cp it to /etc/init.d/emacsd > > http://www.emacswiki.org/emacs/EmacsdInitScript > > > > And I restart my ubuntu, and I run 'emacsclient'. > > I still get: > > $ emacsclient > > emacsclient: file name or argument required > > Try `emacsclient --help' for more information > > Well? Did you try ;-) > > Thing is that the client needs a cookie file to know "where" the server > is (and to show the server that it's allowed to). So, provided this > server is running, it has put this cookie file somewhere (typically in > your home dir, in emacs.d/server/server). I don't know how Ubuntu > customizes this in partticular. > > Regards > - -- tom=E1s > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFLDhRBBcgs9XrR2kYRAssFAJ9wIKj9igqkLUCLZQFaMT0oN/eZUACfZG6e > Z+9MKt6IL5rcQliLxjkZuZM=3D > =3Ds32I > -----END PGP SIGNATURE----- > --0016e64be862994d490479420dc6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tried following this, I want emacs daemon starts/kills automatically:http://www.emacswiki.org= /emacs/emacsd, which I did this (as root).
  1. cp emacsd /etc/init.= d/
  2. chmod 755 /et= c/init.d/emacsd
  3. = update-rc.d emacsd defaults
But I still get this error when I=A0
$ emacsclient= -c examples.desktop=A0
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"

Thank you for any help.



On Wed, Nov 25, 2009 at 9= :38 PM, <tomas@tu= xteam.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Nov 25, 2009 at 03:06:36PM -0800, n179911 wrote:
> Hi,
> I read this follow wiki entry trying to install emacs server on ubuntu= :
> http://www.emacswiki.org/emacs/EmacsClient#toc5
>
> I have download the following script and cp it to /etc/init.d/emacsd > http://www.emacswiki.org/emacs/EmacsdInitScript
>
> And I restart my ubuntu, and I run 'emacsclient'.
> I still get:
> $ =A0emacsclient
> emacsclient: file name or argument required
> Try `emacsclient --help' for more information

Well? Did you try ;-)

Thing is that the client needs a cookie file to know "where" the = server
is (and to show the server that it's allowed to). So, provided this
server is running, it has put this cookie file somewhere (typically in
your home dir, in emacs.d/server/server). I don't know how Ubuntu
customizes this in partticular.

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

iD8DBQFLDhRBBcgs9XrR2kYRAssFAJ9wIKj9igqkLUCLZQFaMT0oN/eZUACfZG6e
Z+9MKt6IL5rcQliLxjkZuZM=3D
=3Ds32I
-----END PGP SIGNATURE-----

--0016e64be862994d490479420dc6--