diff --git a/eloadas/presentation.md b/eloadas/presentation.md index 69c350bc694d4b14af1feb9964c847d638a83175..aeaa9c375c8d52498624f55f12a18c3a0d841f9e 100644 --- a/eloadas/presentation.md +++ b/eloadas/presentation.md @@ -144,4 +144,64 @@ TĂłth MiklĂłs - secure remote shell - kulcsok -- sok egyĂŠb okos feature \ No newline at end of file +- sok egyĂŠb okos feature + +--- +<!-- class: [lead, invert] --> + +# Kahoot! + +--- + +# Workshop time! + +--- + +<!-- class: [invert] --> + +## 1. feladat + +TelepĂts fel egy apache2 webszervert ĂŠs ĂĄllĂtsd be, hogy egy mappĂĄban lĂŠvĹ szkripteket lefuttasson ĂŠs kimenetĂźket lekĂźldje! + +--- + +```sh +sudo ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/ +``` + +```sh +sudo nano /etc/apache2/sites-enabled/000-default.conf +``` + +``` +<VirtualHost *:80> + [...] + <Directory "/var/www/html/scripts"> + AllowOverride None + Require all granted + Options +ExecCGI + AddHandler cgi-script .cgi .pl .py .sh + </Directory> + DocumentRoot /var/www/html + [...] +</VirtualHost> +``` + +--- + +```sh +#!/bin/bash + +echo Content-type: text/html +echo +echo hello world +``` + +--- + +## 2. Feladat + +- NĂŠzzĂźk meg milyen userkĂŠnt fut a webszerver! +- CsinĂĄljunk egy oldalt, ami kiĂrja az idĹt ĂŠs azt, hogy hĂĄny user van belĂŠpve! +- CsinĂĄljunk egy oldalt, ami kiĂrja, hogy hĂĄnyadik hĂŠt van! + - hint: `jq`, https://hanyadikhetvan.attiss.eu/api \ No newline at end of file