Another UI for Lemmy Insances - Lemmy
lemmy.ml
external-link
Hi, I tried to make a classic interface for Lemmy. U can see this in uebishe.com [http://uebishe.com] [https://lemmy.ml/pictrs/image/d3a8709b-846f-4444-b6a2-f1ab55ebb4d6.png] My work is available for general use, if you want - you can find the necessary folders on my github. https://github.com/soverxxx/lemmy-ui [https://github.com/soverxxx/lemmy-ui] https://github.com/soverxxx/lemmy [https://github.com/soverxxx/lemmy] It is necessary to install both of them. I will try to support Lemmy feature updates for this UI. A few clarifications: >- This UI only works when selecting the theme “Litera.css” > - Other themes don’t work as they should > - I have already started developing a dark theme It still has a lot of bugs and redneck code (mine), but it’s convenient to use it.

I wanna be back for develop another UI for Lemmy, which will look like modern Reddit, but better.

Earlier i install lemmy with this guide: https://www.youtube.com/watch?v=4fzCUEpFnDg

but now, devs made changes around nginx, so… i cant install Lemmy now. Docker sends me errors))

If you are interested in developing a new UI, please contact me, I need the help of people who understand the installation issue.

I learned about #teddit!

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

but is just front-end for Reddit.

Salamander
link
fedilink
11Y

Do you want to install a fresh instance, or do you want to upgrade an instance?

If you are installing fresh, most of that tutorial is still going to work out. But you now need to pull the config file this way:

wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/config/defaults.hjson lemmy.hjson

If you install the more recent docker version, you don’t have to install docker-compose the same way. Follow the instructions from the website, and use ‘docker compose’ instead of ‘docker-compose’.

The nginx configuration does not need to change.

What problems are you getting?

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Hello again.

I managed to run version 0.17 only by installing 0.16.4 (with your guide) and then upgrading to 0.17.0 (according to the official guide).

I think that a new guide is not required. It just seems that initially there was a problem in the distribution of the new Lemmy itself, says Dessalines https://github.com/LemmyNet/lemmy/issues/2700

For future visitors of this topic who have encountered errors during the update -> if you have an error after the update, you may not have correctly rewritten the lines in the lemmy-ui Block. They must contain 2 words LEMMY: LEMMY_UI_LEMMY_***********

PS: Im running to start dev new UI :)

Salamander
link
fedilink
11Y

Great job figuring that out!

At some point it would be fun to work on some new guides anyway :-)

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Yes i install on clear VDS fresh instance.

Ok, i write my steps here, hope you can help me and other users :)

  1. Install VDS ubuntu 20

  2. Go to Putty, connect ssh with root;pass

  3. apt -y update && apt -y upgrade

  4. apt -y install vim

  5. Now i need instal docker

apt -y install ca-certificates curl gnupg lsb-release

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo “deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt -y update

apt -y install docker-ce

  1. Now need delete Apache for stability nginx:

sudo /etc/init.d/apache2 stop

sudo apt-get purge apache2

  1. Lets go install nginx

apt -y install nginx

sudo systemctl enable nginx

sudo systemctl start nginx

sudo systemctl status nginx

Ok, all works. There are no errors.

  1. Install certbot for https

apt install certbot python3-certbot-nginx

certbot certonly --nginx -d uebishe.com,www.uebishe.com

write my mail, and agree all steps

  1. Now i skip old step about “wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -O lemmy.conf”

  2. mkdir /var/www/uebishe.com

cd /var/www/uebishe.com

wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/config/defaults.hjson

wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml

mv defaults.hjson lemmy.hjson

mkdir -p volumes/pictrs

chown -R 991:991 volumes/pictrs

vi lemmy.hjson

change hostname to “uebishe.com” (without other changes, for the test)

And now, we run Docker Compose?

docker compose up -d

On step 6/7 in “Container uebishecom-proxy-1” terminal told me:

Error response from daemon: driver failed programming external connectivity on endpoint uebishecom-proxy-1 (e52f822be8a0dc7dab6a590c47a4854b6cf3878b9bf079688eadfd8e6ecf0092): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use

hmm… your advice?

Salamander
link
fedilink
11Y

Remove the following blocks from the docker-compose file:

networks:
  # communication to web and clients
  lemmyexternalproxy:
  # communication between lemmy services
  lemmyinternal:
    driver: bridge
    internal: true
  proxy:
    image: nginx:1-alpine
    networks:
      - lemmyinternal
      - lemmyexternalproxy
    ports:
      # only ports facing any connection from outside
      - 80:80 
      - 443:443
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      # setup your certbot and letsencrypt config 
      - ./certbot:/var/www/certbot
      - ./letsencrypt:/etc/letsencrypt/live
    restart: always
    depends_on:
      - pictrs
      - lemmy-ui

And try again. Does it work?

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Terminal talk: service “pictrs” refers to undefined network lemmyinternal: invalid compose project

Salamander
link
fedilink
11Y

Sorry, I did not realize that these files had not yet been updated with the changes necessary for version 0.17.0, which are described here: https://github.com/LemmyNet/lemmy/blob/main/RELEASES.md#lemmy-v0170-release-2023-01-31

