this post was submitted on 05 Jul 2023
19 points (100.0% liked)

Digital Freedom

1 readers
1 users here now

Governments, Big Business, & Tyrants are using technology to control and censor you. Here we discuss how to break free.

founded 2 years ago
MODERATORS
top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (2 children)

Ha, that's awesome indeed!

(EDIT: Please don't read this without reading the reply, as there is an important correction. I am not 100% sure that the docker container pulled through ghcr.io is guaranteed to be built from the source code that is publicly available)

Since the github page doesn't explain how the installation works for those who aren't familiar with docker, I can add a quick explanation:

If you are using Linux and you have already installed docker, all you need to do is to run the following command in the terminal (replacing lemmydomain.com with the instance you use):

docker run -it -e LEMMY_DOMAIN='lemmydomain.com' -p "8080:8080" ghcr.io/rystaf/mlmym:latest

This command will create the docker container directly by pulling the code from github, and it will host the application on your computer, accessible at port 8080. So, you would then open your browser and type "localhost:8080", and it this will take you to your instance but with an interface that looks like the old reddit.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Small correction. You aren't actually running the latest from github. You are running the latest from his docker hub. What ever the latest image he built and uploaded to ghcr.io/rystaf/mlmym

If you want to run this locally without docker you can do it by installing git and golang.

git clone https://github.com/rystaf/mlmym.git;
cd mlmym;
go build;
LEMMY_DOMAIN='lemmydomain.com' ./mlmym --addr  "0.0.0.0:8080"

You should be able to build it with docker too if you didn't want to install a go compiler.

git clone https://github.com/rystaf/mlmym.git;
cd mlmym;
docker build -t mlmym . ;
docker run -it -e LEMMY_DOMAIN='lemmydomain.com' -p "8080:8080" mlmym;

You never really know what is running on someone's docker repository to be honest. They could have compiled in a crypto miner into the executable for all we know. Even though they most likely did not.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Ah, thank you! I've edited my comment to make sure that if someone else reads what I wrote, they see your reply too.

I was trying to help others, but now I'm the confused one that needs help.

I was looking at the site ghcr.io, and my impression is that this site is similar to dockerhub but run by github, and I (perhaps wrongly) assumed that it guarantees that the container is built from the source that is accessible through the github repository.

This puts me in the uncomfortable situation that my comment could misguide someone when my intention is to help, but I hope that with the help of your comment and the edit it is enough to avoid that.

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

I was looking at the site ghcr.io, and my impression is that this site is similar to dockerhub but run by github, and I (perhaps wrongly) assumed that it guarantees that the container is built from the source that is accessible through the github repository.

I'm actually not sure if github has a auto build system. It might somewhere. But he should be able to override it with a

docker push ghcr.io/OWNER/IMAGE_NAME:VERSION

Maybe there are some safeguards in github somewhere I don't know about.

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

Maybe there are some safeguards in github somewhere I don’t know about.

I don't know either, as I haven't published my own docker containers via dockerhub nor this github site. So I've edited my comment even more to warn people of this potential risk. Thank you!

[–] [email protected] 1 points 1 year ago (1 children)

That is DWM, right? What patches are you using?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, it is suckless dwm!

I set it up maybe 2 or 3 years ago. Around that time I spent about a week playing with the configuration and applying patches, but today I don't remember which patches I used, and I don't know of an easy way to check. It is pretty minimal though - I think I have some patch to scroll through the terminal, something related to navigating through the windows, and other simple functional additions. Nothing fancy.

[–] [email protected] 1 points 1 year ago

I was trying to set it up few weeks ago. With my 0 coding experience it wasn't an easy task. And a lot of the patches aren't made for the latest version.

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

Holy shit that is awesome. Thanks!

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

I was surprised how complete it is. And it's in golang. It will run faster and more efficient than the main Lemmy UI.

load more comments
view more: next ›