Spyke

Posts

What options should I use for rust programming for nvim?

I am very new to nvim in general, and lately I have been trying to see if I can get configured to work better for rust programming (simple stuff, like proper language highlights, automatic formatting, if not too much work have rust-analyzer to sometimes check what is being done once in a while). I tried to check online what people post about this subject, and more often than not I am lead to guides and explanations that clearly do not work with the more recent versions of nvim. And in some cases, they shove so many plugins that I lose count (and many times tried to change stuff like init.lua just to end up with a broken install).

So my questions are:

  • What options can be used by nvim itself that makes it more suitable for rust development (excluding plugins)?
  • If plugins must be used to have more advanced features, what are they and what are the best practices to add them to nvim?

EDIT: typos

View original on lemmy.world
asklemmy·Ask LemmybyZeDoTelhado

What weird searches you made randomly that lead to unexpected things/places?

Recently I was bored and decided to search on amazon if it was possible to order a large idiot. Surprised enough, amazon did give me results for the book "the idiot" (large print) by Fyodor Dostoyevsky (I have never read anything made by Dostoyevsky, but now I am curious). So maybe I am going to read in the near future something I've never heard about and came by random search. What are your similar stories?

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

What us the best way to add remote access to my servers?

Hi,

I an currently trying to add remote access to 2 of my servers but didn't manage to get a working setup as is.

Right now I want to access 2 servers:

  • one is for media stuff (navidrome, jellyfin, managing the arr stack)
  • one is for my data syncing with rsync and after set a backup from borg to another server not on my domain

I was trying at some point to add stuff such as tailscale, but somehow I always had issues with having both servers reachable within the IP range I use on my local network, so everything would work as is with the current config at home being away. I have also heard of cloudflare tunnels as well, but that I didn't try yet. At some point I tried to do just a regular wireguard from my opnsense, but I would prefer not to have open ports to worry about (and also had issues with internal IP not being assigned from wireguard as well).

Does anyone here has experience with this? If so, what was your solution and/or caviats to it?

EDIT: I got some very good responses but I think I failed to understand that what I would need is probably a hop in server of sorts for the VPN. Meaning:

  • I login to the hop server
  • I get an internal IP for my network, meaning, 192.168.1.xxx
  • I do whatever I need to do
  • log out

Does anyone has experience with such solution? My point would be able to have full access to everything on the network without having to do a VPN on every machine i need access to (although it can create a massive single point of failure/risk)

View original on lemmy.world

How to properly implement vlans in this case?

Hi everyone,

I've been running opnsense for a while now (mostly set and forget) and it has been a great addition to my network.

There is however one point I've never addressed and lately I've been thinking on doing it, but not sure how. Until now, my devices on my network they all are in the same default vlan, but with only 2 distinctions via firewall rules:

  • can connect to the internet
  • can only access local devices (so no internet. All iot sort of devices get this rule)

As expected, opnsense deals with dhcp and have also installed on the same machine adguard (with all expected rules to redirect all DNS traffic to adguard). All of my machines that are permanent in the network they have aliases and static ips.

I am aware this is not a great setup, and this is why I wanted to implement vlans to make sure if a rogue device is installed at first creates no harm to the network at large (meaning: devices by default fall into a vlan without access to the internet at least, more drastic measure is not allow access to anything besides the router). Eventually, a vlan where devices can only go to the internet can be added, and of course, a vlan that just has all the expected access to the home devices.

