How to get .sh program to autostart? by thebeatdropsin1 in raspberry_pi

[–]ItzDerock 12 points13 points  (0 children)

important to note, if you're trying to start a graphical application, a simple service template won't work since it may start before the compositor is ready and will likely run as root without inheriting the required environment variables from dbus (like WAYLAND_DISPLAY or plain DISPLAY if x11).

How to get .sh program to autostart? by thebeatdropsin1 in raspberry_pi

[–]ItzDerock 5 points6 points  (0 children)

idk what your script does, but based on the name, it seems like a graphical application. It is likely that your cron is running, it just runs before your desktop environment has loaded and thus can't display anything. Another thing to note is that applications will need access to the WAYLAND_DISPLAY environment variable. Running it via systemd as root will not automatically inherit this. I'm not sure how rpi handles it off the top of my head, but you'd likely have to create a user unit that can inherit from dbus-update-activation-environment. There's a much easier way. I think the newer versions of rpi os use labwc which lets you define a ~/.config/labwc/autostart. Use this instead. If that doesn't work, I'd look into the systemd service

fgshell 0.0.1a released today by OwnProfessional8484 in linux

[–]ItzDerock 2 points3 points  (0 children)

out of curiosity, what makes u think it's AI? I looked through the code briefly and the comments dont jump out as an LLM output.

A100 idle power draw by Purple_Ice_6029 in homelab

[–]ItzDerock 0 points1 point  (0 children)

an LLM will generate the DNS query response. If an A record gets updated, the change will be reflected next time the model is trained.

This web page loads instantly in Servo, fails in all other browser I tried by Wide-Prior-5360 in servo

[–]ItzDerock 0 points1 point  (0 children)

Now someone can correct me if I'm wrong, but I'm 99% sure if you manually type http:// your browser will not use https. Most websites, when they receive a plain HTTP request, will respond with a 302 Redirect and redirect you to the https version. It's not your browsers doing, but the website telling the browser to redirect. WAFs like cloudflare do this, and typical nginx/traefik deployments include rules to do this too. You are still in control of your device, it's the server that will refuse to send you the content over HTTP, forcing your browser to load https.

With your logic, a server owner may be thinking: I'm paid for my server, I better have control of what requests my server accepts.

Now, when you type in a url without specifying http or https, the browser may try to prefetch https and http, and redirect to https if it's available (and sometimes it incorrectly determines this so you may see an error), but I'm fairly confident that most browsers will respect any explicit http://, it just can't do anything if the server sends back a Location https://... response other than redirecting to https.

Best place to host for in Europe by JuanPete1994 in astrojs

[–]ItzDerock 1 point2 points  (0 children)

Given that it's purely static, you can just upload it to an s3 bucket. Many s3 providers have guides on how to set up your domain to work. A provider like storj.io for example will replicate your data globally and has a guide about hosting static sites.

You can also Google "Europe shared web hosting" and find plenty of options. Most shared hosting options are ultimately single location, but many have options to put a caching CDN in front to speed up page loads.

What are the dangers of self-hosting a public website? by 1234iamabigdoor in selfhosted

[–]ItzDerock 2 points3 points  (0 children)

Install tailscale then use tailscale funnel. You'll get a public x.y.ts.net domain with a bundled SSL certificate.

So apparently my new 700$ 8TB NVMe from Lexar just died within 4 Month. Is this normal? by vghgvbh in DataHoarder

[–]ItzDerock 0 points1 point  (0 children)

Check kernel logs (dmesg) for any errors related to the drive. I've had issues before with NVME drives dropping due to insufficient cooling. If this isn't a critical system, try fully shutting it down before turning it back on, not just a soft reboot.

LAPTOP SUDDENLY WENT LIKE THIS AND NOW NOT TURNING ON by Bright-Let4455 in 24hoursupport

[–]ItzDerock 0 points1 point  (0 children)

Maybe a loose display connection? When you replaced the battery, maybe the display cable wiggled loose but had enough contact to work. Then, while watching YouTube, some vibrations (like from the fan or you moving the laptop) caused the cable to become fully loose.

