slides: fixed sizing
This commit is contained in:
parent
1d00269da4
commit
64c7b24ff7
6 changed files with 175 additions and 167 deletions
|
@ -1,9 +1,9 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
title = '2023-09-27 Signup Failures Postmortem'
|
title = '2023-09-27 Signup Failures Postmortem'
|
||||||
date = 2023-09-28
|
date = 2023-09-28
|
||||||
|
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
# 2023-09-27 Signup Failures Postmortem
|
# 2023-09-27 Signup Failures Postmortem
|
||||||
|
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
title = "Title"
|
title = "Title"
|
||||||
date = 2023-08-07
|
date = 2023-08-07
|
||||||
slides = true
|
slides = true
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
|
||||||
### Title
|
### Title
|
||||||
|
|
||||||
Subtitle
|
Subtitle
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
<!-- HTML comment -->
|
<!-- HTML comment -->
|
||||||
|
|
||||||
Slide 1
|
Slide 1
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Slide 2
|
Slide 2
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Image 1
|
Image 1
|
||||||
|
|
||||||
![image][1]
|
![image][1]
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Image 2
|
Image 2
|
||||||
|
|
||||||
<img src="./CompSoc_Logo_PNG.png" height="100"></img>
|
<img src="./CompSoc_Logo_PNG.png" height="100"></img>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
[1]: CompSoc_Logo_PNG.png
|
[1]: CompSoc_Logo_PNG.png
|
|
@ -1,89 +1,89 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
title = "Skynet: Intro"
|
title = "Skynet: Intro"
|
||||||
date = 2023-09-23
|
date = 2023-09-23
|
||||||
slides = true
|
slides = true
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
# Skynet: Introduction
|
# Skynet: Introduction
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet is the UL Computer Society's computer cluster.
|
Skynet is the UL Computer Society's computer cluster.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Has a long history: <<https://2016.skynet.ie/history.html>>.
|
Has a long history: <<https://2016.skynet.ie/history.html>>.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Older than the Society. (1992 vs 1994)
|
Older than the Society. (1992 vs 1994)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
But alas good things always come to an end.
|
But alas good things always come to an end.
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Due to //A Series of Unfortunate Events// we lost internet in Jan 2023
|
Due to //A Series of Unfortunate Events// we lost internet in Jan 2023
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Turns out Wordpress got Wordpress'd and we had a //smol// spam problem.
|
Turns out Wordpress got Wordpress'd and we had a //smol// spam problem.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
ITD also wanted us to have all servers patched and up to date.
|
ITD also wanted us to have all servers patched and up to date.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
# Skynet 3.0
|
# Skynet 3.0
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Gave us a chance to do a full rebuild.
|
Gave us a chance to do a full rebuild.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Servers were delved Indiana Jones style.
|
Servers were delved Indiana Jones style.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
![Delving into Ruins](0_intro_img1.png)
|
![Delving into Ruins](0_intro_img1.png)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Backups were made.
|
Backups were made.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Returned Summer 2023.
|
Returned Summer 2023.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Powered by NixOS.
|
Powered by NixOS.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Fully open source: <<https://gitlab.skynet.ie/compsoc1/skynet/nixos>>
|
Fully open source: <<https://gitlab.skynet.ie/compsoc1/skynet/nixos>>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet now can compile and update itself.
|
Skynet now can compile and update itself.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Be not Afraid
|
Be not Afraid
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Automation FTW!
|
Automation FTW!
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
How hosts:
|
How hosts:
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
* Email
|
* Email
|
||||||
* Gitlab + CI/CD runners
|
* Gitlab + CI/CD runners
|
||||||
|
@ -94,6 +94,6 @@ How hosts:
|
||||||
* <<https://skynet.ie>>
|
* <<https://skynet.ie>>
|
||||||
* User sites (<<https://silver.users.skynet.ie>>)
|
* User sites (<<https://silver.users.skynet.ie>>)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Always iterating, always improving.
|
Always iterating, always improving.
|
|
@ -1,76 +1,81 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
title = "Skynet: Setup"
|
title = "Skynet: Setup"
|
||||||
date = 2023-09-23
|
date = 2023-09-23
|
||||||
slides = true
|
slides = true
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
# Skynet: Setup
|
# Skynet: Setup
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Now that ye have the history time to get you Skynet accounts.
|
Now that ye have the history time to get you Skynet accounts.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
This is for new members, if there are any older members please wait a little while.
|
This is for new members.
|
||||||
|
If there are any older members please wait a little while.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## New Members
|
## New Members
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
1. Be a fully paid up member of UL Computer Society
|
1. Be a fully paid up member of UL Computer Society
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
2. Go to <<https://account.skynet.ie/signup>> and enter the same email used for UL Wolves
|
2. Go to <<https://account.skynet.ie/signup>>.
|
||||||
|
Enter the same email used for UL Wolves
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
3. You will get an email to verify your address, follow the link.
|
3. You will get an email to verify your address, follow the link.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
4. Choose a ``username`` and ``password``.
|
4. Choose a ``username`` and ``password``.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Congrats! You are in! //heist music//
|
Congrats! You are in! //heist music//
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Returning Members
|
## Returning Members
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
1. Please go to <<https://account.skynet.ie/modify>> and enter the same email used for UL Wolves
|
1. Please go to <<https://account.skynet.ie/modify>>.
|
||||||
|
Enter the same email used for UL Wolves
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Congrats! You are in! //heist music//
|
Congrats! You are in! //heist music//
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Returning Members
|
## Returning Members
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If you have forgotten your ``username`` please use <<https://account.skynet.ie/recover/username>>
|
If you have forgotten your ``username``.
|
||||||
|
Use <<https://account.skynet.ie/recover/username>>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If you have forgotten your ``password`` please use <<https://account.skynet.ie/recover/password>>
|
If you have forgotten your ``password``.
|
||||||
|
Use <<https://account.skynet.ie/recover/password>>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## All Members
|
## All Members
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Now that we are all on the same page we can now set an SSH key.
|
Now that we are all on the same page we can now set an SSH key.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Prepwork:
|
Prepwork:
|
||||||
```bash
|
```bash
|
||||||
|
@ -79,7 +84,7 @@ mkdir skynet
|
||||||
cd skynet
|
cd skynet
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ssh-keygen -t ed25519 -C "<comment>"
|
ssh-keygen -t ed25519 -C "<comment>"
|
||||||
|
@ -90,13 +95,13 @@ Password: Press Enter twice
|
||||||
|
|
||||||
We will use the ``{username}.pub`` file later
|
We will use the ``{username}.pub`` file later
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Back to the ssh folder
|
Back to the ssh folder
|
||||||
```bash
|
```bash
|
||||||
cd ../
|
cd ../
|
||||||
```
|
```
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Windows
|
Windows
|
||||||
```powershell
|
```powershell
|
||||||
|
@ -109,7 +114,7 @@ Linux
|
||||||
touch config
|
touch config
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Into it pop this
|
Into it pop this
|
||||||
```
|
```
|
||||||
|
@ -120,47 +125,47 @@ Host *.skynet.ie
|
||||||
```
|
```
|
||||||
(we will also ping this on discord)
|
(we will also ping this on discord)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Remember the ``{username}.pub`` in ``~/.ssh/skynet`` ?
|
Remember the ``{username}.pub`` in ``~/.ssh/skynet`` ?
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.ssh/skynet/{username}.pub
|
cat ~/.ssh/skynet/{username}.pub
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Copy the text and go to <<https://account.skynet.ie/modify>>
|
Copy the text and go to <<https://account.skynet.ie/modify>>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Select the SSH Key field and submit.
|
Select the SSH Key field and submit.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Congratulations, you now have full access to all of Skynet's services!
|
Congratulations, you now have full access to all of Skynet's services!
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Now to learn //how// to access them!
|
Now to learn //how// to access them!
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Email
|
## Email
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
1. Go to <<https://mail.skynet.ie/>>
|
1. Go to <<https://mail.skynet.ie/>>
|
||||||
2. Login with ``username@skynet.ie`` and ``password``
|
2. Login with ``username@skynet.ie`` and ``password``
|
||||||
3. Done
|
3. Done
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Email (Thunderbird)
|
## Email (Thunderbird)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
0. Have Thunderbird Installed
|
0. Have Thunderbird Installed
|
||||||
1. Add Account
|
1. Add Account
|
||||||
|
@ -168,45 +173,45 @@ Now to learn //how// to access them!
|
||||||
3. It can take a few min.
|
3. It can take a few min.
|
||||||
4. Done
|
4. Done
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Skynet Webserver
|
## Skynet Webserver
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ssh {username}@skynet.skynet.ie
|
ssh {username}@skynet.skynet.ie
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Thats it, you have logged into Skynet (webserver)!
|
Thats it, you have logged into Skynet (webserver)!
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Skynet Website
|
## Skynet Website
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
The server you logged onto is a webserver.
|
The server you logged onto is a webserver.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
This means it can serve content on the web.
|
This means it can serve content on the web.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Due to aforementioned //issues// we can only serve static files (no database)
|
Due to aforementioned //issues// we can only serve static files (no database)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
This is more than enough for most folks needs.
|
This is more than enough for most folks needs.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
We are going to create a ``public_html`` in your own home directory with correct permissions
|
Create a ``public_html`` in your own home directory with correct permissions
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir ~/public_html
|
mkdir ~/public_html
|
||||||
|
@ -215,155 +220,155 @@ chmod -R 755 ~/public_html
|
||||||
cd ~/public_html
|
cd ~/public_html
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Now we have a folder, time to put something in it.
|
Now we have a folder, time to put something in it.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nano index.html
|
nano index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
This brings up a terminal based editor, type whatever ye want here.
|
This brings up a terminal based editor, type whatever ye want here.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
To exit press ``[ctrl]``+``[x]`` to bring up save options.
|
To exit press ``[ctrl]``+``[x]`` to bring up save options.
|
||||||
You cna rename the file, for now just press ``[enter]``
|
You cna rename the file, for now just press ``[enter]``
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If you go to <<https://{username}.users.skynet.ie>> then teh contents will be displayed.
|
Go to <<https://{username}.users.skynet.ie>> to view your website.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
That was cumbersome to do right?
|
That was cumbersome to do right?
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Logging in only to change a file on terminal that you have never used before.
|
Logging in.
|
||||||
|
Only to change a file on terminal that you have never used before.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Surely there is a better way?
|
Surely there is a better way?
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Well luckily for you programmers are lazy
|
Well luckily for you programmers are lazy
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
There are ways to transfer files from your local computer to the server.
|
There are ways to transfer files from your local computer to the server.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Fow Windows you have WinSCP: <<https://winscp.net/>>
|
Fow Windows you have WinSCP: <<https://winscp.net/>>
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If ye are using linux you can use put ``sftp://{username}@skynet.skynet.ie`` (or use filezilla)
|
If ye are using linux you can use put ``sftp://{username}@skynet.skynet.ie``
|
||||||
|
(or use filezilla)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Gitlab
|
## Gitlab
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
As part of your Skynet account you have access to our Gitlab Server.
|
As part of your Skynet account you have access to our Gitlab Server.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
1. Go to <<https://gitlab.skynet.ie>>
|
1. Go to <<https://gitlab.skynet.ie>>
|
||||||
2. Login with ``username`` and ``password``
|
2. Login with ``username`` and ``password``
|
||||||
3. Done
|
3. Done
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Gitlab Website
|
## Gitlab Website
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
its possible to have a website on gitlab.
|
its possible to have a website on gitlab.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Powered by source control and CI/CD pipelines (devops)
|
Powered by source control and CI/CD pipelines (devops)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Go to the ``Dashboard`` > ``Groups`` > ``New Group``
|
Go to the ``Dashboard`` > ``Groups`` > ``New Group``
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Name the group Personal or College or something like that.
|
Name the group Personal or College or something like that.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If you name the group the same as your username then your username will be part of the URL.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Inside that Group create a ``New Project``, name it whatever ye want.
|
Inside that Group create a ``New Project``, name it whatever ye want.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``Create from Template`` > Any one that starts with ``Pages`` (I recommend ``pages/html``)
|
``Create from Template`` > Any one that starts with ``Pages``
|
||||||
|
(I recommend ``pages/html``)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
It will appear on the screen in a moment after clicking.
|
It will appear on the screen in a moment after clicking.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Go up to Edit > Web IDE > Change something on the index.html
|
Go up to Edit > Web IDE > Change something on the index.html
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``[ctrl] + [shift] + [g]`` (or click the icon on the left), enter a msg and ``commit to master``.
|
``[ctrl] + [shift] + [g]`` (or click the icon on the left), enter a msg
|
||||||
|
And ``commit to master``.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Your website will now be build and deployed.
|
Your website will now be build and deployed.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Woot!!! Devops!!!
|
Woot!!! Devops!!!
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
To get teh link is a tad annoying.
|
To get teh link is a tad annoying.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Go to ``Settings`` (bottom left of repo page) > Pages
|
Go to ``Settings`` (bottom left of repo page) > Pages
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Open the link in a new tab and marvel at yer creation.
|
Open the link in a new tab and marvel at yer creation.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If you go back and commit new changes they will show up as well.
|
If you go back and commit new changes they will show up as well.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
In a future session we will discuss Gitlab (and git in general) more.
|
In a future session we will discuss Gitlab (and git in general) more.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Here completes the rough introduction to Skynet and creating websites.
|
Here completes the rough introduction to Skynet and creating websites.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If ye have any questions/ideas feel free to ask.
|
If ye have any questions/ideas feel free to ask.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
If ye want to take a deeper look into server administration feel free to ask.
|
If ye want to take a deeper look into server admin feel free to ask.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet team is always open to newcomers!
|
Skynet team is always open to newcomers!
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
title = "Skynet: Topics"
|
title = "Skynet: Topics"
|
||||||
date = 2023-10-08
|
date = 2023-10-08
|
||||||
slides = false
|
slides = false
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
Topics that will be covered by teh skynet Training
|
Topics that will be covered by teh skynet Training
|
||||||
|
|
||||||
|
|
|
@ -1,76 +1,77 @@
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
title = "Skynet: Nix"
|
title = "Skynet: Nix"
|
||||||
date = 2023-10-08
|
date = 2023-10-08
|
||||||
slides = true
|
slides = true
|
||||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
# *nix, Nix and Nixos
|
# *nix, Nix and Nixos
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## *nix
|
## *nix
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet runs on a flavor of Linux called NixOS
|
Skynet runs on a flavor of Linux called NixOS
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Normal linux commands apply (basic primer)
|
Normal linux commands apply (basic primer)
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``cd`` - change directory
|
``cd`` - change directory
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``mkdir`` - make directory
|
``mkdir`` - make directory
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``ls`` - list directory
|
``ls`` - list directory
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``touch {filename}`` - create file named {filename}
|
``touch {filename}`` - create file named {filename}
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``nano {filename}`` - edit {filename}
|
``nano {filename}`` - edit {filename}
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``history`` - view history of previous commands
|
``history`` - view history of previous commands
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``grep "{query}" {filename/path}`` - find {query} in a file
|
``grep "{query}" {filename/path}`` - find {query} in a file
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
There is also piping where the output of one command is piped into another command
|
There is also piping where:
|
||||||
|
The output of one command is piped into another command
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Often called [Unix philosophy][1]
|
Often called [Unix philosophy][1]
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Can make really powerful programs from smaller simple programs.
|
Can make really powerful programs from smaller simple programs.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
``history | grep "nano"`` - search the history for any mention of ``nano``
|
``history | grep "nano"`` - search the history for any mention of ``nano``
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## Nix
|
## Nix
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Nix is a (lazy) functional language
|
Nix is a (lazy) functional language
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
a = 1 # int
|
a = 1 # int
|
||||||
|
@ -80,7 +81,7 @@ d = "42" # string
|
||||||
e = true # boolean
|
e = true # boolean
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
double = x: x*2
|
double = x: x*2
|
||||||
|
@ -90,7 +91,7 @@ double 2
|
||||||
mul 2 3
|
mul 2 3
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
s = { foo = "bar"; biz = "baz"; }
|
s = { foo = "bar"; biz = "baz"; }
|
||||||
|
@ -98,63 +99,65 @@ s.foo # bar
|
||||||
s.biz # baz
|
s.biz # baz
|
||||||
```
|
```
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Info:
|
Info:
|
||||||
1. [Offical guide][2]
|
1. [Offical guide][2]
|
||||||
2. [Nix Pills][3]
|
2. [Nix Pills][3]
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
## NixOS
|
## NixOS
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Some crazy person saw Nix and thought "I want to make an OS with that"
|
Some crazy person saw Nix and thought "I want to make an OS with that"
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
In essence a giant function is created with an OS as the output
|
In essence a giant function is created with an OS as the output
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
This does have quite a few advantages
|
This does have quite a few advantages
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
* Config as Code
|
* Config as Code
|
||||||
* Deterministic
|
* Deterministic
|
||||||
* Reproducible
|
* Reproducible
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet 2.0 had its config spread across different servers making it hard to get a good overview
|
Skynet 2.0 had its config spread across different servers.
|
||||||
|
Making it hard to get a good overview
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Skynet 3.0 is fully source controlled on [gitlab.skynet.ie][4]
|
Skynet 3.0 is fully source controlled on [gitlab.skynet.ie][4]
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Deterministic and Reproducible go hand in hand.
|
Deterministic and Reproducible go hand in hand.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Deterministic means that for the same inputs you get the same output.
|
Deterministic means that for the same inputs you get the same output.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Reproducible is that you are able to create the same output from the source code.
|
Reproducible is that you are able to create the same output from
|
||||||
|
the source code.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
We use Flakes, which adds a lockfile, reduces hassle for the dev.
|
We use Flakes, which adds a lockfile, reduces hassle for the dev.
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
Questions?
|
Questions?
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
[1]: https://en.wikipedia.org/wiki/Unix_philosophy
|
[1]: https://en.wikipedia.org/wiki/Unix_philosophy
|
||||||
|
|
Loading…
Reference in a new issue