From nobody Sun Mar 03 22:15:58 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tnx4J1RF6z5CQfH for ; Sun, 3 Mar 2024 22:16:16 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tnx4H6nYQz4NK8 for ; Sun, 3 Mar 2024 22:16:15 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-dcc4de7d901so3632981276.0 for ; Sun, 03 Mar 2024 14:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709504175; x=1710108975; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ayYpeWuK8GKDSqn/5U554KmVtQTcuNQan67Js/AmBJI=; b=galA+PUSDpO1+3Ld4fp92oT1g928nR/OUwBVZb1r5AQqxn/2kYaSUigl1v2zkw8Eej Z3sVGgGSMC1BGKzp3zFKm7moed8E078vl75jF1y7VpwN4QdOqw7XQYKmWC6uiOWHRNrN CYDsN7ktBfruDTfrMi/oc6fl4yL7vDjcmq1mbKXtTHiznQ3V0HZ39cSb6oKPrc2yQzyi 8iJvWJT6NM9XMLU+Dp1eIK0dEH54g99ZXzhaZ5z+86q41eA93dgvDkKkqyj/Q6saViII Y87pFTyUNBbTM7/10bhzg6NUm9gyYRZJHB4xpUxSOJyHN5GA6Ib0KGz1Is4dRdKLQtBN 71EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709504175; x=1710108975; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ayYpeWuK8GKDSqn/5U554KmVtQTcuNQan67Js/AmBJI=; b=TSv+5AneeE/yQRSvMUSNY8SKLk2UrFzMuCtkLUErdiUMgQKYQxHgayxYMyiMlPFyyu b+k3MNUPo1Bky1hZ3XFfgFBajY7uz43W/F18d4NqopFB8yuwyfgApYGuX7O4SE0JMQ4K 9iYuFcW+Dt/IAUIy6tvSaGygRzr/K7KAEKyOlmPjd5h/KajK5iRyLhwlhaQkMNS/Z9tg j8N00Z/br2SG7e91ycWV29+RyWL4dQ/pAONb+ZjalOiO28pRX0Ut11Vq012S+TuOc7xw gSNp4hzvzGIrUaY5bd4XGxLryidDkfd43h5G94jY3xdyrTWiMyC6km1r1wvqv2kezFAm He5g== X-Forwarded-Encrypted: i=1; AJvYcCVD3kMiNeG7Uks6SfLrcuuwW/KaCNZ/I5t1KvHOnrepjj8S7qaA/UHRNAEw+j6+HBCf/8m/h/PubCA2fYAckcDEY3I3nng= X-Gm-Message-State: AOJu0YzeK3QjxRG9EEjvMRchD059zmJuDzzQG1mKaTOGB11oknH/KWua KkYrbA+/Q4JlFZhwBZ5LGBoFlPfSdDDdQ9NTPByLD5KDM05y9vPf2FgZoxCGuW4Qg3DnYZBHePw pHf/tcFEMxC6CwTDFmpyHR5lEot0= X-Google-Smtp-Source: AGHT+IERm8a0aA4qcCMtHx9qaLKSjcScKD8MJ2Pw0+OHx3eEfsT4gXMW8CJRQmKWRPO8k1IB5FkBeH2EcTYKuakEe+s= X-Received: by 2002:a25:bc12:0:b0:dc7:4806:4fb with SMTP id i18-20020a25bc12000000b00dc7480604fbmr5005734ybh.8.1709504174921; Sun, 03 Mar 2024 14:16:14 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> In-Reply-To: From: Kevin Oberman Date: Sun, 3 Mar 2024 14:15:58 -0800 Message-ID: Subject: Re: Remote development with neovim, tmux and SSH from macOS? To: Simon Connah Cc: Daniel Tameling , questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000016a6bf0612c8f50b" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Tnx4H6nYQz4NK8 --00000000000016a6bf0612c8f50b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Mar 3, 2024 at 2:04=E2=80=AFPM Simon Connah wrote: > On Saturday, 2 March 2024 at 07:39, Daniel Tameling < > tamelingdaniel@gmail.com> wrote: > > > > > > > > > On Wed, Feb 28, 2024 at 04:30:22PM +0000, Simon Connah wrote: > > > > > > I've just set up a FreeBSD server and was curious about the best > practices for when it comes to developing on FreeBSD? I have a Mac Studio > but I'm not used to neovim or tmux at all and I get the feeling that > learning them is going to take some time. > > > > > > > What do you use for developing on FreeBSD servers? Unfortunately I > can't install FreeBSD on my machine (well I can but it would be in VMware > Fusion Pro). > > > > > > > Looking forward to hearing what other people do. > > > > > > > Simon. > > > > > > > > I generally use emacs and at work I use tmux for working on remote > > servers. The main reason is that I can detach from the session > > shutdown my laptop and continue right where I left off the next day. > > I don't use any plugins or have much in my .tmux.conf. I remapped > > splitting to Prefix+h and Prefix+v, and have some shortcuts for easier > > movement: > > > > > # more intuitive keybindings for splitting > > unbind % > > bind h split-window -v > > unbind '"' > > bind v split-window -h > > > > > # switch windows using Alt-arrow without prefix > > bind -n M-Left select-window -t:-1 > > bind -n M-Right select-window -t:+1 > > # switch panes using Shift-arrow without prefix > > bind -n S-Left select-pane -L > > bind -n S-Right select-pane -R > > bind -n S-Up select-pane -U > > bind -n S-Down select-pane -D > > # move window left and right with Alt-Shift-arrow > > bind-key -n M-S-Left swap-window -d -t -1 > > bind-key -n M-S-Right swap-window -d -t +1 > > > > > The rest is just stuff you find in every tmux setup guide. > > > > > > > > Just throwing out two options of what I have seen other people do: > > > > > 1) Mount remote folders locally with sshfs and then use your favourite > > editor on the machine itself. > > > > > 2) Connect with x2go to the remote machine and run a desktop > > environment on the remote machine. > > > > > I don't know whether these two work on MacOS or how difficult they are > > to setup. > > > > > -- > > Best regards, > > Daniel > > Thank you very much! I'll have a play around with tmux. From what I can > tell you can have sessions on multiple virtual servers and just switch > between them with a couple of key presses? Sounds good to me. Many moons ago the author of tmux made changes such that lines might be missing from the scrollback buffer. This was simply unacceptable to my needs at the time and I moved back to screen. I found tmux superior, but not usable without a complete hitory. It is possible that this is no longer the case and I have had no need for such a tool for over a decade of retirement, but it was and might still be a significant issue for you. --=20 Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --00000000000016a6bf0612c8f50b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sun, Mar 3, = 2024 at 2:04=E2=80=AFPM Simon Connah <simon.n.connah@protonmail.com> wrote:
On Saturday, 2= March 2024 at 07:39, Daniel Tameling <tamelingdaniel@gmail.com> wrote:

