diff --git a/backups/backup_20260401_164257.tar.gz b/backups/backup_20260401_164257.tar.gz new file mode 100644 index 0000000..e2957ab Binary files /dev/null and b/backups/backup_20260401_164257.tar.gz differ diff --git a/logs/app.log b/logs/app.log new file mode 100644 index 0000000..0976160 --- /dev/null +++ b/logs/app.log @@ -0,0 +1,146 @@ +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 578 Apr 1 16:41 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 459 3158 4 171 3251 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:41:15 up 1 day, 4:28, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +Error: Directory does not exist +Usage: backup.sh +Backup Created: ../backups/backup_20260401_164137.tar.gz +Old backups cleaned up +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 461 3157 4 171 3250 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:41:49 up 1 day, 4:29, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 48 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 580 Apr 1 16:42 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 459 3159 4 171 3252 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:42:57 up 1 day, 4:30, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +Backup Created: ../backups/backup_20260401_164257.tar.gz +Old backups cleaned up +nginx is Stopped. Restarting... +nginx Restarted +ssh is Stopped. Restarting... +ssh Restarted +docker is Stopped. Restarting... +docker Restarted diff --git a/logs/backup.log b/logs/backup.log new file mode 100644 index 0000000..7c44933 --- /dev/null +++ b/logs/backup.log @@ -0,0 +1,22 @@ +Error: Directory does not exist +Usage: backup.sh +Backup Created: ../backups/backup_20260401_152743.tar.gz +Old backups cleaned up +Error: Directory does not exist +Usage: backup.sh +Error: Directory does not exist +Usage: backup.sh +Backup Created: ../backups/backup_20260401_162507.tar.gz +Old backups cleaned up +Error: Directory does not exist +Usage: backup.sh +Error: Directory does not exist +Usage: backup.sh +Backup Created: ../backups/backup_20260401_163032.tar.gz +Old backups cleaned up +Error: Directory does not exist +Usage: backup.sh +Backup Created: ../backups/backup_20260401_164137.tar.gz +Old backups cleaned up +Backup Created: ../backups/backup_20260401_164257.tar.gz +Old backups cleaned up diff --git a/logs/file_manager.log b/logs/file_manager.log new file mode 100644 index 0000000..c9c9e9b --- /dev/null +++ b/logs/file_manager.log @@ -0,0 +1,48 @@ +total 16K +-rw-r--r-- 1 pizzytech pizzy 37 Mar 30 15:08 a- +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 20:47 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +File created: sample.txt +File not found! +File created: sample.txt +File deleted: sample.txt +total 12K +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 15:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 575 Apr 1 16:20 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 579 Apr 1 16:25 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 578 Apr 1 16:28 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 578 Apr 1 16:41 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh +total 24K +-rw-r--r-- 1 pizzytech pizzy 632 Apr 1 16:24 backup.sh +-rw-r--r-- 1 pizzytech pizzy 878 Mar 31 21:00 file_manager.sh +-rw-r--r-- 1 pizzytech pizzy 405 Apr 1 15:44 process_monitor.sh +-rw-r--r-- 1 pizzytech pizzy 580 Apr 1 16:42 run_all.sh +-rw-r--r-- 1 pizzytech pizzy 838 Mar 31 19:55 system_check.sh +-rw-r--r-- 1 pizzytech pizzy 613 Mar 30 15:08 user_info.sh diff --git a/logs/process_monitor.log b/logs/process_monitor.log new file mode 100644 index 0000000..b5ecf5a --- /dev/null +++ b/logs/process_monitor.log @@ -0,0 +1,24 @@ +nginx is Stopped. Restarting... +nginx Restarted +ssh is Stopped. Restarting... +ssh Restarted +docker is Stopped. Restarting... +docker Restarted +nginx is Stopped. Restarting... +nginx Restarted +ssh is Stopped. Restarting... +ssh Restarted +docker is Stopped. Restarting... +docker Restarted +nginx is Stopped. Restarting... +nginx Restarted +ssh is Stopped. Restarting... +ssh Restarted +docker is Stopped. Restarting... +docker Restarted +nginx is Stopped. Restarting... +nginx Restarted +ssh is Stopped. Restarting... +ssh Restarted +docker is Stopped. Restarting... +docker Restarted diff --git a/logs/system_report_2026.log b/logs/system_report_2026.log new file mode 100644 index 0000000..ba0dba0 --- /dev/null +++ b/logs/system_report_2026.log @@ -0,0 +1,634 @@ +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 340K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 451 3183 4 155 3261 +Swap: 1024 0 1024 +------ CPU Load ------ + 12:19:39 up 22:11, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: +---------- Top 5 Memory-Consuming Processes ---------- +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 340K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 442 3189 4 157 3270 +Swap: 1024 0 1024 +------ CPU Load ------ + 12:23:42 up 22:15, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:54 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:30 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 453 3168 4 168 3259 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:16:43 up 22:36, 1 user, load average: 0.01, 0.03, 0.00 + ------ Total running processes: +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 448 3172 4 169 3264 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:28:45 up 22:48, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 448 3171 4 169 3264 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:33:37 up 22:53, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 450 3170 4 169 3262 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:36:57 up 22:56, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 452 3167 4 169 3260 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:41:56 up 23:01, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 448 3172 4 169 3264 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:49:25 up 23:08, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 451 3168 4 169 3261 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:51:22 up 23:10, 1 user, load average: 0.02, 0.02, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 205G 33G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 348K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 868K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 205G 33G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 448 3171 4 169 3264 +Swap: 1024 0 1024 +------ CPU Load ------ + 19:55:23 up 23:14, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 44 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar30 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38052 ? Ssl Mar30 0:31 /usr/lib/snapd/snapd +root 462 0.6 0.9 44184 37752 ? S Mar30 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar30 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 170 0.0 0.4 30180 18944 ? Ss Mar30 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 460 3160 4 168 3251 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:20:47 up 1 day, 4:08, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 37880 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 459 3159 4 171 3252 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:26:04 up 1 day, 4:13, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 37880 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 456 3162 4 171 3254 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:28:45 up 1 day, 4:16, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 459 3158 4 171 3251 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:41:15 up 1 day, 4:28, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 461 3157 4 171 3250 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:41:49 up 1 day, 4:29, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 48 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd +====== SYSTEM REPORT ====== +------ Disk Usage ------ +Filesystem Size Used Avail Use% Mounted on +none 1.9G 0 1.9G 0% /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2 +none 1.9G 4.0K 1.9G 1% /mnt/wsl +drivers 238G 206G 32G 87% /usr/lib/wsl/drivers +/dev/sdd 1007G 2.3G 954G 1% / +none 1.9G 364K 1.9G 1% /mnt/wslg +none 1.9G 0 1.9G 0% /usr/lib/wsl/lib +rootfs 1.9G 2.7M 1.9G 1% /init +none 1.9G 880K 1.9G 1% /run +none 1.9G 0 1.9G 0% /run/lock +none 1.9G 0 1.9G 0% /run/shm +none 1.9G 76K 1.9G 1% /mnt/wslg/versions.txt +none 1.9G 76K 1.9G 1% /mnt/wslg/doc +C:\ 238G 206G 32G 87% /mnt/c +snapfuse 128K 128K 0 100% /snap/bare/5 +snapfuse 92M 92M 0 100% /snap/gtk-common-themes/1535 +snapfuse 74M 74M 0 100% /snap/core22/1802 +snapfuse 74M 74M 0 100% /snap/core22/1908 +snapfuse 45M 45M 0 100% /snap/snapd/23771 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1286 +snapfuse 49M 49M 0 100% /snap/snapd/25935 +snapfuse 132M 132M 0 100% /snap/ubuntu-desktop-installer/1276 +tmpfs 380M 8.0K 380M 1% /run/user/0 +tmpfs 380M 8.0K 380M 1% /run/user/1000 +------ Memory Usage ------ + total used free shared buff/cache available +Mem: 3790 459 3159 4 171 3252 +Swap: 1024 0 1024 +------ CPU Load ------ + 16:42:57 up 1 day, 4:30, 1 user, load average: 0.00, 0.00, 0.00 + ------ Total running processes: 49 +---------- Top 5 Memory-Consuming Processes ---------- +USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND +root 290 0.0 2.1 1156020 81996 ? Sl Mar31 0:55 /snap/ubuntu-desktop-installer/1286/usr/bin/python3.10 -m subiquity.cmd.server --use-os-prober --storage-version=2 --postinst-hooks-dir=/snap/ubuntu-desktop-installer/1286/etc/subiquity/postinst.d +root 215 0.0 0.9 1769628 38008 ? Ssl Mar31 0:38 /usr/lib/snapd/snapd +root 462 0.4 0.9 44184 37752 ? S Mar31 8:22 python3 /snap/ubuntu-desktop-installer/1286/usr/bin/cloud-init status --wait +root 259 0.0 0.5 107272 21248 ? Ssl Mar31 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal +root 202443 0.0 0.5 293032 19840 ? Ssl 13:25 0:00 /usr/libexec/packagekitd diff --git a/logs/user_info.log b/logs/user_info.log new file mode 100644 index 0000000..471602a --- /dev/null +++ b/logs/user_info.log @@ -0,0 +1 @@ +Hello iq from indo! You are a Adult. diff --git a/scripts/backup.sh b/scripts/backup.sh new file mode 100644 index 0000000..31a9314 --- /dev/null +++ b/scripts/backup.sh @@ -0,0 +1,71 @@ +#!/bin/bash + +SOURCE_DIR=$1 +BACKUP_DIR="../backups" +LOG_FILE="../logs/backup.log" + + +if [[ ! -d "$SOURCE_DIR" ]]; then + echo "Error: Directory does not exist" | tee -a "$LOG_FILE" + echo "Usage: $0 " | tee -a "$LOG_FILE" + exit 1 +fi + + TIMESTAMP=$(date +"%Y%m%d_%H%M%S") + BACKUP_FILE="$BACKUP_DIR/backup_$TIMESTAMP.tar.gz" + tar -czf "$BACKUP_FILE" "$SOURCE_DIR" + echo "Backup Created: $BACKUP_FILE" | tee -a "$LOG_FILE" + + # keep only last 5 backups + + ls -t $BACKUP_DIR/backup_*.tar.gz | tail -n +6 | xargs -r rm + echo "Old backups cleaned up" | tee -a "$LOG_FILE" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/file_manager.sh b/scripts/file_manager.sh new file mode 100644 index 0000000..8bde3ed --- /dev/null +++ b/scripts/file_manager.sh @@ -0,0 +1,87 @@ +#!/bin/bash + +LOG_FILE="../logs/file_manager.log" +ACTION=$1 +FILE=$2 + + +case "$ACTION" in + create) + if [[ -f "$FILE" ]]; then + echo "File already exists" | tee -a "$LOG_FILE" + else + touch "$FILE" + echo "File created: $FILE" | tee -a "$LOG_FILE" + fi + ;; +delete) + + if [[ -f "$FILE" ]]; then + rm "$FILE" + echo "File deleted: $FILE" | tee -a "$LOG_FILE" + else + echo "File not found!" | tee -a "$LOG_FILE" + fi + ;; + list) + ls -lh | tee -a "$LOG_FILE" + ;; +rename) + NEW_NAME=$3 + if [[ -f "$FILE" ]]; then + mv "$FILE" "NEW_NAME" + echo "Renamed $FILE to $NEW_NAME" | tee -a "$LOG_FILE" + else + echo "File not found!" | tee -a "$LOG_FILE" + fi + ;; +*) + echo "Usage: $0 (create|delete|list|rename) filename filename?" | tee -a "$LOG_FILE" + ;; + + +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/process_monitor.sh b/scripts/process_monitor.sh new file mode 100644 index 0000000..2b90d2f --- /dev/null +++ b/scripts/process_monitor.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +LOG_FILE="../logs/process_monitor.log" +services=("nginx" "ssh" "docker") + +for service in "${services[@]}"; do + if pgrep -x "$service" > /dev/null; then + echo "$service is Running" | tee -a "$LOG_FILE" + else + echo "$service is Stopped. Restarting..." | tee -a "$LOG_FILE" + + # Stimulate restart + echo "$service Restarted" | tee -a "$LOG_FILE" + fi +done + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/run_all.sh b/scripts/run_all.sh new file mode 100644 index 0000000..7f50538 --- /dev/null +++ b/scripts/run_all.sh @@ -0,0 +1,69 @@ +#!/bin/bash +set -euo pipefail + +LOG_FILE="../logs/app.log" + +run_all() { +bash file_manager.sh list +bash system_check.sh +bash backup.sh . +bash process_monitor.sh +bash user_info.sh + +} + +menu() { +echo "1. Run All" +echo "2. System Check" +echo "3. Backup" +echo "4. Exit" + +} + +while true; do + menu + read -p "Choose Option: " choice + case $choice in + 1) run_all | tee -a "$LOG_FILE" ;; + 2) bash system_check.sh | tee -a "$LOG_FILE" ;; + 3) bash backup.sh . | tee -a "$LOG_FILE" ;; + 4) exit 0 ;; + *) echo "Invalid Option" ;; + +esac +done + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/system_check.sh b/scripts/system_check.sh new file mode 100644 index 0000000..76a7faa --- /dev/null +++ b/scripts/system_check.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +DATE=$(date +"%Y") +LOG_FILE="../logs/system_report_$DATE.log" + + +echo "====== SYSTEM REPORT ======" | tee -a "$LOG_FILE" + +echo "------ Disk Usage ------" | tee -a "$LOG_FILE" +df -h | tee -a "$LOG_FILE" + +echo "------ Memory Usage ------" | tee -a "$LOG_FILE" +free -m | tee -a "$LOG_FILE" + +echo "------ CPU Load ------" | tee -a "$LOG_FILE" +uptime | tee -a "$LOG_FILE" + +# Disk warning +USAGE=$(df / | awk 'NR==2 {print $5}' | tr -d '%') + +if (( USAGE > 80 )); then + echo "WARNING: Disk Usage is above 80%" | tee -a "$LOG_FILE" +fi + + +# Process Count + echo " ------ Total running processes: $(ps aux | wc -l)" | tee -a "$LOG_FILE" + +# Top 5 Memory-Consuming Processes + +echo "---------- Top 5 Memory-Consuming Processes ----------" | tee -a "$LOG_FILE" + ps aux --sort=-%mem | head -n 6 | tee -a "$LOG_FILE" + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/user_info.sh b/scripts/user_info.sh new file mode 100644 index 0000000..70bac4f --- /dev/null +++ b/scripts/user_info.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +LOG_FILE="../logs/user_info.log" + +read -p "Enter your name: " name +read -p "Enter your age: " age +read -p "Enter your country: " country + +if [[ -z "$name" || -z "$age" || -z "$country" ]]; then + echo "Error: All fields are required" | tee a- "$LOG_FILE" + exit 1 +fi + +if ! [[ "$age" =~ ^[0-9]+$ ]]; then + echo "Error: Age must be Numeric" | tee -a "$LOG_FILE" + exit 1 +fi + +if (( age < 18 )); then + category="Minor" +elif (( age <= 65 )); then + category="Adult" +else + +category="Senior" + +fi + +message="Hello $name from $country! You are a $category." + +echo "$message" | tee a- "$LOG_FILE" + +