• Lightweight Emacs for container?

    From Dr. Jennifer Nussbaum@21:1/5 to All on Mon May 6 21:40:01 2024
    I usually use Emacs on full-blown Debian distributions, so I don't pay much attention to how large it is. But I'm now starting to
    play around with lightweight LXC containers, obviously headless, and would like to keep using Emacs in these, but just for basic
    text editing and so forth, I don't need a whole IDE environment. But to my surprise, even emacs-nox is a gigantic installation,
    that even wants to pull in MySQL, for heaven's sake.

    Is there some package, or a simple workaround, that will allow me to use a basic Emacs without all the cruft?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Monnier@21:1/5 to All on Mon May 6 22:30:01 2024
    Is there some package, or a simple workaround, that will allow me to use
    a basic Emacs without all the cruft?

    I think the usual answers look like:

    - Use Zile (or some other small Emacs-inspired editor).
    - Use Tramp (i.e. run Emacs outside the container and access the
    container's files as a kind of remote host).


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?utf-8?B?S2rDtnJsaW5n?=@21:1/5 to All on Mon May 6 23:00:01 2024
    On 6 May 2024 16:19 -0400, from [email protected] (Stefan Monnier):
    Is there some package, or a simple workaround, that will allow me to use
    a basic Emacs without all the cruft?

    I think the usual answers look like:

    - Use Zile (or some other small Emacs-inspired editor).

    mg and jove might be other alternatives; all of these appear to have
    minimal dependencies.

    On a fairly small Bookworm installation (standard and ssh-server tasks installed, and otherwise out-of-the-box):

    # apt-get -s install zile
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
    libgee-0.8-2
    The following NEW packages will be installed:
    libgee-0.8-2 zile
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Inst libgee-0.8-2 (0.20.6-1 Debian:12.5/stable [amd64])
    Inst zile (2.6.2-2+b1 Debian:12.5/stable [amd64])
    Conf libgee-0.8-2 (0.20.6-1 Debian:12.5/stable [amd64])
    Conf zile (2.6.2-2+b1 Debian:12.5/stable [amd64])
    # apt-get -s install mg
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following NEW packages will be installed:
    mg
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Inst mg (20221112-1 Debian:12.5/stable [amd64])
    Conf mg (20221112-1 Debian:12.5/stable [amd64])
    # apt-get -s install jove
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Suggested packages:
    aspell ctags | emacs-bin-common
    The following NEW packages will be installed:
    jove
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Inst jove (4.17.5.1-2 Debian:12.5/stable [amd64])
    Conf jove (4.17.5.1-2 Debian:12.5/stable [amd64])
    #

    You could also try with --no-install-recommends --no-install-suggests
    to apt-get install; but there's no denying that present-day Emacs is
    fairly heavy-weight.

    --
    Michael Kjörling 🔗 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Dr. Jennifer Nussbaum on Mon May 6 22:40:02 2024
    On Mon 06 May 2024 at 19:37:39 (+0000), Dr. Jennifer Nussbaum wrote:
    I usually use Emacs on full-blown Debian distributions, so I don't pay much attention to how large it is. But I'm now starting to
    play around with lightweight LXC containers, obviously headless, and would like to keep using Emacs in these, but just for basic
    text editing and so forth, I don't need a whole IDE environment. But to my surprise, even emacs-nox is a gigantic installation,
    that even wants to pull in MySQL, for heaven's sake.

    Is there some package, or a simple workaround, that will allow me to use a basic Emacs without all the cruft?

    Are you allowing APT to install Recommends and/or Suggests?

    If you haven't yet installed emacs-nox, it might be interesting
    to see the list of packages you get listed if you:

    $ apt-get -s --no-install-recommends install emacs-nox

    as a /user/.

    Or OTOH, if you have installed emacs-nox:

    $ apt-get -s purge <MYSQL>

    as a /user/, where <MYSQL> is the names of the mysql packages
    you're complaining about.

    The only mysql package I have (on bullseye, I'm afraid)
    is mysql-common (which is very small), and that shows:

    $ apt-get -s purge mysql-common
    NOTE: This is only a simulation!
    apt-get needs root privileges for real execution.
    Keep also in mind that locking is deactivated,
    so don't depend on the relevance to the real current situation!
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    gsasl-common guile-2.2-libs libgsasl7 libntlm0 mailutils-common
    Use 'apt autoremove' to remove them.
    The following packages will be REMOVED:
    libmailutils7* libmariadb3* libreoffice-sdbc-mysql* mailutils* mariadb-common* mysql-common*
    0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
    Purg mailutils [1:3.10-3+b1]
    Purg libmailutils7 [1:3.10-3+b1]
    Purg libreoffice-sdbc-mysql [1:7.0.4-4+deb11u8]
    Purg libmariadb3 [1:10.5.23-0+deb11u1]
    Purg mariadb-common [1:10.5.23-0+deb11u1]
    Purg mysql-common [5.8+1.0.7]

    (I have emacs-gtk installed, rather than -nox.)

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Stefan Monnier on Tue May 7 06:30:01 2024
    On Mon, May 06, 2024 at 04:19:32PM -0400, Stefan Monnier wrote:
    Is there some package, or a simple workaround, that will allow me to use
    a basic Emacs without all the cruft?

    I think the usual answers look like:

    - Use Zile (or some other small Emacs-inspired editor).
    - Use Tramp (i.e. run Emacs outside the container and access the
    container's files as a kind of remote host).

    Tramp is the way to go, for a bunch of other reasons. You carry around
    your set of customizations. You have less instances to keep up to date
    and to care-and-feed.

    Cheers
    --
    t

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZjmtjwAKCRAFyCz1etHa RjmWAJ9AwjhpPKIGy1Pqsb7HzpDd3TV0IwCfTpq8q+IXDr3TegtyM3+P+2bKf3M=
    =FPbD
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)