Natal

joined 2 years ago
MODERATOR OF
[–] [email protected] 2 points 1 hour ago (1 children)

I had GPSD working nicely, confirmed both by cgps -s and mongps, but I was stuck on geoclue. Whatever I did, the GPS wouldn't send data to Organic Maps. I kept having this error: "Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/GeoClue2/Client/1”" despite being 100% sure client1 was the right one.

Going to Lineage OS was much easier for me and I just needed a working GPS. Linux GPS will stay in the "challenge todo list", because I'd like to figure it out eventually. I most likely was doing something stupid.

[–] [email protected] 1 points 3 hours ago

He, I wish. I don't have access to a 3D printer either at home or in the close area. I'd have to go to the closest big city for that and at that point it costs as much in fuel as it'd cost to get a new one. Granted I have to find one that suits my needs to begin with.

[–] [email protected] 1 points 3 hours ago

What car do you have? Dacia Sandero Stepway

Didn’t you want to use it for your music as well with navidrome? Maybe, if the USB port works, then I'll use Navidrome on it and put the music that way through the car speaker. If they don't, I can plug my phone to the car speakers and the Pi to bluetooth external speakers. The phone only crashes during satnav. By the way I did a recovery reset, i'll try a drive today and see how it goes.

CoMaps may be up your alley, uses OSM. Thanks for the name, current app in testing is OsmAnd, as i've seen it recommended a lot. If it doesn't work I'll try CoMaps.

Especially since I just bought the car a few weeks before. I feel you, this phone was bought specifically for car use. My former one was slow, but I don't use my phone much so there was no point in upgrading. I got the Oppo A51 back then because it had decent reviews for the price and I had a deal on it. But I think it's not beefy enough. It thermal throttles very easily, too.

[–] [email protected] 1 points 3 hours ago

I didn't know about osmin! I might try it out.

For the poweroff, I'll just poweroff the Pi from the UI and wait a sec for it to go down. Initial testing has me waiting 10 seconds on the "shutting down" screen. That's short enough, meanwhile I can put my jacket on or something. Once off, I just unplug it. It's also running on SSD because I don't trust SD cards to endure constant read/write from satnav so I installed from SD card and cloned the OS to an SSD, it should be more resilient this way.

[–] [email protected] 2 points 20 hours ago (3 children)

For the audio, I'll first try the obvious and plug the Pi to the USB A of the factory car unit. Maybe it'll detect it as mass storage media and give it access to the built in audio system. Else, I'll just use a bluetooth speaker I have at home. I don't need good audio for "turn left/turn right", just to hear it.

The whole project is an attempt at getting rid of Android Auto and having my own standalone unit that will free me from unwanted updates both from the OS and the apps. I've had Waze become useless three times in the span of two years because they pushed updates that made the app unstable enough to not be reliable.

For the viewing angle, on the car next to the existing head unit screen, there's a mounting bracket. I'll use that to mount a 7inch display I got. It'll sit right above the existing one if that doesn't obstruct the view too much, else I'll have to get one of those arms with joints and lower it somewhere not annoying.

My bluetooth speaker is the perfect size to sit in the cup holder so if the car audio isn't possible, then there's a plan B.

I'll try the recovery mode for my phone and see if that helps!

[–] [email protected] 2 points 21 hours ago* (last edited 21 hours ago)

Use a software/app to meal plane. (Mealie/Tandoor) You pick the recipes you fancy for the days/week/whatever period. It generates a grocery list containing exactly what is needed for the meals you chose, nothing else.

I haven't thrown away anything in a couple years now. Oh and freeze leftovers if needed.

[–] [email protected] 1 points 21 hours ago (7 children)

Hey, thanks for the link. I haven't looked at that type of parts because I'm not confident tinkering with the car, especially since it's still fairly new and I'm too afraid to damage some plastic. And I also don'"t have any spare room available on the dashboard anywhere.

There's a little nook to empty your pocket between the gear shifter (manual car) and the dashboard but it's wide open, fairly hot, and probably still too small even to fit a raspberry pi in a case with the cooling I'll need.

That's why I've been looking at external solutions. If wires weren't an issue, I'd put a trunk/boot organizer at the back and store the pi unit there during drives but it's not practical with the wiring. Still routing cables in my head in case I'd get an idea.

Here's a photo I found of the front of the car: https://www.ouestfrance-auto.com/sites/default/files/sandero_stepway_1_0.jpg

 

Hello everyone!

