main
vitrinekast 9 months ago
parent 795065b209
commit 23b2e5ba92

@ -155,10 +155,6 @@ h6 {
page-break-inside: avoid;
}
ol,
ul {
margin: 1em 0 0 1.7em;
}
li > ol,
li > ul {
margin-top: 0;
@ -330,10 +326,14 @@ q {
src: url("../fonts/CascadiaCode-Bold.ttf");
}
:root {
font-size: 16px;
}
body {
font-family: "CascadiaCode VTT";
font-size: .8em;
border:2em solid green;
}
article {
@ -351,6 +351,7 @@ ul {
ul, ol, li {
font-size: .8rem;
padding: 0 0;
}
dfn,

@ -69,14 +69,14 @@
</mark>
{% endif %}
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl -S today _COMM=useradd -r</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl -S today _COMM=useradd -r</p>
<mark>
Users are assigned to groups, which allow them rights to read or edit files, run commands or apply infrastructural changes. For chopchop, we all have 'sudo rights': the ability to perform any command, including the more sensitive ones. Sudo is a command that's short for 'superuser do', with it, a user has more privileges, like installing or updating a package or performing a restart.
</mark>
{% if list_package_installs|length > 0 %}
<Pre><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</Pre>
<p><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</p>
<b>Something here in the if statement is not working</b>
<mark>
@ -99,7 +99,7 @@
{% endif %}
{% if list_package_upgrade|length > 0 %}
<Pre><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</Pre>
<p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p>
<b>Something here in the if statement is not working</b>
<mark>
Out of the installed packages, these ones were upgraded:
@ -120,7 +120,7 @@
{% endif %}
{% if list_package_remove|length > 0 %}
<Pre><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</Pre>
<p><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</p>
<mark>
These package were removed today:
</mark>
@ -142,8 +142,8 @@
<mark>
These actions are only a portion of the work... There's also the relationships of the people who care for the server enough to maintain it... The hours they put into meeting each other, discussing and deciding on how to move forward... They are sharing a digital landscape in which there are no hierarchies of landlords and renters... So, they find different ways to make a space for learning and co-habitation... This list is not exhaustive.
</mark>
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=systemd-login
--output-fields=MESSAGE -S today -g "New session" | grep -v 'Boot'</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=systemd-login
--output-fields=MESSAGE -S today -g "New session" | grep -v 'Boot'</p>
<mark>
Users can login to the server using the SSH (secure shell) protocol. This allows a user to explore files, make changes, run commands and speak to the server from their own machine. This is useful when working remotely, and also to allow multiple users logging into the server simultaneously. Current XPUB1 students have a chopchop user, as well as the tutors. Additionally, there are some users not associated with a person, like our shared user 'chipchip' and users for running specific processes or creating projects.
</mark>
@ -160,7 +160,7 @@
{% endif %}
{% if groups_created|length > 0 %}
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</p>
<mark>
This command shows whether groups were added today.
</mark>
@ -180,7 +180,7 @@
{% endif %}
<b>For some reason this if statement is not working, i didn't apply it to the next 4 categories because i wanted to check it works first</b>
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p>
<mark>
This command shows whether groups were removed today.
</mark>
@ -193,7 +193,7 @@
{% endfor %}
</ul>
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
<mark>
This command shows whether users were modified today.
</mark>
@ -206,7 +206,7 @@
{% endfor %}
</ul>
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
<mark>
This command shows whether users were removed today.
</mark>
@ -221,7 +221,7 @@
<hr />
<Pre><em>tldr@chopchop:~ $</em>sudo service --status-all</Pre>
<p><em>tldr@chopchop:~ $</em>sudo service --status-all</p>
<mark>
These are all of the services that are active, running, working to execute requests that enable everything on the server. They are marked with an [+].
The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request.
@ -232,8 +232,8 @@ The rest, marked with a [-], are idle, not running, or waiting to be activating
{% endfor %}
</ul>
<Pre><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u
kitchen-bin.service -u kitchen-fridge.service -r -n</Pre>
<p><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u
kitchen-bin.service -u kitchen-fridge.service -r -n</p>
{% if kitchen_services|length > 0 %}
<ul>
{% for item in kitchen_services %}

Loading…
Cancel
Save