domoticz:base-system
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| domoticz:base-system [2023/10/19 17:21] – oscar | domoticz:base-system [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Base Setup ====== | ||
| - | ---- | ||
| - | ===== OS installation ===== | ||
| - | Download PI OS image and follow the image installation steps. | ||
| - | ===== Enable ssh ===== | ||
| - | In order to be able to remote ssh into the server edit the sshd configuration file. And set the following parameters: | ||
| - | < | ||
| - | # nano / | ||
| - | --------------------------- | ||
| - | |||
| - | # Authentication: | ||
| - | |||
| - | LoginGraceTime 2m | ||
| - | AllowUsers root pi | ||
| - | PermitRootLogin yes | ||
| - | StrictModes yes | ||
| - | # | ||
| - | # | ||
| - | |||
| - | --------------------------- | ||
| - | # systemctl restart ssh | ||
| - | </ | ||
| - | |||
| - | ===== Networking ===== | ||
| - | === / | ||
| - | < | ||
| - | # nano / | ||
| - | -------------------- | ||
| - | domoticz | ||
| - | </ | ||
| - | === /etc/hosts === | ||
| - | < | ||
| - | # nano /etc/hosts | ||
| - | -------------------- | ||
| - | 127.0.0.1 localhost | ||
| - | :: | ||
| - | ff02:: | ||
| - | ff02:: | ||
| - | |||
| - | 127.0.1.1 domoticz | ||
| - | </ | ||
| - | === / | ||
| - | < | ||
| - | # nano / | ||
| - | ------------------------------ | ||
| - | auto lo eth0 | ||
| - | iface lo inet loopback | ||
| - | |||
| - | #iface eth0 inet manual | ||
| - | iface eth0 inet static | ||
| - | address 192.168.178.xx | ||
| - | netmask 255.255.255.0 | ||
| - | network 192.168.178.0 | ||
| - | broadcast 192.168.178.255 | ||
| - | gateway 192.168.178.1 | ||
| - | </ | ||
| - | |||
| - | === resolv.conf === | ||
| - | < | ||
| - | # nano / | ||
| - | ----------------------- | ||
| - | nameserver 192.168.178.1 | ||
| - | nameserver fdaa: | ||
| - | </ | ||
| - | ===== Migrate Root Filesystem to F2FS ===== | ||
| - | [[raspberry: | ||
| - | ===== Adjust fstab ===== | ||
| - | < | ||
| - | # nano /etc/fstab | ||
| - | ----------------- | ||
| - | proc /proc | ||
| - | PARTUUID=5d3fca68-01 | ||
| - | PARTUUID=5d3fca68-02 | ||
| - | tmpfs / | ||
| - | tmpfs / | ||
| - | </ | ||
| - | |||
| - | ===== Disable Wifi + Bluetooth ===== | ||
| - | < | ||
| - | # nano / | ||
| - | ----------------------- | ||
| - | [all] | ||
| - | dtoverlay=disable-wifi | ||
| - | dtoverlay=disable-bt | ||
| - | </ | ||
| - | ===== Disable Services ===== | ||
| - | Let's disable services that are automatically started but we do not need: | ||
| - | < | ||
| - | systemctl stop NetworkManager | ||
| - | systemctl disable NetworkManager | ||
| - | systemctl mask NetworkManager | ||
| - | systemctl stop serial-getty@ttyAMA0 | ||
| - | systemctl disable serial-getty@ttyAMA0 | ||
| - | systemctl mask serial-getty@ttyAMA0 | ||
| - | </ | ||
| - | |||
| - | ===== Set the Welcome Text ===== | ||
| - | < | ||
| - | # nano /etc/motd | ||
| - | ---------------- | ||
| - | ______ | ||
| - | | _ \ | | (_) | ||
| - | | | | |___ _ __ ___ ___ | |_ _ ___ ____ | ||
| - | | | | / _ \| '_ ` _ \ / _ \| __| |/ __|_ / | ||
| - | | |/ / (_) | | | | | | (_) | |_| | (__ / / | ||
| - | |___/ \___/|_| |_| |_|\___/ \__|_|\___/ | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | ===== Locale ===== | ||
| - | For setting up locales see section [[linux: | ||
| - | < | ||
| - | # locale -a | ||
| - | --------------- | ||
| - | C | ||
| - | C.utf8 | ||
| - | en_GB.utf8 | ||
| - | en_US.utf8 | ||
| - | nl_NL.utf8 | ||
| - | POSIX | ||
| - | |||
| - | # cat / | ||
| - | -------------------------- | ||
| - | |||
| - | # File generated by update-locale | ||
| - | LANG=en_US.UTF-8 | ||
| - | LANGUAGE=" | ||
| - | LC_TIME=" | ||
| - | LC_NUMERIC=" | ||
| - | LC_MONETARY=" | ||
| - | LC_PAPER=" | ||
| - | </ | ||
| - | ===== Apt-Get Update ===== | ||
| - | When getting the following message: //"key is stored in legacy trusted.gpg keyring (/ | ||
| - | < | ||
| - | # apt-key list | ||
| - | -------------- | ||
| - | Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). | ||
| - | / | ||
| - | -------------------- | ||
| - | pub | ||
| - | A0DA 38D0 D76E 8B5D 6388 7281 9165 938D 90FD DD2E | ||
| - | uid [ unknown] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) < | ||
| - | sub | ||
| - | |||
| - | / | ||
| - | ----------------------------------------------------- | ||
| - | pub | ||
| - | CF8A 1AF5 02A2 AA2D 763B AE7E 82B1 2992 7FA3 303E | ||
| - | uid [ unknown] Raspberry Pi Archive Signing Key | ||
| - | sub | ||
| - | </ | ||
| - | The offending key is the first one (Mike Thompson). You should the last 8 characters (excluding the space) under the line after pub. So from the line “A0DA 38D0 D76E 8B5D 6388 7281 9165 938D 90FD DD2E”, I’ll take the last 8 characters “90FD DD2E”, remove the space and then use it to import the GPG key in its dedicated file under the / | ||
| - | |||
| - | sudo apt-key export 90FDDD2E | sudo gpg --dearmour -o / | ||
| - | |||
| - | I created a new file mikethompson.gpg here The filename does not matter but it’s good for identification. If the command runs successfully, | ||
| - | |||
| - | |||
| - | |||
| - | ===== Power Saving ===== | ||
| - | * Disable the blinking cursor: | ||
| - | * Configure PowerTop: [[linux: | ||
| - | * Tune ASPM: [[linux: | ||
| - | |||
| - | |||
| - | ===== Install frequently used packages ===== | ||
| - | # apt-get install sudo | ||
| - | # apt-get install iputils-ping | ||
| - | # apt-get install nano | ||
| - | # apt-get install less | ||
| - | |||
domoticz/base-system.1697736079.txt.gz · Last modified: by oscar
