From nobody Wed Feb 28 17:29:42 2024 X-Original-To: freebsd-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 4TlLvm59LMz5C023 for ; Wed, 28 Feb 2024 17:29:56 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 4TlLvm4b6Lz45fx for ; Wed, 28 Feb 2024 17:29:56 +0000 (UTC) (envelope-from modulok@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2d28e465655so47460001fa.0 for ; Wed, 28 Feb 2024 09:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709141395; x=1709746195; 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=cMg8P/Vw3x+yRbWPzWgtKNi/NeeZbK8owSdldZb3msE=; b=Ye+5Fydry+eqOhm/CQScIoc7D1U7GEOtWCm9ygN+wmIRe9UHaAMJavqF6d/ccwTgvm bpDhXnKFKJ7A10tHVBFYu9TxUfiKz5Wa1uN4ZonmbpzWSSn9J8FjIYhyEZyq8R9goyiA OkIVttLQr/jk5cZUTfwePj9saclVlI2G6pMPr9kwTMeTyReZJVwIF3K9EkJjXMQv+CtK Qq+0L92AOr1P6vBlLtmYxWAxwAr2n3q2JDQ3ayFSVwiow7VKZqQi9CjGPrQXWL6wLw+x rd5gTb06tRpK9ZqeKaDzr5vKB3wjBluaRqDRi5uLewLsabCB6KQ1kYdxYl1gB+5xBOB9 iT3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709141395; x=1709746195; 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=cMg8P/Vw3x+yRbWPzWgtKNi/NeeZbK8owSdldZb3msE=; b=Ec2YOvzp78EhLfR7VdikxNoY/9pBVs2l64DvEKyePif0YouPhCM6MseUwzSXkKbF7v F3egJ8wjijETSUcVxSeLri7DTcdLKHzNP7mhmJIemAl3IPmQW6c94a85ISS95PolAMaC 5lSLf+sOtP/jmvp0qlJ+qhHHQfb/+58dNklByvi4TcZu/2hSnxcI4uluj6UwhWkKLy1f 5egORnKl1M+/lsoayI5RQ1Q+iLlIuyKjKrTfkL3cCR3Kc41CdaZshHKCWH/JuQ3izE2l IdFKBWliAKuODpYhRcbvHl0OsB8UC2qapt1itbvFhCcHJlUaiBt+flGYa2nCWyCJVQBN epUg== X-Gm-Message-State: AOJu0YzA/OqQ1dJoezqwr5NHqZqY4SrFSushBPAkLLGaPG0Snu3NeUgz O8PQz1BAWwiBOvy1IPUW8DYqp/C3G1D8/Q2yxkHR7PHPT3wgA1pFW7FNKkihDEtIK5bFngoPufP 5zhXW03G77H/a/J+Hs0pkoldGxX72XGZAlJs= X-Google-Smtp-Source: AGHT+IEBjgr4EMmy7HdKvuGjYHrq+LGjAamCWar+0vSwgaMeK3S521yvLH+vMl3G/WXD51IxLBx3/4f6q3tCsZFZz5c= X-Received: by 2002:a05:651c:1a12:b0:2d2:5123:4d11 with SMTP id by18-20020a05651c1a1200b002d251234d11mr11138543ljb.0.1709141394378; Wed, 28 Feb 2024 09:29:54 -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: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> From: Modulok Date: Wed, 28 Feb 2024 10:29:42 -0700 Message-ID: Subject: Re: Remote development with neovim, tmux and SSH from macOS? To: Simon Connah Cc: freebsd-questions Content-Type: multipart/alternative; boundary="000000000000aed39d0612747d77" 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:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4TlLvm4b6Lz45fx --000000000000aed39d0612747d77 Content-Type: text/plain; charset="UTF-8" >> 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). I don't develop on FreeBSD remotely. I don't see why you couldn't. FreeBSD is my daily driver. I write code in the `helix` text editor running inside `tmux`, itself inside the `alaccrity` terminal emulator (which you wouldn't have if developing remotely). I just use helix because it gives me a 90% vim-like experience with far less configuration out of the box. Like `neovim` it has built in LSP support and will use installed LSP servers e.g. rust-analyzer, clangd, gopls, taplo, etc. I've run VS code in the past, but mostly it's `helix` or occasionally `vim` for me these days. I've used `neovim` for a while but never really liked it as much. I found it was a lot more fragile - a lot of move fast and break things going on. On the rare occasion I need something like Docker, I'll boot a linux install running in `virtualbox`. For commercial solutions there's been a few Jetbrains products that are supported on FreeBSD. I ran `clion` for a bit and `pycharm` (Perhaps not remotely though, unless you want to get in deep with X11 forwarding and debugging any issues that arise, I don't know.) I also have a dedicated Windows box I can remotely boot and `rdesktop` into when I need it. I once tried setting this up to share the same physical CPU with virtualization running two operating systems at once and while it did work, it was a rough sojourn! Not worth the effort. Probably the best time investment is getting comfortable with vim motions. You can use these in `vi`, `vim`, `neovim`, `helix`, and there's even a plugin for `VS code` that supports them. They feel really clunky for a while, but save you tons of time later and are a transferable skill to other operating systems, software and domains. Best of luck! --000000000000aed39d0612747d77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>> I've just set up a FreeBSD server and wa= s curious about the best practices for when it comes to developing on FreeB= SD? 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.
<= br>
>> What do you use for developing on FreeBSD servers? U= nfortunately I can't install FreeBSD on my machine (well I can but it w= ould be in VMware Fusion Pro).
=C2=A0<= /div>
I don't develop on FreeBSD remotely. I don't see why you = couldn't. FreeBSD is my daily driver. I write code in the `helix` text = editor running inside `tmux`, itself inside the `alaccrity` terminal emulat= or (which you wouldn't have if developing remotely). I just use helix b= ecause it gives me a 90% vim-like experience with far less configuration ou= t of the box. Like `neovim` it has built in LSP support and will use instal= led LSP servers e.g. rust-analyzer, clangd, gopls, taplo, etc.

I've run VS code in the past, but mostly it's `hel= ix` or occasionally `vim` for me these days. I've used `neovim` for a w= hile but never really liked it as much. I found it was a lot more fragile -= a lot of move fast and break things going on. On the rare occasion I need = something like Docker, I'll boot a linux install running in `virtualbox= `. For commercial solutions there's been a few Jetbrains products that = are supported on FreeBSD. I ran `clion` for a bit and `pycharm` (Perhaps no= t remotely though, unless you want to get in deep with X11 forwarding and d= ebugging any issues that arise, I don't know.) I also have a dedicated = Windows box I can remotely boot and `rdesktop` into when I need it. I once = tried setting this up to share the same physical CPU with virtualization ru= nning two operating systems at once and while it did work, it was a rough s= ojourn! Not worth the effort.
=C2=A0
Probably the best = time investment is getting comfortable with vim motions. You can use these = in `vi`, `vim`, `neovim`, `helix`, and there's even a plugin for `VS co= de` that supports them. They feel really clunky for a while, but save you t= ons of time later and are a transferable skill to other operating systems, = software and domains.
=C2=A0
Best of luck!
<= /div> --000000000000aed39d0612747d77--