Tywele

joined 1 year ago
MODERATOR OF
[–] Tywele@lemmy.dbzer0.com 1 points 2 hours ago

Due to YouTube Music being included in that it's way too expensive for just removing ads. They need to add a tier that's cheaper to just remove ads.

[–] Tywele@lemmy.dbzer0.com 1 points 1 day ago

It took me about a month maybe.

[–] Tywele@lemmy.dbzer0.com 1 points 3 days ago (1 children)

It tries to install the associated package when given a path to a configuration file.

 

Solution: I just had to create the file

I wanted to install Pi-Hole on my server and noticed that port 53 is already in use by something.

Apparently it is in use by systemd-resolved:

~$ sudo lsof -i -P -n | grep LISTEN
[...]
systemd-r    799 systemd-resolve   18u  IPv4   7018      0t0  TCP 127.0.0.53:53 (LISTEN)
systemd-r    799 systemd-resolve   20u  IPv4   7020      0t0  TCP 127.0.0.54:53 (LISTEN)
[...]

And the solution should be to edit /etc/systemd/resolved.conf by changing #DNSStubListener=yes to DNSStubListener=no according to this post I found. But the /etc/systemd/resolved.conf doesn't exist on my server.

I've tried sudo dnf install /etc/systemd/resolved.conf which did nothing other than telling me that systemd-resolved is already installed of course. Rebooting also didn't work. I don't know what else I could try.

I'm running Fedora Server.

Is there another way to stop systemd-resolved from listening on port 53? If not how do I fix my missing .conf file?

[–] Tywele@lemmy.dbzer0.com 4 points 4 days ago (1 children)

Didn't know about Pipeline. Looks interesting.

[–] Tywele@lemmy.dbzer0.com 8 points 5 days ago

About time. Maybe they will finally be able to compete with DLSS and XeSS in terms of quality.

[–] Tywele@lemmy.dbzer0.com 1 points 6 days ago

Then you misunderstood me because I know that Bluesky is not part of the fediverse. With my comment I was trying to say that I would be happy to be able to communicate solely in ATProto apps with one account instead of with multiple accounts in ActivityPub.

[–] Tywele@lemmy.dbzer0.com 1 points 6 days ago (2 children)

Why did you write your comment as an answer to my comment then if it's not directed at me?

[–] Tywele@lemmy.dbzer0.com 0 points 6 days ago* (last edited 6 days ago) (4 children)

I never said that Bluesky is part of the fediverse for example and the rest of your comment seems to me like it should be directed to OP or devs of ATProto and not me.

[–] Tywele@lemmy.dbzer0.com 0 points 6 days ago* (last edited 6 days ago) (1 children)

Yes and that's why I don't understand their comment and even less why it gets downvoted. They seem to complain about something to me that I didn't even mention and the topic was not about combining ATProto with ActivityPub or whatever.

Maybe relate wasn't the right word. English isn't my native language.

[–] Tywele@lemmy.dbzer0.com -1 points 6 days ago (9 children)

How does your comment relate to my comment?

[–] Tywele@lemmy.dbzer0.com -1 points 1 week ago (11 children)

I also think that this is how it should be. Initially I thought I wouldn't need multiple accounts for the fediverse. Right now I'm more active on Bluesky than on Mastodon so it would be great to have an AT Protocol equivalent to Lemmy/Reddit and all that without having to create a new account for it.

[–] Tywele@lemmy.dbzer0.com 21 points 1 week ago (2 children)

It's not impossible for them to do. They just don't want to do it.

 

I'm a beginner in networking things but due to my ISP I can only open a certain range of ports in my router to be accessible from the outside of my network (something like ports 11000-11500).

That means I can't open port 443 to access my reverse proxy from the outside. Is it possible to redirect all traffic that's coming from one of the ports in the range to port 443 of my server?

I haven't found that possibility in my router (Fritzbox 7530) so is there a way to do this on my server (running Fedora Server)?

 

I've tried every tutorial I could find. From symlinking the desired terminal to gnome-terminal, or using the update-alternatives command to using the gsettings command to set the default terminal. Nothing works.

What is the definitive way to set the default terminal for this GUI action? And why is this so hard to do?!

I'm on Fedora if it's relevant.

 

Is there a PDF viewer/reader that supports JavaScript like Adobe Reader?

