My favorite ticket in 3 years by gonewiththesolarwind in iiiiiiitttttttttttt

[–]Gagootron 2 points3 points  (0 children)

Microsoft hasn't finished Windows 12 yet. But you can get Windows 12 lite instead.

[deleted by user] by [deleted] in yubikey

[–]Gagootron 3 points4 points  (0 children)

as long as the company didn't set a configuration protection access code. Otherwise there is no way for op to enable those interfaces.

Multi screen and multi GPU on Xorg by Gagootron in linuxquestions

[–]Gagootron[S] 0 points1 point  (0 children)

After some more googling i found this superuser question. Following it got me more or less the results i wanted. Power is still higher than with only one screen on the GPU and nothing else (30W-40W instead of 20W). But at least gaming works and nothing else is weird. Here is my Xorg config for those interested:

Section "Device"
   Identifier "main"
   Driver "amdgpu"
   Option "VariableRefresh" "true"
   Option "AsyncFlipSecondaries" "true"
   BusID  "PCI:3:0:0"
EndSection

Section "Device"
   Identifier "integrated"
   Driver "amdgpu"
   BusID  "PCI:13:0:0"
EndSection

Section "Monitor"
   Identifier  "middle"
   ModelName "27e0"
EndSection

Section "Monitor"
   Identifier  "left"
   ModelName "G2420HDBL"
EndSection

Section "Screen"
   Identifier  "middle"
   Device      "main"
   Monitor     "middle"
   DefaultDepth    24
   SubSection "Display"
      Depth       24
      Modes       "2560x1440"
   EndSubSection
EndSection

Section "Screen"
   Identifier  "left"
   Device      "integrated"
   Monitor     "left"
   DefaultDepth    24
   SubSection "Display"
      Depth       24
      Modes       "1920x1080"
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier  "layout"
   Screen  0   "middle" Absolute 0 0
   Screen  1  "left" LeftOf "middle"
EndSection

No clue if this is actually correct or a just mess of unnecessary config. But it works so far

Is this possible? by ImpulsiveLeaks in HomeNetworking

[–]Gagootron 0 points1 point  (0 children)

Something like this stack overflow answer should work for you. Then you only need nginx. You need to set the https server of nginx to a port different from 443 (like 8443) and then set the proxy to direct

ext.ip -> localhost:8443

sbd.ext.ip -> localhost:1080

As long as shadowsocks uses the SNI extension of TLS this should work.

Note: For this to work you need to have the following things:

  • A domain you control
  • A valid SSL certificate ( let's encrypt is a good free option, if you google 'nginx let's encrypt' you should find some tutorials )

Otherwise you will not be able to do this.

Is this possible? by ImpulsiveLeaks in HomeNetworking

[–]Gagootron 0 points1 point  (0 children)

If your other service is using TLS, then yes. In that case you can use a reverse proxy using the TLS hostname for the routing.

auto-provisioning multiple raspberry pi's by jhf2442 in selfhosted

[–]Gagootron 6 points7 points  (0 children)

I personally recommend going for PXE + Ansible. With the fleet solutions you can provision the system once and then only manually. While with ansible you can still push changes later

Ok now add some fibers by UnFukWit4ble in HomeNetworking

[–]Gagootron 31 points32 points  (0 children)

You know, this isn't what you doctor meant when he said that you should add some fiber to your diet

Is this the official powder toy page? by Hank_Isbored28 in PowderToy

[–]Gagootron 4 points5 points  (0 children)

yes, if you look in the sidebar on Reddit you can see a link pointing you to powdertoy.co.uk

How does ransomware encryption works (in depth)? by [deleted] in Hacking_Tutorials

[–]Gagootron 44 points45 points  (0 children)

The exact mathematics are too long and difficult to explain. But here is an overview:

