Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Orange Pi 3 Zero #29

Open
masterlog80 opened this issue May 22, 2024 · 1 comment
Open

Support for Orange Pi 3 Zero #29

masterlog80 opened this issue May 22, 2024 · 1 comment

Comments

@masterlog80
Copy link

masterlog80 commented May 22, 2024

Hello,
Is there anyone able to have it working with Orange Pi 3 Zero?
I have tested on my device and although it comes us apter reboot, I don't get anything once I try to open https:///IP_ADDRESS/kvm or similar, and on https://IP_ADDRESS/ I can see nginx welcome page.
There are some Errors in the process, but I am not sure if those are relevant or not. Some examples here:

Platform selected -> kvmd-platform-v2-hdmiusb-rpi4
grep: /boot/config.txt: No such file or directory
ls: cannot access '/var/cache/kvmd/kvmd-platform-v2-hdmiusb-rpi4-*.tar.xz': No such file or directory
ls: cannot access '/var/cache/kvmd/*.tar.xz': No such file or directory
grep: /etc/kvmd/override.yaml: No such file or directory
./install.sh: line 56: /etc/kvmd/override.yaml: No such file or directory
./install.sh: line 44: cd: /etc/kvmd/nginx/ssl: No such file or directory
cp: target '/etc/kvmd/vnc/ssl/' is not a directory
sed: can't read /etc/udev/rules.d/99-kvmd.rules: No such file or directory
cat: /etc/udev/rules.d/99-kvmd.rules: No such file or directory
done
mkdir: cannot create directory ‘hid.usb0’: No such file or directory
mkdir: cannot create directory ‘hid.usb1’: No such file or directory
mkdir: cannot create directory ‘hid.usb2’: No such file or directory
mkdir: cannot create directory ‘mass_storage.usb0’: No such file or directory
Failed to disable unit: Unit file janus.service does not exist.

Also, it doesn't seem that the script completes successfully at the 1st run, as after the reboot at the end of the second execution I still see the message:

Reboot is required to create kvmd users and groups.
Please re-run this script after reboot to complete the install.`

Any suggestions on what to check?
I am wondering if manually creating those folders may help..... 🤔

Regards,

@cp-yu
Copy link

cp-yu commented Aug 26, 2024

you can follow my guide:

Introduction

This tutorial will guide you through the installation of PiKVM on the Orangepi Zero3, using the official Orangepizero3_1.0.2_ubuntu_jammy_desktop_xfce_linux6.1.31_4gb version of the operating system.

The official system version Orangepizero3_1.0.0_ubuntu_jammy_desktop_xfce_linux5.4.125 does not provide the OTG module.

Preparation

First, make sure your system is up to date and that the necessary packages are installed. Please execute the following commands:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y git vim make python3-dev gcc libdrm-dev

Installing the WiringOP Library

The WiringOP library is a tool used for operating the GPIO on the Orangepi Zero3, serving as a replacement for the WiringPi package. Use the following commands to install it:

git clone https://github.com/orangepi-xunlong/wiringOP.git
cd wiringOP
sudo ./build

Installing Required Python Packages

Next, manually install the dbus_next and zstandard Python packages to ensure that the system can support PiKVM:

pip install dbus_next zstandard -i https://pypi.tuna.tsinghua.edu.cn/simple

When installing using the sh script, these packages might fail to install, but manual installation should work. This issue is likely due to network problems.

Installing and Configuring PiKVM (kvmd-armbian)

Clone and install kvmd-armbian, which is the implementation of PiKVM on the Armbian system:

git clone https://github.com/srepac/kvmd-armbian.git
cd kvmd-armbian
sudo ./install.sh

Post-Reboot Configuration

After rebooting, you may need to reset the pip mirror source as the configuration might be lost after the reboot:

sudo pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

At this point, you can check the devices using the following command:

ls /dev/kvmd*

Usually, you will only see one device (/dev/kvmd-video) instead of the expected four devices (/dev/kvmd-hid-keyboard, /dev/kvmd-hid-mouse, /dev/kvmd-hid-mouse-alt, and /dev/kvmd-video).

Upgrading pip (Optional)

If you encounter the --break-system-packages error during the second run of the sh script, you can resolve this by upgrading pip:

python3 -m pip install --upgrade --user pip  # Upgrade to 23.3+

Re-Running the Installation Script

To ensure the configuration is correct, you need to run the installation script again:

sudo ./install.sh

During the installation process, the system will ask if the kvmd -m command was executed successfully. The following configuration indicates success:

mouse_output: usb
server:
    host: '::'
    keepalive:
        count: 3
        enabled: true
        idle: 10
        interval: 3
    max_clients: 10
    no_delay: true
    port: 5900
    tls:
        ciphers: ALL:@SECLEVEL=0
        timeout: 30.0
        x509:
            cert: /etc/kvmd/vnc/ssl/server.crt
            key: /etc/kvmd/vnc/ssl/server.key
streamer:
    timeout: 5.0
    unix: /run/kvmd/ustreamer.sock
watchdog:
    interval: 30
    rtc: 0
    timeout: 300

When the system asks "Did kvmd -m run properly?", enter y to confirm.

Verifying the Installation

After the installation is complete, you should be able to see all four kvmd devices. If everything is correct, you can access the PiKVM interface by visiting the SBC's IP address.


Following these steps, you will successfully install and configure the PiKVM system on the Orangepi Zero3, enabling remote management and control of your device.

i saught that the image of orangepi zero3 on ubuntu has been update at 2024.8.20. I have never try the newer version. May it will work or not in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants