dot

packages and services management
Log | Files | Refs | README

commit b5a2153b6790c08b5cc89196effb8d96a81edfa1
parent afb7a336bf82a36957c1cd4b45d29eb26e717d56
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  1 Apr 2018 21:00:58 +0200

please, come back, authsrv9

Diffstat:
Magenda/epitech | 465+++++++++++++++++++++++++++++++++----------------------------------------------
Mbin/mfilter | 5+++++
Mbin/o | 4++--
Mbin/qemu | 4+++-
Abin/tcpcat | 3+++
Mbin/xdg-open | 6+-----
Arun/authsrv9/auth/authdom | 2++
Arun/authsrv9/auth/authid | 2++
Arun/authsrv9/auth/badusers | 2++
Arun/authsrv9/auth/users/bootes/expire | 2++
Arun/authsrv9/auth/users/bootes/status | 2++
Arun/authsrv9/auth/users/josuah/expire | 2++
Arun/authsrv9/auth/users/josuah/status | 2++
Arun/authsrv9/auth/users/sys/expire | 2++
Arun/authsrv9/auth/users/sys/status | 2++
Arun/authsrv9/pass | 6++++++
Arun/authsrv9/run | 24++++++++++++++++++++++++
17 files changed, 258 insertions(+), 277 deletions(-)

