cultural reviewer and dabbler in stylistic premonitions

  • 70 Posts
  • 70 Comments
Joined 4 years ago
cake
Cake day: January 17th, 2022

help-circle





  • Congrats on fixing your issue and progressing in your self-hosting journey… but… from a security standpoint it is not really a good idea to log in to your home server from your work PC.

    Anyone else who is able to run code on your work PC (your employer, rogue coworkers, hackers targeting your employer, hackers randomly exploiting the 15-year-old version of Office or other software you’re running there, etc) could easily discretely retain the access which you gave them to your hopefully-better-secured (or at least differently-secured) Debian home server.











  • “But you can’t copy with Ctrl+C, it’s…” - You can. When something is selected It copies selection to clipboard, otherwise it sends SIGINT.

    What terminal emulator are you using where ctrl-c copies instead of sending SIGINT when text is selected? In every one I’ve ever used, ctrl-c still sends SIGINT even with text selected (and one must must use ctrl-shift-C/ctrl-shift-V to copy/paste).

    I don’t have any suggestion for getting the behavior you’re asking for, but besides the normal ctrl-(shift)-C/V clipboard FYI you also have two other types of clipboard-like things: one which works anywhere (not only in the terminal) and is actually always automatically copying anything you select and lets you paste from it with middle click (this originated with X Windows but i think most Wayland compositors have also implemented it by now), and another which is found in GNU Readline (used by bash and numerous other REPLs) called the “kill buffer” which can be pasted (or “yanked”) from and cut (or “killed”) to using Emacs keyboard shortcuts (which also include various cursor movement controls).

    Notes:

    • the kill buffer is local to a given readline context, it’s not shared across different shell windows.
    • the list of emacs keybindings in that wikipedia article i linked is currently confusingly referring to the kill buffer as “the clipboard”
    • you can drastically reconfigure your readline keybindings and other behavior by editing your .inputrc file, but you cannot achieve what you were originally asking for because there is no concept of text selection in readline.

    HTH!


















  • Arthur Besse@lemmy.mltolinuxmemes@lemmy.worldHighlight of my Morning
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    edit-2
    1 month ago

    sudo apt --update --autoremove upgrade -y

    note

    this doesn’t actually do the same thing as the previous comment running autoremove afterwards does; the former will remove things which were rendered removable by the upgrade while the latter will only remove things which were already autoremovable prior the upgrade.