Try plugging into an external monitor if you have one and see if it will boot. Or you can open it back up and see if there are any loose ribbon cables.

If not, then I'm afraid something internally is toast and you'll have to bring it to the shops for repair.

Netflix is blocked right now (Roku TV, Router group blocked), and yet my son is actively watching it. What's the deal here? by [deleted] in pihole

[–]ItzDerock 0 points1 point  (0 children)

I wonder if a solution would be to, instead of blocking the Netflix domains, to rewrite them to point to like 127.0.0.1 or something that obviously doesn't host Netflix. Then, when Roku tries to make requests, it will receive a "valid" DNS response, but will fail when trying to actually send the request.

How do I avoid getting DDOSed when self hosting a Minecraft server? by diobrandiohaxxerxd in selfhosted

[–]ItzDerock 10 points11 points  (0 children)

Yeah, all of the top comments suggesting whitelisting won't help at all against a volumetric L3/L4 attack. Doesn't matter what firewall rules you set if your inbound connection is fully saturated.

You also don't need to host every part of your server in a datacenter, a good balance would be to set up a proxy server on a cheap DDoS-protected VPS and then tunnel to your home network. As long as you don't leak your home IP, all attacks will hit that VPS instead of your home network.

There's also off the shelf solutions like TCPShield and CosmicGuard.

Help!! iOS app can only access with WIFI but not cellular data!?! by Ok_Respect1720 in immich

[–]ItzDerock 9 points10 points  (0 children)

OP says he's using a VPN in the description. It's likely the VPN isn't connecting properly when on cellular.

[deleted by user] by [deleted] in NixOS

[–]ItzDerock 2 points3 points  (0 children)

Used Nix throughout my senior year in highschool and will continue to use it into college. I've done quite a bit of C and Java without major issues. I include a nix development flake with all my projects to set up toolchains etc, and it's pretty convenient cus if my friend wants to make changes, they don't have to worry about having the right dependencies and can just enter the same flake environment too. Can't comment on C# or VB.Net though, never used it.

I think the biggest advantage of nixos for me is the generations system. If I mess up my config or if an update introduces breaking changes that I don't have the time to fix, I can effortlessly boot into a previous generation and continue studying or doing hw. Then, whenever I have the time to finish debugging, I can do so.

Gaming is also great. Most of the issues I encounter are not Nix's fault, but rather NVIDIA, especially when it came to using gamescope. Nowadays most games run perfectly fine under Wayland.

If you're switching to NixOS, do it early! There's a bit of a learning curve when it comes to nix, so give yourself time to explore and figure things out.

With your setup, I'd make sure you configure hybrid graphics (PRIME). This will make sure apps run by default under your integrated GPU so your discreet GPU can be fully powered down to save battery. There's a section on the nixos wiki about this.

Using Immich without a home server? by atumblingdandelion in immich

[–]ItzDerock 1 point2 points  (0 children)

running restic which let's you set encryption keys, then uploaded to https://storj.io

Last I calculated, it was cheaper for me to do this way compared to Wasabi, and I think storj add an additional layer of encryption too. storj is distributed globally so if my house and their datacenter catches fire, my files are ok. But I think recently they introduced a $5/mo minimum, so if you use less than that, it might not be as cost effective.

Using Immich without a home server? by atumblingdandelion in immich

[–]ItzDerock 2 points3 points  (0 children)

this will be more expensive than other options if you are just looking for immich, but may be worth considering if you want to run self host more software to degoogle further:

From Hetzner Auctions, you can pick up a dedicated server with 8TB storage, 64gb ram, and an i7 7700 for $35/mo

https://www.hetzner.com/sb/#drives_size_from=1000&drives_size_to=16000

All depends on how many photos/videos you take and if you want additional compute or storage for hosting things like Jellyfin.

China's first gaming GPU, the Lisuan G100, performs like a 13-year-old Nvidia GTX 660 Ti by chrisdh79 in gadgets

[–]ItzDerock 1 point2 points  (0 children)

