Script to automatically log in to the DEILabs platform.
Installation guide:
-
if not already installed, install
at
andqdbus
sudo apt update sudo apt install at -y sudo apt install qdbus -y
-
log in with the DEI credentials and mark the "remember me" checkbox
-
from the
dev-tools
of the browser copy theremember_web_*
cookies' name and value (Firefox instruction following)- from the option menu select
More tools
>Web Developer Tools
- from the newly opened window select
Storage
>Cookies
- double click on the
value
field ofremember_web_*
and copy the value
- from the option menu select
-
open a terminal instance in the cloned folder and run
bash setup.sh
, follow the instruction filling in all the required data (this command must be executed inside a local session!):- the lab to login to (choosing from the supported ones)
- the conda environment to use
- the desktop environment to use (gnome or kde)
- the daytime for the first daily login attempt
- the
remember_web_*
cookies' name and value
-
add a startup process to execute in order to ensure that the script works also after a system reboot
- open
Startup Applications
(GUI application preinstalled in Ubuntu) - add a new entry called "DEILabs" that execute the following command
sh <script_path>/data/startup.sh
- open
-
run for the first time the script from the temrinal:
cd <script_path> && sh launch.sh
List of the supported labs
- lttm
- signet
- mian
- lab 205
- lab 206
- lab 209
- lab 219
- lab 224
- lab 231
- If connected via RDP do not perform any log in (idea: use the $DISPLAY var, if > 3 do not log in)
- Add more labs
- Add Windows support
- Add MacOS support