UFFICIALE L'OT di Linux e altri OS

Non ho capito bene cosa devi fare, ma se devi impedire ad un utente di configurare la rete, penso sia sufficiente eliminarlo da gruppo network.
devo, o meglio dovevo creare uno script che allo shutdown mi stoppasse NetworkManager senza che mi chiedesse il permesso root perchè la chiusura del pc era rallentata una 10ina di secondi dal servizio NM (a stop job is running for network manager..). alla fine ho stoppato e disabilitato NM e installato abilitato avviato wicd che, passano gli anni, ma non delude mai!
@lele.deb @e_ale92 @Davide Olianas domanda per gli (ex)utenti kde: alla chiusura della sessione kde come faccio a vedere che cosa sta succedendo in quei 5-6 sec di schermo nero? sono già in modalità verbosa.
 
devo, o meglio dovevo creare uno script che allo shutdown mi stoppasse NetworkManager senza che mi chiedesse il permesso root perchè la chiusura del pc era rallentata una 10ina di secondi dal servizio NM (a stop job is running for network manager..). alla fine ho stoppato e disabilitato NM e installato abilitato avviato wicd che, passano gli anni, ma non delude mai!
@lele.deb @e_ale92 @Davide Olianas domanda per gli (ex)utenti kde: alla chiusura della sessione kde come faccio a vedere che cosa sta succedendo in quei 5-6 sec di schermo nero? sono già in modalità verbosa.
loggin via cli su tty2 e htop?
 
3 comandi che non conoscevo:
systemd-analyze
systemd-analyze blame
systemd-analyze critical-chain

potenza degli ssd
:utonto:
Codice:
systemd-analyze
Startup finished in 2.433s (kernel) + 10.702s (userspace) = [B]13.135s[/B]

Codice:
systemd-analyze blame
          8.466s NetworkManager-wait-online.service
           412ms networking.service
           408ms ModemManager.service
           372ms nmbd.service
           363ms accounts-daemon.service
           361ms vboxdrv.service
           337ms samba-ad-dc.service
           304ms apparmor.service
           303ms dev-sda1.device
           290ms thermald.service
           266ms irqbalance.service
           202ms lm-sensors.service
           201ms pppd-dns.service
           200ms systemd-user-sessions.service
           199ms gpu-manager.service
           178ms smbd.service
           171ms avahi-daemon.service
           124ms NetworkManager.service
           121ms systemd-logind.service
            96ms grub-common.service
            80ms upower.service
            71ms ondemand.service
            70ms home.mount
            63ms udisks2.service
            41ms console-setup.service
            40ms systemd-journald.service
            39ms systemd-udev-trigger.service
            35ms wpa_supplicant.service
            31ms rsyslog.service
            29ms lightdm.service
            29ms systemd-timesyncd.service
            28ms systemd-udevd.service
            25ms systemd-modules-load.service
            25ms systemd-tmpfiles-setup-dev.service
            25ms vboxautostart-service.service
            24ms user@1000.service
            24ms resolvconf.service
            21ms systemd-tmpfiles-setup.service
            21ms alsa-restore.service
            19ms polkitd.service
            18ms dev-mqueue.mount
            18ms systemd-remount-fs.service
            17ms plymouth-read-write.service
            17ms systemd-journal-flush.service
            16ms sys-kernel-debug.mount
            13ms systemd-update-utmp.service
            12ms kmod-static-nodes.service
            11ms dev-hugepages.mount
            10ms systemd-random-seed.service
             7ms rtkit-daemon.service
             7ms systemd-sysctl.service
             6ms ufw.service
             5ms systemd-rfkill.service
             5ms sys-fs-fuse-connections.mount
             5ms rc-local.service
             3ms ureadahead-stop.service
             3ms systemd-update-utmp-runlevel.service
             2ms vboxweb-service.service
             2ms vboxballoonctrl-service.service
             2ms plymouth-quit-wait.service
             1ms snapd.socket
Codice:
systemd-analyze critical-chain
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.


graphical.target @10.685s
└─multi-user.target @10.685s
  └─smbd.service @10.506s +178ms
    └─nmbd.service @10.110s +372ms
      └─network-online.target @10.098s
        └─NetworkManager-wait-online.service @1.631s +8.466s
          └─NetworkManager.service @1.475s +124ms
            └─dbus.service @1.300s
              └─basic.target @1.284s
                └─sockets.target @1.284s
                  └─snapd.socket @1.276s +1ms
                    └─sysinit.target @1.272s
                      └─apparmor.service @534ms +304ms
                        └─local-fs.target @518ms
                          └─home.mount @445ms +70ms
                            └─dev-disk-by\x2duuid-8dbe18f4\x2dfe2b\x2d406f\x2d8adf\x2db10dfc091b0a.device @429ms
 
fatto ma, e scusami se mi sfugge qualcosa di importante, non mi serve conoscere i processi in esecuzione, ma quelli che mi creano lungaggine al logout.
htop dà parecchie informazioni e la "somma" di alcune di esse dovrebbero farti capire quali creano rogne. combina uso cpu, priorità, uso ram, tempo dall'avvio etc. e dovresti fare un passo in avanti :)

rapida legenda:
Htop - Monitoraggio processi e risorse da terminale, argomento Applicativi Linux | Federico Villa alias VilNet
 
@kernele confrontando con i tuoi tempi, devo mettere a posto qualche file di configurazione :asd:

Codice:
[root@fisso davide]# systemd-analyze
Startup finished in 6.981s (firmware) + 1.273s (loader) + 10.572s (kernel) + 1.169s (userspace) = 19.996s
 
Pubblicità
Pubblicità
Indietro
Top