• 0 Posts
  • 30 Comments
Joined 3 years ago
cake
Cake day: June 11th, 2023

help-circle


  • Max@lemmy.worldtoLinux@lemmy.mlDoes it get better?
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    I’ve had a lot of regressions, almost entirely around graphics drivers. I have like the worst case scenario. A 4K laptop (also dell) with an nvidia GPU in a prime configuration with the Intel graphics. Until very recently everything was laggy or unstable or unsupported. With recent drivers things have been more fine.

    I also have weird audio issues like the card sometimes selecting a non available profile when disconnected from HDMI (hence why I asked about that)

    CUPS has been really stable for me. Idk

    Also yeah, docks seem to expose all of the bugs, even on windows. For the longest time I couldn’t get my keyboard to work if booting with a dock, and I still have weird resolution issues with booting while connected sometimes.


  • Max@lemmy.worldtoLinux@lemmy.mlDoes it get better?
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    On an entirely different note, as far as I’m aware secure boot should have zero noticeable performance impact, and if it does, that means that something is going horribly wrong. Guides tell you yo disable secure boot because it’s annoying/semis complicated to administer and makes installing out of kernel modules harder (like the nvidia drivers), not because it has a performance or stability impact on the system.


  • Max@lemmy.worldtoLinux@lemmy.mlDoes it get better?
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 months ago

    Hmm. If it’s persistent across installs then something is definitely borked. My next step would be to download the livecd images of a couple distributions and see if the audio works while booting into any of those live environments (ventoy makes this really painless)

    When you reinstall, you’re not keeping any configuration, right?

    If none of the livecd images work I’d liveboot windows and see if audio works there. If it doesn’t, definitely a hardware issue. If it does, then see if it starts working under Linux again. If it doesn’t, then something is incredibly cursed and I’m out of ideas since it used to work there.

    Edit: a stupid question: do you have the right output profile selected for the card. Something like stereo duplex?


  • Max@lemmy.worldtoLinux@lemmy.mlDoes it get better?
    link
    fedilink
    arrow-up
    24
    ·
    edit-2
    11 months ago

    That sounds like a pretty cursed occurrence. As you get more familiar with the structure of your operating system, I’ve found diagnosing and fixing weird issues gets a lot easier. You also get a better sense of what component is responsible for what and what commands let you investigate.

    I think it’s reasonable to say that weird issues don’t stop though. At least for me. I always had tons of weird occurrences on windows too. What feels different about Linux is that I try and figure them out because it’s possible I can. Where on windows I would just accept that x was broken.

    For a random question in case it’s the same no audio bug I encountered recently: Do you happen to play audio via HDMI? And does any audio sink (speakers, etc…) show up in sound settings?

    Also do you happen to be using an nvidia gpu (and if so, is it a laptop with an Intel CPU as well?). That freezing issue used to happen to me all the time with some games and it was entirely due to nvidia’s Linux driver bugs.


  • There’s so much to host that isn’t related to pirated media sharing though. I host like 5 services and only one could be related to that. I know you clarified that you’re talking about content, but there’s also so much content that isn’t related to pirating either. Like most of the fediverse for example










  • By default, an enencrypted boot drive is not sufficient to be able to decrypt a LUKs drive. If you have to type in your password to start the computer/unlock LUKs then you should be good.

    If you’ve setup a keyfile or TPM based decryption of LUKS, then your data is probably not safe (though a TPM based decryption could be if the OS is secure and secure boot is setup properly)

    In this case, if you have another server then you could setup a mutual tang/clevis system where each device gets the keys it needs from the other server on the LAN. Both would be LUKs encrypted. So if one is online the other gets the required key from the online one while booting. But if both are offline then no keys are available and you have to type in a LUKS password to boot. Something like https://www.ogselfhosting.com/index.php/2023/12/25/tang-clevis-for-a-luks-encrypted-debian-server/ but what they do with multiple servers is probably overkill


  • You have two options for setting up https certificates and then some more options for enabling it on the server:

    1: you can generate a self signed certificate. This will make an angry scary warning in all browsers and may prevent chrome from connecting at all (I can’t remember the status of this). Its security is totally fine if you are the one using the service since you can verify the key is correct

    2: you can get a certificate to a domain that you own and then point it at the server. The best way to do this is probably through letsencrypt. This requires owning a domain, but those are like $12 a year, and highly recommended for any services exposed to the world. (You can continue to use a dynamic DNS setup, but you need one that supports custom domains)

    Now that you have a certificate you need to know, Does the service your hosting support https directly. If it does, then you install the certificates in it and call it a day. If it doesn’t, then this is where a reverse proxy is helpful. You can then setup the reverse proxy to use the certificate with https and then it will connect to the server over http. This is called SSL termination.

    There’s also the question of certificate renewal if you choose the letsencrypt option. Letsencrypt requires port 80 to do a certificate renewal. If you have a service already running on port 80 (on the router’s external side), then you will have a conflict. This is the second case where a reverse proxy is helpful. It can allow two services (letsencrypt certificates renewal and your other service) to run on the same external port. If you don’t need port 80, then you don’t need it. I guess you could also setup a DNS based certificate challenge and avoid this issue. That would depend on your DNS provider.

    So to summarize:

    IF service doesn’t support SSL/https OR (want a letsencrypt certificate AND already using port 80)

    Then use a reverse proxy (or maybe do DNS challenge with letsencrypt instead)

    ELSE:

    You don’t need one, but can still use one.


  • Reverse proxies don’t keep anything private. That’s not what they are for. And if you do use them, you still have to do port forwarding (assuming the proxy is behind your router).

    For most home hosting, a reverse proxy doesn’t offer any security improvement over just port forwarding directly to the server, assuming the server provides the access controls you want.

    If you’re looking to access your services securely (in the sense that only you will even know they exist), then what you want is a VPN (for vpns, you also often have to port forward, though sometimes the forwarding/router firewall hole punching is setup automatically). If the service already provides authentication and you want to be able to easily share it with friends/family etc then a VPN is the wrong tool too (but in this case setting up HTTPS is a must, probably through something like letsencrypt)

    Now, there’s a problem because companies have completely corrupted the normal meaning of a VPN with things like nordvpn that are actually more like proxies and less like VPNs. A self hosted VPN will allow you to connect to your hone network and all the services on it without having to expose those services to the internet.

    In a way, VPNs often function in practice like reverse proxies. They both control traffic from the outside before it gets to things inside. But deeper than this they are quite different. A reverse proxy controls access to particular services. Usually http based and pretty much always TCP/IP or UDP/IP based. A VPN controls access to a network (hence the name virtual private network). When setup, it shows up on your clients like any other Ethernet cable or WiFi network you would plug in. You can then access other computers that are on the VPN, or given access to to the VPN though the VPN server.

    The VPN softwares usually recommended for this kind of setup are wireguard/openvpn or tailscale/zerotier. The first two are more traditional VPN servers, while the second two are more distributed/“serverless” VPN tools.

    I’m sorry if this is a lot of information/terminology. Feel free to ask more questions.


  • How will a reverse proxy help?

    Things that a reverse proxy is often used for:

    • making multiple services hosted on the same IP and port
    • SSL termination so that the wider world speaks https and the proxy speaks http to the server. This means the server doesn’t have to do its own key management
    • load balancing services so multiple servers can serve the same request (technically a load balancer but I believe some reverse proxies do basic load balancing)
    • adding authentication in front of services that don’t have their own (note that some of the protections/utility is lost if you use http. Anyone who can see your traffic will also be able to authenticate. It’s not zero protection though because random internet users probably can’t see your traffic)
    • probably something I’m forgetting

    Do any of these match what you’re trying to accomplish? What do you hope to gain by adding a reverse proxy (or maybe some other software better suited to your need)?

    Edit: you say you want to keep this service ‘private from the web’. What does that mean? Are you trying to have it so only clients you control can access your service? You say that you already have some services hosted publicly using port forwarding. What do you want to be different about this service? Assuming that you do need it to be secured/limited to a few known clients, you also say that these clients are too weak to run SSL. If that’s the case, then you have two conflicting requirements. You can’t simultaneously have a service that is secure (which generally means cryptographically) and also available to clients which cannot handle cryptography.

    Apologies if I’ve misunderstood your situation


  • Could you post the specific output of the commands that don’t work? It’s almost impossible to help with just ‘It doesn’t work’. Like when ping fails, what’s the error message. Is it a timeout or a resolution failure. What does the resolvectl command I shared show on the laptop. If you enable logging on the DNS server, do you see the requests coming in when you run the commands that don’t work.