|
|
|
@ -27,29 +27,29 @@
|
|
|
|
|
<article>
|
|
|
|
|
<h1>Debug fiesta!</h1>
|
|
|
|
|
<pre>
|
|
|
|
|
last_user_added: {{ last_user_added}}
|
|
|
|
|
last_user_added_name: {{ last_user_added_name}}
|
|
|
|
|
users_created_today: {{ users_created_today}}
|
|
|
|
|
since_last_boot: {{ since_last_boot}}
|
|
|
|
|
list_package_installs: {{ list_package_installs}}
|
|
|
|
|
list_package_upgrade: {{ list_package_upgrade}}
|
|
|
|
|
list_package_remove: {{ list_package_remove}}
|
|
|
|
|
device_info: {{ device_info}}
|
|
|
|
|
days_since_last_boot : {{ days_since_last_boot }}
|
|
|
|
|
kitchen_services : {{ kitchen_services }}
|
|
|
|
|
ip_address : {{ ip_address }}
|
|
|
|
|
logins_today : {{ logins_today }}
|
|
|
|
|
list_groups : {{ list_groups }}
|
|
|
|
|
list_active_services : {{ list_active_services }}
|
|
|
|
|
debian_version : {{ debian_version }}
|
|
|
|
|
kernel_version : {{ kernel_version }}
|
|
|
|
|
hostname : {{ hostname }}
|
|
|
|
|
|
|
|
|
|
groups_created : {{ groups_created }}
|
|
|
|
|
groups_removed : {{ groups_removed }}
|
|
|
|
|
user_modified : {{ user_modified }}
|
|
|
|
|
user_deleted : {{ user_deleted }}
|
|
|
|
|
</pre>
|
|
|
|
|
last_user_added: {{ last_user_added}}
|
|
|
|
|
last_user_added_name: {{ last_user_added_name}}
|
|
|
|
|
users_created_today: {{ users_created_today}}
|
|
|
|
|
since_last_boot: {{ since_last_boot}}
|
|
|
|
|
list_package_installs: {{ list_package_installs}}
|
|
|
|
|
list_package_upgrade: {{ list_package_upgrade}}
|
|
|
|
|
list_package_remove: {{ list_package_remove}}
|
|
|
|
|
device_info: {{ device_info}}
|
|
|
|
|
days_since_last_boot : {{ days_since_last_boot }}
|
|
|
|
|
kitchen_services : {{ kitchen_services }}
|
|
|
|
|
ip_address : {{ ip_address }}
|
|
|
|
|
logins_today : {{ logins_today }}
|
|
|
|
|
list_groups : {{ list_groups }}
|
|
|
|
|
list_active_services : {{ list_active_services }}
|
|
|
|
|
debian_version : {{ debian_version }}
|
|
|
|
|
kernel_version : {{ kernel_version }}
|
|
|
|
|
hostname : {{ hostname }}
|
|
|
|
|
|
|
|
|
|
groups_created : {{ groups_created }}
|
|
|
|
|
groups_removed : {{ groups_removed }}
|
|
|
|
|
user_modified : {{ user_modified }}
|
|
|
|
|
user_deleted : {{ user_deleted }}
|
|
|
|
|
</pre>
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
<article>
|
|
|
|
@ -131,7 +131,6 @@
|
|
|
|
|
|
|
|
|
|
{% if list_package_installs|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</p>
|
|
|
|
|
<b>Something here in the if statement is not working</b>
|
|
|
|
|
|
|
|
|
|
<mark>
|
|
|
|
|
Today the following packages were installed:
|
|
|
|
@ -140,20 +139,20 @@
|
|
|
|
|
{% for item in list_package_installs %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<mark>
|
|
|
|
|
Packages are often installed to use different software or coding languages or build alternative tools. Often
|
|
|
|
|
users have to talk about and consider which packages they need and why, as well as how much storage they take up
|
|
|
|
|
and how they will change their interactions with and on their shared server.
|
|
|
|
|
</mark>
|
|
|
|
|
</ul>
|
|
|
|
|
<mark>
|
|
|
|
|
Packages are often installed to use different software or coding languages or build alternative tools. Often
|
|
|
|
|
users have to talk about and consider which packages they need and why, as well as how much storage they take up
|
|
|
|
|
and how they will change their interactions with and on their shared server.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if list_package_installs|length < 0 %} <mark>
|
|
|
|
|
Today no new packages were installed...
|
|
|
|
|
</mark>
|
|
|
|
|
<b>This part also not working</b>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if list_package_upgrade|length > 0 %}
|
|
|
|
|
{% if list_package_upgrade|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p>
|
|
|
|
|
<b>Something here in the if statement is not working</b>
|
|
|
|
|
<mark>
|
|
|
|
@ -163,151 +162,157 @@
|
|
|
|
|
{% for item in list_package_upgrade %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<mark>
|
|
|
|
|
Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if list_package_upgrade|length < 0 %}
|
|
|
|
|
<mark> Out of the installed packages, none were upgraded today...</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if list_package_remove|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</p>
|
|
|
|
|
<mark>
|
|
|
|
|
These package were removed today:
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in list_package_remove %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<mark>
|
|
|
|
|
Packages are upgraded to fix Previous bugs they had, or allow new options for usage they did not have prior.
|
|
|
|
|
Packages could be removed because of consuming too much storage, not being used by the people who share the
|
|
|
|
|
server, or they are no longer secure. It is often good practice to 'do some spring cleaning' every now and
|
|
|
|
|
then and remove the packages that no longer serve you any purpose.
|
|
|
|
|
</mark>
|
|
|
|
|
<b>Does not show this last mark statement after the list</b>
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if list_package_upgrade|length < 0 %} <mark>
|
|
|
|
|
Out of the installed packages, none were upgraded today...
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if list_package_remove|length < 0 %} <mark>
|
|
|
|
|
No packages were removed today...
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
{% if logins_today is defined %}
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in logins_today %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<b>does not show the users of logins_today</b>
|
|
|
|
|
<mark>
|
|
|
|
|
These users have logged into our shared server chopchop, during the course of this day.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if list_package_remove|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</p>
|
|
|
|
|
{% if groups_created|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether groups were added today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in groups_created %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These package were removed today:
|
|
|
|
|
These new working groups were added today. They might be used for creating new projects, maintaining or
|
|
|
|
|
managing parts of the server, or for organizational purposes.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in list_package_remove %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<mark>
|
|
|
|
|
Packages could be removed because of consuming too much storage, not being used by the people who share the
|
|
|
|
|
server, or they are no longer secure. It is often good practice to 'do some spring cleaning' every now and
|
|
|
|
|
then and remove the packages that no longer serve you any purpose.
|
|
|
|
|
</mark>
|
|
|
|
|
<b>Does not show this last mark statement after the list</b>
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if list_package_remove|length < 0 %} <mark>
|
|
|
|
|
No packages were removed today...
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
{% if logins_today is defined %}
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in logins_today %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<b>does not show the users of logins_today</b>
|
|
|
|
|
<mark>
|
|
|
|
|
These users have logged into our shared server chopchop, during the course of this day.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<b>check dis</b>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if groups_created|length < 0 %}
|
|
|
|
|
<mark>No groups were added today.</mark>
|
|
|
|
|
{% 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>
|
|
|
|
|
|
|
|
|
|
{% if groups_created|length > 0 %}
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether groups were added today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in groups_created %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These new working groups were added today. They might be used for creating new projects, maintaining or
|
|
|
|
|
managing parts of the server, or for organizational purposes.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if groups_created|length < 0 %} <mark>
|
|
|
|
|
No groups were added today.
|
|
|
|
|
</mark>
|
|
|
|
|
{% 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>
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether groups were removed today.
|
|
|
|
|
</mark>
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether groups were removed today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in groups_removed %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These new groups were removed today. Most likely they were no longer relevant or purposeful.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in groups_removed %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These new groups were removed today. Most likely they were no longer relevant or purposeful.
|
|
|
|
|
</mark>
|
|
|
|
|
<b>check dis</b>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether users were modified today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in user_modified %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These users have been modified. Probably because someone changed their password, keys, or other
|
|
|
|
|
settings, or given new permissions.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether users were modified today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in user_modified %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
These users have been modified. Probably because someone changed their password, keys, or other
|
|
|
|
|
settings, or given new permissions.
|
|
|
|
|
</mark>
|
|
|
|
|
<b>check dis</b>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether users were removed today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in user_deleted %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
It seems that a user was removed. This doesn't happen too often... It could be that they have done
|
|
|
|
|
something to lose the trust of the community. The circle of trust shrunk ever so slightly.
|
|
|
|
|
</mark>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
|
|
|
|
|
<mark>
|
|
|
|
|
This command shows whether users were removed today.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in user_deleted %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
<mark>
|
|
|
|
|
It seems that a user was removed. This doesn't happen too often... It could be that they have done
|
|
|
|
|
something to lose the trust of the community. The circle of trust shrunk ever so slightly.
|
|
|
|
|
</mark>
|
|
|
|
|
<b>check dis</b>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<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.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in list_active_services %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
<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.
|
|
|
|
|
</mark>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for item in list_active_services %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<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 %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<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 %}
|
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</ul>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="script.js"></script>
|
|
|
|
|
<script type="text/javascript" src="script.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|