diff --git a/agenda/epitech b/agenda/epitech @@ -7,24 +7,6 @@ D:Event D:Open House 6 D:Espace accueil : -B:1519925400 -E:1519932600 -S:B-INN-000 >> Atelier : introduction à la modélisation 3D -C:Workshop -L: -D:Workshop -D:Atelier : introduction à la modélisation 3D -D:Hub -: -B:1519146000 -E:1519149600 -S:B-INN-000 >> #Embarqué FOCUS -C:Workshop -L: -D:Workshop -D:#Embarqué FOCUS -D:Réunion -: B:1520355600 E:1520359200 S:B-INN-000 >> #Embarqué FOCUS @@ -52,15 +34,6 @@ D:IT-MCA D:IT MCA D:Seigneur des Anneaux : -B:1519120800 -E:1519124400 -S:B-ANG-058 >> Guidance cycle 4 -C:Follow-ups -L: -D:Follow-ups -D:Guidance cycle 4 -D:Réunion -: B:1523887200 E:1523890800 S:B-CUI-070 >> IT MCA @@ -88,42 +61,6 @@ D:IT-MCA D:IT MCA D:Seigneur des Anneaux : -B:1519218000 -E:1519228800 -S:G-EPI-004 >> Discovery Days -C:Event -L: -D:Event -D:Discovery Days -D:Seigneur des Anneaux -: -B:1519822800 -E:1519833600 -S:G-EPI-004 >> Discovery Days -C:Event -L: -D:Event -D:Discovery Days -D:Seigneur des Anneaux -: -B:1523970000 -E:1523971800 -S:B-CPP-401 >> Kick-off - Plazza -C:Kick-off -L: -D:Kick-off -D:Kick-off - Plazza -D:Silence -: -B:1523970000 -E:1523980800 -S:B-CPP-401 >> Bootstrap - Plazza -C:Bootstrap -L: -D:Bootstrap -D:Bootstrap - Plazza -D:Silence -: B:1523952000 E:1523953800 S:B-PSU-403 >> Kick-off - MyFTP @@ -142,24 +79,6 @@ D:Bootstrap D:Bootstrap - MyFTP D:Silence : -B:1519650000 -E:1519660800 -S:G-EPI-004 >> Discovery Days -C:Event -L: -D:Event -D:Discovery Days -D:Seigneur des Anneaux -: -B:1519754400 -E:1519759800 -S:B-INN-000 >> WEBWORLD #4 : PHP & Smarty -C:Workshop -L: -D:Workshop -D:WEBWORLD #4 : PHP & Smarty -D:Hub -: B:1520359200 E:1520364600 S:B-INN-000 >> WEBWORLD #5 : Adminsys : First LEARN, Second HACK @@ -223,33 +142,6 @@ D:Event D:Discovery Days D:Seigneur des Anneaux : -B:1519131600 -E:1519137000 -S:B-PSU-400 >> Follow-up - nm/objdump -C:Follow Up -L: -D:Follow Up -D:Follow-up - nm/objdump -D:Seigneur des Anneaux -: -B:1519389000 -E:1519403400 -S:G-EPI-004 >> Fairs -C:Event -L: -D:Event -D:Fairs -D:Extérieur -: -B:1519390800 -E:1519401600 -S:G-GPR-000 >> Coaching Session. individuel -C:Follow-ups -L: -D:Follow-ups -D:Coaching Session. individuel -D:Réunion -: B:1519995600 E:1520006400 S:G-GPR-000 >> Coaching Session. individuel @@ -259,24 +151,6 @@ D:Follow-ups D:Coaching Session. individuel D:Réunion : -B:1519718400 -E:1519729200 -S:B-PSU-401 >> Bootstrap - Philosophers -C:Bootstrap -L: -D:Bootstrap -D:Bootstrap - Philosophers -D:Video Games & Star Wars -: -B:1519650000 -E:1519653600 -S:B-ASM-400 >> Kick-off - Unit & MiniLibC -C:Kick-off -L: -D:Kick-off -D:Kick-off - Unit & MiniLibC -D:Video Games & Star Wars -: B:1520600400 E:1520611200 S:G-GPR-000 >> Coaching Session. individuel @@ -382,42 +256,6 @@ L: D:Review D:Review. My FTP : -B:1519232400 -E:1519236000 -S:B-INN-001 >> Do the Right Team - Lequy Olivia en Master Numérique et Média Interactifs pour le Cinéma et l'audiovisuel Université de Rennes 2 -C:Conference -L: -D:Conference -D:Do the Right Team - Lequy Olivia en Master Numérique et Média Interactifs pour le Cinéma et l'audiovisuel Université de Rennes 2 -D:Hub -: -B:1519837200 -E:1519840800 -S:B-INN-001 >> Frédéric PASCAL - développement de plateforme en node.js -C:Conference -L: -D:Conference -D:Frédéric PASCAL - développement de plateforme en node.js -D:Hub -: -B:1519736400 -E:1519741800 -S:B-CPP-400 >> Follow-up - NanoTekSpice -C:Follow Up -L: -D:Follow Up -D:Follow-up - NanoTekSpice -D:Seigneur des Anneaux -: -B:1519718400 -E:1519720200 -S:B-PSU-401 >> Kick-off - Unit & Philosophers -C:Kick-off -L: -D:Kick-off -D:Kick-off - Unit & Philosophers -D:Seigneur des Anneaux -: B:1520859600 E:1520861400 S:B-PSU-401 >> Kick-off - LemIPC @@ -445,24 +283,6 @@ D:Follow Up D:Follow-up - MiniLibC D:Seigneur des Anneaux : -B:1519650000 -E:1519660800 -S:B-ASM-400 >> Bootstrap - MiniLibC -C:Bootstrap -L: -D:Bootstrap -D:Bootstrap - MiniLibC -D:Video Games & Star Wars -: -B:1519662600 -E:1519669800 -S:B-ANG-058 >> TEPitech -C:TEPitech -L: -D:TEPitech -D:TEPitech -D:Seigneur des Anneaux -: B:1520258400 E:1520260200 S:B-CPP-400 >> Kick-off - Arcade @@ -499,24 +319,6 @@ D:Corrections D:Evaluation - Diaporama D:Silence : -B:1519896600 -E:1519902000 -S:B-PRO-410 >> Un diaporama efficace (Partie 2) -C:TD -L: -D:TD -D:Un diaporama efficace (Partie 2) -D:Réunion -: -B:1519639200 -E:1519644600 -S:B-PRO-410 >> Un diaporama efficace (Partie 2) -C:TD -L: -D:TD -D:Un diaporama efficace (Partie 2) -D:Réunion -: B:1519995600 E:1520002800 S:B-MET-400 >> Review. NM Objdump @@ -526,24 +328,6 @@ D:Review D:Review. NM Objdump D:Seigneur des Anneaux : -B:1519318800 -E:1519322400 -S:B-INN-001 >> Présentation d'une association de travail sur l'éloquence (Claire Bouttes) -C:Conference -L: -D:Conference -D:Présentation d'une association de travail sur l'éloquence (Claire Bouttes) -D:Hub -: -B:1519662600 -E:1519669800 -S:B-ANG-058 >> TEPitech -C:TEPitech -L: -D:TEPitech -D:TEPitech -D:Seigneur des Anneaux -: B:1520496000 E:1520506800 S:B-MET-400 >> Review. C++ NTS @@ -553,15 +337,6 @@ D:Review D:Review. C++ NTS D:Seigneur des Anneaux : -B:1519635600 -E:1519639200 -S:B-ADM-400 >> Présentation ZupDeCo -C:Conference -L: -D:Conference -D:Présentation ZupDeCo -D:Amphi -: B:1520442000 E:1520445600 S:B-INN-001 >> Association Grifon - Fournisseur d'Accès à Internet Associatif Rennais @@ -571,15 +346,6 @@ D:Conference D:Association Grifon - Fournisseur d'Accès à Internet Associatif Rennais D:Hub : -B:1519651800 -E:1519659000 -S:B-ADM-400 >> Visite Capgemini -C:Event -L: -D:Event -D:Visite Capgemini -D:Extérieur -: B:1523088000 E:1523124000 S:G-EPI-004 >> Open House 7 @@ -598,15 +364,6 @@ D:Conference D:Mr LEFVBRE - YamamAUTO.com - Aide à la mise en place d'un Market Place lié à l'automobile. D:Hub : -B:1519907400 -E:1519923600 -S:B-GPR-400 >> Follow-up. Débriefing du stage - intervenant F. Nicot -C:Follow-ups -L: -D:Follow-ups -D:Follow-up. Débriefing du stage - intervenant F. Nicot -D:Star Wars -: B:1520857800 E:1520874000 S:B-GPR-400 >> Follow-up. Débriefing du stage - intervenant F. Nicot @@ -616,15 +373,6 @@ D:Follow-ups D:Follow-up. Débriefing du stage - intervenant F. Nicot D:Réunion : -B:1519932600 -E:1519938000 -S:B-INN-000 >> WEBWORLD #3 : Backend Beginning -C:Workshop -L: -D:Workshop -D:WEBWORLD #3 : Backend Beginning -D:Hub -: B:1520265600 E:1520271000 S:B-INN-001 >> Imprimantes 3D (Killian Tabart) @@ -643,15 +391,6 @@ D:Follow-ups D:'Guidance cycle 5' D:Réunion : -B:1519923600 -E:1519939800 -S:B-INN-000 >> Google Hash Code -C:Event -L: -D:Event -D:Google Hash Code -D:Star Wars -: B:1520935200 E:1520938800 S:B-ANG-058 >> 'Guidance cycle 5' @@ -1029,8 +768,26 @@ D:Follow Up D:Follow-up - strace D:Seigneur des Anneaux : -B:1522742400 -E:1522753200 +B:1522760400 +E:1522762200 +S:B-ADS-400 >> Kick-off - Unit presentation +C:Kick-off +L: +D:Kick-off +D:Kick-off - Unit presentation +D:Silence +: +B:1522760400 +E:1522771200 +S:B-ADS-400 >> Bootstrap - SSH & WEB Servers +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - SSH & WEB Servers +D:Silence +: +B:1522746000 +E:1522756800 S:B-NET-400 >> Bootstrap 2 - Interfaces & Static Routing C:Bootstrap L: @@ -1218,6 +975,15 @@ D:Review D:Review. Strace D:Seigneur des Anneaux : +B:1523365200 +E:1523376000 +S:B-ADS-400 >> Bootstrap - Gateway +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - Gateway +D:Silence +: B:1523865600 E:1523876400 S:B-NET-400 >> Bootstrap 3 - Wifi Network, CDP & TFTP Protocols @@ -1254,6 +1020,24 @@ D:Follow Up D:Follow-up - MyFTP D:Seigneur des Anneaux : +B:1524574800 +E:1524589200 +S:B-ADS-400 >> Rush #1 +C:Rush +L: +D:Rush +D:Rush #1 +D:Video Games & Star Wars +: +B:1524558600 +E:1524569400 +S:B-ADS-400 >> Bootstrap - DNS & DHCP servers +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - DNS & DHCP servers +D:Video Games & Star Wars +: B:1521640800 E:1521644400 S:B-INN-000 >> Un point sur le Hub @@ -1263,13 +1047,21 @@ D:Conference D:Un point sur le Hub D:Amphi : -B:1526562000 -E:1526567400 -S:B-CPP-401 >> Follow-up - Indie Studio -C:Follow Up +B:1526389200 +E:1526391000 +S:B-ADS-400 >> Kick-off - My NAS +C:Kick-off L: -D:Follow Up -D:Follow-up - Indie Studio +D:Kick-off +D:Kick-off - My NAS +: +B:1526391000 +E:1526401800 +S:B-ADS-400 >> Bootstrap - My NAS +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - My NAS : B:1526371200 E:1526382000 @@ -1279,3 +1071,138 @@ L: D:Bootstrap D:Bootstrap 5 - EIGRP Protocol : +B:1522069200 +E:1522074600 +S:B-PCP-000 >> Speaking in public +C:Workshop +L: +D:Workshop +D:Speaking in public +D:Réunion +: +B:1522074600 +E:1522080000 +S:B-PCP-000 >> Speaking in public +C:Workshop +L: +D:Workshop +D:Speaking in public +D:Réunion +: +B:1522227600 +E:1522234800 +S:B-INN-001 >> Mr Ronan GOAS :Le projet domotique. Réalisation d’une domotisation progressive d’une maison en se basant sur des composants à faible coût. +C:Conference +L: +D:Conference +D:Mr Ronan GOAS :Le projet domotique. Réalisation d’une domotisation progressive d’une maison en se basant sur des composants à faible coût. +D:Hub +: +B:1522857600 +E:1522864800 +S:B-ANG-058 >> TEPitech +C:TEPitech +L: +D:TEPitech +D:TEPitech +D:Silence +: +B:1524672000 +E:1524679200 +S:B-ANG-058 >> Self-assessment TEPitech +C:TEPitech +L: +D:TEPitech +D:Self-assessment TEPitech +D:Silence +: +B:1522238400 +E:1522242000 +S:B-INN-001 >> Vous avez une mémoire infaillible : prouvons-le +C:Conference +L: +D:Conference +D:Vous avez une mémoire infaillible : prouvons-le +D:Hub +: +B:1522245600 +E:1522249200 +S:B-INN-001 >> L'UX a sauvé mon DevOps +C:Conference +L: +D:Conference +D:L'UX a sauvé mon DevOps +D:Hub +: +B:1522242000 +E:1522245600 +S:B-INN-000 >> Github/Trello/Slack/Jenkins... Automatisation pour une vue d'ensemble +C:Workshop +L: +D:Workshop +D:Github/Trello/Slack/Jenkins... Automatisation pour une vue d'ensemble +D:Hub +: +B:1522249200 +E:1522252800 +S:B-INN-000 >> Challenge : Down my server +C:Workshop +L: +D:Workshop +D:Challenge : Down my server +D:Hub +: +B:1522227600 +E:1522252800 +S:B-INN-000 >> Hackaton : Jamrock JAM RUSH +C:Event +L: +D:Event +D:Hackaton : Jamrock JAM RUSH +D:Hub +: +B:1527267600 +E:1527282000 +S:B-INN-000 >> [Hackathon] Granville Digital +C:Workshop +L: +D:Workshop +D:[Hackathon] Granville Digital +D:Extérieur +: +B:1523354400 +E:1523358000 +S:B-ANG-058 >> Guidance cycle 6 +C:Follow-ups +L: +D:Follow-ups +D:Guidance cycle 6 +D:Réunion +: +B:1523959200 +E:1523962800 +S:B-ANG-058 >> Guidance cycle 6 +C:Follow-ups +L: +D:Follow-ups +D:Guidance cycle 6 +D:Réunion +: +B:1524564000 +E:1524567600 +S:B-ANG-058 >> Guidance cycle 6 +C:Follow-ups +L: +D:Follow-ups +D:Guidance cycle 6 +D:Réunion +: +B:1525082400 +E:1525086000 +S:B-ANG-058 >> Guidance cycle 6 +C:Follow-ups +L: +D:Follow-ups +D:Guidance cycle 6 +D:Réunion +: diff --git a/bin/mfilter b/bin/mfilter @@ -23,3 +23,8 @@ do [ -z "${file##$new*}" ] || mv "$file" "$new" done done 2>&1 | sed 's/, 0 picked././' | $PAGER + +cd "$HOME/var/mail" + +git add . +git commit -m 'more mails' diff --git a/bin/o b/bin/o @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/sh -e -exec xdg-abduco xdg-open "$@" +exec xdg-open "$@" diff --git a/bin/qemu b/bin/qemu @@ -3,7 +3,9 @@ port="$1" path="$2" -exec nohup qemu-system-x86_64 \ +: ${port:?} ${path:?} + +exec qemu-system-x86_64 \ -device "e1000,netdev=net0" \ -netdev "user,id=net0,hostfwd=tcp::$port-:22" \ -display "none" \ diff --git a/bin/tcpcat b/bin/tcpcat @@ -0,0 +1,3 @@ +#!/bin/sh -e + +exec tcpclient -RHl0 -- "${1-0}" "${2-17}" sh -c 'exec cat <&6' diff --git a/bin/xdg-open b/bin/xdg-open @@ -62,10 +62,6 @@ case "$1" in cd "$HOME/git/$host/$user" exec git clone "$1" ;; -(magnet:*) - transmission-cli "$1" - exec "$0" "$file" - ;; (9p://*) dir="$HOME/var/9p/$host" mkdir -p "$dir" @@ -145,7 +141,7 @@ case "$1" in exec man "${1%\(*}" ;; (*.torrent) - exec transmission-cli "$1" + exec btcli add -d "$HOME/var/btpd/downloads" "$1" ;; (*.img|*.iso) exec qemu-system-x86_64 -m 500M "$1" diff --git a/run/authsrv9/auth/authdom b/run/authsrv9/auth/authdom @@ -0,0 +1 @@ +local+ \ No newline at end of file diff --git a/run/authsrv9/auth/authid b/run/authsrv9/auth/authid @@ -0,0 +1 @@ +bootes+ \ No newline at end of file diff --git a/run/authsrv9/auth/badusers b/run/authsrv9/auth/badusers @@ -0,0 +1 @@ +adm+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/bootes/expire b/run/authsrv9/auth/users/bootes/expire @@ -0,0 +1 @@ +never+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/bootes/status b/run/authsrv9/auth/users/bootes/status @@ -0,0 +1 @@ +ok+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/josuah/expire b/run/authsrv9/auth/users/josuah/expire @@ -0,0 +1 @@ +never+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/josuah/status b/run/authsrv9/auth/users/josuah/status @@ -0,0 +1 @@ +ok+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/sys/expire b/run/authsrv9/auth/users/sys/expire @@ -0,0 +1 @@ +never+ \ No newline at end of file diff --git a/run/authsrv9/auth/users/sys/status b/run/authsrv9/auth/users/sys/status @@ -0,0 +1 @@ +ok+ \ No newline at end of file diff --git a/run/authsrv9/pass b/run/authsrv9/pass @@ -0,0 +1,6 @@ +#!/bin/sh -ex + +for u in josuah bootes sys +do + [ -f "auth/users/$u/key" ] || passtokey >"auth/users/$u/key" +done diff --git a/run/authsrv9/run b/run/authsrv9/run @@ -0,0 +1,24 @@ +#!/bin/sh -e + +# Plan 9 authentification server + +# users: +# bootes - authid username, used by authsrv9 +# sys - system administrator with access to most things system files +# adm - system administrator with accest to most critical files +# $user - regular user with restricted permission + +# https://www.ueber.net/who/mjl/plan9/plan9-obsd.html + +port="567" + +exec 2>&1 +mkdir -p dev bin +[ -f "auth/users/josuah/key" ] +[ -f "auth/users/bootes/key" ] +[ -f "auth/users/sys/key" ] +authsrv="$(command -v authsrv9)" +[ -h "$authsrv" ] && authsrv="$(readlink -f "$authsrv")" +install -m750 -o root "$authsrv" bin/authsrv9 + +exec tcpserver 0.0.0.0 "$port" chroot "$(dirname "$0")" authsrv9