IT nerd

  • 0 Posts
  • 28 Comments
Joined 3 years ago
cake
Cake day: June 22nd, 2023

help-circle

  • The regular average joe isn’t going to switch on their own. The average person sees Windows and MacBook as their two options for a laptop.

    Also, Linux isn’t a replacement for Windows. It’s its own thing, with its own issues but also advantages.

    And most young people don’t have their own computers growing up anymore, it’s all phones and tablets and in the USA apple has won that race.


  • I wonder where they got 100hr?

    I wonder if there’s some metric they’re going off of where the majority of the subscriber base only plays less than 100hrs and the “abusers” or whales play over the 100hr mark.

    100hr / 30 days is 3.3 hours a day. Which as a father of two… I’d be lucky to get that much in a day.

    100hr / 20 days(5 days a week) is 5 hours a day.

    100hr / 8 days (weekends only gaming) is 12.5 hours a day.

    None of these are outrageous and probably are the “average” user of the service.

    Now if you’re doing 8 or 12 hours a day for 30 days, that’s 240-360 hours a month. Which is pretty much gaming full time.

    I think 100 hours is a weird number to land on. I think 120 hours makes more sense (4 hours a day over 30 days).

    I do expect Nvidia to lower the hours over time. Expect to see 80 hours or 50 hours soon IMO.










  • Yes, essentially I have:

    Proxmox Baremetal
        ↪LXC1
            ↪Docker Container1
        ↪LXC2
            ↪Docker Container2
        ↪LXC3
            ↪Docker Container 3
    

    Or using real services:

    Proxmox Baremetal
        ↪Ubuntu LXC1 192.168.1.11
            ↪Docker Stack ("Profana")
                ↪cadvisor
                  grafana
                  node_exporter
                  prometheus
        ↪Ubuntu LXC2 192.168.1.12
            ↪Docker Stack ("paperless-ngx")
                ↪paperless-ngx-webserver-1
                  apache/tika
                  gotenberg
                  postgresdb
                  redis
        ↪Ubuntu LXC3 192.168.1.13
            ↪Docker Stack ("teamspeak")
                ↪teamspeak
                  mariadb
    

    I do have a AMP game server, which AMP is installed in the Ubuntu container directly, but AMP uses docker to create the game servers.

    Doing it this way(individual Ubuntu containers with docker installed on each) allows me to stop and start individual services, take backups via proxmox, restore from backups, and also manage things a bit more directly with IP assignment.

    I also have pfSense installed as a full VM on my Proxmox and pfSense handles all of my firewall rules and SSL cert management/renewals. So none of my ubuntu/docker containers need to configure SSL services, pfSense just does SSL offloading and injects my SSL certs as requests come in.


  • I have an old Windows laptop. I need to figure out how to do dual boot with Linux

    For this I would recommend:

    1. Install Windows first
    2. In Windows, partition the disk drive to how much storage you want. So if you have a 1TB, then maybe do 500GB for Windows and 500GB for Linux? Leave the new partition as unformatted/unallocated
    3. Boot up your linux installer and select the unformatted/unallocated partition for Linux to install to. Don’t erase whole disk. But let Linux setup all of it’s own formatting and partitions on the empty space

    Now why do it this way? Because Windows does NOT like the boot manager being replaced and does NOT like disk space go “missing” unless it allocates it itself. If you install Windows first it’ll setup the boot manager for Windows and then when you install Linux grub will get installed and that can manage Windows pretty well.

    And if you let Windows partition off the blank space for Linux then Windows knows that that empty partition isn’t owned by Windows anymore and it won’t freak out seeing the space go missing when Linux takes it over.

    This article covers most: https://linuxblog.io/dual-boot-linux-windows-install-guide/

    If you have two individual disk drives then I would do the same thing, install Windows on one of the drives, boot into Windows, and make sure the second drive shows up in disk utility, but it isn’t formatted for use in Windows, just unallocated/blank. Then when you install Linux you just tell it to install onto the second drive.

    and get my vpn sorted (again) so he can use VMs on my Proxmox box

    I would 100% recommend Tailscale for this. You can install Tailscale on the Proxmox host and then have your nephew have his own Tailscale account where you can give him access to only the Proxmox box.

    I do this with my Proxmox boxes so I can remotely manage them wherever I am. When you first install Tailscale on Proxmox it may require a reboot, so I would recommend being nearby the server so you can login physically if needed, but after it has been smooth sailing for me. Been using it like this for a year or two now.

    Of course just a suggestion.



  • There are a lot of great commands in here, so here are my favorites that I haven’t seen yet:

    • crontab -e
    • && and || operators
    • “>” and >> chevrons and input/output redirection
    • for loops, while/if/then/else
    • Basic scripts
    • Stdin vs stdout vs /dev/null

    Need to push a file out to a couple dozen workstations and then install it?

    for i in $(cat /tmp/wks.txt); do echo $i; rsync -azvP /tmp/file $i:/opt/dir/; ssh -qo Connect timeout=5 $i “touch /dev/pee/pee”; done

    Or script it using if else statements where you pull info from remote machines to see if an update is needed and then push the update if it’s out of date. And if it’s in a script file then you don’t have search through days of old history commands to find that one function.

    Or just throw that script into crontab and automate it entirely.


  • You can do “ss -aepni” and that will dump literally everything ss can get its hands on.

    Also, ss can’t find everything, it does have some limitations. I believe ss can only see what the kernel can see(host connections), but tcpdump can see the actual network flow on the network layer side. So incoming, outgoing, hex(?) data in transit, etc.

    I usually try to use ss first for everything since I don’t think it requires sudo access for the majority of its functionality, and if it can’t find something then I bring out sudo tcpdump.




  • I don’t have any books in particular to recommend, but with homelab’ing we should be learning about the command line of our OS(Powershell, terminal(bash, zsh)).

    Learning the ins and outs of something like bash, cron, environment variables, for loops, systemd services(managing, creating your own), command line networking…all things I’ve had to learn to either setup, manage, and/or troubleshoot my homelab.

    So maybe basic Linux command line books? Probably O’Reilly has some along with bash.


  • This is pretty much my setup as well. Proxmox on bare metal, then everything I do are in Ubuntu LXC containers, which have docker installed inside each of them running whatever docker stack.

    I just installed Portainer and got the standalone agents installed on each LXC container, so it’s helped massively with managing each docker setup.

    Of course you can do whatever base image you want for the LXC container, I just prefer Ubuntu for my homelab.

    I do need to setup a golden image though to make stand-ups easier…one thing at a time though!