>

>

> On Wed, Feb 28, 2024 at 04:30:22PM +0000, Simon Connah wrote:
>

> > I've just set up a FreeBSD server and was curious about the b= est practices for when it comes to developing on FreeBSD? I have a Mac Stud= io but I'm not used to neovim or tmux at all and I get the feeling that= learning them is going to take some time.
> >

> > What do you use for developing on FreeBSD servers? Unfortunately = I can't install FreeBSD on my machine (well I can but it would be in VM= ware Fusion Pro).
> >

> > Looking forward to hearing what other people do.
> >

> > Simon.
>

>

> I generally use emacs and at work I use tmux for working on remote
> servers. The main reason is that I can detach from the session
> shutdown my laptop and continue right where I left off the next day. > I don't use any plugins or have much in my .tmux.conf. I remapped<= br> > splitting to Prefix+h and Prefix+v, and have some shortcuts for easier=
> movement:
>

> # more intuitive keybindings for splitting
> unbind %
> bind h split-window -v
> unbind '"'
> bind v split-window -h
>

> # switch windows using Alt-arrow without prefix
> bind -n M-Left select-window -t:-1
> bind -n M-Right select-window -t:+1
> # switch panes using Shift-arrow without prefix
> bind -n S-Left select-pane -L
> bind -n S-Right select-pane -R
> bind -n S-Up select-pane -U
> bind -n S-Down select-pane -D
> # move window left and right with Alt-Shift-arrow
> bind-key -n M-S-Left swap-window -d -t -1
> bind-key -n M-S-Right swap-window -d -t +1
>

> The rest is just stuff you find in every tmux setup guide.
>

>

> Just throwing out two options of what I have seen other people do:
>

> 1) Mount remote folders locally with sshfs and then use your favourite=
> editor on the machine itself.
>

> 2) Connect with x2go to the remote machine and run a desktop
> environment on the remote machine.
>

> I don't know whether these two work on MacOS or how difficult they= are
> to setup.
>

> --
> Best regards,
> Daniel

Thank you very much! I'll have a play around with tmux. From what I can= tell you can have sessions on multiple virtual servers and just switch bet= ween them with a couple of key presses? Sounds good to me.

Many moons ago the author of tmux made change= s such that lines might be missing from the scrollback buffer. This was sim= ply unacceptable to my needs at the time and I moved back to screen. I foun= d tmux superior, but not usable without a complete hitory.
=
It is possible that this is no longer the case and I ha= ve had no need for such a tool for over a decade of retirement, but it was = and might still be a significant issue for you.

--
Kevin Oberman, Part time kid herder and retired Network Engi= neer
E-mail: rk= oberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694= B318AB39EF1B055683
--00000000000016a6bf0612c8f50b--