devices:srn21c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
devices:srn21c [2021/02/18 12:14] – external edit 127.0.0.1 | devices:srn21c [2024/08/13 19:55] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | :!: TODO: https:// | ||
- | ====== Information ====== | ||
- | |||
- | * Seagate Personal Cloud ((http:// | ||
- | * Debian ((https:// | ||
- | * vsftpd ((https:// | ||
- | * For whatever reason, the bootloader settings don't stick when the NAS looses power for a bit; these instructions work, but not reliable | ||
- | |||
- | ====== TFTP Server ====== | ||
- | |||
- | * A TFTP server is needed to serve files to uBoot | ||
- | |||
- | sudo dnf install ' | ||
- | |||
- | sudo firewall-cmd --add-service=' | ||
- | |||
- | ====== Debian Installer Files ====== | ||
- | |||
- | ===== uImage ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo wget -O '/ | ||
- | |||
- | ===== uInitrd ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo wget -O '/ | ||
- | |||
- | ===== Device Tree Blob ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo wget -O '/ | ||
- | |||
- | ====== clunc ====== | ||
- | |||
- | ===== Information ===== | ||
- | |||
- | * Needed to communicate with uBoot shell over network | ||
- | |||
- | ===== Acquire and Compile ===== | ||
- | |||
- | **** | ||
- | |||
- | git clone -b ' | ||
- | |||
- | ===== Execute ===== | ||
- | |||
- | * This needs to be running before the NAS is given power | ||
- | * Getting the IP for the NAS in this state is tricky; had to set a static ARP from AdvancedTomato GUI | ||
- | |||
- | cd ~/' | ||
- | |||
- | ===== Debian Installer Initialize ===== | ||
- | |||
- | * Following commands pulls the Debian installer files from the TFTP server and executes them to initiate the installer | ||
- | |||
- | 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 | ||
- | |||
- | ====== Debian Installer ====== | ||
- | |||
- | * No real tricks to install; just follow on-screen instructions | ||
- | |||
- | ====== Debian Installer Finalize ====== | ||
- | |||
- | ===== clunc Execute ===== | ||
- | |||
- | * This needs to be running before the Debian installer reboots at the last step | ||
- | * IP should theoretically be the same as before | ||
- | |||
- | cd ~/' | ||
- | |||
- | ===== uBoot ===== | ||
- | |||
- | * Following commands tell uBoot how to boot Debian on its own | ||
- | |||
- | 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 ' | ||
- | |||
- | setenv debian_boot 'hdd start; ide reset; setenv boot_part ${debian_boot_part}; | ||
- | |||
- | setenv bootcmd run debian_boot | ||
- | |||
- | saveenv | ||
- | |||
- | run bootcmd | ||
- | |||
- | ====== Settings ====== | ||
- | |||
- | * All interactions with Debian need to be done through SSH obviously and with '' | ||
- | |||
- | ===== Root ===== | ||
- | |||
- | **** | ||
- | |||
- | su | ||
- | |||
- | ===== Update Packages ===== | ||
- | |||
- | **** | ||
- | |||
- | apt update && apt full-upgrade -y && apt autoremove -y && apt clean && sync | ||
- | |||
- | ===== Change hostname ===== | ||
- | |||
- | **** | ||
- | |||
- | hostnamectl set-hostname ' | ||
- | |||
- | ===== Static IP ===== | ||
- | |||
- | nano '/ | ||
- | |||
- | < | ||
- | #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</ | ||
- | |||
- | ===== vsftpd ===== | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | **** | ||
- | |||
- | apt install ' | ||
- | |||
- | ==== Directory ==== | ||
- | |||
- | **** | ||
- | |||
- | mkdir -p '/ | ||
- | |||
- | ==== Configure ==== | ||
- | |||
- | nano '/ | ||
- | |||
- | write_enable=YES | ||
- | |||
- | utf8_filesystem=YES | ||
- | |||
- | ==== Create Users ==== | ||
- | |||
- | adduser ' | ||
- | |||
- | ===== Automatic Updates ===== | ||
- | |||
- | ==== Service ==== | ||
- | |||
- | nano '/ | ||
- | |||
- | [Service] | ||
- | Type=oneshot | ||
- | ExecStartPre='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStartPost='/ | ||
- | ExecStartPost='/ | ||
- | |||
- | ==== Timer ==== | ||
- | |||
- | nano '/ | ||
- | |||
- | [Unit] | ||
- | Description=Software Package Maintenance and Updater | ||
- | After=network-online.target | ||
- | Wants=network-online.target | ||
- | | ||
- | [Timer] | ||
- | OnCalendar=weekly | ||
- | Persistent=true | ||
- | | ||
- | [Install] | ||
- | WantedBy=timers.target |
C:/www/wiki/data/attic/devices/srn21c.1613668460.txt.gz · Last modified: (external edit)