I did some research on this and there is information on how to do vlans and such but sometimes the explanation goes a bit over my head (or the explanations don't cover some important details). So my broad question to all of this is:

  • do you guys know anyone that explains vlans on an understandable manner inside opnsense? Usually video form is best, but articles can be useful too
  • does this setup with 3 vlans makes sense in the 1st place?

If someone has input on how this can be best done I would like to know as well, since I can be approaching this in a too complex manner.

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

How to keep track of system temps and hardware health indicators via dashboard with a proxmox installation?

Recently I added a new HDD to my proxmox system, and I started to realize the HDD was running warm. Was thinking for a second, and having a dashboard with temps and general hardware health would be useful for the server, but I do not find a solution from within proxmox to do this.

Does anyone here added this kind of dashboarding in a proxmox installation? And if so, how or what did you use?

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

What is the easiest way to have a self hosted git server?

I've been recently dabbling on rust, and I am have been mostly doing that on my laptop. However, I also have a desktop and once in a while I would like to resume my stuff from the laptop, but without manual file transfers.

I know git by design does this, but I would like to use my current docker setup with Ubuntu server to have a very simple git server.

What would be the simplest git server to have in this situation? Keep in mind I am not planning to expose none of this to the internet

View original on lemmy.world
right2repair·Right to RepairbyZeDoTelhado

Xps 9500 and trackpad replacement

Hi there,

I have been recently busy with a xps 15 9500 and the trackpad. For a while, this laptop suffered from erractic behavior that nothing could explain why the behavior. Recently I decided to get a trackpad via eBay.

Installed it, felt actually better than the previous, it looked OK. 10 minutes later, trackpad is recessed and it is in a mode like left click is constantly clicked. I've tried everything under the sun (electric tape on the back, loosen or tighten screws around the battery, apply electricat tape on the wedge where the 2 prongs of the trackpad rest inside the battery, etc). And absolutely nothing works.

At this point I am losing my marbles and just want to throw this bs into the bin. Which is a massive waste, since the machine is still in great condition. But a laptop without a functional trackpad is not a laptop.

Did anyone around here ever had a xps 9500 and managed to solve this issue?

EDIT: I forgot to mention a very important detail. When I am using the laptop and if I put the screen on the desk (meaning, main part of the laptop is now vertical), the trackpad works no problem (left side still feels recessed, but at least clicks normally)

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

Syncthing alternatives

Hi,

As the title suggests: what are alternatives to syncthing that are basically fire and forget, works on multiple device types, and just focuses on file syncing?

I've had over the months the weirdest problems with syncthing, and lately I noticed some of my photos got corrupted, which is an absolute no no for me. I use syncthing currently as a easy automatic backup of documents, photos and other files, between my PCs and my phones (they all send only to the server. Folders are not shared with other devices).

View original on lemmy.world
steamdeck·Steam HardwarebyZeDoTelhado

Did someone here play "high on life" on the deck?

Very recently I got this on sale (around 50% or so) and it is a very fun game so far. Was playing on my tower, and out of curiosity tried on the steam deck.

For some reason, the game looks super fuzzy and weird on the deck (chiseling hair, strange textures at times, choppiness here and there). My question: is there a setting the game needs to be turned off to work better? Or is just a title that is better played on my main PC and that's it? I do find this even more strange since it's a steam deck verified title, so I would expect 0 tweaking and work ok ootb

View original on lemmy.world
pcgaming·PC GamingbyZeDoTelhado

Buildzoid's video on the upcoming sapphire nitro + 9070xt

sigh, seems sapphire decided to let us down with the 12vhpwr connector. And worse, nothing was added for load balancing, making this a possible dumpster fire. The asrock taichi apparently also has this connector, now I want to see if they did something to actually load balance this connector. For the people wanting a 9070(xt) from sapphire: their other models are apparently using the regular connectors. And from a few comparison videos here and there, they seem to be doing quite nicely in terms of cooling and power.

View original on lemmy.world

Need some pointers/clarifications on usenet

Hi,

Lately I've been looking into Usenet, and maybe this time I was planning to try it out (I am aware of Usenet since circa 2000s, so I sort of know what it is).

Still there are some things I still didn't figure out:

  • from what I see a Usenet provider and an indexer is required. And from what I gather, both are paid (indexer not exclusively paid but its better). Considering what Usenet is used for, is it sort if a requirement to pay in btc?
  • what sort of content is usually Usenet more useful for?
  • for what I see, Usenet tends to use SSL like the rest of the web. However, i would argue it gives to the ISP the visibility that you are in fact at least starting/ending connections to Usenet. Is this an issue? If so, does it make VPN a mandatory requirement? Or orbot for that matter
  • one thing that bothers me greatly: I've checked the privacy policy for the most 3 known providers (news hosting, Usenet server and euweka) and, first of all, i find incredibly sus that these seemingly 3 different providers have a sort of copy pasted privacy policy. Then, I noticed there is this magic line on it

Communicate with you about products, services, promotions, events, and other news and information we think will be of interest to you.

So I assume they are selling data somehow to advertisers?

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

How reliable/realistic is to use a laptop as a remote file backup server?

I have an HP pavillion 15-bc235nd that, quite frankly, I don´t really like that much (way too loud of a fan, cannot adjust the fan curve, keyboard and trackpad are terrible, etc).

I was planning to replace with laptop with something else, but in the meantime, I was thinking of something. Instead of getting this laptop in the landfill or give to someone else (no one needs an emergency laptop right now), I could potentially use this has a server machine to be used as an off site backup location.

Right now I am missing the off site backup part out of the 3-2-1 backup strategy. Since this laptop has more than enough horsepower to do the job, it could be a solution. But personally, I am not sure how reliable a laptop turned into a server can be. This laptop would be around 3000km away from me, so I have to be really sure it works at a distance without much problem.

For those who turned a laptop into a server: what is your mileage? Are there any specific considerations about this setup that a regular desktop/server does not have or specific issues?

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

Trying to understand what should change on my current setup

I have for a while a ubuntu server where I selfhost for my household syncthing (automatic backup of most important files on devices), baïkal, magic mirror and a few other things via docker.

I was looking at what I have now (leftovers of a computer of mine, amd 2600 with 16 gb ram with a 1660 super and a western digital blue ssd of 512GB), and regarding storage wise, at the time I decided to get several sort of cheap ssd's to have enough initial space (made a logical volume out of 3 crucial mx500 1TB, in total making 3TB). At the time I though I wanted to avoid regular hdd at all costs (knew people who had issues with it), but in hindsight, I never worked with NAS drives, so my fear over these hdd with such low usage is sort of uncalled for.

So now I am trying to understand what can I change this setup so I can expand later if needed, but also having a bit more space already (for the personal stuff I have around 1.5TB of data) and add a bit more resilience in case something happens. Another goal is to try to make a 3-2-1 backup kind of solution (starting with the setup at home, with an external disk already and later a remote backup location). Also, I will probably decommission for now the ssd's since I want to avoid to have a logical volumes (something happens on one drive, and puff all the data goes away). So my questions regarding this are:

  • For hdd's to be used as long term storage, what is usually the rule of thumb? Are there any recommendations on what drives are usually better for this?
  • Considering this is going to store personal documents and photos, is RAID a must in your opinion? And if so, which configuration?
  • And in case RAID would be required, is ubuntu server good enough for this? or using something such as unraid is a must?
  • I was thinking of probably trying to sell the 1660 super while it has some market value. However, I was never able to have the server completely headless. Is there a way to make this happen with a msi tomahawk b450? Or is only possible with an APU (such as 5600g)?

Thanks in advance

PS: If you guys find any glaring issues with my setup and know a tip or two, please share them so I can also understand better this selfhosted landscape :)

