this post was submitted on 25 Jun 2023
21 points (78.4% liked)

Selfhosted

40781 readers
1622 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I am not a computer engineer or a software developer. I have never set up a server in my life. I want to set up a server on my old computer by watching videos and doing the same things that were done. Is there a video that will tell me how to set up our own server as if I were 5 years old? Edit: To host my own lemmy account

top 11 comments
sorted by: hot top controversial new old
[–] ccdfa 10 points 2 years ago

If, as you say, you're not a computer expert or anything of the like and are just starting to learn, Lemmy might not be the best place to start. If I were you I'd look into other self-hosted things that you can use for yourself so you can learn about security and so you can get comfortable with the process. Hosting Internet-facing services is a big risk that you probably don't want to undertake.

[–] [email protected] 9 points 2 years ago

There certainly are videos out there for you but you should determine some goals that you're trying to accomplish. What kind of server? A website? An e-mail server? A local network file server? I think a good place to start as a beginner is to try to make a web server with a personal web site, but there can be a few hurdles with that. The main one is that your ISP may not offer a static IP address, meaning the IP address of your home network might change frequently. There are ways around that but it adds complexity. The fundamentals of what you'll need to host a website from home are:

  1. A PC with internet connection
  2. Install LAMP or WAMP stacks (Linux/Windows , Apache, MySQL, PHP)
  3. Set up port forwarding on your router to direct incoming web traffic to your server
  4. Register a domain (free ones exist) and direct it to your IP address

This video appears to do a good job of setting up a WAMP (windows) server: WAMP Video

But I recommend using LAMP (Linux). Although Linux may be less familiar to you, if you continue down the rabbit hole of server administration Linux will be so much more helpful to you in the long run.

[–] SheeEttin 8 points 2 years ago

You don't need your own server for a Lemmy account. Just register on any existing instance.

If you want to host your own instance, what's your goal with it? It's not just set-and-forget, you will have to maintain it against bots, attacks, keep it online, keep it backed up, keep it updated, and so on.

[–] althea_vestrid 6 points 2 years ago

What do you want to use the server for?

[–] [email protected] 5 points 2 years ago

I would advise you to let the experts do the job instead.

You need to protect your server from hackers, viruses, malware, and other threats that could compromise your data or harm your network. You also need to comply with the laws and regulations regarding the content and services that you host on your server. If you don’t know how to secure your server properly, you could expose yourself to legal liability or cyberattacks.

[–] [email protected] 4 points 2 years ago

Between Explaining Computers, Jeff Geerling & Network Chuck on Youtube you should be able to get a server up and running on an old machine. You can then install Lemmy via docker or whatever.

A home network server can be pretty safe & simple, exposing that server to the internet should take a little more thought and planning.


Digital Ocean or similar is likely the simplest way to try it.

https://www.digitalocean.com/products/droplets

Create a $4pm Ubuntu droplet & install Lemmy.

Probably cheaper to run per hour than an old pc and install of the OS is instant and disposable. If you do something stupid or get hacked, you just delete and start fresh.....no need to worry about l33t haxxors all in your home base.

Not watched but this sort of thing: https://www.youtube.com/watch?v=4fzCUEpFnDg

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

Yunohost might be a good point to start? Havent tried it yet but it seems to be a fast and safebway to host.

[–] [email protected] 2 points 2 years ago

+1 for yunohost.

tried umbrel too but yunohost gives you more freedom.

[–] adriator 3 points 2 years ago

(it seems like my previous reply hasn't been posted)

It really depends on what you're trying to achieve. If you're just trying to install a web server, then I'd recommend downloading XAMPP if you're on Windows, or if you're on Linux, you probably already have apache or nginx. To access services on those servers you're just going to have to find out the IP address of the server, and type it out in the browser (f.e. http://192.168.0.1/my_service). Those services should be available only on the same local network the server is on, unless you do port forwarding.

[–] Lerret 2 points 2 years ago
[–] [email protected] 1 points 2 years ago

LTT did an accessible if a little short and simple video a few years ago that is a good jumping off point. https://www.youtube.com/watch?v=zPmqbtKwtgw