For example for D&D I use the MorePurpleMoreBetter character sheet that uses tons of JavaScript to automate many things.

Right now I'm using the Adobe Reader snap package that runs it via Wine.

 

I have used FreshRSS before but I was always annoyed that some sites don't provide RSS feeds and that even if they provide feeds they don't provide the whole content through it and only a preview.

What do you recommend for the perfect RSS setup? What are you using? Which app are you using to read them?

 

I have set my new name everywhere I can in the AppleID settings but the old name is still showing up in this place, and maybe in other places which I haven't seen yet. But how can I get my chosen name to show up here?

(for clarity, this is the profile picture selection on iPadOS)

Solution: The solution for me was that I had to change my name in the contacts.

More comprehensive solution here

 

After getting fed up with TrueNAS (after it borked itself for the third time and I would have had to set it up AGAIN) I decided to learn Ansible and write a playbook to setup my homeserver that way.

I wanted to share this playbook with you in case someone might find it useful for their own setup and maybe someone has some tips on things I could improve.

This server will not be exposed to the public/internet. If I want to access a service on it from outside my home network I have Wireguard setup on my router to connect to my home network from anywhere.

Keep in mind that I'm relatively new to sysadmin stuff etc so don't be too harsh please 😅

 

Edit: I found the solution. I was missing a few environment variables.

These are the functioning Ansible tasks to deploy Immich:

Solution

- name: create Immich network
  community.docker.docker_network:
    name: immich-network
    state: present

- name: deploy Immich-Redis
  community.docker.docker_container:
    name: immich-redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
    restart_policy: always
    networks: 
      - name: immich-network

- name: deploy Immich-Postgres
  community.docker.docker_container:
    name: immich-postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/postgres:/var/lib/postgresql/data"
    env:
      POSTGRES_DB: "{{ immich_postgres_db_name }}"
      POSTGRES_USER: "{{ immich_postgres_db_user }}"
      POSTGRES_PASSWORD: "{{ immich_postgres_db_password }}"
    networks: 
      - name: immich-network

- name: deploy Immich-Machine-Learning
  community.docker.docker_container:
    name: immich-machine-learning
    image: ghcr.io/immich-app/immich-machine-learning:release
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/model-cache:/cache"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      DB_HOSTNAME: immich-postgres
      REDIS_HOSTNAME: immich-redis

- name: deploy Immich-Microservices
  community.docker.docker_container:
    name: immich-microservices
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'microservices']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime:ro
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      DB_HOSTNAME: immich-postgres
      REDIS_HOSTNAME: immich-redis

- name: deploy Immich-Server
  community.docker.docker_container:
    name: immich-server
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'immich']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "2283:3001"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"
      DB_DATA_LOCATION: "{{ nvme_mount_point }}/immich/postgres"
      DB_HOSTNAME: immich-postgres
      REDIS_HOSTNAME: immich-redis

I'm trying to install Immich via Ansible and so far so good. The containers are all running and as long as I don't try to access it the logs all look fine but as soon as I try to access the GUI I get the following error spammed in the immich-server container log and the browser just shows a timeout and doesn't connect to the GUI.

[Nest] 7  - 05/02/2024, 9:20:45 AM   ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: Connection terminated due to connection timeout
    at Connection.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:132:73)
    at Object.onceWrapper (node:events:632:28)
    at Connection.emit (node:events:518:28)
    at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:63:12)
    at Socket.emit (node:events:518:28)
    at TCP.<anonymous> (node:net:337:12)
Error: connect ETIMEDOUT
    at Socket.<anonymous> (/usr/src/app/node_modules/ioredis/built/Redis.js:170:41)
    at Object.onceWrapper (node:events:632:28)
    at Socket.emit (node:events:518:28)
    at Socket._onTimeout (node:net:589:8)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect'
}

Here are my Ansible tasks to deploy Immich:

Ansible tasks with missing ENV variables

- name: create Immich network
  community.docker.docker_network:
    name: immich-network
    state: present

- name: deploy Immich-Redis
  community.docker.docker_container:
    name: immich-redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
    restart_policy: always
    networks: 
      - name: immich-network

- name: deploy Immich-Postgres
  community.docker.docker_container:
    name: immich-postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/postgres:/var/lib/postgresql/data"
    env:
      POSTGRES_DB: "{{ immich_postgres_db_name }}"
      POSTGRES_USER: "{{ immich_postgres_db_user }}"
      POSTGRES_PASSWORD: "{{ immich_postgres_db_password }}"
    networks: 
      - name: immich-network

