GithubHelp home page GithubHelp logo

bli-pikvm's Introduction

Bli-PiKVM

Install Pi-KVM on BliKVM v4 Allwinner.

Disable BliKVM services

ssh blikvm@BLIKVM_IP

sudo apt update
sudo apt upgrade
sudo systemctl disable --now kvmd-hid kvmd-janus.service kvmd-video.service kvmd-web.service
sudo reboot

NOTE: kvmd-main.service is for LCD and hardware monitoring. Just leave kvmd-main.service enabled.

Install kvmd-armbian

ssh blikvm@BLIKVM_IP

sudo apt install -y git vim make python3-dev gcc
git clone https://github.com/srepac/kvmd-armbian.git
cd kvmd-armbian
sudo ./install.sh
sudo reboot

ssh blikvm@BLIKVM_IP

cd kvmd-armbian
sudo ./install.sh

Thanks to kvmd-armbian by @srepac.

Prepare MSD Partition

Create MSD Partition

Before applying the patch, you would need to resize your installation partition on the SD card using GParted and create an additional partition for the msd. Finally, you need to add a mount entry for the new partition to /etc/fstab where /dev/mmcblk0p3 matches the name of the new partition you created.

/dev/mmcblk0p3 /var/lib/kvmd/msd  ext4  nodev,nosuid,noexec,ro,errors=remount-ro,data=journal,X-kvmd.otgmsd-root=/var/lib/kvmd/msd,X-kvmd.otgmsd-user=kvmd  0 0

Apply kvmd MSD Patch

  1. Download the msd patch and apply it.
cd /usr/lib/python3/dist-packages/kvmd
sudo wget -q https://github.com/RainCat1998/Bli-PiKVM/raw/main/3.291msd.patch -O 3.291msd.patch
sudo patch -p1 < 3.291msd.patch
  1. Remove the following entries from /etc/kvmd/override.yaml.
    msd:
        type: disabled
  1. Reboot & Enjoy

NOTE: This patch is only for kvmd 3.291.

The patch code is ported from fruity-pikvm by @jacobbar.

Configure ATX Controller

  1. Download the latest BliKVM Source and compile kvmd-atx
git clone https://github.com/ThomasVon2021/blikvm
cd blikvm/package/kvmd-atx
make
  1. Copy the compiled atx binary into /usr/bin/ then add sudo premission
sudo cp atx /usr/bin/
sudo nano /etc/sudoers.d/kvmd

kvmd ALL=(ALL) NOPASSWD: ALL
  1. Create the following /etc/kvmd/override.d/atx.yaml file
kvmd:
    gpio:
        drivers:
            power_short:
                type: cmd
                cmd: [/usr/bin/sudo, /usr/bin/atx, --v, v4, --c, power_on]
            power_long:
                type: cmd
                cmd: [/usr/bin/sudo, /usr/bin/atx, --v, v4, --c, power_off]
            reset_sw:
                type: cmd
                cmd: [/usr/bin/sudo, /usr/bin/atx, --v, v4, --c, power_reset]

        scheme:
            on-off-button:
                driver: power_short
                pin: 0
                mode: output
                switch: false
            force-off-button:
                driver: power_long
                pin: 0
                mode: output
                switch: false
            reset-button:
                driver: reset_sw
                pin: 0
                mode: output
                switch: false

        view:
            table:
                - []
                - ["#ATX on BliKVM hardware"]
                - []
                - ["on-off-button|On/Off", "force-off-button|Force Off", "reset-button|Reset"]
  1. Reboot & Enjoy

Thanks to @srepac.

bli-pikvm's People

Contributors

raincat1998 avatar

Stargazers

Will Seele avatar Farid Ismailov avatar Alessandro Del Prete avatar Jonatan Castro avatar Golets Alexey avatar  avatar Benshan Mei avatar  avatar Thomas avatar

Watchers

Farid Ismailov avatar  avatar  avatar

Forkers

jcastro

bli-pikvm's Issues

Pi-kvm image for Blikvm v4

Hi!

I've tried to follow up the instructions but I'm finding some problems after the second time executing the script, aiofiles is missing but looks like it's installed.

Are you able to maybe expand on the instructions or provide a flasheable image for the SD card? Thanks

SCR-20240519-dcis SCR-20240519-dcji

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.