• 0 Posts
  • 47 Comments
Joined 9 months ago
cake
Cake day: February 17th, 2024

help-circle




  • I’m no expert so take this with an appropriately sized grain of salt.

    You should be able to install KDE on whatever distribution you decide. If you want KDE 6, you may have to add a repo, but it should be as simple as sudo <package manager install incantation> whatever-KDE-is-named-in-the-repo

    If you want stability, Debian is the go to, but the tradeoff there is older packages. However if manjaro is working for you, don’t fix what isn’t broken. I don’t know how good Debian is for gaming, but honestly any distribution should be just fine for dev. Considering what steam has done with Arch as the base, it may be worth considering Arch as an option.

    To the partitions, I’m not knowledgeable enough to make recommendations as to what you should or shouldn’t touch. My instinct is to not touch /boot/efi

    Something can definitely go wrong when playing with partitions, so make that backup of everything as planned and test it before you make any changes to the system.




  • I’ve got a raspberry pi 4 (8GB) running Kodi (via osmc) hooked up to our tv. The tv itself is a Roku tv that isn’t allowed to connect to the internet.

    I’ve also got a pc that used to be my streaming/video editing rig back when I used to make videos, but I repurposed it as my server, and it runs Jellyfin, along with a host of other apps/services for me and my family.

    The pc is older, but as a server it works great. Biggest drawback is power consumption, it’s not nearly as efficient as a mini pc with a n100 or something similar, but for my purposes it works great.




  • Here’s my .tmux.conf

    I’m using ctrl-s as the prefix key, vim keybindings for pane navigating, v and f for new panes, and the Dracula theme.

    
    # enable mouse
    
    set -g mouse on
    
    # enable leader r to relaod config file
    
    unbind r
    bind r source-file ~/.tmux.conf
    
    # change leader key combo from ctrl-b (C-b) to C-s
    
    set -g prefix C-s
    
    # toggle through panes with vim keys
    
    bind-key h select-pane -L
    bind-key j select-pane -D
    bind-key k select-pane -U
    bind-key l select-pane -R
    
    # change pane splits from % & - to v & f
    
    unbind f
    bind-key v split-pane -h
    bind-key f split-pane -v
    
    # List of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'
    
    #dracula theme appearance and customizations
    
    set -g @plugin 'dracula/tmux'
    set -g @dracula-show-powerline true
    set -g @dracula-show-left-icon session
    set -g @dracula-plugins "ssh-session time"
    
    # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'
    
    

    Edit: fix stupid autocorrect.




  • So, this took way longer than I thought it would, mostly because I needed the time to sit down and actually type this up.

    Full credit, I followed the instructions in this video from Wolfgang’s Channel

    Prerequisites (this is based on my setup, the api key requirement will vary based on your domain registrar/service):

    • Docker & Docker Compose
    • NGINX Proxy Manager running via Docker
    • A registered domain to use for your lan
    • An API key from your domain registrar/service

    I’m running NGINX Proxy Manager, using this docker-compose.yml, which I got straight from the NGINX Proxy manager website.

    version: '3.8'
    services:
      app:
        image: 'jc21/nginx-proxy-manager:latest'
        restart: unless-stopped
        ports:
          - '80:80'
          - '81:81'
          - '443:443'
        volumes:
          - ./data:/data
          - ./letsencrypt:/etc/letsencrypt
    

    I’ve got my domain managed by Cloudflare (yes, I know they’re evil, what company isn’t?), so these instructions will show setup using that, but NGINX Proxy Manager supports a whole bunch of domain services for the HTTP-01 challenge.

    With all prerequisites in place, here are the steps:

    • Log in to your NGINX Proxy Mananger (you can access the service and login at port 81 of the machine hosting it)
    • In the top menu, click the SSL Certificates tab
    • Click the Add SSL Certificate button
    • Choose Let’s Encrypt for the certificate type
    • In the Add Let’s Encrypt Certificate dialog, input the following
      • Domain Names: Input the domain root, as well as a wildcard subdomain. You’re entering both domains into the same field. After entering each domain, press the enter/return key on your keyboard to confirm the domain. For example, if you domain is abcde.com, input:
    • Email Address for Let’s Encrypt: Any valid email address you’d like to use
    • Toggle the Use a DNS Challenge option on (when you toggle this on, a new set of options will appear)
      • DNS Provider: Choose yours. I chose Cloudflare
      • Credentials File Content: Delete the prepopulated dummy api key and paste in your actual api key
    • Propagation Seconds: I put in 120 to give it two minutes. You can try leaving it blank, but if the DNS records haven’t propagated, you may get an error (I did when I tried leaving it blank during setup).
    • Toggle on the I Agree to the Let’s Encrypt Terms of Service option - Click Save

    Once you get a success message, you can start creating proxies with NGINX Proxy Manager for your internal domain. To do that you will need the ip address and port you are forwarding the domain to for your lan service. If you are using Docker containers, you’ll need the Docker ip, which you can get from the command line with:

    ip addr show | grep docker0

    You should get an ip address like 172.17.0.1

    Otherwise you’ll just need the ip address of the machine you’re running the service on.

    To set up a proxy redirect:

    • In NGINX Proxy Manager click the Hosts tab/button and then choose Proxy Hosts.
    • Towards the upper right click the Add Proxy Host button
    • In the New Proxy Host dialog box, input the following:
      • Domain Names: input the domain address (subdomain or tld) you wish to use for the service. For example. homepage.abcde.com, then press enter to confirm the domain
      • Scheme: leave set to http
      • Forward Hostname/IP: Input either the host machine ip, or the docker ip
      • Forward Port: Input the appropriate port for the service
      • Cache Assets: Toggle on
      • Block Common Exploits: Toggle on
      • Websockets Support: Toggle on if the service needs websockets
      • Click the SSL tab of the New Proxy Host dialog box to set up the ssl certificate
      • In the SSL tab, input the following:
        • Click the None under SSL Certificate and select your local domain + wildcard subdomain certificate
        • Toggle on the Force SSL, HTTP/2 Support, HSTS Enabled, and HSTS Subdomains options
        • Click Save

    Once the save is complete you should be able to input the new domain for you lan services and get a secure connection.*

    *Bear in mind some services require you to specify a valid domain for the service within the config/settings. Double check any services you may be running for this if you plan to use a reverse proxy with them.



  • That’s totally fair. Wordpress can accomplish what you want, but also can be a giant nightmare. I ran a membership based Wordpress site for around a decade (self hosted and maintained), and it was mostly okay, but also many times a giant headache. I fully understand wanting to avoid Wordpress.




  • harsh3466@lemmy.mltoSelfhosted@lemmy.worldHow to host a userbase
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    2
    ·
    4 months ago

    I’m not entirely sure what you mean by userbase, but based on your description it sounds like you could set up a Wordpress docker container with some plugins to handle what you want and then use the Wordpress api for the calls. If you’re looking for like a paid membership situation for the site, there are free and pay plugins that can accomplish the payments and subscription integrations.