Skip to content

Instantly share code, notes, and snippets.

@johndavisnz
Last active May 1, 2024 20:15
Show Gist options
  • Save johndavisnz/bae122274fc6f0e006fdf0bc92fe6237 to your computer and use it in GitHub Desktop.
Save johndavisnz/bae122274fc6f0e006fdf0bc92fe6237 to your computer and use it in GitHub Desktop.
Installing Debian on the Nimbustor4/2 ( as5304t/as5202t )

Whilst Asustor's ADM suits most people, it is possible to install ANY intel operating system on the nimbustor4/2 (as5202t/as5304t) as they run fairly generic intel hardware (asmedia sata controller, rtl8125 2.5gbe nic and ite system management chip)

in this gist I'll detail the steps needed to install and configure Debian11

Before proceeding you need to decide where you're going to install Debian.

Most people will choose to install it to a usb3 attached drive - either a usb3 ssd ( samsung t5 or similar ) or a usb3 hdd. This gives the most straightforward install ( just tell Debian to use the entire usb3 drive to install to ) and maximises available space on the NAS HDDs

The other option is to install Debian direct to the NAS hard drives - that means no extra drive hanging off the nas, and you can raid1 mirror the system partition across all drives for added resiliency ( though this is somewhat limited as the EFI boot partition is only on sda - so in the case of sda failing you'd need to boot off install media and rebuild the EFI partition). Downside is a more complex setup procedure and you'll need to go thru manual partitioning as opposed to guided (you'll also need a working knowledge of how to setup md raid1 in the partitioner)

NOTE - do NOT try and use a basic usb pendrive to install the system to - they have neither the write speed nor the write durability needed

Similarly do NOT try and install to the eMMC built into the unit - it's only 8gb ( which is too small for anything but the most minimal install ), and like pendrives, eMMC lacks write durability and write speed. Most importantly if you over-write the eMMC you will be unable to revert to ADM ( the eMMc has a minimal boot image on it which is used to recover the system - and there is no tool to restore it if wiped )

For this guide I'll detail the external system drive method

step 1 - change BIOS settings https://gist.github.com/johndavisnz/3b47df6a255b718b3e910e6331656cf6

step 2 - install Debian https://gist.github.com/johndavisnz/0d721c0b97615a5720660024f4a5f158

step 3 - install custom kmod for fan control and setup lm_sensors https://gist.github.com/johndavisnz/b5aae0236141666a77aac094701d7839

step 4 - install custom fan control script https://gist.github.com/johndavisnz/06a5e1aabaf878add0ad95669b3a0b3d

step 5 - install rtl8125 and i915 firmware, install OMV6 and Plex https://gist.github.com/johndavisnz/d4d8cf1304ebade08f924411d2c83327

@Smart123s
Copy link

Fan controls and everything works perfectly on my AS6602T. Thanks for this detailed tutorial. It saved me from weeks of debugging.

@johndavisnz
Copy link
Author

johndavisnz commented Mar 19, 2023 via email

@Smart123s
Copy link

The package is available on my Turenas Scale install

root@truenas[/home/admin]# apt install hddtemp 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
hddtemp is already the newest version (0.3-beta15-54).

@johndavisnz
Copy link
Author

johndavisnz commented Mar 19, 2023 via email

@Smart123s
Copy link

Fan controls worked for me after reboots and I e only followed your guidance. (Adding it to /etc/modules)

I've also found this project: https://github.com/mafredri/asustor-platform-driver/tree/it87

I was hoping that it would get the LEDs to work properly but it didn't.

It's kinda late, but next week I want to check out the adm kernel source to see if there's anything useful in there. Although I'm pretty sure someone would have already published it here.

@UhuGeschwader
Copy link

Got it working on a new 5402T with OMV 6 installed. The script currently doesn't load on start-up, but after manually executing, the fan finally went to a nice silent state. Big thank you for your work.
Maybe you could add a hint to download the Linux-header file, else the make will abort with a "[/lib/modules//build/ not existent]". Yes, this could be solved with 5 minutes of research, but a small note is always appreciated.

@LPJon
Copy link

LPJon commented Dec 31, 2023

@johndavisnz Is there any chance you figured out how to get the LCD Display functional. I have also moved to TrueNAS Scale 22.10.1 but my Asustor is a AS6706T. I have everything else working except the LCD (Which at this point I can only turn on or off). I would love to get some simple data on the display like an IP address and maybe the hostname of the box.

@hlugt
Copy link

hlugt commented Jan 1, 2024

@johndavisnz Is there any chance you figured out how to get the LCD Display functional. I have also moved to TrueNAS Scale 22.10.1 but my Asustor is a AS6706T. I have everything else working except the LCD (Which at this point I can only turn on or off). I would love to get some simple data on the display like an IP address and maybe the hostname of the box.

You can have a look at: https://github.com/mafredri/lcm. Hostname and ip is done. Needs golang installed though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment