Skip to content

How to install Debian on a QNAP TS-451DeU without a monitor

Notifications You must be signed in to change notification settings

jnbastoky/Debian-on-QNAP-TS-451DeU

Repository files navigation

Debian-on-QNAP-TS-451DeU

The QNAP TS-451DeU NAS server is only capable for operating in a headless mode. All configuration and maintenance is performed throught the web interface. The server has a graphics processor but does not have a port. To install an alternate OS on the hardware some additional steps are required. The following details the procedure for installation of the Debian operating system on this hardware.

Hardware

  1. QNAP TS-451DeU or similar QNAP hardware
  2. USB Serial interface1
  3. JST PH 4-pin female connector2
  4. USB drive

Procedure

Backup the QNAP

  1. Open an SSH connection to the QNAP. You may need to enable SSH in the QNAP Control Panel.
  2. Backup the firmware.3
    cat /dev/mmcblk0boot0 > mmcblk0boot0
    cat /dev/mmcblk0boot1 > mmcblk0boot1
    cat /dev/mmcblk0rpmb > mmcblk0rpmb
    Store these files for recovery.

Create Ubuntu installer on USB drive

  1. Download Ubuntu iso
  2. Copy to USB drive
    sudo dd if=mini.iso of=/dev/sdX bs=1M status=progress
    sync

Create Debian installer on USB drive

  1. Install simple-cdd package
    apt install simple-cdd
  2. Build installer iso4
    mkdir tmp-cdd
    cd tmp-cdd
    build-simple-cdd --dist stable --serial-console --locale en_US
  3. Copy iso to USB5
    cp .images/debian*.iso /dev/sdX
    sync

Connect Serial Interface

  1. Power down the QNAP
  2. Connect serial interface to the QNAP
    1. Remove the top cover of the QNAP.
    2. The serial interface header (COM1) is located at the back near the power supply and in front of the middle fan. Connect the JST PH 4-pin female cable to the header. QNAP Serial Header) Use the following pin-out. Do not connect the 5V power wire from the USB cable since the QNAP is already powered. QNAP Serial Connection (Breadboard)
  3. Open a serial console
    sudo screen /dev/ttyUSB0 115200

Install OS

  1. Plug in the USB drive to the QNAP
  2. Power on the QNAP
  3. After system beep press ESC or DEL to enter the BIOS setup
  4. Under the Save & Exit menu select the USB drive under the Boot Override section to boot the USB drive
  5. Installer will start. Note: To change tabs in the Debian installer, for example, to see the log, press CTRL+a, a, tab number
  6. Edit Grub install entry with console=tty0 console=ttyS0,115200n8. The linux line should look something like this
    linux /linux --- console=tty0 console=ttyS0,115200n8
    
  7. Ubuntu should eventurally give you the option to use SSH to continue the install. This gives a better experience.

References

Footnotes

  1. https://www.adafruit.com/product/954

  2. https://www.adafruit.com/product/3955

  3. https://wiki.qnap.com/wiki/Debian_Installation_On_QNAP#Backup_your_data_/_partitions_on_flash_memory

  4. https://wiki.debian.org/Simple-CDD/Howto

  5. https://www.debian.org/releases/stable/amd64/ch04s03.en.html

About

How to install Debian on a QNAP TS-451DeU without a monitor

Resources

Stars

Watchers

Forks