Spyke

Posts

programming·ProgrammingbyMatty_r

Funding a new project?

Hey all,

I'm just curious what might be a good way to fund a new project? I've seen a number of projects use stuff like LiberaPay and PayPal etc, what about something in the form of Kickstarter? Subscriptions?

This isn't something I've ever considered before so not sure what the prevailing wisdom is out there. Say I want to get funding to start a project, those that donate get a lifetime subscription, but then also have an option for others to pay a monthly subscription? Is there any method in particular I should avoid?

View original on programming.dev
11
programming·ProgrammingbyMatty_r

Lazy Web | Lazy Artix installer companion site

cross-posted from: https://programming.dev/post/48635032

Hey all, Not long ago I shared my Artix Linux installer. I wanted to take it a little bit further (And learn some more Rust along the way), and make a companion site to make setting up the script settings even easier when wanting to run the installer - so here it is. Introducing the Lazy Web

This was developed using Rust, with Actix for the backend and egui + wasm for the frontend.

I had a few considerations when developing this, I wanted the encryption to occur clientside in the frontend in order to ensure your encryption password never makes it to the server. But also I wanted the decryption process to occur when the script downloads the settings. I also wanted the identifier that you use to connect and download the settings to be short and unique.

The website and the script are both still a work in progress, and i'm open to suggestions/feedback.

Edit: Just realized that I was returning the wrong URL to the codeberg repo.. so it probably wasn't working for anybody. Sorry!

View original on programming.dev
10
linux·LinuxbyMatty_r

Lazy Web | Lazy Artix installer companion site

Hey all, Not long ago I shared my Artix Linux installer. I wanted to take it a little bit further (And learn some more Rust along the way), and make a companion site to make setting up the script settings even easier when wanting to run the installer - so here it is. Introducing the Lazy Web

This was developed using Rust, with Actix for the backend and egui + wasm for the frontend.

I had a few considerations when developing this, I wanted the encryption to occur clientside in the frontend in order to ensure your encryption password never makes it to the server. But also I wanted the decryption process to occur when the script downloads the settings. I also wanted the identifier that you use to connect and download the settings to be short and unique.

The website and the script are both still a work in progress, and i'm open to suggestions/feedback.

Edit: Just realized that I was returning the wrong URL to the codeberg repo.. so it probably wasn't working for anybody. Sorry!

View original on programming.dev
56
linux·LinuxbyMatty_r

Artix Linux Installer

Lazy-Artix - CodeBerg

Hey all, just thought i'd share my Artix Linux installer script. I've wanted to give Artix a solid go, and decided to bring up my old Arch Linux install script to be used with Artix. I'm still working on it a lot and there is definitely some stuff in there that needs to be updated - but I'm pretty happy with it so far.

This is written all in bash, and is to be used with the base Artix Linux OpenRC ISO. Right now i'm focusing on getting KDE up and going, and then fixing up some of the bundles that can be selected.

It's nothing special - I started it years ago for Arch before the official installer existed, and only myself and a couple others have used it so it hasn't had a great deal of scrutiny. But anyway, just thought i'd share it.

(No AI has been used, also I migrated this over from GitHub so there are a few bits and pieces left over from that)

Edit: Just thought I should mention I sped up the video, the install actually took about 3 mins :)

View original on programming.dev
21

Strip lighting with ZBT-2

Hey all Just getting started on some smart home stuff - I'm looking to get some strip lighting and there is a lot of stuff out there and honestly I'm not sure what I should get. Ideally it would be RGB but I'm OK with white/warm light.

The ZBT-2 can do both ZigBee and Thread, and I haven't got any pre-existing devices so I can go either of those.

I thought about getting some IKEA lighting because I believe they use Thread now?

What's the prevailing wisdom out there?

View original on programming.dev
13
linux_gaming·Linux GamingbyMatty_r

EGPU Enclosures support

Hey all, I recently got a new AMD GPU to replace my nvidia 3070ti - what's the support like these days for egpus on Linux? I'd like to be able to still use the 3070ti with my laptop (it has thunderbolt ports).

Egpu enclosures were basically a nonstarter on Linux a few years ago last time I looked into it, so not sure if thats still the case.

View original on programming.dev
24
linux_gaming·Linux GamingbyMatty_r

[SOLVED] Looking for an in home streaming solution

Hey all, I've got an under powered laptop that I would like to stream Steam games to from my main PC (main PC has an AMD 9070XT, laptop has something like an Nvidia 1660). What I need to do is still be able to use my main PC while streaming to the laptop at the same time.

I've looked at solutions like moonlight, and I don't recall it worked very well or didnt support having a virtual display. I don't know that this is possible on Linux, but seems to be pretty easy to do on Windows.

What are my options here? Is it even viable to have a fully usable desktop while also utilising the GPU to stream games elsewhere?

Edit: ended up using Wolf and seemed to work perfectly. Certainly good enough to do what I set out to achieve, thanks for the recommendation.

View original on programming.dev
27
programming·ProgrammingbyMatty_r

I haven't written code at all these holidays

This is a first for me. I've got some personal projects I want to work on, and I really enjoy programming. Normally first thing in the morning I'll spend an hour waking up, drinking coffee, and writing some code.

I'm a professional software developer, and software development is a passion and hobby. But I felt like I needed a bit of a reset so I've made an effort to not write any code at all during the Christmas/New Years holidays (about 3 weeks).

Honestly I don't feel like I've missed out, but I'm definitely looking forward to getting back into it and I think I'll benefit from it. Ill be back at it again next week.

I know 3 weeks isn't a huge amount of time in the grand scheme of things. Have you found yourself taking a complete break from coding? How did you find things when you had to start up again? Felt like it benefitted you or ended up losing the trail a bit?

