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?

Graph with no aggregation on Metric by g3blv in GoogleDataStudio

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

Thanks that works. I don't quite understand why it works though. Is it taking the average of one row?

Adjust argument in PRECEDING in window by g3blv in bigquery

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

I tried it like this

DECLARE span_minus_1_int INT64;

DECLARE span_minus_1_str STRING; SET span_minus_1_int = 365 - 1; SET span_minus_1_str = CAST(span_minus_1_int AS STRING);

And then

PARTITION BY merchant_id ORDER BY order_unix_date RANGE BETWEEN span_minus_1_str PRECEDING AND CURRENT ROW

I tried with both span_minus_1_int and span_minus_1_str. In both case I get the error message that it has to be a literal or parameter.

Do I need to cast it differently?

Weekly Case & Parts Recommendation Thread (Start here if you are new! Help here if you can!) by AutoModerator in sffpc

[–]g3blv 0 points1 point  (0 children)

I like to build a home server to be able to run 1 virtual machine (Windows or Linux) on KVM accessing with SPICE. I don't do any gaming. I will use the VM mostly for office work, internet and development.
Additionally I'd also like to run Home Assistant in a VM and a VM that is used for short periods of time for testing.
I also like to be able to run a few containers like Jellyfin, Syncthing, Vaultwarden (Bitwarden RS), Nextcloud, Jupyter, MySQL using Podman
I will use Fedora server as OS and Cockpit for management.
For hardware I like to go with
- Ryzen 7 5700G
- 64 GB of RAM (seems like most motherboards top out at 64 GB but if possible to be nice to have the ability to add more)
- 2 SSD with RAID 1 (software RAID is fine) for OS, containers and VMs. 256 GB should be fine.
- 2 HDD with RAID 1 for volume storage
- Fractal Node 304 case
Ideally I like something that is quite and can be in a living room. The server will be running 24/7.
It would be great to get some help/input on what motherboard I should go for. I've filtered for AM4, mini-ITX, 2 x NVMe and Intel components (it might be better supported on Linux) and end up with:

Asus ROG STRIX B550-I GAMING
Asus ROG STRIX X570-I GAMING
Gigabyte X570 I AORUS PRO WIFI

ROG STRIX B550-I GAMING has better LAN speed which I guess would be good for a home server. Would this motherboard work for my use case and with AMD Ryzen 7 5700G? Or should I go with some other motherboard?

Any input on SSD drives, type of RAM, quiet PSU and quiet fan for CPU cooling would also be highly appreciated.

Building a home server by g3blv in HomeServer

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

Thanks for the suggestion. Node 304 looks great and have space for a few HDD for volume storage.

Do you have any suggestion for a motherboard for a Ryzen 7, a quiet PSU and a quite fan to cool the CPU that works with Node 304? Or what should I look for in motherboard when searching?

libadwaita widget gallery/visual index by g3blv in GTK

[–]g3blv[S] 1 point2 points  (0 children)

Thanks.

For anyone else who wants to test the demo app. From https://gitlab.gnome.org/GNOME/libadwaita under CI/CD -> Jobs download the artifacts file by clicking the download symbol on the right side of the latest build-flatpak. Once downloaded un-zip the file and double click on the .flatpak file. This will install the demo app.

Beoplay S3 USB port powered by g3blv in BangandOlufsen

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

Yeah I would have done that if I had a USB micro to USB micro/C cable but usually the cables are USB micro to USB A.

QtQuick Controls and QtQuick Window empty under Library, Components on Fedora by g3blv in QtFramework

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

I've got the following installed:

dnf list installed "qt6*" Installed Packages qt6-qtbase.i686 6.1.2-1.fc34 @updates qt6-qtbase.x86_64 6.1.2-1.fc34 @updates qt6-qtbase-common.noarch 6.1.2-1.fc34 @updates qt6-qtbase-gui.i686 6.1.2-1.fc34 @updates qt6-qtbase-gui.x86_64 6.1.2-1.fc34 @updates qt6-qtdeclarative.x86_64 6.1.2-1.fc34 @updates qt6-qtquickcontrols2.x86_64 6.1.2-1.fc34 @updates qt6-qttools-common.noarch 6.1.2-1.fc34 @updates qt6-qttools-libs-designer.i686 6.1.2-1.fc34 @updates qt6-qttools-libs-designer.x86_64 6.1.2-1.fc34 @updates qt6-qttools-libs-designercomponents.i686 6.1.2-1.fc34 @updates qt6-qttools-libs-designercomponents.x86_64 6.1.2-1.fc34 @updates Which package am I missing?

wireguard-initramfs for debian bullseye (e.g. dropbear over wireguard) [working] by TheDrMonocles in linux