I could not find an example of the files configured correctly in github, so I have uploaded some example files. You get them this way:

wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/lemmy.hjson
wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/docker-compose.yml

Then modify the variables inside {}, like the domain name and the database password.

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Oh maaan, Kradiz that you! BIG THX FOR YOUR GUIDE ON YOUTUBE. I will write soon if I succeeded.

Salamander
link
fedilink
11Y

No worries! Good luck!

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Docker-compose been finished without errors, all good, but site doesnt work. I think there is some kind of error around the nginx installation on my 7 and 8 steps.

only http://ww.uebishe.com/ (straight HTTP and WWW) respond me:

Salamander
link
fedilink
11Y

Or, I have made an nginx config file that will work for you

If you already created an nginx configuration file, move it somewhere else. Then, get the new configuration file to the nginx folder, and then restart the nginx service by running these two commands:

sudo wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/uebishe.conf /etc/nginx/sites-enabled/uebishe.conf

sudo systemctl restart nginx
Salamander
link
fedilink
11Y

Ah! So you skipped this step:

Now i skip old step about “wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -O lemmy.conf”

You need to have the lemm.conf file under /etc/nginx/sites-enabled, this is the file that tells nginx how to manage the connection. Don’t skip that step! Get that file and modify it by adding your domain name

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Ok. I go try it from scratch again.

Yes i install on clear VDS fresh instance.

Ok, i write my steps here, hope you can help me and other users :)

  1. Install VDS ubuntu 20

  2. Go to Putty, connect ssh with root;pass

  3. apt -y update && apt -y upgrade

  4. apt -y install vim

  5. Now i need instal docker

apt -y install ca-certificates curl gnupg lsb-release

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo “deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt -y update

apt -y install docker-ce

  1. Now need delete Apache for stability nginx:

sudo /etc/init.d/apache2 stop

sudo apt-get purge apache2

  1. Lets go install nginx

apt -y install nginx

sudo systemctl enable nginx

sudo systemctl start nginx

sudo systemctl status nginx

Ok, all works. There are no errors.

  1. Install certbot for https

apt install certbot python3-certbot-nginx

certbot certonly --nginx -d uebishe.com,www.uebishe.com

write my mail, and agree all steps

  1. wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -O lemmy.conf

change params on

vi lemmy.conf

systemctl restart nginx

And now we have problem:

and journalctl -xe told me:

Salamander
link
fedilink
11Y

Try removing the lemmy.conf file from /etc/nginx/sites-enabled,

And then run:

sudo wget https://raw.githubusercontent.com/Kradyz/Tutorials/main/files/uebishe.conf /etc/nginx/sites-enabled/uebishe.conf

sudo systemctl restart nginx

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

nah, the same problem.

in addition, now I have run out of the limit for reissuing SSL certificates. Due to the fact that I cleaned and installed it from scratch more than five times. It seems that the limit will be reset tomorrow.

Salamander
link
fedilink
11Y

Oh no! It is possible to save your SSL certificates by simply copying the files into your computer, then you don’t need to run the certbot again.

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

This is the least of the problems. At least it is solved simply by waiting :D

Maybe you will record a new video manual about how you manage to install lemmy 0.17?

Salamander
link
fedilink
11Y

I can do that, but I can’t right now, I am very busy writing for my thesis unfortunately :/

If I manage to write enough tonight I might be able to do it tomorrow.

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Yes, I understand, anytime you’re free.

It’s just that in the coming months I have a lot of time to continue developing the UI and I decided that it would be useful for the Lemmy community. Considering that I have already done this before. Hope i dont get stuck in such a stupid stage :D

Salamander
link
fedilink
11Y

I think that if you use the new docker-compile file, the one that includes the NGINX block, then you might not need to go through the step of the nginx configuration.

I have not tested this myself though, but I can test it when I make the updated tutorial.

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

https://shownotes.opensourceisawesome.com/lemmy/

now I’m trying to make an installation using this guide, but I’m facing similar problems. unfortunately, my knowledge is not enough to solve them, but I think it will be interesting for you to familiarize yourself with this in order to gain some knowledge, I do not know.

I may be wrong, but it seems all the problems are due to nginx :D

UPD: I also tried to do the following. I installed version 0.16.4 with this guide from opensourceisawesome.com, it was installed normally.

But when I tried to upgrade to 0.17 according to the official guide, I ran into problems again, the site crashed.

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
11Y

Find on github comment about it. I will try

docker run --detach --publish 80:80 --name webserver nginx

but this doesnt help

TankieReplyBot
bot account
link
fedilink
11Y

A YouTube link was detected in your post. Here are links to the same video on Invidious, which is a YouTube frontend that protects your privacy:

@SOVERSHENEN@lemmy.ml
creator
link
fedilink
1
edit-2
1Y

deleted by creator

Support / questions about Lemmy.

  • 0 users online
  • 12 users / day
  • 24 users / week
  • 26 users / month
  • 19 users / 6 months
  • 11 subscribers
  • 140 Posts
  • 444 Comments
  • Modlog