dandroid

joined 1 year ago
[–] dandroid@dandroid.app 86 points 9 months ago (13 children)

Uh, I assumed that was a minimum viable product requirement.

[–] dandroid@dandroid.app 9 points 9 months ago

It was my first time using a Linux GUI. I was comfortable with CLI, but it was my first time having it installed on a laptop instead of just sshing into a server somewhere.

So naturally, instead of learning how the GUI worked, I tried changing it to be exactly like Windows. I was doing things like making it so I could double click shell scripts and other code files and they would run instead of opening them up in an editor. I think you see where this is going, but I sure as hell didn't.

Well, one of my coworkers comes over and asks me to run this code on this device we were developing. We were still in the very early stages of development, we didn't even have git set up, so he brought the code over on a USB stick. I pop it into my laptop. I went to check it once by opening it in an editor by double clicking on it... Only it ran the code that was written for our device on my laptop instead of opening in an editor.

To this day, I have no idea what it did to fuck my laptop so bad. I spent maybe an hour trying to figure out what was wrong, but I was so inexperienced with Linux, that I decided to just reinstall the OS. I had only installed it the day before anyway, so I wasn't losing much.

[–] dandroid@dandroid.app 12 points 9 months ago (1 children)

"I'm right, and if anyone disagrees, it's because they're brainwashed"

There's literally no possible way to argue against this type of logic.

[–] dandroid@dandroid.app 10 points 9 months ago (1 children)

I'm a long time Java developer who was recently moved to a project written in Go. All I can say is: What. The. Fuck. I swear, the people who designed the syntax must have been trying to make every wrong decision possible on purpose as a joke. The only think I can think of is that they only made design decisions on the syntax while high on shrooms or something.

Like, why in the actual fuck does the capitalization of a function change the scope?????? Who thought that was a good idea? It's not intuitive AT ALL. Just have a public/private keyword.

[–] dandroid@dandroid.app 3 points 9 months ago

It happens! I moderate !hockey@lemmy.ca, and recently !hockey@lemmy.world merged with us naturally.

[–] dandroid@dandroid.app 9 points 9 months ago (1 children)

That feeling when you're not a recent CS grad anymore 😭

I never even heard of rust when I graduated in 2016.

[–] dandroid@dandroid.app 5 points 9 months ago

If you have a good IDE, and Java has the best IDEs of any language I have used, then auto complete will take care of most of that for you.

[–] dandroid@dandroid.app 29 points 9 months ago* (last edited 9 months ago) (1 children)

So if I'm understanding correctly, if I created a Sublinks account, theoretically I would see all the same content, and I could use the same app, but it would be more optimized and have some additional features (on the web UI or if the app implemented those features)?

[–] dandroid@dandroid.app 1 points 10 months ago* (last edited 10 months ago) (1 children)

I'm sorry, I must have responded to the wrong comment. That comment was supposed to be in an entirely different conversation.

Edit: Oh, I just reviewed my inbox. I thought you replied to a different comment of mine. I'm so dumb. Carry on.

[–] dandroid@dandroid.app 1 points 10 months ago (3 children)

How are you closing the program? I don't mean with the X button on the desktop environment. I mean command line programs.

[–] dandroid@dandroid.app 1 points 10 months ago

If no one else has this issue, it could very well be something unique to my internet connection!

[–] dandroid@dandroid.app 2 points 10 months ago (7 children)

It happens constantly both on my laptop (suse) and my Steam Deck (arch). Same exact behavior. I gave up trying to debug it, and I just keep retrying the update command until the list is empty.

4
submitted 11 months ago* (last edited 11 months ago) by dandroid@dandroid.app to c/lemmy_support@lemmy.ml
 

Since the CSAM attacks, I have disabled pictrs on my instance until I can turn off caching images from other instances. However, I haven't been keeping up on pictrs development. I know there were talks about making this feature, but I am unable to find any information about pictrs and the state of development.

Is pictrs open source? If yes, does anyone have a link to the source? If no, is there anywhere I can find information about the state of development of the project? The only thing I can find is its docker hub page here, which has a completely blank description.

 

Hi All. I have been running my own lemmy instance for a while now. I set it up sort of as an experiment, and then I realized that I liked having my own instance, as it makes me (mostly) immune to outages due to things outside my control, defederation drama, etc. So I decided that I am going to stick with having my own instance. But obviously the amount of space it is taking grows, ~~and I apparently have zero foresight~~ and I only have so much space on the SSD that I initially put lemmy on. So I wanted to migrate everything over to my NAS.

I am mounting a volume on my NAS via NFS. I copied over my whole lemmy directory with cp -a, and it appeared that all of the permissions and file ownership copied over properly. However, when I run the containers, the postgres container is constantly crashing. The logs say "Permission denied" and then "chmod operation not permitted" back and forth forever. I opened a shell in the container to see what was going on, and I could see that the container's root user could not cd into /var/lib/postgres/data, but the postgres user could.

I have no_root_squash set for my NFS share if that is important, but I doubt that is even relevant since it is only the root user inside the container. I'm running my lemmy instance with rootless podman, so root inside the container actually maps to the UID of the user running the podman commands outside the container. That said, when I run this in my local filesystem, while my podman user can't access the postgres volume outside the container, as root inside the container it can access it.

