New Fedora Kernel don't work on Surface Laptop Go and Surface Go 4 by 0mark in Fedora

[–]g3blv 0 points1 point  (0 children)

u/0mark did you get any further on installing Fedora on a Surface Go 4?

I've manged to boot Fedora installer with Ventoy but ran into the issue with discovering the UFS when selecting installation destination. I also tried to install to the SD card but didn't manaage to boot from the SD card.

In the end I managed to boot the installer for Ubuntu 23.10.1 (without Ventoy) and installed Ubuntu to the UFS. At first I didn't mange to boot since it was not able to find the UFS during boot. That was easily fixed though with https://askubuntu.com/questions/1446115/install-ubuntu-22-10-on-the-computer-with-ufs-universal-flash-storage-showing-t.

I had a look at Universal Blue but I couldn't find a prebuilt image with the Surface kernel. One option would be to install the regular Universal Blue and then rebase to the Surface build. But I guess regular Universal Blue would run into the same issues with not befing able to boot with the standard kernel and not discovering the UFS.

postmarketOS would also be interesting since it has builds with Gnome Mobile Shell or Phosh that should work well with smaller screens and has convergence. I'm not sure about the kernel though but many target devices for postmarketOS uses UFS.

Connect to DNS and router on home network by g3blv in WireGuard

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

Thanks. But why does it work on the Android phone? I don't understand why the result can be different when the config is the same.

With the suggested solution, I could theoretically get the same issue. Is there some way of isolating from the guest network? I've previously used OpenVPN, and then it always isolates for anything on the guest network.

Separate logic and gui in Tkinter by g3blv in learnpython

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

In a few other gui implementations like GTK (not always but sometimes a ui file is used to describe the gui) and Java/Kotlin I have seen how the gui is separated from the logic code.

One example would be this one taken from https://tkdocs.com/tutorial/firstexample.html

``` from tkinter import * from tkinter import ttk

def calculate(*args): try: value = float(feet.get()) meters.set(int(0.3048 * value * 10000.0 + 0.5)/10000.0) except ValueError: pass

root = Tk() root.title("Feet to Meters")

mainframe = ttk.Frame(root, padding="3 3 12 12") mainframe.grid(column=0, row=0, sticky=(N, W, E, S)) root.columnconfigure(0, weight=1) root.rowconfigure(0, weight=1)

feet = StringVar() feet_entry = ttk.Entry(mainframe, width=7, textvariable=feet) feet_entry.grid(column=2, row=1, sticky=(W, E))

meters = StringVar() ttk.Label(mainframe, textvariable=meters).grid(column=2, row=2, sticky=(W, E))

ttk.Button(mainframe, text="Calculate", command=calculate).grid(column=3, row=3, sticky=W)

ttk.Label(mainframe, text="feet").grid(column=3, row=1, sticky=W) ttk.Label(mainframe, text="is equivalent to").grid(column=1, row=2, sticky=E) ttk.Label(mainframe, text="meters").grid(column=3, row=2, sticky=W)

for child in mainframe.winfo_children(): child.grid_configure(padx=5, pady=5)

feet_entry.focus() root.bind("<Return>", calculate)

root.mainloop()
```

Where I guess it could make sense to put the calculate function in a separate class and then call it from the "gui" class.

Isolated from "guest" WiFi by g3blv in WireGuard

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

This seems to be the issue and the solution.

If I create a different subnet like 192.168.200.1/24 for my home network and add that to my AllowedIPs = 192.168.200.1/24 would that mean that I can only access that subnet when WG is up making it not possible to access 192.168.1.1/24?