|
|
@ -27,29 +27,29 @@
|
|
|
|
<article>
|
|
|
|
<article>
|
|
|
|
<h1>Debug fiesta!</h1>
|
|
|
|
<h1>Debug fiesta!</h1>
|
|
|
|
<pre>
|
|
|
|
<pre>
|
|
|
|
last_user_added: {{ last_user_added}}
|
|
|
|
last_user_added: {{ last_user_added}}
|
|
|
|
last_user_added_name: {{ last_user_added_name}}
|
|
|
|
last_user_added_name: {{ last_user_added_name}}
|
|
|
|
users_created_today: {{ users_created_today}}
|
|
|
|
users_created_today: {{ users_created_today}}
|
|
|
|
since_last_boot: {{ since_last_boot}}
|
|
|
|
since_last_boot: {{ since_last_boot}}
|
|
|
|
list_package_installs: {{ list_package_installs}}
|
|
|
|
list_package_installs: {{ list_package_installs}}
|
|
|
|
list_package_upgrade: {{ list_package_upgrade}}
|
|
|
|
list_package_upgrade: {{ list_package_upgrade}}
|
|
|
|
list_package_remove: {{ list_package_remove}}
|
|
|
|
list_package_remove: {{ list_package_remove}}
|
|
|
|
device_info: {{ device_info}}
|
|
|
|
device_info: {{ device_info}}
|
|
|
|
days_since_last_boot : {{ days_since_last_boot }}
|
|
|
|
days_since_last_boot : {{ days_since_last_boot }}
|
|
|
|
kitchen_services : {{ kitchen_services }}
|
|
|
|
kitchen_services : {{ kitchen_services }}
|
|
|
|
ip_address : {{ ip_address }}
|
|
|
|
ip_address : {{ ip_address }}
|
|
|
|
logins_today : {{ logins_today }}
|
|
|
|
logins_today : {{ logins_today }}
|
|
|
|
list_groups : {{ list_groups }}
|
|
|
|
list_groups : {{ list_groups }}
|
|
|
|
list_active_services : {{ list_active_services }}
|
|
|
|
list_active_services : {{ list_active_services }}
|
|
|
|
debian_version : {{ debian_version }}
|
|
|
|
debian_version : {{ debian_version }}
|
|
|
|
kernel_version : {{ kernel_version }}
|
|
|
|
kernel_version : {{ kernel_version }}
|
|
|
|
hostname : {{ hostname }}
|
|
|
|
hostname : {{ hostname }}
|
|
|
|
|
|
|
|
|
|
|
|
groups_created : {{ groups_created }}
|
|
|
|
groups_created : {{ groups_created }}
|
|
|
|
groups_removed : {{ groups_removed }}
|
|
|
|
groups_removed : {{ groups_removed }}
|
|
|
|
user_modified : {{ user_modified }}
|
|
|
|
user_modified : {{ user_modified }}
|
|
|
|
user_deleted : {{ user_deleted }}
|
|
|
|
user_deleted : {{ user_deleted }}
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
</article>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
|
|
|
<article>
|
|
|
|
<article>
|
|
|
@ -131,7 +131,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% if list_package_installs|length > 0 %}
|
|
|
|
{% if list_package_installs|length > 0 %}
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</p>
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'install' /var/log/dpkg.log</p>
|
|
|
|
<b>Something here in the if statement is not working</b>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
|
Today the following packages were installed:
|
|
|
|
Today the following packages were installed:
|
|
|
@ -140,20 +139,20 @@
|
|
|
|
{% for item in list_package_installs %}
|
|
|
|
{% for item in list_package_installs %}
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% 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>
|
|
|
|
</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 %}
|
|
|
|
{% endif %}
|
|
|
|
{% if list_package_installs|length < 0 %} <mark>
|
|
|
|
{% if list_package_installs|length < 0 %} <mark>
|
|
|
|
Today no new packages were installed...
|
|
|
|
Today no new packages were installed...
|
|
|
|
</mark>
|
|
|
|
</mark>
|
|
|
|
<b>This part also not working</b>
|
|
|
|
<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>
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'upgrade' /var/log/dpkg.log</p>
|
|
|
|
<b>Something here in the if statement is not working</b>
|
|
|
|
<b>Something here in the if statement is not working</b>
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
@ -163,151 +162,157 @@
|
|
|
|
{% for item in list_package_upgrade %}
|
|
|
|
{% for item in list_package_upgrade %}
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% 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>
|
|
|
|
<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>
|
|
|
|
</mark>
|
|
|
|
|
|
|
|
<b>Does not show this last mark statement after the list</b>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if list_package_upgrade|length < 0 %} <mark>
|
|
|
|
{% if list_package_remove|length < 0 %} <mark>
|
|
|
|
Out of the installed packages, none were upgraded today...
|
|
|
|
No packages were removed today...
|
|
|
|
</mark>
|
|
|
|
</mark>
|
|
|
|
{% endif %}
|
|
|
|
{% 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 %}
|
|
|
|
{% if groups_created|length > 0 %}
|
|
|
|
<p><em>tldr@chopchop:~ $</em> grep 'remove' /var/log/dpkg.log</p>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</mark>
|
|
|
|
<ul>
|
|
|
|
<b>check dis</b>
|
|
|
|
{% for item in list_package_remove %}
|
|
|
|
{% endfor %}
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
<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 %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if groups_created|length > 0 %}
|
|
|
|
{% if groups_created|length < 0 %}
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=groupadd -r --output-fields=MESSAGE</p>
|
|
|
|
<mark>No groups were added today.</mark>
|
|
|
|
<mark>
|
|
|
|
{% endif %}
|
|
|
|
This command shows whether groups were added today.
|
|
|
|
<b>For some reason this if statement is not working, i didn't apply it to the next 4 categories because i
|
|
|
|
</mark>
|
|
|
|
wanted to check it works first</b>
|
|
|
|
<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>
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p>
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
|
This command shows whether groups were removed today.
|
|
|
|
This command shows whether groups were removed today.
|
|
|
|
</mark>
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
|
|
|
|
<ul>
|
|
|
|
<mark>
|
|
|
|
{% for item in groups_removed %}
|
|
|
|
This command shows whether users were modified today.
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
</mark>
|
|
|
|
<mark>
|
|
|
|
<ul>
|
|
|
|
These new groups were removed today. Most likely they were no longer relevant or purposeful.
|
|
|
|
{% for item in user_modified %}
|
|
|
|
</mark>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
<b>check dis</b>
|
|
|
|
<mark>
|
|
|
|
{% endfor %}
|
|
|
|
These users have been modified. Probably because someone changed their password, keys, or other
|
|
|
|
</ul>
|
|
|
|
settings, or given new permissions.
|
|
|
|
|
|
|
|
</mark>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
|
This command shows whether users were removed today.
|
|
|
|
This command shows whether users were modified today.
|
|
|
|
</mark>
|
|
|
|
</mark>
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
{% for item in user_deleted %}
|
|
|
|
{% for item in user_modified %}
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
|
It seems that a user was removed. This doesn't happen too often... It could be that they have done
|
|
|
|
These users have been modified. Probably because someone changed their password, keys, or other
|
|
|
|
something to lose the trust of the community. The circle of trust shrunk ever so slightly.
|
|
|
|
settings, or given new permissions.
|
|
|
|
</mark>
|
|
|
|
</mark>
|
|
|
|
{% endfor %}
|
|
|
|
<b>check dis</b>
|
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo service --status-all</p>
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
|
|
|
|
<mark>
|
|
|
|
<mark>
|
|
|
|
These are all of the services that are active, running, working to execute requests that enable everything
|
|
|
|
This command shows whether users were removed today.
|
|
|
|
on the server. They are marked with an [+].
|
|
|
|
</mark>
|
|
|
|
The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request.
|
|
|
|
<ul>
|
|
|
|
</mark>
|
|
|
|
{% for item in user_deleted %}
|
|
|
|
<ul>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
{% for item in list_active_services %}
|
|
|
|
<mark>
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
It seems that a user was removed. This doesn't happen too often... It could be that they have done
|
|
|
|
{% endfor %}
|
|
|
|
something to lose the trust of the community. The circle of trust shrunk ever so slightly.
|
|
|
|
</ul>
|
|
|
|
</mark>
|
|
|
|
|
|
|
|
<b>check dis</b>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u
|
|
|
|
<p><em>tldr@chopchop:~ $</em>sudo service --status-all</p>
|
|
|
|
kitchen-bin.service -u kitchen-fridge.service -r -n</p>
|
|
|
|
<mark>
|
|
|
|
{% if kitchen_services|length > 0 %}
|
|
|
|
These are all of the services that are active, running, working to execute requests that enable everything
|
|
|
|
<ul>
|
|
|
|
on the server. They are marked with an [+].
|
|
|
|
{% for item in kitchen_services %}
|
|
|
|
The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request.
|
|
|
|
<li>{{ item }}</li>
|
|
|
|
</mark>
|
|
|
|
{% endfor %}
|
|
|
|
<ul>
|
|
|
|
</ul>
|
|
|
|
{% for item in list_active_services %}
|
|
|
|
{% endif %}
|
|
|
|
<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 %}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="script.js"></script>
|
|
|
|
<script type="text/javascript" src="script.js"></script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
</html>
|