TODO: https://plugout.net/viewtopic.php?f=38&t=3274
sudo dnf install 'tftp-server'
sudo firewall-cmd --add-service='tftp'
sudo wget -O '/var/lib/tftpboot/uImage' 'http://ftp.debian.org/debian/dists/stretch/main/installer-armhf/current/images/network-console/seagate/personal-cloud/uImage'
sudo wget -O '/var/lib/tftpboot/uInitrd' 'http://ftp.debian.org/debian/dists/stretch/main/installer-armhf/current/images/network-console/seagate/personal-cloud/uInitrd'
sudo wget -O '/var/lib/tftpboot/armada-370-seagate-personal-cloud.dtb' 'http://ftp.debian.org/debian/dists/stretch/main/installer-armhf/current/images/device-tree/armada-370-seagate-personal-cloud.dtb'
git clone -b 'master' 'http://git.lacie-nas.org/clunc.git' ~/'clunc' && cd ~/'clunc' && make && sync
cd ~/'clunc' && ~/'clunc' -vi '192.168.1.129'
setenv serverip 192.168.1.151
setenv ipaddr 192.168.1.129
tftpboot 0x2000000 uImage
tftpboot 0x5100000 uInitrd
tftpboot 0x5000000 armada-370-seagate-personal-cloud.dtb
setenv fdt_high 0xffffffff
setenv initrd_high 0xffffffff
bootm 0x2000000 0x5100000 0x5000000
cd ~/'clunc' && ~/'clunc' -vi '192.168.1.129'
setenv debian_kernel_addr 0x2000000
setenv debian_initrd_addr 0x5100000
setenv debian_dtb_addr 0x5000000
setenv initrd_high 0xffffffff
setenv fdt_high 0xffffffff
setenv debian_boot_part 1
setenv debian_kernel_img /uImage
setenv debian_initrd_img /uInitrd
setenv debian_dtb_img /dtb
setenv debian_bootargs setenv bootargs ${console}
setenv debian_load_image 'ext2load ${disk_iface} ${disk_num}:${boot_part} ${kern_addr} ${debian_kernel_img} && iminfo ${debian_kernel_addr}; ext2load ${disk_iface} ${disk_num}:${boot_part} ${debian_initrd_addr} ${debian_initrd_img}; ext2load ${disk_iface} ${disk_num}:${boot_part} ${debian_dtb_addr} ${debian_dtb_img}'
setenv debian_boot 'hdd start; ide reset; setenv boot_part ${debian_boot_part}; for disk in ${disk_list}; do run disk_expand; echo Booting Debian from disk ${disk}...; run debian_load_image; run debian_bootargs; bootm ${debian_kernel_addr} ${debian_initrd_addr} ${debian_dtb_addr}; done'
setenv bootcmd run debian_boot
saveenv
run bootcmd
su
su
apt update && apt full-upgrade -y && apt autoremove -y && apt clean && sync
hostnamectl set-hostname 'x'
nano '/etc/network/interfaces'
#iface eth0 inet dhcp iface eth0 inet static address 192.168.1.154 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 84.200.69.80 84.200.70.40
apt install 'vsftpd'
mkdir -p '/srv/ftp/NAS' && chgrp -R 'ftp' '/srv/ftp/NAS'
nano '/etc/vsftpd.conf' && systemctl restart 'vsftpd'
write_enable=YES
utf8_filesystem=YES
adduser 'voidscream'
nano '/etc/systemd/system/debian-up.service'
[Service] Type=oneshot ExecStartPre='/usr/bin/apt' clean ExecStart='/usr/bin/apt' update ExecStart='/usr/bin/apt' full-upgrade -y ExecStart='/usr/bin/apt' autoremove -y ExecStartPost='/bin/sync' ExecStartPost='/bin/systemctl' reboot
nano '/etc/systemd/system/debian-up.timer' && systemctl daemon-reload && systemctl enable 'debian-up.timer' --now
[Unit] Description=Software Package Maintenance and Updater After=network-online.target Wants=network-online.target [Timer] OnCalendar=weekly Persistent=true [Install] WantedBy=timers.target