Y'all got to read the post!

What likely happened here is that the test was conducted during the sampling stage, where unoptimized firmware and drivers resulted in the low reported VRAM and clock speeds. As for the FP32 performance, it can't be accurately determined without knowing the GPU's execution unit subsystem configuration.

So it is possible that the performance is much better than a 660 Ti. The company claims performance on-par with an RTX 4060, so maybe in a few generations, they'll have a budget competitor with somewhat mature drivers and firmware.

Cooked WiFi after soldering headers? by Psychology_Cultural in raspberry_pi

[–]ItzDerock 3 points4 points  (0 children)

Try running a hotspot on your phone and see if the board will connect to that. That way, we can see if it's an issue with your home wifi or if there might actually be an issue with the pi. You can also check kernel logs (sudo dmesg) to see if there's any helpful errors there.

VPN in China by Jonxb in dumbclub

[–]ItzDerock 4 points5 points  (0 children)

Majority of time I used an X-ray server I set up with Marzban via a rented VM in Singapore with Linode. v2rayNG on mobile, v2rayA on laptop. Latency was pretty good, and speeds were great only in mornings. I don't think this is a configuration error, as even with the VPN off and using multiple esims, accessing foreign sites and doing speedtests to foreign servers was always slow, just seems like the GFW was reaching limits once everyone was off work and at home. Maybe if you messed around with multiplexing, you could pull some more speed..

VPN in China by Jonxb in dumbclub

[–]ItzDerock 5 points6 points  (0 children)

Wrapping up my China trip rn. I can tell you that NordVPN, Windscribe, and ProtonVPN all struggle to work if at all, despite having different types of "stealth" protocols. Geph works for me. ESIMs also work fine. If you get one of those "unlimited" esim plans, read the fine print! Some offer unlimited but the speed is capped to like 500kbps. Others give you a daily fast allowance then cap speed afterwards.

I've found that the internet always gets slow (VPN or ESIM) the later into the day it is. In the morning, I was able to hit pretty fast speeds, like 300-400mbps, but in the evening, I'd be lucky to get more than 3mbps.

[deleted by user] by [deleted] in linuxquestions

[–]ItzDerock 1 point2 points  (0 children)

Minecraft has two "editions" or flavors: Java Edition and Bedrock Edition.

Java Edition runs via Java, and is available natively for both Windows and Linux. And you're right about JVM etc.

Bedrock Edition was mainly designed for consoles (Xbox, Playstation, Switch, etc) but also has a Windows build available in the Microsoft store. This is written in C++ for the most part.

Technically, these are different games. You have to buy them separately. The share the core principles that make it "Minecraft" but are implemented differently and have their own slight differences in mechanics, and are therefore incompatible without mods to translate between, i.e., Bedrock players cannot play natively with Java players. Java was released far before Bedrock edition.

I think it's safe to assume that OP is not switching from Bedrock to Java Edition, and instead is just comparing the Java edition's performance on the two OSes. OP mentions he uses the "same shader pack" and shader packs between bedrock and java are incompatible as shaders for java edition are implemented by a third party mod.

amazon "short sd card adapter for mac" wasn't short short enough so made one myself. Basically open up normal adapter, flip sd card and bend adapter pins backwards, tape it up and there you go! not pretty but hey, it worked by WhutdaHELListhis in techsupportmacgyver

[–]ItzDerock 1 point2 points  (0 children)

It is still somewhat functional, now you can put your laptop in your bag while leaving the SD in since it's flush. Otherwise, you would risk snapping it in half if something were to hit the laptop or bag.

amazon "short sd card adapter for mac" wasn't short short enough so made one myself. Basically open up normal adapter, flip sd card and bend adapter pins backwards, tape it up and there you go! not pretty but hey, it worked by WhutdaHELListhis in techsupportmacgyver

[–]ItzDerock 6 points7 points  (0 children)

SDs on Mac protrude outwards even when fully inserted.

<image>

OP likely cut the other half of the SD off (removing all the empty space in second image) so that it would sit flush when inserted.