View original on lemmy.world

What other options for good phones are out there?

I have now a pixel 8, which was working OK from the past 8 months and using grapheneos. Unfortunately, today out of nowhere got the green screen bug (searched around, this seems to be really a thing with pixel 8 and some pixel 7). This really stroke me a nerve. Previously I had a pixel 5 which at some point also got screen problems and later the speaker piece just straight up did not work properly. And now this with the pixel 8.

So my question is: what other phones could potentially be used with a custom ROM that allow bootloader relocking? Other Roms can be something like divest or calyx (I used calyx before, so I am fairly familiar with it).

It really pisses me off the only option until now are pixel phones for proper relocking (from what I know from a while back), and then they have these annoying issues. It makes my skin crawl, but if required I would change to an iPhone (and throwaway a lot of things that android is actually superior, such as proper tor browser, VPN split tunneling, work/user profiles, no bloody account to use a phone).

Thanks for the responses in advance.

View original on lemmy.world
selfhosted·SelfhostedbyZeDoTelhado

entire system backups onto the server - how?

Hey there, I have a (very) small Ubuntu server and I was dabbling on the idea to do system backups (entire system, meaning, if the disk of the said pc fries, I can get another one, put the info from the backup on the new disk, works immediately afterwards). I have a couple of Linux mint machines and a windows one. I searched a lot out there and found several names, from rsync to Borg backup.But ultimately I don't really know if these solutions would fit my use case.

So the question is: is there a feasible way/service that can be self hosted to do backups of local machines, similar to an image backup? Or, if you believe there are better ways to do it, can you please mention it?

Thanks in advance

View original on lemmy.world

You reached the end