Statystyki: autor: mario_7 — 02 paź 2019, 22:10
Statystyki: autor: jacekalex — 30 wrz 2019, 10:52
Statystyki: autor: Willow — 30 wrz 2019, 10:26
Statystyki: autor: mario_7 — 29 wrz 2019, 22:22
Kod:
sudo chmod 644 /etc/systemd/journald.conf
Kod:
sudo chmod 640 /etc/systemd/journald.conf
Kod:
umaskgrep umask /etc/profile
Kod:
hpmkj@hpmkj-p15:~$ umask0022hpmkj@hpmkj-p15:~$ grep umask /etc/profilehpmkj@hpmkj-p15:~$
Statystyki: autor: Willow — 29 wrz 2019, 11:20
Kod:
sudo chmod 644 /etc/systemd/journald.conf
albo bezpieczniej:Kod:
sudo chmod 640 /etc/systemd/journald.conf
Kod:
umaskgrep umask /etc/profile
Statystyki: autor: jacekalex — 29 wrz 2019, 10:00
Dzięki za analize. Jest opcja szybkiej reinstalacji z zachowaniem ustawień i folderów?W logach pełno jest komunikatów typu:Co oznacza, że masz w systemie bajzel i ustawione bezsensowne uprawnienia na plikach... Odwrócić to w plikach, które pojawiają się w logach będzie łatwo, ale powstaje pytanie czy takich plików nie ma więcej...Kod:
[ 12.675084] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked executable. Please remove executable permission bits. Proceeding anyway.[ 12.675087] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Jeśli w katalogach systemowych masz uprawnienia do plików takie, że każdy może je zapisywać, to lepiej postaw system na nowo, bo takiej kaszanki nie ma sensu odwracać - nigdy nie wiadomo czy pliki systemowe nie zostały zmodyfikowane, a nadawanie właściwych uprawnień i sprawdzanie czy pliki są OK zajmie więcej niż reinstalacja systemu...
Statystyki: autor: Willow — 29 wrz 2019, 09:50
Kod:
[ 12.675084] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked executable. Please remove executable permission bits. Proceeding anyway.[ 12.675087] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Statystyki: autor: Willow — 28 wrz 2019, 22:55
Kod:
[ 12.675084] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked executable. Please remove executable permission bits. Proceeding anyway.[ 12.675087] systemd-journald[360]: Configuration file /etc/systemd/journald.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
Co oznacza, że masz w systemie bajzel i ustawione bezsensowne uprawnienia na plikach... Odwrócić to w plikach, które pojawiają się w logach będzie łatwo, ale powstaje pytanie czy takich plików nie ma więcej...Statystyki: autor: mario_7 — 28 wrz 2019, 22:21
Kod:
id 121dmesg > ~/dmesg.logjournalctl -b > ~/journalctl.log
Statystyki: autor: Willow — 28 wrz 2019, 21:17
Kod:
id 121dmesg > ~/dmesg.logjournalctl -b > ~/journalctl.log
Dwa ostatnie polecenia spowodują utworzenie plików dmesg.log i journalctl.log w katalogu domowym - załącz te pliki albo wrzuć ich treść na jakąś wklejarkę i podaj linki.Statystyki: autor: mario_7 — 28 wrz 2019, 20:53
Kod:
systemd-analyze critical-chain run-user-121.mount
Kod:
The time after the unit is active or started is printed after the "@" character.The time the unit takes to start is printed after the "+" character.run-user-121.mount @35.736s└─local-fs-pre.target @4.633s └─systemd-tmpfiles-setup-dev.service @3.677s +954ms └─kmod-static-nodes.service @3.543s +133ms └─systemd-journald.socket @3.535s └─system.slice @3.535s └─-.slice @3.500s
Statystyki: autor: Willow — 26 wrz 2019, 09:24
Statystyki: autor: Willow — 26 wrz 2019, 08:56
Kod:
systemd-analyze critical-chain run-user-121.mount
Statystyki: autor: mario_7 — 25 wrz 2019, 22:39
Kod:
id 121systemd-analyze dump | grep "Unit run-user-121.mount" -A 150
Kod:
Unit run-user-121.mount:Description: /run/user/121Instance: n/aUnit Load State: loadedUnit Active State: activeState Change Timestamp: Mon 2019-09-23 08:30:56 CESTInactive Exit Timestamp: Mon 2019-09-23 08:30:56 CESTActive Enter Timestamp: Mon 2019-09-23 08:30:56 CESTActive Exit Timestamp: n/aInactive Enter Timestamp: n/aGC Check Good: yesNeed Daemon Reload: noTransient: noPerpetual: noGarbage Collection Mode: inactiveSlice: system.sliceCGroup: n/aCGroup realized: noCGroup own mask: pidsName: run-user-121.mountInvocation ID: 34fc956ef4084b818bcfdc5a5d2426c6Source Path: /proc/self/mountinfoRequires: system.slice (origin-file)Requires: -.mount (origin-implicit)Conflicts: umount.target (origin-mountinfo-implicit origin-mountinfo-default)Before: umount.target (origin-mountinfo-default)Before: local-fs.target (origin-mountinfo-implicit)After: systemd-journald.socket (origin-file)After: swap.target (origin-mountinfo-default)After: -.mount (origin-implicit)After: system.slice (origin-file)After: local-fs-pre.target (origin-mountinfo-default)References: local-fs.target (origin-mountinfo-implicit)References: local-fs-pre.target (origin-mountinfo-default)References: umount.target (origin-mountinfo-implicit origin-mountinfo-default)References: swap.target (origin-mountinfo-default)References: systemd-journald.socket (origin-file)References: -.mount (origin-implicit)References: system.slice (origin-file)RequiresMountsFor: /run/user (origin-implicit)StopWhenUnneeded: noRefuseManualStart: noRefuseManualStop: noDefaultDependencies: yesOnFailureJobMode: replaceIgnoreOnIsolate: yesMount State: mountedResult: successWhere: /run/user/121What: tmpfsFile System Type: tmpfsOptions: rw,nosuid,nodev,relatime,size=804980k,mode=700,uid=121,gid=125From /proc/self/mountinfo: yesFrom fragment: noExtrinsic: noDirectoryMode: 0755SloppyOptions: noLazyUnmount: noForceUnmount: noUMask: 0022WorkingDirectory: /RootDirectory: /NonBlocking: noPrivateTmp: noPrivateDevices: noProtectKernelTunables: noProtectKernelModules: noProtectControlGroups: noPrivateNetwork: noPrivateUsers: noProtectHome: noProtectSystem: noMountAPIVFS: noIgnoreSIGPIPE: yesMemoryDenyWriteExecute: noRestrictRealtime: noKeyringMode: privateRuntimeDirectoryPreserve: noRuntimeDirectoryMode: 0755StateDirectoryMode: 0755CacheDirectoryMode: 0755LogsDirectoryMode: 0755ConfigurationDirectoryMode: 0755LimitNOFILE: 4096LimitNOFILESoft: 1024StandardInput: nullStandardOutput: journalStandardError: inheritSyslogFacility: daemonSyslogLevel: infoDynamicUser: noLockPersonality: noKillMode: control-groupKillSignal: SIGTERMSendSIGKILL: yesSendSIGHUP: noCPUAccounting=noIOAccounting=noBlockIOAccounting=noMemoryAccounting=noTasksAccounting=yesIPAccounting=noCPUWeight=18446744073709551615StartupCPUWeight=18446744073709551615CPUShares=18446744073709551615StartupCPUShares=18446744073709551615CPUQuotaPerSecSec=infinityIOWeight=18446744073709551615StartupIOWeight=18446744073709551615BlockIOWeight=18446744073709551615StartupBlockIOWeight=18446744073709551615MemoryLow=0MemoryHigh=18446744073709551615MemoryMax=18446744073709551615MemorySwapMax=18446744073709551615MemoryLimit=18446744073709551615TasksMax=4915DevicePolicy=autoDelegate=no-> Unit dev-ttyprintk.device:Description: /dev/ttyprintkInstance: n/aUnit Load State: loadedUnit Active State: activeState Change Timestamp: Mon 2019-09-23 08:30:25 CESTInactive Exit Timestamp: Mon 2019-09-23 08:30:25 CESTActive Enter Timestamp: Mon 2019-09-23 08:30:25 CESTActive Exit Timestamp: n/aInactive Enter Timestamp: n/aGC Check Good: yesNeed Daemon Reload: noTransient: noPerpetual: noGarbage Collection Mode: inactiveSlice: n/aCGroup: n/aCGroup realized: noName: dev-ttyprintk.deviceInvocation ID: 0c02b63fe66741f2830612eaf5863a42Following: sys-devices-virtual-tty-ttyprintk.deviceFollowing Set Member: sys-devices-virtual-tty-ttyprintk.deviceStopWhenUnneeded: noRefuseManualStart: noRefuseManualStop: noDefaultDependencies: yesOnFailureJobMode: replaceIgnoreOnIsolate: yesDevice State: pluggedSysfs Path: /sys/devices/virtual/tty/ttyprintk-> Unit dev-ttyS29.device:Description: /dev/ttyS29
Statystyki: autor: Willow — 23 wrz 2019, 10:35
Kod:
id 121systemd-analyze dump | grep "Unit run-user-121.mount" -A 150
Statystyki: autor: mario_7 — 20 wrz 2019, 09:43
Statystyki: autor: Willow — 19 wrz 2019, 18:05
Kod:
└─local-fs.target @28.250s
Kod:
rc boot logging started at Sun Jul 14 06:37:14 2019rc boot logging stopped at Sun Jul 14 06:37:22 2019rc default logging started at Sun Jul 14 06:37:23 2019rc default logging stopped at Sun Jul 14 06:37:28 2019
Kod:
Runlevel: sysinit devfs [ started ] sysfs [ started ] dmesg [ started ] udev [ started ] apparmor [ started ] cgroups [ started ] kmod-static-nodes [ started ] opentmpfiles-dev [ started ] udev-trigger [ started ]
Statystyki: autor: Willow — 05 sie 2019, 23:01
Kod:
└─local-fs.target @28.250s
Jeżeli ten system lokalne systemy plików montuje w ciągu 28 sekund, to ja bym taki system tak gruntownie zaorał, żeby tylko "dziura w dysku" po nim została. Kod:
rc boot logging started at Sun Jul 14 06:37:14 2019rc boot logging stopped at Sun Jul 14 06:37:22 2019rc default logging started at Sun Jul 14 06:37:23 2019rc default logging stopped at Sun Jul 14 06:37:28 2019
Kod:
Runlevel: sysinit devfs [ started ] sysfs [ started ] dmesg [ started ] udev [ started ] apparmor [ started ] cgroups [ started ] kmod-static-nodes [ started ] opentmpfiles-dev [ started ] udev-trigger [ started ]
Statystyki: autor: jacekalex — 17 lip 2019, 13:50
Statystyki: autor: Willow — 17 lip 2019, 07:29
Kod:
systemd-analyze critical-chainsystemd-analyze critical-chain systemd-journal-flush.service NetworkManager-wait-online.service
Statystyki: autor: mario_7 — 15 lip 2019, 20:16
Kod:
sudo nano /lib/systemd/system/systemd-journal-flush.service
Kod:
sudo apt-get install nano
Statystyki: autor: Willow — 07 lip 2019, 22:40
Kod:
sudo nano /lib/systemd/system/systemd-journal-flush.service
jeśli nie masz edytora nano to zainstaluj :Kod:
sudo apt-get install nano
Statystyki: autor: kobrawerde — 07 lip 2019, 15:40
Statystyki: autor: Willow — 07 lip 2019, 12:49
Statystyki: autor: kobrawerde — 06 lip 2019, 23:43
Statystyki: autor: Willow — 06 lip 2019, 20:37
Statystyki: autor: arecki — 04 lip 2019, 08:21
As such the solution is to remove every file within the folder (ideally making a backup of it somewhere, at least temporarily) and then setting a journal file size limit as described in Systemd/Journal#Journal size limit.
Statystyki: autor: Willow — 03 lip 2019, 22:18
As such the solution is to remove every file within the folder (ideally making a backup of it somewhere, at least temporarily) and then setting a journal file size limit as described in Systemd/Journal#Journal size limit.
Statystyki: autor: arecki — 03 lip 2019, 21:31
Statystyki: autor: Willow — 03 lip 2019, 17:44
Statystyki: autor: arecki — 02 lip 2019, 22:54
Statystyki: autor: Tomfoc — 02 lip 2019, 22:28
Statystyki: autor: Willow — 02 lip 2019, 22:21
Statystyki: autor: Willow — 02 lip 2019, 21:40
Statystyki: autor: Tomfoc — 02 lip 2019, 21:33
Statystyki: autor: Willow — 02 lip 2019, 20:57
Kod:
sudo apt autoremove
Statystyki: autor: Tomfoc — 02 lip 2019, 20:38
Kod:
sudo apt autoremove
Statystyki: autor: lcoyote — 02 lip 2019, 19:13
Kod:
sudo apt remove btrfs-progs********: Czytanie list pakietów... GotoweBudowanie drzewa zależności Odczyt informacji o stanie... GotoweNastępujące pakiety zostaną USUNIĘTE: btrfs-progs btrfs-tools0 aktualizowanych, 0 nowo instalowanych, 2 usuwanych i 0 nieaktualizowanych.Po tej operacji zostanie zwolnione 4 227 kB miejsca na dysku.Kontynuować? [T/n] t(Odczytywanie bazy danych ... 310998 plików i katalogów obecnie zainstalowanych.)Usuwanie pakietu btrfs-tools (4.15.1-1build1) ...Usuwanie pakietu btrfs-progs (4.15.1-1build1) ...Przetwarzanie wyzwalaczy pakietu initramfs-tools (0.130ubuntu3.7)...update-initramfs: Generating /boot/initrd.img-4.15.0-54-genericPrzetwarzanie wyzwalaczy pakietu libc-bin (2.27-3ubuntu1)...Przetwarzanie wyzwalaczy pakietu man-db (2.8.3-2ubuntu0.1)...
Statystyki: autor: Willow — 02 lip 2019, 18:47
Kod:
sudo apt remove btrfs-progs********: Czytanie list pakietów... GotoweBudowanie drzewa zależności Odczyt informacji o stanie... GotoweNastępujące pakiety zostaną USUNIĘTE: btrfs-progs btrfs-tools0 aktualizowanych, 0 nowo instalowanych, 2 usuwanych i 0 nieaktualizowanych.Po tej operacji zostanie zwolnione 4 227 kB miejsca na dysku.Kontynuować? [T/n] t(Odczytywanie bazy danych ... 310998 plików i katalogów obecnie zainstalowanych.)Usuwanie pakietu btrfs-tools (4.15.1-1build1) ...Usuwanie pakietu btrfs-progs (4.15.1-1build1) ...Przetwarzanie wyzwalaczy pakietu initramfs-tools (0.130ubuntu3.7)...update-initramfs: Generating /boot/initrd.img-4.15.0-54-genericPrzetwarzanie wyzwalaczy pakietu libc-bin (2.27-3ubuntu1)...Przetwarzanie wyzwalaczy pakietu man-db (2.8.3-2ubuntu0.1)...
Statystyki: autor: lcoyote — 02 lip 2019, 18:05
Statystyki: autor: kobrawerde — 02 lip 2019, 17:37
Kod:
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
To polecenie spowoduje, że aplikacja "Programy startowe" zacznie pokazywać również ukryte pozycje. Przejrzyj je i poczytaj trochę o poszczególnych pozycjach aby się upewnić, że można niektóre wyłączyć.Statystyki: autor: Tomfoc — 02 lip 2019, 13:49
Statystyki: autor: Willow — 02 lip 2019, 13:17
Statystyki: autor: kobrawerde — 01 lip 2019, 16:57