goodrobots / maverick

UAV Autonomous Systems Management
https://goodrobots.github.io/maverick/
MIT License
171 stars 61 forks source link

Turn off unnecessary system services #899

Closed fnoop closed 4 years ago

fnoop commented 4 years ago
root       397     1  0 09:56 ?        00:00:00 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wman0.pid -i wman0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf
root       406     1  0 09:56 ?        00:00:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.wman0.pid -lf /var/lib/dhcp/dhclient.wman0.leases -I -df /var/lib/dhcp/dhclient6.wman0.leases wman0
systemd+   411     1  0 09:56 ?        00:00:00 /lib/systemd/systemd-timesyncd
root       416     1  0 09:56 ?        00:00:08 /usr/sbin/rsyslogd -n -iNONE
root       432     1  0 09:56 ?        00:00:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
root       442     1  0 09:56 ?        00:00:00 /usr/sbin/cron -f
message+   445     1  0 09:56 ?        00:00:16 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       446     1  0 09:56 ?        00:00:08 /lib/systemd/systemd-logind
nobody     447     1  0 09:56 ?        00:00:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root       453     1  0 09:56 ?        00:00:02 /usr/sbin/rngd -r /dev/hwrng
root       521     1  0 09:56 ?        00:00:00 /usr/lib/policykit-1/polkitd --no-debug
root       561     1  0 09:56 ?        00:00:00 dhclient wman0
root       572     1  0 09:56 ?        00:00:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -
root       573     2  0 09:56 ?        00:00:00 [kworker/u9:1-hci0]
root       577     1  0 09:56 ?        00:00:00 /usr/lib/bluetooth/bluetoothd
mav        641     1  0 09:56 ?        00:00:10 /srv/maverick/software/python/bin/python3 /srv/maverick/software/maverick/bin/maverick-visiond
root       654     1  0 09:56 tty1     00:00:00 /bin/login -p --
root       702     1  0 09:56 ?        00:00:00 /usr/sbin/sshd -D
openldap   936     1  0 09:56 ?        00:00:00 /usr/sbin/slapd -h ldap:/// ldapi:/// ldaps:/// -g openldap -u openldap -F /etc/ldap/slapd.d
Debian-+   941     1  0 09:56 ?        00:00:00 /usr/sbin/exim4 -bd -q30m
mav       1107     1  0 10:09 ?        00:00:00 /lib/systemd/systemd --user
mav       1110  1107  0 10:09 ?        00:00:00 (sd-pam)

Some services still running on a fully configured raspberrylite

fnoop commented 4 years ago
root       432     1  0 09:56 ?        00:00:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
root       577     1  0 09:56 ?        00:00:00 /usr/lib/bluetooth/bluetoothd
Debian-+   941     1  0 09:56 ?        00:00:00 /usr/sbin/exim4 -bd -q30m

These can/should probably be turned off by default

fnoop commented 4 years ago
/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket 
/usr/sbin/rngd -r /dev/hwrng
/usr/lib/policykit-1/polkitd --no-debug
/usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -

?

fnoop commented 4 years ago

rngd needs to stay - it's the OS conduit to the bcm hardware random generator

fnoop commented 4 years ago

No need to stop bluetooth/hciattach - they're on serial1/ttyAMA0 now, whereas serial FC connection is on the proper hardware serial0/ttyS0.