howto:aredn:linuxserver:home
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:aredn:linuxserver:home [2021/11/09 12:05] – [Prerequisites] va7fi | howto:aredn:linuxserver:home [2021/11/09 19:56] – [AREDN Node Configuration] va7fi | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | Running a home Linux Server on AREDN is very easy. | + | Running a home Linux Server on AREDN is pretty simple. |
- | * You can install | + | * Install |
- | * Update | + | * Update and reboot |
- | * Change the Linux hostname. | + | * Change the Linux hostname, which will identify the computer in various places on AREDN. I renamed mine to '' |
sudo hostnamectl set-hostname VA7FI-Linux | sudo hostnamectl set-hostname VA7FI-Linux | ||
- | </ | + | </ |
* Install Apache:< | * Install Apache:< | ||
sudo aptitude install curl apache2 | sudo aptitude install curl apache2 | ||
</ | </ | ||
+ | |||
+ | ===== Website ===== | ||
+ | |||
+ | ==== The html Folder ==== | ||
+ | |||
+ | The website folder is located here: ''/ | ||
+ | * Create a link to your home folder for ease of access:< | ||
+ | ln -s / | ||
+ | </ | ||
+ | |||
+ | * Change the ownership of everything in that folder so you (the user) and the web process can access them easily. | ||
+ | sudo chown aredn: | ||
+ | </ | ||
+ | |||
+ | * Change the permissions:< | ||
+ | sudo chmod 770 -R / | ||
+ | </ | ||
+ | |||
+ | |||
+ | In general, those permissions are ok, but depending on what you're running as a web service, they could be too permissive. | ||
+ | |||
+ | ==== The index.html File ==== | ||
+ | |||
+ | You're now ready to write our fist webpage! | ||
+ | |||
+ | <WRAP center round tip 80%> | ||
+ | When you manually create new files in your web folder, you might have to correct the ownership and permissions using the lines with '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | At this point, you should test that you can view your webpage locally on your Linux computer: [[http:// | ||
===== AREDN Node Configuration ===== | ===== AREDN Node Configuration ===== | ||
+ | Now that the site is working locally, we can share it on the AREDN network. | ||
+ | |||
+ | From the '' | ||
+ | - Setup a DHCP Address Reservation for the Linux computer | ||
+ | - Advertise the services | ||
+ | - Forward WAN port 8080 to LAN port 80 | ||
+ | - Don't for get to < | ||
+ | |||
+ | {{ serverportforwarding.png }} | ||
+ | |||
+ | ==== About The Advertised Services Section ==== | ||
+ | Here, I'm doing three different things: | ||
+ | * The first line with " | ||
+ | * The second line is advertising the ''/ | ||
+ | * The third line is advertising a '' | ||
- | FIXME: continue later --- // | + | Here's how that translates to the '' |
+ | {{ satuspage.png }} |