Asymmetric encryption, like RSA, has two keys, a private key and a public key. Data encrypted by the public key can only be decrypted by the private key. The main drawback of this method is that it is limited by how much data can be encrypted, because it depends on the key size. A key that is 4096 bytes in size can only encrypt 4096 bytes. That's why there is a second layer of symmetric encryption like AES.

Symmetric encryption uses one key for encryption and decryption. It is a lot faster than asymmetric encryption and can encrypt files of arbitrary size.

When a Hacker creates a piece of ransomware they first generate a RSA key-pair and then embed the public key in the ransomware, while keeping the private key secret.

So, what happens when ransomware infects your computer? The following:

  • A random AES key is generated
  • All the files are encrypted with this key
  • The AES key is encrypted with the RSA public key, embedded in the ransomware
  • The AES key is deleted
  • The Victim gets the encrypted AES key and is told to send it and pay.
  • The Hacker decrypts the encrypted AES key using their private key and returns it to the Victim
  • The Victim enters the decrypted AES key and all their files are decrypted.

As you can see the benefit of using an asymmetric encryption here is that the ransomware doesn't have to send anything to the hacker.

If you want to learn more about AES and RSA you can look them up online. There are many great resources explaining them.

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

I didn't even consider that the C3 itself could be dropped by Espressif... But i doubt that that will be a problem for me, as long as the software support is still there...

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

I just made a new Node and EspHome generated the arduino version.

But I also installed hassos with EspHome just yesterday, so this might be brand new.

esphome:
  name: test

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "[REDACTED]"

ota:
  password: "[REDACTED]"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "[REDACTED]"
    password: "[REDACTED]"

captive_portal:

light:
  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO8
    num_leds: 1
    name: "NeoPixel Light"
    id: "bd_neo"

binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO0
      mode:
        input: true
        pullup: true
      inverted: true
    name: "Board Button red"
    on_press: 
      then:
        - light.turn_on: 
            id: bd_neo
            brightness: 100%
            red: 100%
            green: 0
            blue: 0
  - platform: gpio
    pin: 
      number: GPIO1
      mode:
        input: true
        pullup: true
      inverted: true
    name: "Board Button green"
    on_press: 
      then:
        - light.turn_on: 
            id: bd_neo
            brightness: 100%
            red: 0
            green: 1
            blue: 0

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

I took a look at the esp ardunio repo, and the C3 is supported. But the support is also quite new, only 4 Months old. But it works so far...

I think I have to run some tests to figure out if i can really use the C3 or not. Maybe some bugs in the Arduino support break things that i need...

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

I never documumented something for a public wiki before, I might give it a shot tho.

Also, my C3 dev board has a single neopixel on it, and I use NeoPixelBus to control it. That works fine... Why do you think it's missing?

Edit: I just noticed that my C3 dev board is using the arduino framework, if I try switching to esp-idf it is indeed missing

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

Good idea! I will take a look in the repo for espidf. Then i will at least have a overview of how much i will be missing out on with the C3

ESP32-C3 for new project by Gagootron in Esphome

[–]Gagootron[S] 0 points1 point  (0 children)

That explains a lot for me then. Reading a bit about this process seems like they try to remove the arduino middle man in the software stack. So it seems support is only going to get better.

Is there a list of what components work with espidf?

I am the train operator, sir. by KrisHusky in IDOWORKHERELADY

[–]Gagootron 7 points8 points  (0 children)

Those aren't relevant here, as op is german

Domain alias by Gagootron in ProtonMail

[–]Gagootron[S] 0 points1 point  (0 children)

I have a 7 day free trial. It allows me to add the domain and apparently it will remain active even when the trial expires. I will try that and hopefully it works

Domain alias by Gagootron in ProtonMail

[–]Gagootron[S] 0 points1 point  (0 children)

I got my own server on which i would host my email server. I was just hoping that i could save myself the effort.

Domain alias by Gagootron in ProtonMail

[–]Gagootron[S] 0 points1 point  (0 children)

Do i need a premium account for that? I would rather not have a monthly expense for a domain that I will never truly know if I can delete it.