I usually connect with my server via ssh in a terminal and run basic commands. What’s a better, more efficient and modern way of doing that? Especially considering ai and documentation along the way? I wonder if there’s a better approach than “connect from remote and act local”. Is there a method to “code local and push to remote”?

I use a fedora server with podman, caddyfile and vi.

  • GreenKnight23@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    56 minutes ago

    self hosted gitlab. each server has a repo with all the docker configs and application configs. also have any scripts for the server itself on there as well, things like required libs, network configs, etc.

    I also have a repo dedicated for let’s encrypt SSL that retrieves new certs every month. then on each server is an install script scheduled that pulls the certs down, installs them, and restarts any services automatically.

    should anything go wrong, I have a siem monitor that will alert me that a service failed to start etc.

    currently running four servers like this with varying degrees of complexity.

  • BartyDeCanter@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 hour ago

    I have a git repo with all my docker files, config, notes, etc. I have a main overview file covering the overall system and then a directory for each machine. I edit things on my local machine, then scp and ssh to the various remotes. Once I’m happy with my changes, I commit and push to my Forgejo install on my NAS in case my main computer fails. Secrets, passwords, and keys are in my Vaultwarden.

    I don’t use AI for it, but a local model could probably give me the commands to do whatever I wanted based on the repo.

  • James R Kirk@startrek.website
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    Everything is in docker or a virtual machine that starts on boot. Docker containers are managed with Dockhand’s web ui. Once a month I ssh and “sudo apt upgrade” but that’s it.

    I tried to use olivetin to avoid having to ssh but I ran into errors I haven’t had time to investigate yet.

  • mel ♀@jlai.lu
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 hours ago

    My target is terraform to provide VMs on my miniPC and ansible to configure them. For my nas, probably a basic distro then some ansible stuff to setup stomate.

  • standarduser@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    4 hours ago

    I’ll take the maverick and share my niche position. I did most if not all my proxmox setup and configuration via complete reliance on LLMs. Now, before anyone says “why would you do that”, and I’ll be straight up. I was high for all of it, and not a small blaze I’m talking regularly stoned for months. And I’ll say it “got me by” for the frame work. It worked? Sorta. Music, Plex, immich, docker, arr stack, podman. Now, I can’t say I fully understand it still and I’ve done a lot of changes since that point last year and I figured it out by asking the model to backtrack what we did and I wont lie it helped me better learn how to question the models for my job, and It did decent documnetation over my server. But again, I was literally high doing it

  • WolfLink@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    It’s good to get comfortable in the command line, including over ssh.

    Especially considering ai and documentation along the way?

    If I am going to ask AI or Google about something, I just do that to help me find the answer and then apply the answer myself. That way I learn, and can double check the AI isn’t hallucinating, at least on in obvious ways.

    As for documentation, I keep a notes folder with detailed notes on manual configuration I’ve done, how and why, and the things I’ve learned along the way. I’ve found it’s both useful to help remember the things I’ve learned, and it is useful to go back to refer to.

  • dihutenosa@piefed.social
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    I write my NixOS configs in my PC, commit to the repo, then push it to the server. Then SSH in, and apply it. Or more likely, MOSH in.

  • vext01@feddit.uk
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    1
    ·
    9 hours ago

    I just use ssh and manually type commands. Keep doing it and you will get good and it will become second nature.

    No need to burn tokens on basic tasks.

    Master your tools. Learn awk, sed, just, etc.

    Some shell customisation can help. For example I’m fond of zsh-auto-suggestions and skim. Makes me quicker.

  • Albbi@piefed.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    7 hours ago

    I’ve been using a program someone on Lemmy has been writing: SSHPilot. It helps keep my server list organized and can easily ssh to the machines or open up a file browser for easy drag and drop of files if I have some quick files to move around. It copies ssh keys easily as well.

  • MuttMutt@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    Which one? Lol.

    TrueNAS is mostly via the webgui but I use SSH when needed.

    I have two Ubuntu 26.04LTS VM’s running on TrueNAS. One is going to be my web host the other is for FrigateNVR and local AI processing. They are both managed via SSH. The web host has a FIDO2 ssh key for access, the other is a standard key and is not web accessible. Both can be accessed via remote desktop when at home.

    Docker containers are managed via DockHand. I have about 50 containers running across the above hosts right now.

    HomeAssistant is managed via the webgui and SSH when needed. It runs on its own hardware (Odroid N2+)

    My traveling local host/ap/dhcp server is primarily managed over USB via SSH. Files are managed via SFTP.

  • Nomecks@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 hours ago

    I use Gitlab for all configurations ans then I have a Gitlab runner in my K3S cluster so I can deploy locally for free

  • GreenShimada@lemmy.world
    link
    fedilink
    English
    arrow-up
    54
    ·
    12 hours ago

    I wait for something to break. Then I yell “God fucking dammit, I don’t have time for this right now!” and spend an hour triaging things before I just try docker down, pull, up and everything works.

      • rowinxavier@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        7 hours ago

        Early on I wrote a script for my user account to run df and save the output to a file, then a second script to read that file and if the drive was full send me an email.

        First, it failed because it couldn’t send the email because the email service failed under full disk conditions.

        Second, it failed because it couldn’t write the file to disk because the disk was full.

        Third, it failed because outbound SMTP was blocked by my ISP.

        I learned a lot about how well you can fail if you really put your mind to it. Now I have Home Assistant grabbing the disk stats for my machines and flagging anything over 90%.

  • Willem@kutsuya.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

    I have a kubernetes cluster inside of Proxmox vm’s, generally I write a deployment, commit it to a git repo and then use argocd to deploy it in the cluster.

    This is not something I would advise to anyone but the clinically insane, but for me there is a certain zen in having everything in git like that. It’s for me the only way I can manage the 60ish applications I run without it having a permanent spot in my brain.