axzxc1236

joined 1 year ago
[–] [email protected] 2 points 10 hours ago* (last edited 10 hours ago)

In my case just disable IPv6 in WiFi is enough.

sysctl looks like the most universal way.

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

[–] [email protected] 2 points 11 hours ago

I tried the same setup with Ubuntu 24.04.1 desktop live system and I can replicate this IP leak issue, I guess I will have to disable IPv6.

 

I was setting up my laptop for traveling and adding Wireguard VPN configuration.

The Wireguard config generated by router only contains IPv4 address (10.0.5.x), and while testing the VPN to my surprise "what is my ip" websites can find my IPv6 address (I USB tethered mobile connection to my laptop).

It looks like NetworkManager does nothing about IPv6 connection if VPN doesn't have IPv6 settings, which is bad for road warrior type of VPN configuration.

Is there an easy toggle to turn of IPv6 if VPN is connected and otherwise? Or is only option to disable all IPv6 no matter what?

[–] [email protected] 2 points 2 days ago

You setup Wireguard server on the VPS with both IPv4 and IPv6. Then you connect both your computer and IPv6-only server to the Wireguard server. After connection, you can connect to the VPN through IP address assigned by wireguard.

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago) (2 children)

Personally have good experience with https://github.com/Nyr/wireguard-install, there are other script that are available by searching "wireguard setup script github".

Note: By default Wireguard config generated will route every bit of traffic through Wireguard (which will be slower and probably not wanted in this situation), to change that change AllowedIPs field in Wireguard config, lets say all your machines are assigned 1.2.3.xxx as IP address, to only access other 1.2.3.xxx IP through wireguard, change the config to AllowedIPs = 1.2.3.0/24.

[–] [email protected] 3 points 4 days ago* (last edited 4 days ago) (4 children)

Host a website that needs to be accessible from your own machine or public?

Former situation: Can be solved by setup reverse proxy on the other VPS, or join machines to a VPN server (like tailscale,, Zertoier or Wireguard server)

Later situation: Cloudflare or other CDN, setup reverse proxy on the other VPS.

Less accessible option but available for public: Tor or I2P

[–] [email protected] 3 points 4 days ago (6 children)

Great, if you need to SSH into Ipv6 only machine, SSH has -J flag which can be used to specify "jump host" (basically run SSH through SSH)

[–] [email protected] 10 points 1 week ago* (last edited 1 week ago) (1 children)

Pratically no universal way of making Linux boot with ARM processors.

Much more closed source drivers (than x86 ecosystem).

[–] [email protected] 3 points 2 months ago

I think that means the access point can only run at up to 80Mhz bandwidth, so not full bandwidth.

[–] [email protected] 36 points 2 months ago* (last edited 2 months ago) (12 children)

I am born too late to understand what Y2K problem was, this (the result) might be what people thought could happen.

[–] [email protected] 3 points 2 months ago (1 children)

I9 14900k…bad news for you, 13th and 14th gen I9 is unstable, crashes.

Suggestion: Wait for 15th gen or AMD 9000 series CPU to come out.

[–] [email protected] 2 points 2 months ago

Downfall is the best.

[–] [email protected] 2 points 2 months ago (2 children)

Slay the Spire, with mods

 

I can't give you the code because this is work related, and I couldn't make a minimal code that mimics the behavior.

My of my programs at work is a log parser, it reads syslog and use compiled regex pattern to match syslog, the whole program looks like this

If match := pattern.match(line):
  Do this
elif match := pattern2.match(line):
  Do that
…

During almost two years of me developing the programs, there are more patterns and more things to do and it gets slower.

But I recently figure out that if I commented out Do that and replace it with pass, my program speeds up, even if pattern2 never matches in my test case.

More strange thing is that in my attempts to use cProfile to profile things, my program runs 2.5x to 3x faster by just doing

from cProfile import Profile
with Profile() as profile:
  main()

I don't even call anything with profile variable and it speeds up my program, why is that?

 

Background story: I recently bought a computer with AMD 7000 series CPU and GPU.

amdgpu_top reports 15 ~ 20 watts in normal desktop usage, but as soon as I have video playing in VLC, it goes to 45 watts constantly which is undesirable behavior especially in summer. (I hope that is just reporting issue... but my computer is hot)

When I do DRI_PRIME=1 vlc and then play videos, amdgpu_top doesn't report the power surge. (I have iGPU enabled)

Is there anything more convenient then modifying individual .desktop files? KDE malfunctions when I put export DRI_PRIME=1 in .xprofile so that's a no go.


Solved: removing mesa related hardware acceleration package makes VLC fall back to libplacebo which doesn't do these weird things.

 

This speedrun video is insane I have to share it somewhere

 

I currently have a server running in cloud that can send custom notification through self-hosted gotify server.

The down side is battery drain, it eats more than 15% of battery per day and it's unsustainable, I have to turn on battery optimization.

I know google offers GCM and FCM which instant messaging APPs uses, but I couldn't find a software that is as easily configurable and have a ready to use Android client (that preferably connects to GCM and FCM so no battery drain problem), any recommendation?

 

My setup: OS is Endeavour OS and up to date, my GPU is RX 560 with 1xDVI + 1x HDMI + 1X DP output, two monitors of the same model (1xHDMI + 1xDP). (KDE Plasma 5.27.7, KDE Frameworks 5.108., Qt 5.15.10, Kernel 6.4.11-x64v2-xanmod1-1, Wayland)

Original setup: MonitorA on left of my Desk connected with DP, MonitorB on right of my Desk connected with HDMI, the problem is that games see left monitor as "Monitor 1" and opens on left monitor all the time, and I prefer them to use "Monitor 2" by default.

Setup 2: I switch DP and HDMI cable, but everytime a boot up my computer (I set auto login in SDDM) the monitor configuration becomes "MonitorB is on top of Monitor A", none of my attempts to change that persisted between reboots, I didn't test games because this heavily affects my workflow.

Setup 3: Also switched monitors positions physically (MonitorB on left of my Desk connected with HDMI, MonitorA on right of my Desk connected with DP), now the default monitor configurations is side-by-side again, but every boot I have to switch monitors' position in settings or I have to go right on MonitorA to get to monitorB.

I also noticed monitor settings go away when I logout of Wayland KDE session, is there a way to fix monitor configuration in SDDM?

view more: next ›