Running Debian Server

Pieter Groeneweg
Pieter Groeneweg New Member Posts: 6
Like it is possible to have Ubuntu running on an up/board,

https://up-community.org/wiki/Ubuntu

Is it also possible to do the same trick with a clean Debian install? Ubuntu being a derivate of Debian and so is Ubilinux.

Would it make a difference what Debian version I use? Jessie or the new Stretch?

Tx,

Comments

  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    edited September 2017
    Dear pieter

    we just pre-released last Friday to the Innovators the release 4 of Ubilinux that is based on Debian Stretch.
    If no major problems occur we will release it on the website at the beginning of the next week.
    So I suggest you to wait for it.
    This release will support UP1 and UP^2.

    Best Regards
    Nicola Lunghi
  • Pieter Groeneweg
    Pieter Groeneweg New Member Posts: 6
    Hi Nicola,

    Would that come with the choice between a desktop and server install? If so I may wait.
    When I installed Ubilinux previously, it came as a desktop linux version. I do not need that, hence my question.

    Tx,

    Pieter
  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    edited September 2017
    Hi pieter
    You can install a regular Debian Stretch server and add the Ubilinux 4 repository.

    DISCLAIMER: this is not a tested procedure, so do at your risk

    To add our packages to a Debian installation do this:

    1. Download a Debian Stretch image with firmware for the UP NICs:
    Debian Stretch firmware image

    2. install it

    3. Install necessary packages
    sudo apt-get update & sudo apt-get install software-properties-common apt-transport-https
    

    4. add the Ubilinux repository gpg key
    wget -qO - https://ubilinux.org/ubilinux.gpg.key | sudo apt-key add -
    

    5. add the Ubilinux apt repository to /etc/apt/sources.list
    deb https://ubilinux.org/ubilinux dolcetto main
    deb-src https://ubilinux.org/ubilinux dolcetto main
    

    6. Update the repository list
    sudo apt-get update
    

    7. install the firmware and kernel and libraries packages for Up/Up^2
    sudo apt-get install firmware-ampak-ap6214a/dolcetto firmware-intel-sound firmware-iwlwifi firmware-linux-nonfree firmware-realtek base-files/dolcetto linux-headers-ubilinux-amd64/dolcetto linux-image-ubilinux-amd64/dolcetto mraa/dolcetto python-rpi.gpio/dolcetto upm/dolcetto ubilinux-extras/dolcetto
    
    7. remove the default linux kernel
    sudo apt-get autoremove --yes --purge '^linux-image-.*[^x]-amd64$'
    
  • Pieter Groeneweg
    Pieter Groeneweg New Member Posts: 6
    Hi Nicola,

    Thanks you very much for your reply. I will try this and I will let you know if it worked!

    Tx,

    Pieter
  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    Hi
    please test it and if all works we can add it to the wiki also for other users.
    Thanks
    Nicola
  • Pieter Groeneweg
    Pieter Groeneweg New Member Posts: 6
    Hi Nicola,

    As I will be using the UP as a server, I will not be using sound and the pins.. Would there be some way to test if they work ok by any other means than connect anything to it?

    The only thing I have to fit to the pins is a UPS hat for a PI3.

    https://shop.olmatic.de/en/ups-raspberry-pi/1-susv-pi-basic-4260434190012.html

    Tx,

    Pieter
  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    edited September 2017
    Hi
    you can play with the led on /sys/class/leds/upboard* and see if you can turn it on on and off (all command executed as root)
    echo 255 > /sys/class/leds/upboard\:red\:/brightness
    echo 0 > /sys/class/leds/upboard\:red\:/brightness
    

    You can also check if you can see the up pincontroller device with
    cat /sys/kernel/debug/pinctrl/up*/pins
    
    I don't know the UPS hat that you have.
    I've looked at the driver but is a compiled binary so I cannot check if its compatible with this kernel version.

    Regards
    Nicola Lunghi
  • Pieter Groeneweg
    Pieter Groeneweg New Member Posts: 6
    Hi Nicola,

    After step 3 I had error: gpg: no valid OpenPGP data found.

    I needed to install these first:

    sudo apt-get install software-properties-common
    sudo apt-get install apt-transport-https

    Then I could continue.

    Check for registered pins: 28
    pin 0 (I2C0_SDA)
    pin 1 (I2C0_SCL)
    pin 2 (I2C1_SDA)
    pin 3 (I2C1_SCL)
    pin 4 (GPIO4)
    pin 5 (GPIO5)
    pin 6 (GPIO6)
    pin 7 (SPI_CS1)
    pin 8 (SPI_CS0)
    pin 9 (SPI_MISO)
    pin 10 (SPI_MOSI)
    pin 11 (SPI_CLK)
    pin 12 (PWM0)
    pin 13 (PWM1)
    pin 14 (UART1_TX)
    pin 15 (UART1_RX)
    pin 16 (GPIO16)
    pin 17 (GPIO17)
    pin 18 (I2S_CLK)
    pin 19 (I2S_FRM)
    pin 20 (I2S_DIN)
    pin 21 (I2S_DOUT)
    pin 22 (GPIO22)
    pin 23 (GPIO23)
    pin 24 (GPIO24)
    pin 25 (GPIO25)
    pin 26 (GPIO26)
    pin 27 (GPIO27)

    The leds
    All could be turned on and off.

    One thing though, when I uname -a, it shows no debian anymore.. just generic linux.
    Installers that verify the OS (for debian/Ubuntu, Centos/RHEL) break on that.

    Tx,

    Pieter
  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    Many Thanks pieter
    we will check the issue with the kernel name

    Regards
    Nicola Lunghi
  • Ken Ken
    Ken Ken New Member Posts: 7
    So would I be able to install openmediavault 3 on UP Squared?
  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    Dear ckykenken
    Open media Vault seems to be based on Debian 8.
    There's nothing preventing you to install it on the UP^2 (is an x86 board) as long as you don't need the feature of our 4.9 kernel (most notably the GPIO support and various bug fixes)
    If they release OMV 4.0 (that should be based on stretch) then you can install our ubilinux distribution (based on Debian stretch) and add the OMV apt on top of it.
    You could also try to install our kernel on top of the Debian 8 (but its not tested so you are on your own)

    Best Regards
    Nicola Lunghi