I already posted a first time here a while ago: https://lemmy.world/post/30549957

My goal was to replace my Android Auto + phone setup for satnav in car with a dedicated Raspberry Pi.

Here's a status update of the project so far!

Choosing the parts and getting them here was obviously fairly easy even though it took quite bit of research to find a way to power the Pi4 in car reliably.

It's a pi4 with an adafruit ultimate gps dongle, an SD card and a 2.5 SSD. The SD for OS installs, and then I clone them to SSD for better stability and performances.

I first tried to go Pi OS route. I figured Linux might open more possibilities and I'm more comfortable with Linux. I tried a few options in Pi OS, namely Navit. I banged my head quite hard on that one, trying to figure out how to make it work, but I never managed to get a good navit.xml config file. After hours upon hours of trials, I gave up.

Tried Organic Maps then, but it was a flatpak which introduced a lot of permission issues and I never got the GPS dongle to talk to the app.

After a few failed attempts, I decided to try Emteria OS, an android spin available in the Pi Imager. It doesn't boot without SD card as opposed to PiOS, so I was glad I spent the 5€ for the SD card. It booted easily, SSH was harder to enable than on Linux but it's likely because I just know Linux better. Installing apps was easy, but I stopped there and didn't even try to get the GPS working because 90% of my RAM was used idling at boot, which makes the whole project impossible on Emteria. Not sure if there's a bug in the current version or what, but I simply moved on.

Then I went to LineageOS. Similarly to Emteria, installing apps was very easy. Getting the GPS from Adafruit to talk to Android was fairly easy if you read the docs carefully. I needed to install android dev tools on my main PC and connect to the Pi using ADB as root to edit some config files. That's it, the GPS worked and I had a working GPS unit.

Now I'm at the point where I need to introduce the package into the car. For now , the pi still doesn't have a case because I didn't want to limit my options in the car. I still haven't found a good way to bring the pi with me and have it being safely transported without breaking or even becoming a deadly cannonball in case of crash.

My current idea that I'm exploring and checking is getting a Pelican Case, not sure if any of their cases has vent holes. The pi would go inside the case, and the case would be attached to a strong anchor point like the seat rails. Not sure how, yet. I'm thinking maybe about carabiners from Petzl since they would be much stronger than needed, I'm just not sure the anchor point on the case would be strong enough.

So there you have it, I've made good progress on the project and I'm confident it will work out reasonably well.

[–] [email protected] 1 points 2 weeks ago

Yeah that might end up being necessary, I haven't found any easy solution to provide the 5A/5V required by a Pi5. Still pondering the power supply issue.

[–] [email protected] 2 points 2 weeks ago* (last edited 2 weeks ago)

Thanks! I've studied this option and Pi5 needs 5A/5V. I haven't found something adequate yet for that power requirement. So I'm actually considering going for a Pi4 instead.

[–] [email protected] 1 points 2 weeks ago

That's the obvious route, indeed. But it's not a fun one, I don't get to own the data and the device is subject to poor updates which will render it useless in a few years. I'd rather buy an old GPS than buy a new phone honestly. The phone that is currently the culprit cost me 230, 23 months ago. It still works perfectly fine outside of the car for everything I need it for, it just doesn't like being used in car. It's too much for it I guess, though it wasn't too much two years ago.

I considered a tablet, but I'm not sure if there's a serious advantage over a phone at that point.

[–] [email protected] 2 points 2 weeks ago (1 children)

I didn't take it as throwing shade :) I just thought I'd provide more context, though reading it back now it looks more like a rant.

Another person here pointed me to the Crankshaft too. It looks cool but it still uses a phone. I'll try to erase this silicon slab from the equation entirely. From my personal experience over the years, phones have become a hindrance more than a supportive gadget.

I think i'll go ahead and give it a try. I just need to figure out a way to cool the device properly in a hot environment.

[–] [email protected] 2 points 2 weeks ago (3 children)

Yeah, possibly, I might be a contrarian but I'm tired of cloud services, subscriptions, big corporations. I'm also tired of multipurpose devices that do plenty of things poorly. I just want a screen that shows me how to get somewhere, reliably. My phone from two years ago simply stopped being recognized by the car, bought a new one for that single purpose, and this fella already crashes too.

I didn't go crazy on the budget but it worked initially and now it doesn't at all so I'm tired of this bad tech. If I build my own, my hope is that I can make it more resilient and easier to repair/fix.

 

