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: Sat, 28 Nov 2009 00:34:36 -0800 Message-ID: <3b9893450911280034g39a9b0falfb856b2c5cea9c49@mail.gmail.com> References: <3b9893450911251506y251af321n15150ddff15a3a0b@mail.gmail.com> <20091126053809.GA31980@tomas> <3b9893450911260035t6b40c2b1h2da2bf5244ad2ed@mail.gmail.com> <20091126085803.GA18691@tomas> <3b9893450911261009x52669b28wdad64154722026f1@mail.gmail.com> <20091127052933.GA24329@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502f5444f9a7904796a47e7 X-Trace: ger.gmane.org 1259397317 29968 80.91.229.12 (28 Nov 2009 08:35:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Nov 2009 08:35:17 +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 Sat Nov 28 09:35:10 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 1NEIlp-0003NV-8v for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Nov 2009 09:35:09 +0100 Original-Received: from localhost ([127.0.0.1]:52488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEIlo-00051h-L2 for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Nov 2009 03:35:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEIlP-00050l-02 for help-gnu-emacs@gnu.org; Sat, 28 Nov 2009 03:34:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEIlK-0004x8-Tb for help-gnu-emacs@gnu.org; Sat, 28 Nov 2009 03:34:42 -0500 Original-Received: from [199.232.76.173] (port=46911 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEIlK-0004x5-O1 for help-gnu-emacs@gnu.org; Sat, 28 Nov 2009 03:34:38 -0500 Original-Received: from mail-pw0-f47.google.com ([209.85.160.47]:48661) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEIlK-0006bO-5i for help-gnu-emacs@gnu.org; Sat, 28 Nov 2009 03:34:38 -0500 Original-Received: by pwi9 with SMTP id 9so1517034pwi.26 for ; Sat, 28 Nov 2009 00:34:36 -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=SduzCSwQcpVEv3ss9lfpO/4toDs0ZoE2T0fb/bZ9gIM=; b=SxkHgKEcZ757Y5Xdt0uUpDWzJykC0tW/PV3341H55r18BqUQWhdh8NwLaKPeqFL602 PV8uuqqyTc05kZjzMw/md/JupIqSHY0pTDp7UKkhzkuesIw0WSdXvrE7taPyr+1KlAQV KVPhWMOMStjqWtmjz1KOPUSrckK4wHXWOb0yo= 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=KTpVMy+gv4TuOWSUaECHMzNcA7pLflRXMSSfyPsB3KOIq7vNJILvNx4XkkCV4tFIUa 4+W5/lB5N5po2l7HAukp+qfzkYsauwqK7nC80HFcnAbBn+/8ESNdo1FRDMN1Qaxu9vDZ jpR4KA/k7NNFSwYtLq1su7TuVMIdBQO4yWwpk= Original-Received: by 10.114.163.13 with SMTP id l13mr3355890wae.139.1259397276735; Sat, 28 Nov 2009 00:34:36 -0800 (PST) In-Reply-To: <20091127052933.GA24329@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:70207 Archived-At: --00504502f5444f9a7904796a47e7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you Tomas. I use this way, which works for me: My EDITOR env is ~/bin/edit where "edit" is the following simply bash script: ,---- | #!/bin/bash | # edit | export GDK_NATIVE_WINDOWS=3D1 | exec emacsclient --alternate-editor=3D"" -c "$@" `---- emacsclient will start the daemon if it's not already started. On Thu, Nov 26, 2009 at 9:29 PM, wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, Nov 26, 2009 at 10:09:13AM -0800, n179911 wrote: > > On Thu, Nov 26, 2009 at 12:58 AM, wrote: > > > > > > > > > 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. > > > > > > Thank you. Tomas. > > > > How can I unstall the script? > > > 1. cp emacsd /etc/init.d/ > > > 2. chmod 755 /etc/init.d/emacsd > > > 3. update-rc.d emacsd defaults > > > > I did the last step 'update-rc.d', how can I reverse the change done by > that > > 'update-rc.d' script? > > With 'update-rc.d' itself: just type > > update-rc.d emacsd remove > > Note that it won't delete the script in /etc/init.d/emacsd. It will set > up things so that in won't be called at start/stop of the system. > > (You can learn such things by invoking the manual page of update-rc.d: > just type at a terminal window: "man update-rc.d"). > > Did you investigate the other avenues? Do you now know why it didn't > work? > > Regards > - -- tom=E1s > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFLD2O9Bcgs9XrR2kYRAmXQAJ9K+gD5yuFNVweTLZ064e6SrbHjsgCff6lE > 33/6jTBv3AmC3EjxU98lJlo=3D > =3DPjMV > -----END PGP SIGNATURE----- > --00504502f5444f9a7904796a47e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you Tomas.

I use this way, which works for me:

My EDITO= R env is ~/bin/edit where
"edit" is the following simply bash script:

,----
| #!/= bin/bash
| # edit
| export GDK_NATIVE_WINDOWS=3D1
| exec emacsclie= nt --alternate-editor=3D"" -c "$@"
`----

emac= sclient will start the daemon if it's not already started.


On Thu, Nov 26, 2009 at 9:29 PM, <tomas@tuxteam.de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Nov 26, 2009 at 10:09:13AM = -0800, n179911 wrote:
> On Thu, Nov 26, 2009 at 12:58 AM, <tomas@tuxteam.de> wrote:
> >
> >
> > Basically, I think it's not a good idea to start the server f= rom init.d
> > - -- it's a user thing, so it should be started on user sessi= on.
> >
> > Thank you. Tomas.
>
> How can I unstall the script?
> > =A0 =A01. cp emacsd /etc/init.d/
> > =A0 =A02. chmod 755 /etc/init.d/emacsd
> > =A0 =A03. update-rc.d emacsd defaults
>
> I did the last step 'update-rc.d', how can I reverse the chang= e done by that
> 'update-rc.d' script?

With 'update-rc.d' itself: just type

=A0update-rc.d emacsd remove

Note that it won't delete the script in /etc/init.d/emacsd. It will set=
up things so that in won't be called at start/stop of the system.

(You can learn such things by invoking the manual page of update-rc.d:
just type at a terminal window: "man update-rc.d").

Did you investigate the other avenues? Do you now know why it didn't work?

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

iD8DBQFLD2O9Bcgs9XrR2kYRAmXQAJ9K+gD5yuFNVweTLZ064e6SrbHjsgCff6lE
33/6jTBv3AmC3EjxU98lJlo=3D
=3DPjMV
-----END PGP SIGNATURE-----

--00504502f5444f9a7904796a47e7--