2024-09-22 19:45:34 +01:00
|
|
|
# Create your own website on Skynet
|
|
|
|
|
2025-02-09 21:18:54 +00:00
|
|
|
One of the services that Skynet provides is access to a Linux server which also has a webserver.
|
|
|
|
Additionally each member gets their own domain:
|
|
|
|
|
2025-02-09 23:50:15 +00:00
|
|
|
* ``$USERNAME.users.skynet.ie``
|
2025-02-09 23:49:58 +00:00
|
|
|
* This is the core web address
|
|
|
|
* <https://silver.users.skynet.ie>
|
|
|
|
* ``skynet.ie/~$USERNAME``
|
|
|
|
* This is backwards compatible to help avoid link rot
|
|
|
|
* Redirects to the core address above
|
|
|
|
* <https://skynet.ie/~silver>
|
2024-09-22 19:45:34 +01:00
|
|
|
|
|
|
|
## Website
|
2025-02-09 21:18:54 +00:00
|
|
|
There are two ways to create a website on Skynet, Modern and Manual.
|
|
|
|
Modern is using Source Control (git), pipelines (CI/CD) and pinch of magic.
|
|
|
|
Manual gets you hands on with the process.
|
|
|
|
|
2025-02-12 15:08:36 +00:00
|
|
|
|
|
|
|
### Skynet Account requirement
|
|
|
|
No matter if you choose Modern or Manual you will need a Skynet account.
|
|
|
|
Instructions to do so can be found [on the Create Skynet Account page](./create_account.md).
|
|
|
|
|
2025-02-09 21:18:54 +00:00
|
|
|
### Modern
|
|
|
|
Modern involves using source control to version your site.
|
|
|
|
This is then leveraged to automatically deploy to your Skynet account/website.
|
|
|
|
|
2025-02-12 15:08:36 +00:00
|
|
|
The core repo for this is [here][deploy_user], it contains all teh required info to get it working.
|
2025-02-09 21:18:54 +00:00
|
|
|
If this does not suit your needs you can take a look at the [forks which cover different tools][deploy_user_forks].
|
|
|
|
|
|
|
|
[deploy_user]: https://forgejo.skynet.ie/Skynet/deploy_user
|
|
|
|
[deploy_user_forks]: https://forgejo.skynet.ie/Skynet/deploy_user/forks
|
|
|
|
|
|
|
|
### Manual
|
2025-02-12 15:08:36 +00:00
|
|
|
#### Login
|
2025-02-09 21:18:54 +00:00
|
|
|
Once ye have [logged in](./create_ssh.md) you will be able to create a website on Skynet.
|
2024-09-22 19:45:34 +01:00
|
|
|
|
2025-02-12 15:08:36 +00:00
|
|
|
|
|
|
|
#### Create Files
|
2024-09-22 19:45:34 +01:00
|
|
|
In your home folder follow these commands to create the folder that can be used to host a website
|
|
|
|
|
|
|
|
```bash
|
|
|
|
mkdir ~/public_html
|
|
|
|
chmod 711 ~
|
|
|
|
chmod -R 755 ~/public_html
|
|
|
|
cd ~/public_html
|
|
|
|
```
|
|
|
|
|
2025-02-12 15:08:36 +00:00
|
|
|
In this directory you can create all the relevant files using ``nano`` or ``vim``.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# create/edit index.html usign nano
|
|
|
|
# this opens up a termial based text editor.
|
|
|
|
nano index.html
|
|
|
|
```
|
|
|
|
|
|
|
|
To exit ``nano`` you need to use ``[ctrl]+[x]`` keys.
|
|
|
|
|
|
|
|
#### Transfer files
|
|
|
|
If you already have the files locally you can copy them over using ``scp``, although it is recommended to do it graphically.
|
|
|
|
|
2024-09-22 19:45:34 +01:00
|
|
|
To transfer files graphically you can use these programs:
|
2025-02-10 00:08:58 +00:00
|
|
|
|
|
|
|
* [WinSCP][download_winscp]
|
|
|
|
* Windows
|
|
|
|
* [FileZilla][download_filezilla]
|
|
|
|
* Windows
|
|
|
|
* Mac
|
|
|
|
* Linux
|
|
|
|
|
|
|
|
[download_winscp]: https://winscp.net
|
|
|
|
[download_filezilla]: https://filezilla-project.org/download.php?type=client
|
2024-09-22 19:45:34 +01:00
|
|
|
|
2025-02-09 21:18:54 +00:00
|
|
|
Anything put there will be accessible under ``https://$USERNAME.users.skynet.ie``.
|
2024-09-22 19:45:34 +01:00
|
|
|
|
|
|
|
## More info
|
|
|
|
There is a slideshow that might be of use to you: <https://public.skynet.ie/slides/skynet/1_setup.html>
|