Hello everyone,

I'm thinking about a project and would like to ask for a second opinion from more experienced people. I sadly didn't find a community dedicated to that on Lemmy and here's the closest I know about. Let me know if I need to move the subject elsewhere, I understand this is on the fringe.

I have experience self-hosting many things on an old gaming PC at home.

Recently my phone which I use for music (navidrome) and satnav in car via Android Auto keeps crashing. The easiest solution would be to get a new phone but this one isn't even two years old so I'm frustrated with modern tech and want to build my own satnav solution.

One limitation I have is that my car only has one USB port to benefit from the car audio system and infotainment. I've chosen to give the USB port to an MP3 player with my music on it.

My idea is to then get a Raspberry Pi 5 or something equivalent , probably the Pi for the community resources for the satnav system.

Add a GPS receiver to it, a generic phone screen, a few physical buttons, maybe bluetooth dongle to connect a bluetooth speaker and potentially a foldable keyboard to type addresses and install something like BRouter for local satnav. Try to figure out how to add physical buttons for media control and also manual brightness.

I'd power it with external powerbanks. The screen would be the size of a phone, or maybe even and old phone or something, to benefit from the third party market of phone holders.

The goal is relatively simple: Local offline satnav with rerouting. Full control of the data, updates and tech used. Portable so it easily comes with me from car to car over the years. Modular, so I could potentially add stuff like rear cam later on.

Why not get a dedicated GPS device? Because I don't want to rely on a greedy corporations when I think I can do it myself (Garmin recently pulled a bad prank with a new subscription plan for instance.) And it's simply just fun to attempt a project like this.

I have plenty of free time to learn and figure it out, but if there's something obvious that I missed and makes the project a no-go, I'd love to know before I purchase everything.

Any feedback?

UPDATE 1st June: I'm going forward with the project. I've been looking extensively at how on Earth I am going to power this and the Raspberry Pi 5 isn't a good contender because it requires 5V/5A which is very difficult to comply with in a car without tinkering that I deem advanced. I'm now considering using a Pi4. Checking if the 4 is strong enough for satnav and music.

 

Hello everyone.

I recently got myself a mountain bike from Canyon. It all works, got myself all the gear, pumps and all. And the pressure gage give me a reading of 10 PSI, which is odd because the tires are firm. 10 PSI should be nearly flat.

I have other pumps, including one that works for my car too, which I trust because I cross checked its values with my mechanic.

Here's the odd thing. I got the bike out and plugged it to the car tire pressure device and it also gave me a reading of 10 PSI. I also have a Topeak Shuttle Gage, 10 PSI.

How is that possible? I can't really believe all three readings come from faulty devices so I'm thinking I'm the one doing something especially stupid, or maybe a defect somewhere on the valve/tire but it's brand new, so I think I'm the one to blame. Any ideas where I've been an idiot?

I did open the nut on the presta valve prior to taking measurements.

 

Hello everyone,

Recently found LinguaCafe and decided to spin it up. There's a provided docker-compose with just volumes to specify to your own taste. Pretty easy right?

I can't make it work. Spent nearly two hours already trying to figure out what I'm missing.

Can someone take a look at my compose file and tell me where I'm stupid?

_____________ EDITS

Progress has been made, I used chmod 777 on the whole app directory and now get the following error : Illuminate\Database\QueryException SQLSTATE[HY000] [1045] Access denied for user 'linguacafe'@'ip adress censored' (using password: YES) (SQL: select count(*) as aggregate from users)


Here's a somewhat anonymized pastebin, I just removed the password and my name from the file. The rest is basically the file provided by the github + my paths. https://pastebin.com/u2cbWm2n

https://github.com/simjanos-dev/LinguaCafe

What happens is, my containers spin up apparently properly. But when I go to :9191, I have this:

https://imgur.com/a/PiazCcP

I did sudo chmod 777 /home/user/Documents/Docker/LinguaCafe/temp -R as instructed by the documentation.

Never had that happen before. Does anyone know? Thanks

 

Hi all,

I've been reading an excellent sci-fi book recently (the bobiverse by Dennis E Taylor) and it made me think it would make for a pretty good RTS game. I don't think it exists but I'll ask in case I missed it:

Usually you start skirmish games by choosing the teams first, choosing how many AIs play against or with you. Some games allow you to change the teams in-game but as far as I know, none let you create an extra player during the game.

Is there a game in which you can, for instance, create/build a unit that once finished becomes a permanent AI ally, autonomous?