- name: deploy Immich-Machine-Learning
  community.docker.docker_container:
    name: immich-machine-learning
    image: ghcr.io/immich-app/immich-machine-learning:release
    restart_policy: always
    volumes:
      - "{{ nvme_mount_point }}/immich/model-cache:/cache"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"

- name: deploy Immich-Microservices
  community.docker.docker_container:
    name: immich-microservices
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'microservices']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"

- name: deploy Immich-Server
  community.docker.docker_container:
    name: immich-server
    image: ghcr.io/immich-app/immich-server:release
    restart_policy: always
    command: ['start.sh', 'immich']
    volumes:
      - "{{ hdd_mount_point}}/immich/library:/usr/src/app/upload"
      - /etc/localtime:/etc/localtime
    ports:
      - "2283:3001"
    networks: 
      - name: immich-network
    env:
      DB_DATABASE_NAME: "{{ immich_postgres_db_name }}"
      DB_USERNAME: "{{ immich_postgres_db_user }}"
      DB_PASSWORD: "{{ immich_postgres_db_password }}"

The variables are:

immich_postgres_db_name: immich
immich_postgres_db_user: postgres
immich_postgres_db_password: postgres

for testing purposes.

I'm currently running this on a Hyper-V VM running Fedora 39 Server Edition.

I don't know how to fix this issue, can someone help me?

I found this issue on the Immich GitHub where I found a possible fix regarding the firewall that it might block something but it didn't really help.

So I'm thankful for any ideas you can throw my way. Tell me if you need any more info.

Edit: Overlooked an error in the log and added it to the post.

 

cross-posted from: https://lemmy.dbzer0.com/post/19310012

Hello,

I need some help here. I've been trying to write my own Ansible playbook to setup my homeserver. The storage devices on this server are 1 NVMe SSD and 2 HDDs which I want to setup as a mirror. I want to setup all storage devices as either BTRFS or ZFS but I'm having trouble finding the correct modules to use in Ansible for this.

I have also found some roles in Ansible Galaxy but those are either not explained enough for me to use and seem overwhelming to use (especially in comparison to the terminal commands that are needed to setup the BTRFS volumes or ZFS pools). But just using the builtin command module in Ansible somehow feels wrong and not the right way to go about this.

Can someone point me in the right direction? Right now I think I will prefer using BTRFS.

 

I remember that it was possible at one point but now I don't seem to be able to find the option to do so.

Can someone point me in the right direction?

And I don't mean cancelling the membership.

Solution: At some point Patreon turned all "Followers" (there used to be an option under the creator name in the 3 dots menu to "follow" someone) into "Free Tier Memberships". On the website you can't see these "Free Tier Memberships" under Settings->Memberships. You have to go to each creator you have in your list on the left, go to the membership tab and click on the pencil icon to edit your membership, where you can cancel it.

In the app this whole thing is much easier as you get to see all your memberships including the "Free Tier Memberships" under the memberships point when clicking on your profile. From there you can click on every creator, then on the 3 dots menu in the top right, select "Your membership" and there you can cancel the membership.

I have no idea why this has to be so convoluted.

Edit: Oh and if the creator doesn't exist anymore you need to block and unblock them again to remove them from your list because you can't cancel a membership of a creator that doesn't exist anymore.

 

So I'm trying to play around with Fedora in a VM with VMWare Workstation Player (v17.5.1) but I'm running into a problem I don't know how to solve. I use the Fedora 39 1.5 ISO file which is the most current version that's available for download and after installing it in the VM everything works fine. I setup the install and I can use it, still working after rebooting it. But as soon as I do sudo dnf update or update everything via the Software Center the screen of the VM goes black and I can't use the VM anymore. No matter if I reboot it or not. When I power off the VM I can see the Fedora loading icon for a short period but that's it.

This also happened with NixOS but not with Fedora Server. I guess it must have something to do with the DE as both distros were installed with Gnome but I don't know how to solve it. I already tried reinstalling VMWare to no avail. I will try installing a distro with KDE to maybe rule out one cause.

Does anyone have any idea what's going on here? I'm running VMWare on Windows 11.

view more: next ›