frankfurt_schoolgirl [she/her]

  • 0 Posts
  • 18 Comments
Joined 2 years ago
cake
Cake day: July 25th, 2022

help-circle

  • you’ll need a special Xorg implementation

    Ok it’s true that op would need XWayland for some things, but that will be installed alongside the rest of the Wayland packages, and will run seamlessly.

    Most applications are specific to your Wayland implementation

    This isn’t true. Some applications will use features that aren’t available in all Wayland compositors, but they are rare. The main offenders are apps that interact with other apps, apps that take screenshots or record, or apps that draw outside of a window (like docks).


  • This is not possible. A socks proxy forwards tcp connections over another TCP connection. A wireguard vpn sends encrypted generic IP packets over udp. A socks proxy can’t understand the types of things wireguard sends.

    However, you could just install wireguard on both your vps and your phone, and you probably wouldn’t even need the proxy. If your VPS is hosted by a big public cloud provider, be aware that many sites restrict incoming traffic from known up ranges because public cloud vms often used by spammers.







  • If you want to accept a user input of any length, you have to read the input piece by piece and allocate a new buffer if the original becomes full. Basic steps would be:

    1. Use malloc to make a char * buffer
    2. Read one character at a time in a while loop, keep track of your position in the buffer
    3. If you get an EOF character, add a \0 to your buffer and break the loop. You’re done!
    4. If the position is greater than the length, allocate a new buffer that has twice the length. Use memcpy to copy the stuff from the old buffer to the new one. Use free to get rid of the old buffer.

    This will work until you fill the entire memory of your computer. You should probably set a max length and print an error if it is reached.






  • Yes, it will get better over time. You are using an entirely new operating system. Things are different, but aren’t that hard to learn.

    My big tip for installing Linux is to use the package managers when possible. Every distro comes with at least one package manager, which can install many pieces of software. On Ubuntu, there are two: snap and apt. (Yes, this is confusing. Canonical is trying to change the way they package software, and it has made their distro harder to use).

    Also, what kind of software are you installing that requires different permissions or ports? If you’re trying to set up servers you many be better off with a different approach.



  • I have this hazy, memory from when I was about 8. I was exploring a peat bog, which was fun because everything was soft and squishy and I could just run around. I saw some weird looking bushes, and decided to go check them out. But, as I ran up, it turned out there were growing over this sort of wet hole, where maybe there was a spring or something. I suddenly fell about 8 feet, and was in this mud pit slowly sinking. Luckily, I managed to grab some of those bushes I’d seen, and pull myself out. But it was very hard, because the mud was pulling me down like quicksand. Eventually, I crawled back out on the bog, covered in mud.

    Nobody I was with remembers this, and honestly it might not be real. Childhood experiences are super weird.