User Tools

Site Tools


domoticz:base-system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
domoticz:base-system [2023/10/19 16:43] – [Locale] oscardomoticz: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: 
-<code> 
-# nano /etc/ssh/sshd_config 
---------------------------- 
  
-# Authentication: 
- 
-LoginGraceTime 2m 
-AllowUsers root pi 
-PermitRootLogin yes 
-StrictModes yes 
-#MaxAuthTries 6 
-#MaxSessions 10 
- 
---------------------------- 
-# systemctl restart ssh 
-</code> 
- 
-===== Networking ===== 
-<code> 
-# nano /etc/network/interfaces 
------------------------------- 
-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 
-</code> 
-===== Migrate Root Filesystem to F2FS ===== 
-[[raspberry:raspberry-sd|Raspberry SD card]] 
-===== Adjust fstab ===== 
-<code> 
-# nano /etc/fstab 
------------------ 
-proc                  /proc           proc    defaults          0       0 
-PARTUUID=5d3fca68-01  /boot/firmware  vfat    defaults          0       2 
-PARTUUID=5d3fca68-02  /               f2fs    defaults,noatime,nodiratime  0       1 
-tmpfs                 /var/log        tmpfs   defaults,noatime,nosuid,mode=0755,size=80m    0 0 
-tmpfs                 /var/tmp        tmpfs   defaults,noatime,nosuid,size=30m    0 0 
-</code> 
- 
-===== Set the Welcome Text ===== 
-<code> 
-# nano /etc/motd 
----------------- 
-______                      _   _ 
-|  _  \                    | | (_) 
-| | | |___  _ __ ___   ___ | |_ _  ___ ____ 
-| | | / _ \| '_ ` _ \ / _ \| __| |/ __|_  / 
-| |/ / (_) | | | | | | (_) | |_| | (__ / / 
-|___/ \___/|_| |_| |_|\___/ \__|_|\___/___| 
-</code> 
- 
- 
- 
-===== Locale ===== 
-For setting up locales see section [[linux:debian:locales|Locale]]. On our Home server the configuration should be as follows: 
-<code> 
-# locale -a 
---------------- 
-C 
-C.utf8 
-en_GB.utf8 
-en_US.utf8 
-nl_NL.utf8 
-POSIX 
- 
-# cat /etc/default/locale 
--------------------------- 
- 
-#  File generated by update-locale 
-LANG=en_US.UTF-8 
-LANGUAGE="en_US:en" 
-LC_TIME="nl_NL.UTF-8" 
-LC_NUMERIC="nl_NL.UTF-8" 
-LC_MONETARY="nl_NL.UTF-8" 
-LC_PAPER="nl_NL.UTF-8" 
-</code> 
-===== Power Saving ===== 
-  * Disable the blinking cursor:[[linux:system:powersave:cursor-blink|Cursor blink off]] 
-  * Configure PowerTop: [[linux:system:powersave:powertop|Powertop]] 
-  * Tune ASPM: [[linux:system:powersave:aspm|ASPM on Linux]] 
- 
- 
-===== 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://wiki.oscardegroot.nl/doku.php?id=linux:homeserver:mailserver:rspamd#redis|Mailserver - Redis]] 
-  * [[linux:homeserver:fileserver#Host preparations|Prerequisited for Fileserver]] 
-  * [[linux:homeserver:webserver#Host preparations|Prerequisited for Webserver]] 
- 
-==== lxc-menu ==== 
-Create the lxc-menu in /usr/local/bin 
-  * [[linux:homeserver:lxc-menu|LXC-Menu]] 
domoticz/base-system.1697733817.txt.gz · Last modified: by oscar