I can easily imagine scenarios very suited for such system, have an adversary grow very strong very fast which could not be overcome alone. The player would have to play smart to have the resources required to build an AI which would then join the fight and alleviate the pressure somewhat.

Probably doesn't exist but it's also an opportunity to share a good book :)

 

Hello everyone,

I've been on Pop_OS for a good week now and I'm liking it. First linux too. I have a series of small questions though and hopefully someone can enlighten me.

Question 1) I have a 3440x1440 screen. The resolution once booted is fine. During boot and up until the login screen, my monitor keeps displaying "HDMI 3440x1440" and flickers as if reset or switched port. I suspect it's because the screens before the login screen are not compatible with that resolution. I have no idea whether I'm supposed to see something or not until that point. Is there a way to "fix" it if there's even anything to fix?

Question 2) Also boot related. Booting anything else but Pop_OS is relatively quiet with the occasional Hard drive working noise. With Pop_OS, my hard drive makes almost uninterrupted sounds as if writing/reading from boot up until well over a minute after login. What is it? Timeshift already working? I'm slightly worried it's bringing extra wear and tear to my drives.

Question 3) Is there a way to display peripherals info? I'm thinking about my wireless mouse battery level. I'm going to dig that info specific for my mouse after work today, but I'm wondering if there's more of a "general blanket" solution to display very basic info from any connected device somewhere. I used to do stuff like that with Rainmeter on Windows.

Thanks!

 

Update Oct 6 :

I have been messing around the idea of permissions but just got back from work so this is very much Work In Progress. What I noticed is that the "postgres" folder inside the Docker folder that has the docker-compose file had a lock icon on it. https://imgur.com/a/lZir4tt The owner is weird and doesn't exist on the other computer. I don't explain how this owner was created and that may be due to my poor understanding of Docker and docker-compose.

So I have made a pastebin with the docker compose here if anyone is interested in this little puzzle : https://pastebin.com/Vsh6S23G This docker-compose is basically the one from the installation guide from the app website, I just changed some passwords and users related stuff which are written as .

I tried using Déjà Dup Backups to sync my entire Docker folder which also contains Tandoor and it complained it could not sync the postgres folder either so defo something wrong with the permissions. Which explains why I can't create a new recipe on the other computer, because it doesn't have permission for that specific task. Oddly enough, I get a server 500 error, but if I refresh the recipe list, the new recipe that led to the server 500 error is, actually, there.

Would a pastebin of the .env help?

ORIGINAL POST :

Hello again, I hope it's okay that I make several posts in a rather short time, I'm stumped.

I run a series of containers on old computer A for the recipe manager Tandoor Recipes.

I want to move it to another computer B so I initially thought I would: -copy the env and docker-compose -dump the source database

Move everything to the new computer, compose everything and fill the database from the dump.

I got 500 server errors so I went on Discord and asked what was the proper way of doing this. I've been told in theory I could shut everything down, pack my Tandoor folder in a zip, paste it on the target computer B and boot everything and voilà.

None of this works properly.

I do manage to get an instance of Tandoor running on my new computer, it displays every recipe I had originally, but it has an issue when trying to create a new recipe. I get a white page with "Server Error (500)". It does not happen on the original Tandoor, despite being all the same files in theory.

I noticed that on my source computer, the postgres DB directory changes permission when I start the container, as well as the directory containing the recipe pictures. So I'm wondering if wrong permissions might be corrupting data while copying stuff?

Thanks

 

Hello everyone!

I had a container with a DB crap itself yesterday so I'm trying to speed up my learning to back up stuff.

I came across a script that taught me how to back-up a containerized postgres db at given intervals and it works. I managed to create db dumps and restore them. I've documented everything and now my whole docker-compose/env etc are on git control.

There's one part of the script I don't decypher but I'd like to maybe change it. It is about the number of back-up copies.

Here's the line from the tutorial: ls -1 /backup/*.dump | head -n -2 | xargs rm -f

Can someone explain to me what this line does? I'd like to keep maybe 3 copies just in case the auto-backup backs up a rotten one.

Thanks!

Full code below:

