started generating epubs
parent
ca8a75363b
commit
30ec990d8e
@ -1,3 +1,4 @@
|
||||
.ipynb_checkpoints/
|
||||
*.json
|
||||
/logs
|
||||
book.html
|
||||
|
@ -0,0 +1,6 @@
|
||||
# Readme.MD
|
||||
|
||||
## Overview of the project structure
|
||||
|
||||
- fonts
|
||||
- log-books
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,354 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="">
|
||||
<meta name="author" content="">
|
||||
<meta name="description" content="">
|
||||
<meta name="keywords" content="">
|
||||
|
||||
<meta property="og:type" content="">
|
||||
<meta property="og:title" content="">
|
||||
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="">
|
||||
<meta property="og:url" content="">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1>TL;DR</h1>
|
||||
<h2>too log didn't read</h2>
|
||||
<p>This log was generated on 2024-03-18 16:00:25.550452, the next will be available after 2024-03-18 19:00:25.550452</p>
|
||||
</header>
|
||||
<nav class="slider slider--top">
|
||||
<label for="time">time</label>
|
||||
<input type="range" min="0" max="100" id="time">
|
||||
</nav>
|
||||
|
||||
<nav class="slider slider--left">
|
||||
<label for="annotation">annotations</label>
|
||||
<input class="vertical" type="range" value="0" min="0" max="400" id="annotation">
|
||||
</nav>
|
||||
<main>
|
||||
<div class="main__background">
|
||||
<div class="main__background--radius"></div>
|
||||
</div>
|
||||
<article>
|
||||
<h2>What happened today?</h2>
|
||||
|
||||
<pre>uptime -s</pre>
|
||||
<p>2024-03-18 07:51:34</p>
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
This is common, the fragility of these machines are more prominant than any cloud user expects. Partially because of scale, partially because a lot of labour that happen in datacenters just escapes us all when we want to just upload an image.
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<p>the ones below do not have the "right" annotation levels</p>
|
||||
|
||||
<pre>last_user_added</pre>
|
||||
<p>Feb 29 15:08:48 chopchop useradd[8744]: new user: name=colord, UID=118, GID=130, home=/var/lib/colord, shell=/usr/sbin/nologin, from=/dev/pts/4
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for last_user_added
|
||||
</span>
|
||||
|
||||
|
||||
<pre>users_created_today</pre>
|
||||
<p>-- No entries --
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for users_created_today
|
||||
</span>
|
||||
|
||||
|
||||
<pre>list_active_services</pre>
|
||||
<p> [ - ] alsa-utils
|
||||
[ - ] apparmor
|
||||
[ + ] atop
|
||||
[ + ] atopacct
|
||||
[ + ] bluetooth
|
||||
[ - ] console-setup.sh
|
||||
[ + ] cron
|
||||
[ + ] cups
|
||||
[ + ] cups-browsed
|
||||
[ + ] dbus
|
||||
[ + ] dphys-swapfile
|
||||
[ + ] exim4
|
||||
[ + ] fake-hwclock
|
||||
[ - ] fcgiwrap
|
||||
[ - ] hwclock.sh
|
||||
[ + ] incron
|
||||
[ - ] keyboard-setup.sh
|
||||
[ + ] kmod
|
||||
[ + ] networking
|
||||
[ - ] nfs-common
|
||||
[ + ] nginx
|
||||
[ - ] paxctld
|
||||
[ - ] php7.4-fpm
|
||||
[ + ] php8.2-fpm
|
||||
[ + ] procps
|
||||
[ - ] pulseaudio-enable-autospawn
|
||||
[ + ] raspi-config
|
||||
[ + ] rng-tools-debian
|
||||
[ - ] rpcbind
|
||||
[ - ] rsync
|
||||
[ - ] saned
|
||||
[ + ] ssh
|
||||
[ - ] sudo
|
||||
[ + ] triggerhappy
|
||||
[ + ] udev
|
||||
[ - ] uuidd
|
||||
[ - ] x11-common
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for list_active_services
|
||||
</span>
|
||||
|
||||
|
||||
<pre>list_groups</pre>
|
||||
<p>root:x:0:
|
||||
daemon:x:1:
|
||||
bin:x:2:
|
||||
sys:x:3:
|
||||
adm:x:4:xpub
|
||||
tty:x:5:
|
||||
disk:x:6:
|
||||
lp:x:7:aleevadh,bernabereit,lorenzo,mania,mszw,mxrwho,river,senak,thijsoid,v,vitrinekast,wang,xpub,xpub,zerozeta,zz1,www-data
|
||||
mail:x:8:
|
||||
news:x:9:
|
||||
uucp:x:10:
|
||||
man:x:12:
|
||||
proxy:x:13:
|
||||
kmem:x:15:
|
||||
dialout:x:20:xpub,mb,river,joak,aleevadh,bernabereit,lorenzo,mania,mszw,mxrwho,river,senak,thijsoid,v,vitrinekast,wang,xpub,zerozeta,zz1,murtaugh,mb
|
||||
fax:x:21:
|
||||
voice:x:22:
|
||||
cdrom:x:24:xpub
|
||||
floppy:x:25:
|
||||
tape:x:26:
|
||||
sudo:x:27:joak,aleevadh,bernabereit,lorenzo,mania,mszw,mxrwho,river,senak,thijsoid,v,vitrinekast,wang,xpub,zerozeta,zz1,murtaugh,mb,strt,cristina,chipchip,killer
|
||||
audio:x:29:xpub,river,pulse,vitrinekast,liquidsoap
|
||||
dip:x:30:
|
||||
www-data:x:33:vitrinekast
|
||||
backup:x:34:
|
||||
operator:x:37:
|
||||
list:x:38:
|
||||
irc:x:39:
|
||||
src:x:40:
|
||||
gnats:x:41:
|
||||
shadow:x:42:
|
||||
utmp:x:43:
|
||||
video:x:44:xpub
|
||||
sasl:x:45:
|
||||
plugdev:x:46:xpub
|
||||
staff:x:50:
|
||||
games:x:60:xpub
|
||||
users:x:100:xpub,murtaugh,aleevadh,h4ck3r,mania,mszw,mxrwho,senak,v,wang,zerozeta,bernabereit,lorenzo,mb,river,thijsoid,vitrinekast,zz1,joak,cristina,strt,chipchip,killer
|
||||
nogroup:x:65534:
|
||||
systemd-journal:x:101:
|
||||
systemd-network:x:102:
|
||||
systemd-resolve:x:103:
|
||||
input:x:104:xpub
|
||||
kvm:x:105:
|
||||
render:x:106:xpub
|
||||
crontab:x:107:
|
||||
netdev:x:108:xpub
|
||||
systemd-timesync:x:109:
|
||||
messagebus:x:110:
|
||||
bluetooth:x:112:
|
||||
avahi:x:113:
|
||||
spi:x:999:xpub
|
||||
i2c:x:998:xpub
|
||||
gpio:x:997:xpub
|
||||
systemd-coredump:x:996:
|
||||
xpub:x:1000:
|
||||
vitrinekast:x:1001:
|
||||
senak:x:1002:
|
||||
lorenzo:x:1003:
|
||||
mxrwho:x:1004:
|
||||
bernabereit:x:1005:
|
||||
river:x:1006:
|
||||
v:x:1007:
|
||||
mania:x:1008:
|
||||
aleevadh:x:1009:
|
||||
h4ck3r:x:1010:
|
||||
thijsoid:x:1011:
|
||||
mszw:x:1012:
|
||||
zerozeta:x:1013:
|
||||
wang:x:1014:
|
||||
zz1:x:1015:
|
||||
Debian-exim:x:114:
|
||||
rtkit:x:115:
|
||||
murtaugh:x:1017:
|
||||
mb:x:1016:
|
||||
pulse:x:116:
|
||||
pulse-access:x:117:
|
||||
mlocate:x:118:
|
||||
uuidd:x:119:
|
||||
joak:x:1018:
|
||||
sgx:x:120:
|
||||
plocate:x:121:
|
||||
polkitd:x:995:
|
||||
_ssh:x:111:
|
||||
pipewire:x:122:
|
||||
cristina:x:1019:
|
||||
strt:x:1020:
|
||||
incron:x:123:
|
||||
chipchip:x:1021:
|
||||
killer:x:1022:
|
||||
tcpdump:x:124:
|
||||
liquidsoap:x:125:
|
||||
lpadmin:x:126:river,xpub
|
||||
ssl-cert:x:127:
|
||||
scanner:x:128:saned
|
||||
saned:x:129:
|
||||
colord:x:130:
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for list_groups
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<pre>list_package_installs</pre>
|
||||
<p>2024-03-10 15:16:14 install libtk8.6:armhf <none> 8.6.13-2
|
||||
2024-03-10 15:16:14 status half-installed libtk8.6:armhf 8.6.13-2
|
||||
2024-03-10 15:16:15 install tk8.6-blt2.5:armhf <none> 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:15 status half-installed tk8.6-blt2.5:armhf 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:15 install blt:armhf <none> 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:15 status half-installed blt:armhf 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:15 install python3-tk:armhf <none> 3.11.2-3
|
||||
2024-03-10 15:16:15 status half-installed python3-tk:armhf 3.11.2-3
|
||||
2024-03-10 15:16:16 status installed libtk8.6:armhf 8.6.13-2
|
||||
2024-03-10 15:16:16 status installed tk8.6-blt2.5:armhf 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:16 status installed blt:armhf 2.5.3+dfsg-4.1
|
||||
2024-03-10 15:16:16 status installed python3-tk:armhf 3.11.2-3
|
||||
2024-03-10 15:16:16 status installed libc-bin:armhf 2.36-9+rpt2+deb12u4
|
||||
2024-03-12 14:29:01 install python3-markupsafe:armhf <none> 2.1.2-1
|
||||
2024-03-12 14:29:01 status half-installed python3-markupsafe:armhf 2.1.2-1
|
||||
2024-03-12 14:29:02 install python3-jinja2:all <none> 3.1.2-1
|
||||
2024-03-12 14:29:02 status half-installed python3-jinja2:all 3.1.2-1
|
||||
2024-03-12 14:29:02 status installed python3-markupsafe:armhf 2.1.2-1
|
||||
2024-03-12 14:29:03 status installed python3-jinja2:all 3.1.2-1
|
||||
2024-03-15 09:51:48 install libhttp-parser2.9:armhf <none> 2.9.4-5
|
||||
2024-03-15 09:51:48 status half-installed libhttp-parser2.9:armhf 2.9.4-5
|
||||
2024-03-15 09:51:48 install libmbedx509-1:armhf <none> 2.28.3-1
|
||||
2024-03-15 09:51:48 status half-installed libmbedx509-1:armhf 2.28.3-1
|
||||
2024-03-15 09:51:48 install libmbedtls14:armhf <none> 2.28.3-1
|
||||
2024-03-15 09:51:48 status half-installed libmbedtls14:armhf 2.28.3-1
|
||||
2024-03-15 09:51:48 install libgit2-1.5:armhf <none> 1.5.1+ds-1+deb12u1
|
||||
2024-03-15 09:51:48 status half-installed libgit2-1.5:armhf 1.5.1+ds-1+deb12u1
|
||||
2024-03-15 09:51:49 install bat:armhf <none> 0.22.1-4
|
||||
2024-03-15 09:51:49 status half-installed bat:armhf 0.22.1-4
|
||||
2024-03-15 09:51:50 status installed libmbedx509-1:armhf 2.28.3-1
|
||||
2024-03-15 09:51:50 status installed libmbedtls14:armhf 2.28.3-1
|
||||
2024-03-15 09:51:50 status installed libhttp-parser2.9:armhf 2.9.4-5
|
||||
2024-03-15 09:51:50 status installed libgit2-1.5:armhf 1.5.1+ds-1+deb12u1
|
||||
2024-03-15 09:51:50 status installed bat:armhf 0.22.1-4
|
||||
2024-03-15 09:51:50 status installed libc-bin:armhf 2.36-9+rpt2+deb12u4
|
||||
2024-03-15 09:55:52 status installed bat:armhf 0.22.1-4
|
||||
2024-03-15 09:55:52 status half-installed bat:armhf 0.22.1-4
|
||||
2024-03-15 09:55:52 status not-installed bat:armhf <none>
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for list_package_installs
|
||||
</span>
|
||||
|
||||
|
||||
<pre>list_package_upgrade</pre>
|
||||
<p>
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for list_package_upgrade
|
||||
</span>
|
||||
|
||||
|
||||
<pre>list_package_remove</pre>
|
||||
<p>2024-03-15 09:55:52 startup packages remove
|
||||
2024-03-15 09:55:52 remove bat:armhf 0.22.1-4 <none>
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for list_package_remove
|
||||
</span>
|
||||
|
||||
|
||||
<pre>device_info</pre>
|
||||
<p>Raspberry Pi 4 Model B Rev 1.4
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for device_info
|
||||
</span>
|
||||
|
||||
|
||||
<pre>debian_version</pre>
|
||||
<p>12.1
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for debian_version
|
||||
</span>
|
||||
|
||||
|
||||
<pre>kernel_version</pre>
|
||||
<p>Linux chopchop 6.1.65-v8+ #1703 SMP PREEMPT Tue Dec 5 16:25:41 GMT 2023 aarch64 GNU/Linux
|
||||
|
||||
|
||||
<span class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for kernel_version
|
||||
</span>
|
||||
|
||||
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<aside>
|
||||
<h3>whoami: Raspberry Pi 4 Model B Rev 1.4</h3>
|
||||
</aside>
|
||||
|
||||
<footer>
|
||||
<h3> current residency 127.0.1.1
|
||||
</h3>
|
||||
</footer>
|
||||
|
||||
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
var nextDate = new Date("2024-03-18 19:00:25.550452");
|
||||
var now = new Date();
|
||||
var ms = nextDate - now;
|
||||
console.log("start a timeout in , ", ms);
|
||||
if(ms > 0) {
|
||||
window.setTimeout(function() {
|
||||
// TODO: add a check if there is still an internet connection
|
||||
// TODO: add a check if there is actually new content?
|
||||
// TODO: think about server time vs. client time
|
||||
window.location.reload(true);
|
||||
}, ms + 10000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<header>
|
||||
<h1>TL;DR</h1>
|
||||
<h2>too log didn't read</h2>
|
||||
</header>
|
||||
<nav class="slider slider--top">
|
||||
<label for="time">time</label>
|
||||
<input type="range" min="0" max="100" id="time">
|
||||
</nav>
|
||||
|
||||
<nav class="slider slider--left">
|
||||
<label for="annotation">annotations</label>
|
||||
<input class="vertical" type="range" value="0" min="0" max="400" id="annotation">
|
||||
</nav>
|
||||
<main>
|
||||
<div class="main__background">
|
||||
<div class="main__background--radius"></div>
|
||||
</div>
|
||||
<article>
|
||||
<h2>What happened today?</h2>
|
||||
<pre>10.0.0.1 - - [05/Mar/2024:14:27:39 +0000]
|
||||
"GET /~murtaugh/__lab__/api/sessions?1709648858744
|
||||
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
|
||||
10.0.0.1 - - [05/Mar/2024:14:27:39 +0000] "GET /~murtaugh/__lab__/
|
||||
api/kernelspecs?1709648858775 HTTP/1.1" 200 540
|
||||
"https://hub.xpub.nl/chopchop/~murtaugh/__lab__/lab/tree/public_html/
|
||||
T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
|
||||
(KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
|
||||
</pre>
|
||||
<span class="annotation fn-annotatation" level="1">a new user was added, a network of trust grew</span>
|
||||
<pre>lic_html/T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64)
|
||||
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
|
||||
10.0.0.1 - - [05/Mar/2024:14:27:39 +0000] "GET /~murtaugh/__lab__/
|
||||
api/kernelspecs?1709648858775 HTTP/1.1" 200 540
|
||||
"https://hub.xpub.nl/chopchop/~murtaugh/__lab__/lab/tree/public_html/
|
||||
T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
|
||||
(KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" 10.0.0.1 - - [05/Mar/2024:14:27:39 +0000]
|
||||
"GET /~murtaugh/__lab__/api/sessions?1709648858744
|
||||
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
|
||||
10.0.0.1 - - [05/Mar/2024:14:27:39 +0000] "GET /~murtaugh/__lab__/
|
||||
api/kernelspecs?1709648858775 HTTP/1.1" 200 540
|
||||
"https://hub.xpub.nl/chopchop/~murtaugh/__lab__/lab/tree/public_html/
|
||||
T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
|
||||
(KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"</pre>
|
||||
<span class="annotation fn-annotatation" level="2">a new user was added, a network of trust grew</span>
|
||||
<pre> lic_html/T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64)
|
||||
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
|
||||
10.0.0.1 - - [05/Mar/2024:14:27:39 +0000] "GET /~murtaugh/__lab__/
|
||||
api/kernelspecs?1709648858775 HTTP/1.1" 200 540
|
||||
"https://hub.xpub.nl/chopchop/~murtaugh/__lab__/lab/tree/public_html/
|
||||
T2_Assessments.ipynb" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
|
||||
(KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"</pre>
|
||||
<span>there's a peak users logged into the server, if everyone uses
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<aside>
|
||||
<h3>whoami: Raspberry Pi 4 V1.4</h3>
|
||||
</aside>
|
||||
|
||||
<footer>
|
||||
<h3> current residency 127.0.0.1</h3>
|
||||
</footer>
|
||||
|
||||
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,23 @@
|
||||
body {
|
||||
font-family: Eurostile;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0 0;
|
||||
margin-bottom: 1cm;
|
||||
}
|
||||
|
||||
dfn, samp, dd {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: yellow;
|
||||
display: block;
|
||||
clear:both;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace;
|
||||
}
|
@ -0,0 +1,163 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="">
|
||||
<meta name="author" content="html makers">
|
||||
<meta name="description" content="">
|
||||
<meta name="keywords" content="">
|
||||
<meta property="og:type" content="">
|
||||
<meta property="og:title" content="A log book of {{now}} from OG">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="">
|
||||
<meta property="og:url" content="">
|
||||
<title>A log book of {{now}}</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<h1>TL;DR</h1>
|
||||
<h2>too log didn't read</h2>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
<h2>What happened today?</h2>
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u
|
||||
kitchen-bin.service -u kitchen-fridge.service -r -n</pre>
|
||||
{% if kitchen_services|length > 0 %}
|
||||
<ul>
|
||||
{% for item in kitchen_services %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>uptime -s</pre>
|
||||
<p>{{ since_last_boot }}</p>
|
||||
{% if since_last_boot is defined %}
|
||||
<mark class="annotation fn-annotatation" level="1">
|
||||
{% if days_since_last_boot|int > 14 %}This is unusual, we are used to ...{% else %}This is common, the
|
||||
fragility of these machines are more prominant than any cloud user expects. Partially because of scale,
|
||||
partially because a lot of labour that happen in datacenters just escapes us all when we want to just upload
|
||||
an image.{% endif %}
|
||||
</mark>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=useradd -r -n 1 --output-fields=MES</pre>
|
||||
|
||||
<p>{{last_user_added}}</p>
|
||||
{% if last_user_name is defined %}
|
||||
<mark class="annotation fn-annotatation" level="1">
|
||||
{{ last_user_name}} user/s was/were added [] days ago, and the network of trust grew ever so slightly.
|
||||
</mark>
|
||||
{% endif %}
|
||||
{% if last_user_added is defined %}
|
||||
<mark class="annotation fn-annotatation" level="2">
|
||||
Users will be trusted with not just the keys and passwords to the "house" which is the server, but with a
|
||||
portion of responsibility to keep it afloat and contribute to what makes it a community of practices (and
|
||||
network of knowledge and dependence).
|
||||
</mark>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl -S today _COMM=useradd -r</pre>
|
||||
{% if users_created_today is defined %}
|
||||
<mark class="annotation fn-annotatation" level="1">
|
||||
A level 1 annotation for users_created_today
|
||||
</mark>
|
||||
{% endif %}
|
||||
|
||||
{% if list_package_installs|length > 0 %}
|
||||
<pre><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</pre>
|
||||
<ul>
|
||||
{% for item in list_package_installs %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if list_package_upgrade|length > 0 %}
|
||||
<pre><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</pre>
|
||||
<ul>
|
||||
{% for item in list_package_upgrade %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if list_package_remove|length > 0 %}
|
||||
<pre><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</pre>
|
||||
<ul>
|
||||
{% for item in list_package_remove %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=systemd-login
|
||||
--output-fields=MESSAGE -S today -g "New session" | grep -v 'Boot'</pre>
|
||||
<ul>
|
||||
{% for item in logins_today %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</pre>
|
||||
<ul>
|
||||
{% for item in groups_created %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupremove -r --output-fields=MES</pre>
|
||||
|
||||
<ul>
|
||||
{% for item in groups_removed %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</pre>
|
||||
<ul>
|
||||
{% for item in user_modified %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</pre>
|
||||
<ul>
|
||||
{% for item in user_deleted %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<hr />
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>sudo service --status-all</pre>
|
||||
<ul>
|
||||
{% for item in list_active_services %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<pre><em>tldr@chopchop:~ $</em>getent group</pre>
|
||||
<ul>
|
||||
{% for item in list_groups %}
|
||||
<li>{{ item }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue