From nobody Sat Mar 02 07:39:23 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 4Tmxg613vTz5CDr8 for ; Sat, 2 Mar 2024 07:39:30 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 4Tmxg45xtdz46gZ for ; Sat, 2 Mar 2024 07:39:28 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=JY8F7Iid; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of tamelingdaniel@gmail.com designates 2a00:1450:4864:20::332 as permitted sender) smtp.mailfrom=tamelingdaniel@gmail.com Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-412cb54f086so5920165e9.3 for ; Fri, 01 Mar 2024 23:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709365166; x=1709969966; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=D9fu6lqsQuC4SeVA5iCnRkL/guNOn3LZK6g4iVzg6e0=; b=JY8F7IidiMV24dd7OCDw6ZzTS+NXjoOFFFOa9MOWKuiQcVilAc9uvYUEubS59jhHfo IJZ5zIwTWHQzAKaHX4YGF4HSa0BS47BzPCJ7v2pqcxhs908CH+EVTkm8pnedxP1CljzK 1GDoie1fL7ocBrX561dyRZqXlcG5KGFsMU2md/4R8f/LH7P4SKNancSmWj/1nh3L1R9E Vun8D1jtq6ty6kAeIyi0pJBLL20P7fp83GifCKH4CGGnLFLIv/DGl6T7oILGSb7qsHG0 pSybe4+O56NivzTFj/DH9xibXynCv4jYkauzi62g+pDpJ5IlNEKD5VIKSktKgxJlVrvL 8SnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709365166; x=1709969966; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=D9fu6lqsQuC4SeVA5iCnRkL/guNOn3LZK6g4iVzg6e0=; b=q6x7kezE5GhXjNE/ygFcDQmZQIv0dxfjM7VNrm2zB1RdPep92WBkNa21lrhgEiG/EZ M1iGMi0tiEBE9pndKkB26mowqxWNBwkpJiWZwIZXL/rlgB0ZcfjOrC9DWkw/GgBv34R8 TvZ0Y1QonNlrzcm5vCP/1rZgYtm9RUr9O3N7KtNO3OWH6wfIYIuct00UhBCnT9Ax3ztO /pg27ZAT/Iw1wSz01Ts6KK4TZTRdbhPJ6FAE8Vdoiq7ZSesvfUK3HBPlK9+KKuDnrBOv QIImfMELr3CtcqswqBPkIsD1Ypc69L+pYYHasq+dDQBCXWAlPeFtBdtzUipslDaAW7Pv IyAg== X-Gm-Message-State: AOJu0YxFdbhNkQ6j9a/rKIeyDLA7S6xiiXQaE7H0dy6m5hmtthk4cGLT WWqHOp5KlNSaWC4W/O26yGWLMKUOgR5HKlGCibN7SzL3NGWEJyehNuSXaAQ5gjk= X-Google-Smtp-Source: AGHT+IHJOg1FwSH8YIpgJavxajB8RfvVNBmWvWXIcVvW36YIw6yjpnwnmMSkQtPJBya7rT0daZNsVQ== X-Received: by 2002:a05:600c:3c86:b0:412:8d98:78a with SMTP id bg6-20020a05600c3c8600b004128d98078amr3396198wmb.13.1709365166065; Fri, 01 Mar 2024 23:39:26 -0800 (PST) Received: from localhost (200116b80ddd530003e5b6601df3ec5e.dip.versatel-1u1.de. [2001:16b8:ddd:5300:3e5:b660:1df3:ec5e]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00412a31d2e2asm7753194wmq.32.2024.03.01.23.39.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 23:39:25 -0800 (PST) Date: Sat, 2 Mar 2024 08:39:23 +0100 From: Daniel Tameling To: questions@freebsd.org Subject: Re: Remote development with neovim, tmux and SSH from macOS? Message-ID: References: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6-vIFoipZvllLfrAwkIMmQ72B1mFYwcw7IRtdlG0JxM_2y5iN2WPWwMF1PVY8YWHw4jrx270Rg3PlA2qaVeJIPyudjoOhd-kdGd1Bt0M7m4=@protonmail.com> X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.99 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::332:from] X-Rspamd-Queue-Id: 4Tmxg45xtdz46gZ 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