Code:
SD Card Image auf SATA entpacken:
1. gunzip -c /mnt/sdb/CentOS-Clean.img.gz | dd of=/dev/sda bs=1M
REBOOT
Installation von Edomi von SD Card
2. mkdir /mnt/usb
3. mount /dev/sdb /mnt/usb
4. mount -t vfat /dev/sdb /mnt/usb
5. cd /mnt/usb/edomi/install
6. sh install.sh
Wenn das Dateisystem read-only gemounted ist:
7. mount -n -o remount,rw /
8. fsck
9. setenforce 1
OPTINAL Zugang root/123456 Paswort ändern mit passwd
INFORMATION (siehe Boot Informationen, bei mir wurden Neubenamungen durchgeführt)
udev: renamed network interface eth0 to eth3
udev: renamed network interface eth1 to eth4
udev: renamed network interface eth2 to eth5
Den Fehler mit den 3x "press any key to continue" beim starten beheben
in der grub.conf die Zeile boot=/dev/sda auskommentieren
10. nano /boot/grub/grub.conf
Der Zeile boot=/dev/sda eine Raute voranstellen die Zeile terminal --timeout=5 serial console ändern in
11. terminal --timeout=0 serial console
Anpassen NICs
Mit dem Befehl dmesg können die Schnittstellen vom Board angezeigt werden.
Dann Schnittstellen an die rename-ten MACs anpassen
12. nano /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0d:b9:45:0d:29", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0d:b9:45:0d:2a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0d:b9:45:0d:28", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
eth0 der richtigen MAC zuweisen und UUID auskommentieren
13. nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
# HWADDR=00:0D:B9:3C:CA:D4
HWADDR=00:0d:b9:45:0d:28
TYPE=Ethernet
# UUID=71371705-3207-40ba-a3bf-c8f6616b15f5
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
DHCPCLASS=
IPADDR=10.0.0.240
NETMASK=255.255.255.0
GATEWAY=10.0.0.1
PEERDNS=yes
DNS1=8.8.4.4
Reboot
First Login ADMIN
admin/123456
Individuelle Bausteine (z.B. 303 Telegram) ggfs. nachinstallieren:
Telegram
yum install -y php-mbstring php-xml git wget php-process
cd /tmp
wget --no-check-certificate [URL]https://getcomposer.org/installer[/URL]
php installer
mv composer.phar /usr/local/bin/composer
cd /usr/local/edomi/main/include/php
git clone [URL]https://github.com/jonofe/php-telegram-bot[/URL]
cd php-telegram-bot
composer install



Einen Kommentar schreiben: