User Tools

Site Tools


howto:aredn:linuxserver:home

This is an old revision of the document!


Linux Server

Prerequisites

Running a home Linux Server on AREDN is pretty simple.

  • Install LinuxMint Xfce on a cheap laptop.
  • Update it and reboot if necessary.
  • Change the Linux hostname, which will identify the computer in various place on AREDN. I renamed mine VA7FI-Linux:
    sudo hostnamectl set-hostname VA7FI-Linux
  • Install Apache:
    sudo aptitude install curl apache2

Website

The website folder is located here: /var/www/html/ Anything you put in there (with the right permissions) will be visible to others on the AREDN network. Let's get a few things out of the way first.

  • Create a link to your home folder for ease of access:
    ln -s /var/www/html ~/
  • Let's change the ownership of everything in that folder so we (the user) and the web process can access them easily. My username is aredn, which you should replace with your own username.
    sudo chown aredn:www-data -R /var/www/html/
  • Let's change the permissions:
    sudo chmod 770 -R /var/www/html/

In general, those permissions are ok, but depending on what you're running as a web service, they could be too permissive. That being said, since we're not exposing our site to the open internet, we're probably ok with those.

We're now ready to write our fist webpage! You can delete the file index.html in the webfolder and create one of your own. There's a simple online html editor that's very convenient to use for small pages: simply edit the text you want on the left, and copy the html code on the right into your index.html file. Here's VA7FI's page as an example.1)

AREDN Node Configuration

1)
You must be on the AREDN network to view the page
howto/aredn/linuxserver/home.1636504991.txt.gz · Last modified: 2021/11/09 16:43 by va7fi