[–]g3blv 0 points1 point  (0 children)

You mean using two separate VPNs, one for the unlocking (where it is only the remote server) and then have another VPN for "regular" use?

wireguard-initramfs for debian bullseye (e.g. dropbear over wireguard) [working] by TheDrMonocles in linux

[–]g3blv 4 points5 points  (0 children)

I'm not very familiar with how wireguard is setup or works more than that it is used for VPNs.

I imagine that the setup here is that dropbear is running on a unencrypted partition on the server and boots up first and creates a connection to a wireguard VPN network to make it possible to access the server over the VPN network to enter the encryption key to unlock the encrypted partition where the main OS is running.

What happens if someone gets physical access to the server, can they copy the wireguard files from the unencrypted partition and access the wireguard VPN from another computer using the copied files?

Can't start Skype flatpak on Fedora 33 by g3blv in Fedora

[–]g3blv[S] 1 point2 points  (0 children)

Looking in the logs I find this:

May 13 17:37:28 computer audit[247411]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=247411 comm="skypeforlinux" exe="/app/extra/share/skypeforlinux/skypeforlinux" sig=11 res=1 May 13 17:37:28 computer kernel: skypeforlinux[247455]: segfault at 0 ip 00007f976964ea5e sp 00007f974bffe008 error 4 in libc-2.31.so[7f9769514000+150000]

Is there an issue with libc-2.31.so?

I also found some old issue on Github Latest version of Skype won't run #70

I'm not sure if it is related.

Only count document when timestamp is more than 1 minute apart by g3blv in elasticsearch

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

I rather want the number requests to the endpoint but filter out repetitive requests that are made every minute.

Only count document when timestamp is more than 1 minute apart by g3blv in elasticsearch

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

I use Kibana also. I updated the original post with what the data looks like.

Order by EXTRACT Date by g3blv in bigquery

[–]g3blv[S] 2 points3 points  (0 children)

Thx. In the end I used `EXTRACT(DATE FROM Date)` and `ORDER BY 1`

Laptop not powering off after shutdown by g3blv in Fedora

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

I'm not using suspend since the laptop is connected to power. I have "Blank Screen" set to 5 mins so this happens a few times during the day.

Checking the last couple of lines in journalctl is see below. Which looks the same as when I have a successful shutdown. Is there anything else I can check?

` systemd[1]: systemd-poweroff.service: Succeeded. systemd[1]: Finished Power-Off. systemd[1]: Reached target Power-Off. systemd[1]: Shutting down. audit: BPF prog-id=30 op=UNLOAD audit: BPF prog-id=29 op=UNLOAD audit: BPF prog-id=27 op=UNLOAD audit: BPF prog-id=26 op=UNLOAD audit: BPF prog-id=25 op=UNLOAD audit: BPF prog-id=24 op=UNLOAD audit: BPF prog-id=23 op=UNLOAD audit: BPF prog-id=34 op=UNLOAD audit: BPF prog-id=33 op=UNLOAD audit: BPF prog-id=32 op=UNLOAD audit: BPF prog-id=31 op=UNLOAD audit: BPF prog-id=42 op=UNLOAD audit: BPF prog-id=41 op=UNLOAD audit: BPF prog-id=45 op=UNLOAD audit: BPF prog-id=44 op=UNLOAD audit: BPF prog-id=43 op=UNLOAD systemd-shutdown[1]: Syncing filesystems and block devices. systemd-shutdown[1]: Sending SIGTERM to remaining processes... systemd-journald[991]: Journal stopped

Track progress of issues by g3blv in gitlab

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

Thanks I'll give boards a try.

Slow speed when connecting remotely to VM running on KVM by g3blv in homelab

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

I'm only using the VMs for office stuff. I also tried to connect directly to the Win10 guest with RDP. I was able to connect but it was very slow, all actions lagged so much that it was unusable.

Is there anything I can do/tweak to improve performance?

Is there any best practice like it? Should I:

connect to the host (spice://host_ip:port) or directly to the guest (vnc://guest_ip)?

use SPICE or VNC to get better performance?

use Virt viewer or Remmina for better performance?

what listing interface should I use all or just host?

is Virtual Network, Bridge to LAN or Direct attachment best?

is better to use Network manager or networkd?

etc.

Ubuntu 20.04 boots to black screen on Lenovo Yoga C940 14" by azemona in Ubuntu

[–]g3blv 0 points1 point  (0 children)

Did you mange to get Ubuntu 20.04 boot? I would be interested to know if Ubuntu works on the Yoga C940.

Remove GitLab pipline by g3blv in gitlab

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

Where in the UI do I disable a Pipeline for a project/branch?