backup:
    image: postgres:13
    depends_on:
      - db_recipes
    volumes:
      - ./backup:/backup
    command: >
      bash -c "while true; do
        PGPASSWORD=$$POSTGRES_PASSWORD pg_dump -h db-postgresql -U $$POSTGRES_USER -Fc $$POSTGRES_DB > /backup/$$(date +%Y-%m-%d-%H-%M-%S).dump
        echo ""Backup done at $$(date +%Y-%m-%d_%H:%M:%S)""
        ls -1 /backup/*.dump | head -n -2 | xargs rm -f
        sleep 86400
      done"
 

Hello everyone!

TL;DR: CP2077 worked via Lutris yesterday. Doesn't work today. No idea how to troubleshoot Linux, need pointers.

I've made the switch to Linux three days ago and I'm trying to figure out how to handle gaming. I've been recommended to use Lutris on my recent post about me switching to Linux and that's what I did.

Not gonna lie, I watched a couple videos, read a couple wikis and then jumped in the fire, eager to play, so I don't fully understand what I'm doing yet.

Yesterday, I told Lutris it could find my copy of Cyberpunk 2077 on my Windows disk. Filled the config panel as instructed by the youtube video (Linux Experiment) and launched the game.

Worked perfectly immediately.

Today, it crashes on launch with a RED error saying 'Cyberpunk 2077 flatlined'.

I'm on Pop_OS and did some updates yesterday so I suspect it might be related?

On Windows I'd know how to troubleshoot on my own, but here I'm confused as to where to start the investigation. Could you give me pointers for me to go under the hood and figure out what's going wrong?

Thanks for your help! :)

Summary of info: Pop_OS 22.04 up to date. Cyberpunk installed on different disk in a windows partition. Using Lutris. Need anything else? PC specs useful?

 

Edit2: Writing this from Pop_Os! I had experience with Mint for my Self hosting rig and wanted to see other pastures. Decided to rearrange my three drives, two of them are still Windows, another I emptied and dedicated to Pop OS. That way I still have easy fallback to Windows if I need to do something fast and then I'll know what I have to add to Linux over time.

First things first, I've setup auto-back up. For now it's google drive because it's the easy one. I have to figure how to self host Nextcloud and then use this as a backup storage.

Steam is installed and to be fair, I'm happy with the native linux games. Still going to take a look at Lutris and co out of curiosity.

I mostly miss MusicBee right now. Any recommendation for the most solid music player? Also, what's a good movie player? I used MPV, I need something capable to deal with 3440x1440 resolution and stretch properly.

Also, I wanted to install Bitwarden and the first thing that showed up is Snap Store. I remember hearing about Canonical in a bad way so should I stay clear from that?

Hey!

Today is the day. I finally got fed up with Windows booting up with an advert that I already had yesterday and had clicked on "remind me in three days" reluctantly. I'm finally tired of killing Telemetry.

Now that gaming is less important for me, I feel like now is a good time to switch mainly to Linux. I might keep a small spare drive with a Windows/Steam partition for the occasional incompatible game.

I've just started transferring my precious files to an external drive and I'm preparing for my Exodus.

Still unsure about the distro I'll choose, I would like to avoid distro hoping. But now I made up my mind, I'm leaving windows for the foreseable future.

I started self-hosting three months ago as a way to trialing Linux with the added bonus of being useful and my server is still up and alive so I'm confident I can use Linux without breaking it.

Any welcoming tips?

I'm a bit anxious about the big change, but also relieved I won't have to put up with the bloat/adverts.

Edit: Two hours in and so many kind and useful comments. Thanks for the welcome party! You're all a bunch of good humans :)

 

Hello!

I'm wondering if things have changed. I started learning guitar in 2010 or so, and back then at school we all had Guitar Pro or something similar and we used to learn by listening to the track and to the guitar pro tab in turns.

I've been seeing a lot of videos about computer virtual amps recently and realised the world of guitar has changed and I've been disconnected from it for a long time. Is the tab/guitar pro method still the popular one? How do you learn?

Since then, I've moved on to 100% by ear because there were no tabs for my artists anyway. But I'm just wondering what the world of guitar learning is like now?

 

Hello everyone,

I have containers that I want to get rid of because I can't make them work, but I can't seem to get rid of them. I'm using Portainer usually and the remove command on the container works, but they shortly reappear as newly created containers.

I moved to the terminal to try and sudo it out of existence manually, docker ps, the containers are here. So I sudo docker stop , the terminal confirms. Then sudo rm -f , confirmed again.

Docker ps shows they are gone, but a minute later another docker ps shows they are back up again.

I've looked it up online and people mentioned it might be running as a service. The command "docker service ls" returns an empty list.

How can I nuke those containers?

view more: next ›