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 15:06] – 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 / | ||
| - | ------------------------------ | ||
| - | 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 | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== SSD optimization ===== | ||
| - | See chapter [[linux: | ||
| - | ===== Locale ===== | ||
| - | For setting up locales see section [[linux: | ||
| - | < | ||
| - | # locale -a | ||
| - | --------------- | ||
| - | C | ||
| - | C.UTF-8 | ||
| - | dutch | ||
| - | en_US.utf8 | ||
| - | nl_NL | ||
| - | nl_NL@euro | ||
| - | nl_NL.iso88591 | ||
| - | nl_NL.iso885915@euro | ||
| - | nl_NL.utf8 | ||
| - | POSIX | ||
| - | |||
| - | # cat / | ||
| - | -------------------------- | ||
| - | |||
| - | # File generated by update-locale | ||
| - | LANG=en_US.UTF-8 | ||
| - | LANGUAGE=" | ||
| - | LC_TIME=" | ||
| - | LC_NUMERIC=" | ||
| - | LC_MONETARY=" | ||
| - | LC_PAPER=" | ||
| - | </ | ||
| - | ===== Power Saving ===== | ||
| - | * Disable the blinking cursor: | ||
| - | * Configure PowerTop: [[linux: | ||
| - | * Tune ASPM: [[linux: | ||
| - | |||
| - | For ASPM enabling the following lines are added to the powersave service. However no noticable difference are measured: | ||
| - | < | ||
| - | # Enable L1 and L0s on PCIe Intel Bridge and Realtek network adapter | ||
| - | # Does not seem to differ anything | ||
| - | setpci -s 00:1c.0 0x50.B=0x43 | ||
| - | setpci -s 01:00.0 0x80.B=0x43 | ||
| - | </ | ||
| - | |||
| - | ===== Sensors ===== | ||
| - | < | ||
| - | # apt-get install lm-sensors | ||
| - | </ | ||
| - | The following NEW packages will be installed: | ||
| - | < | ||
| - | # sensors-detect | ||
| - | |||
| - | --------------------------------------------------------------- | ||
| - | Trying family `VIA/ | ||
| - | Found unknown chip with ID 0xd352 | ||
| - | </ | ||
| - | |||
| - | The chip is an exclusive for MSI, and Nuvoton can not give me the datasheet because of an NDA with MSI. | ||
| - | The chip looks pretty similar to NCT6793D. | ||
| - | < | ||
| - | modprobe nct6775 force_id=0xd120 | ||
| - | </ | ||
| - | Now " | ||
| - | |||
| - | To load everything that is needed, add this to / | ||
| - | < | ||
| - | # nano / | ||
| - | |||
| - | #----cut here---- | ||
| - | # Chip drivers | ||
| - | coretemp | ||
| - | #----cut here---- | ||
| - | </ | ||
| - | Now " | ||
| - | < | ||
| - | # sensors | ||
| - | acpitz-virtual-0 | ||
| - | Adapter: Virtual device | ||
| - | temp1: | ||
| - | temp2: | ||
| - | |||
| - | coretemp-isa-0000 | ||
| - | Adapter: ISA adapter | ||
| - | Physical id 0: +40.0°C | ||
| - | Core 0: | ||
| - | Core 1: | ||
| - | </ | ||
| - | |||
| - | ===== Set the Welcome Text ===== | ||
| - | < | ||
| - | # nano /etc/motd | ||
| - | | ||
| - | | | | | / ___| | ||
| - | | |_| | ___ _ __ ___ ___\ `--. ___ _ ____ _____ _ __ | ||
| - | | _ |/ _ \| '_ ` _ \ / _ \`--. \/ _ \ '__\ \ / / _ \ '__| | ||
| - | | | | | (_) | | | | | | __/\__/ / __/ | \ V / __/ | | ||
| - | \_| |_/\___/|_| |_| |_|\___\____/ | ||
| - | </ | ||
| - | |||
| - | ===== Install frequently used packages ===== | ||
| - | # apt-get install sudo | ||
| - | # apt-get install iputils-ping | ||
| - | # apt-get install nano | ||
| - | # apt-get install less | ||
| - | |||
| - | |||
| - | ===== Container prerequisites ===== | ||
| - | Be aware of the following prerequistes for some containers: | ||
| - | |||
| - | * [[https:// | ||
| - | * [[linux: | ||
| - | * [[linux: | ||
| - | |||
| - | ==== lxc-menu ==== | ||
| - | Create the lxc-menu in / | ||
| - | * [[linux: | ||
domoticz/base-system.1697727972.txt.gz · Last modified: by oscar