I hope this isn't too confusing, and I hope that someone can help me with this. I know it is a very specific setup being rootless podman and trying to run it on an NFS share.

Today is also the first time I have every tried using NFS, as my NAS was always using SMB before, but I needed file ownership to do this. So it's very possible I just need to tweak some NFS settings.

Edit:

I sort of got it working, but it's mega hacky. It's not a permanent solution, but it gives me some insight into what is going wrong.

I set the permissions on the postgres volume in my host to be g+rx, and it worked. However, as soon as the container started, it changed the permissions back to 700. The thing is, "root" doesn't actually need access to the directory. The postgres user has access, and that's all that needs it. So it this actually works. But if I need to restart the container for any reason, it no longer works. So I would need to set the permissions to g+rx every time, which is just not a good solution.

12
submitted 1 year ago* (last edited 1 year ago) by dandroid@dandroid.app to c/linux@lemmy.ml
 

Hi all. I'm hoping to get some help from folks with more Linux experience than me. I'm not a Linux noob, but I'm far from an expert, and I have some huge gaps in my knowledge.

I have a Synology NAS that I am using for media storage, and I have a separate Linux server that is using that data. Currently the NAS is mounted with samba. it automatically mounts at boot via an entry in /etc/fstab. This is working okay, but I don't like how samba handles file ownership. The whole volume mounts as the user who mounts it (specified in fstab for me), and all the files in the volume are owned by that user. So if I wanted two users on my server to have their own directory, I would need to mount each directory separately for each user. This is workable in simple scenarios, but if I wanted to move my Lemmy instance volumes to my NAS, the file ownership of the DB and the pictrs volumes would get lost and the users in the containers wouldn't be able to access the data.

Is there a way to configure samba to preserve ownership? Or is there an alternate to samba that I can use that supports this?

Edit:

Okay, so I set up NFS, and it appears to do what I want. All of the user IDs carry over when I cp -a my files. My two users can write to directories that I set up for them that are owned by them. It seems all good on the surface. So I copied my whole lemmy folder over and tried to start up the containers, and postgres still crashes. The logs say "Permssion denied" and "chmod operation not permitted" back and forth forever. I tried to log into my container and see what is going on. Inside the container, root can't access a directory, which is bizarre. The container's root user can access that directory when I am running the container in my local filesystem. As a test, I tried copying the whole lemmy directory from my local filesystem to my local filesystem (instead of from local to NFS), and it worked fine.

I think this exact thing might be out of the scope of my original question, and I might need to make a post on !selfhosted@lemmy.world instead, as what I wanted originally has been accomplished with NFS.

 

Hi all,

I currently have a Linux install from an old 256GB SATA SSD that I inherited. It was originally used as a swap drive in another person's RAID server for about 7 years, then it was given to me, where I put my own Linux install that I have been running for about 5 years.

About a year ago, I acquired a new computer that has an NVMe SSD. It originally ran windows, but I dropped in my SSD with my Linux install, installed grub on the NVMe SSD, and booted to the old SSD.

I am mildly concerned about with this SSD being so old, it could crap out on me eventually. I remember that being a topic of discussion when SSDs first hit the market (i.e. when the one that I am using was made). So I was thinking of wiping the 1TB NVMe SSD that is currently unused in this computer and migrating my install to it. Now, I know I could copy my whole disk with dd, then expand the partition to make use of the space. But I was wondering if I could change the filesystem to something that had snapshots (such as btrfs).

Is it possible to do this, or to change filesystems do I need to create a new Linux install and copy all the files over that I want to keep?

 

So, I spent the last few days researching and then finally setting up mailcow. I got my domain name, my wildcard certificate, got all the containers up, disabled ipv6 (I don't have it set up on my home router and am too lazy to set it up tbh), created a domain and an mailbox, etc.

Well, when testing it late last night, I found that I could receive mail but was getting timeouts when sending mail. After some googling, I found out that this will happen if port 25 is not open. Using traceroute, I found that port 25 traffic is not going outside my home network. And sure enough, I found on my ISP web site that I need to have a business account to unblock port 25, which costs twice what I am paying for internet now.

So what are my options? Is there any way around this? Do I need to host this elsewhere, such as AWS? Can I use a proxy or something that can translate it to a different port for me?

Edit: Yeah, so I just set up an alias to my existing email address. It isn't what I wanted to do, but as many have pointed out, I'm fighting a losing battle here. :(

 

I just set up my lemmy instance today (yay!). I am noticing that when I search for communities, the community is being fetched, but the posts, comments, votes, and pretty much all the other data is not always being fetched. Probably around 2/3rds of the time no data is fetched aside from the community itself. Sometimes one or two posts which may be years old, and maybe a couple of comments.

Is this a known issue or is this perhaps the product of a mechanic I am not understanding? From reading the documentation here, I was under the impression it should fetch 20 posts, and I would expect it to get the comments and votes for those posts as well.

Is there any known fix or workaround for this? Is there a way to trigger downloading the posts in a community manually or retry fetching the data?

view more: next ›