From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: How to install emacs server on ubuntu Date: Thu, 26 Nov 2009 09:58:03 +0100 Message-ID: <20091126085803.GA18691@tomas> References: <3b9893450911251506y251af321n15150ddff15a3a0b@mail.gmail.com> <20091126053809.GA31980@tomas> <3b9893450911260035t6b40c2b1h2da2bf5244ad2ed@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259226841 1790 80.91.229.12 (26 Nov 2009 09:14:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 09:14:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: n179911 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 10:13:54 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 1NDaNY-0000AO-3j for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 10:11:08 +0100 Original-Received: from localhost ([127.0.0.1]:40979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDaNW-0007M1-Uf for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 04:11:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDaHU-0003lN-8c for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 04:04:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDaHO-0003hq-VE for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 04:04:51 -0500 Original-Received: from [199.232.76.173] (port=53341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDaHO-0003hg-Pz for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 04:04:46 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:45223 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDaHO-0001DY-9V for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 04:04:46 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 12C9E90048; Thu, 26 Nov 2009 09:58:03 +0100 (CET) Content-Disposition: inline In-Reply-To: <3b9893450911260035t6b40c2b1h2da2bf5244ad2ed@mail.gmail.com> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) 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:70137 Archived-At: -----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 ;-) >=20 > 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?=20 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=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLDkMbBcgs9XrR2kYRAt7KAJ0cjuXzSzX1o4vTowLxISUNTTJA/ACdHe0h qH/QRTeBQyu4cRyC4pQN5nI=3D =3D7K/3 -----END PGP SIGNATURE-----