View original on programming.dev
87
rust·RustbyMatty_r

UI crate and add game stuff, or game engine and add UI stuff

Hey all, I've been contemplating what approach I should take in my app, think along the lines of mapping with lots of UI elements but also a 2D portal/window for showing the map etc.

I want it to be cross platform so thought I'd go with Egui and look at implementing the "game" parts to that. But as I thought more about it, maybe it would be more beneficial to use Bevy and rely on its UI framework.

Thoughts? Maybe Bevy would be easier, but might be too much of a hit on performance because its not a game that I'm making. Egui might be more difficult to add the game stuff, but more performant and not running a full game engine.

I'm really conflicted. It would be good to be able to turn off/disable the game part of it to reduce load if it isn't needed at the time

View original on programming.dev
12
rust·RustbyMatty_r

Blogs/Podcasts covering design patterns, idiomatic Rust etc

Hey all, just wondering if there are blogs or podcasts out there that cover common design patterns in Rust. I'm a Java dev and have tried a few times to get into Rust, but it feels like I'm solving problems in a way that aren't the most optimal for Rust because I'm still in that Java mindset.

Anyway I'm working on an XMPP client and my current challenge is working to implement some sort of event/listener system where I can trigger functions when I receive certain XMPP message types.

I put together a simple XML parser to deserialize (haven't done serialisation yet) messages which I can then determine the type of message it is. I was thinking maybe an event driven setup might work best here but not sure where to start in a Rust idiomatic way.

The idea would be we receive a Proceed message for TLS negotiation, this would trigger the tls_upgrade function which itself will send messages and need to react to the response as part of the negotiation step. But, again I'm not sure this would even be the best approach.

What I'm doing now is calling the tls_upgrade function which will do its own handling of sending a negotiation message, then looping on read_line on the stream hoping that the next message is the next needed message in the negotiation process.

So some advice on common patterns used in Rust in blog form or even podcasts would be a good learning resource.

Cheers.

View original on programming.dev
16
selfhosted·SelfhostedbyMatty_r

Managing proxmox, virtual machines, and others

Hey all, just hoping to get some advice on any software out there that can help me keep on top of all the VMs i'm running on my Proxmox instances, and potentially my other machines I have too.

I'm looking for a way to help me stay on top of updates and things like when the machine was last online, last rebooted etc etc. There are commercial products for such a thing, and I don't necessarily want to install any sort of Agent on each of the machines (if I can avoid it).

I looked at something like Homarr, but not sure if that's what i'm really after.

What recommendations do all you have?

View original on programming.dev
33
linux_gaming·Linux GamingbyMatty_r

New PC, use both GPUs?

Hey all, I know that switchable graphics is a thing in laptops where there is usually a single port. But how would you go about it on desktop? Do you put your monitor in the onboard HDMI or on the dGPU port? There are other issues associated with doing it of course, but I thought it might save on power and noise if I used the iGPU as much as possible.

Only have a nvidia GPU at the moment, but hoping to get an AMD 9070 at some point

View original on programming.dev
27
linux_gaming·Linux GamingbyMatty_r

8bitdo Ultimate 2 Wireless - Update firmware?

Hey all, just got the 8BitDo Ultimate Wireless 2 and just wondering how I can update the firmware? I had a look around and not sure if the updater works under wine, I had a go but didn't seem to recognise that it was plugged in.

Any advice? I primarily got this to use with my desktop and Steam Deck - maybe the Deck can update the firmware?

Edit: had to use a windows VM, pass-through the USB, then update that way. Gyro and all the buttons are recognised on the Steam Deck.

View original on programming.dev
14
fedora·Fedora LinuxbyMatty_r

Make a spin?

Hey all,

I'd like to create a spin/(fork?) of Fedora, with some preconfigured settings (like config of Plasma), and include some packages and repos.

I've found something like an unattended installer but I'm not sure if that's current advice.

Are there some helpful guides out there that might go through the process of doing this?

View original on programming.dev
1
rust·RustbyMatty_r

Stack advice

Hey all, just looking for some advice. I'd like to do a WASM application, just generally like a calendar + notes app. I'd like it to work on mobile and desktop through the browser. It'll be served through Actix with Diesel for the backend. For the "frontend" I was thinking egui or leptos.

I'd like to avoid any JavaScript, so thought SSR might be the best approach.

Any thoughts/pitfalls? Should I look at something else for the frontend?

Its a lot of working parts for a calendar + notes app, but this will be a testing ground to see if I can get it all going :S

View original on programming.dev
18
selfhosted·SelfhostedbyMatty_r

CrowdSec vs Fail2Ban - What to use?

Hey all, i've decided I should probably setup something else to help block nefarious IP addresses. I've been looking into CrowdSec and Fail2Ban but i'm not really sure the best one to use.

My setup is OpnSense -> Nginx Proxy Manager -> Servers. I think I need to setup CrowdSec/Fail2Ban on the Nginx Proxy Manager to filter the access logs, then ideally it would setup the blocks on OpnSense - but i'm not sure that can be done?

Any experience in a setup like this? I've found a few guides but some of them seem fairly outdated.

Edit: thanks everybody for the great info. General consensus seems to be with crowdsec so I'll go down that path and see how it goes.

Edit 2: So after having it up and running for the better part of a day, i'm going to remove it again. For some reason there was a performance impact loading websites, probably because it was waiting for a response from the Crowdsec hub? Either way, after stopping it from running everything is back to normal again. So I might revisit how I do it and probably try Fail2Ban now instead. Thanks everybody

View original on programming.dev
119