howto:aredn:linuxserver:home
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howto:aredn:linuxserver:home [2021/11/09 16:03] – [Prerequisites] va7fi | howto:aredn:linuxserver:home [2021/11/09 20:20] – [Prerequisites] va7fi | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Install [[https:// | * Install [[https:// | ||
- | * Update | + | * Update and reboot |
- | * Change the Linux hostname, which will identify the computer in various | + | * Change the Linux hostname, which will identify the computer in various |
sudo hostnamectl set-hostname VA7FI-Linux | sudo hostnamectl set-hostname VA7FI-Linux | ||
</ | </ | ||
Line 15: | Line 15: | ||
sudo aptitude install curl apache2 | sudo aptitude install curl apache2 | ||
</ | </ | ||
+ | |||
+ | <WRAP center round info 80%> | ||
+ | If you're hear because you're installing Mesh Chat, you can now go back to the [[../ | ||
+ | </ | ||
+ | |||
+ | ===== 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 }} |