I’m playing with a couple of routers and comparing proprietary to open source on the same hardware. I miss my .bashrc functions and aliases… and compgen, tree, manpages, detailed help, etc; the little things that get annoying when they are missing.

I was thinking about trying to mount the embedded system on my workstation (while it is running?), but I’m not clear how this would work in practice with permissions, users, groups, root, etc. I’m curious how others do this kind of development/screwing around, or if this is a crazy idea.

3 points

You can use something like Nix + home-manager & take your environment with you.

permalink
report
reply
5 points
*

People with PhDs in Vim will laugh at this, but I sometimes connect to remote systems through VS Code SSH connections when I’m working on a project with multiple files on a remote system.

permalink
report
reply
2 points
*

I’ve used mirror.vim for this. Pretty much similar UX as remote workspaces. Forone off editing, you can do vim ssh://remote/<abs or ~ location>

Sometimes, VS Code-ium is piss poor especially over bad connections but otherwise the remote management is quite awesome

And ofc, there’s emacs with TRAMP mode

permalink
report
parent
reply
2 points
4 points

I am not quite yet st the level where I have a ton of user scripts I’d be lost without, so SSHing into a box is hardly a speed bump for me.

permalink
report
reply
6 points
*

This is probably not a solution you would want, but I will mention it anyway…

Emacs has a built-in app called “TRAMP mode”, what it does is it works as back-end for all of Emacs’s own built-in text editing and file browsing commands, then it uses ordinary SSH and POSIX shell commands on a remote host as the primitive APIs for this back-end. You could say it uses SSH and a POSIX shell as a RPC mechanism.

What this means is you can use the ordinary Emacs editor with the entirety of your usual Emacs configuration, but all filesystem changes (including editing files, directories, and running shell processes) occur on the remote host via SSH. In order to activate it, you just use Emacs’s special TRAMP URL scheme as the file path you want to edit, and it works seamlessly, (especially if you setup your SSH agent so you don’t need a password). An example of such a URL would be /ssh:user@remote-host:/etc/hosts.

permalink
report
reply
2 points

I’ve discovered this not long ago and it makes my work way easier. Also, using the dired mode on the remote is useful.

permalink
report
parent
reply
9 points

Cries in vim

permalink
report
parent
reply
3 points

Vim has it’s own way to edit/brows remote files. Checkout netrw:

https://www.vim.org/scripts/script.php?script_id=1075

permalink
report
parent
reply
1 point

Vim supports editing files through scp as well, no reason to cry here xD

permalink
report
parent
reply
2 points
*

There are Vim emulator apps for Emacs, and you can use them with TRAMP mode for remote file editing as well. Doom Emacs and Spacemacs both provide extremely good Vim emulation that work consistently throughout all Emacs modes, including TRAMP mode.

permalink
report
parent
reply
5 points

We’re gonna get through this

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.7K

    Monthly active users

  • 6.5K

    Posts

  • 179K

    Comments