From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: How to install emacs server on ubuntu Date: Thu, 26 Nov 2009 19:35:59 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <3b9893450911251506y251af321n15150ddff15a3a0b@mail.gmail.com> <20091126053809.GA31980@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259260917 11543 80.91.229.12 (26 Nov 2009 18:41:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Nov 2009 18:41:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 26 19:41:50 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 1NDjHn-0003ek-46 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 19:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:47894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDjHm-0001yC-J6 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Nov 2009 13:41:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDjCl-0003hv-Ep for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 13:36:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDjCf-0003Y5-QL for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 13:36:33 -0500 Original-Received: from [199.232.76.173] (port=33573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDjCf-0003Xv-Bb for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 13:36:29 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:37077) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDjCe-0005NW-Gq for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 13:36:29 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NDjCc-0001Nq-G0 for help-gnu-emacs@gnu.org; Thu, 26 Nov 2009 19:36:26 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Nov 2009 19:36:26 +0100 Original-Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Nov 2009 19:36:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:70153 Archived-At: tomas@tuxteam.de writes: > 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. By far the easiest, and oft overlooked, method to start the server is to use the alternative-editor parameter. My EDITOR env is ~/bin/edit where "edit" is the following simply bash script: ,---- | #!/bin/bash | # edit | export GDK_NATIVE_WINDOWS=1 | exec emacsclient --alternate-editor="" -c "$@" `---- emacsclient will start the daemon if it's not already started.