直接从官网下载的deb安装后会出现问题,比如,hub界面打不开、无法创建证书,无法激活等问题

下载 OpenSSL 1.0

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb

安装

sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb

添加 Unity3D 存储库

sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'

添加公共签名密钥

wget -qO - https://hub.unity3d.com/linux/keys/public | sudo tee /etc/apt/trusted.gpg.d/unityhub.asc

安装 Unity Hub

sudo apt update
sudo apt install unityhub

卸载 Unity Hub

sudo apt remove unityhub

sendpix1.jpg
sendpix2.jpg

原文地址
https://dev.to/brenomfviana/installing-unity-hub-on-ubuntu-42l0

使用的是GLTFUtility https://github.com/Siccity/GLTFUtility.git
gltf样品库 https://github.com/KhronosGroup/glTF-Sample-Models.git
我的测试模型 https://www.xuefei.net.cn/unitywebgl/WaterBottle.glb
我的webgl测试地址 https://www.xuefei.net.cn/unitywebgl/index.html
主要代码

using System.Collections;
using UnityEngine;
using Siccity.GLTFUtility;
using UnityEngine.UI;
using UnityEngine.Networking;

public class GLTFTest : MonoBehaviour
{
    public Button button;
    public GameObject loadGo = null;

    // Start is called before the first frame update
    void Start()
    {
        button.onClick.AddListener(delegate
        {
            StartCoroutine(LoadGo());
        });
    }

    private IEnumerator LoadGo()
    {
        if (loadGo != null)
        {
            DestroyImmediate(loadGo);
            Resources.UnloadUnusedAssets();
        }
        var request = UnityWebRequest.Get("https://www.xuefei.net.cn/unitywebgl/WaterBottle.glb");
        yield return request.SendWebRequest();
        if (request.result != UnityWebRequest.Result.Success)
        {
            Debug.LogError(request.error);
        }
        else
        {
            Debug.Log(request.downloadHandler.text);
            loadGo = Importer.LoadFromBytes(request.downloadHandler.data);
        }
    }
}

效果图
20220731132356.png

ubuntu22.04

sudo apt install fakeroot git kernel-wedge quilt ccache flex bison libssl-dev dh-exec rsync libelf-dev bc crossbuild-essential-armhf
sudo apt install dpkg-dev fakeroot gcc-arm-linux-gnueabihf dh-make libncurses-dev gcc-10-arm-linux-gnueabihf

git clone https://github.com/macromorgan/chip-debroot.git
cd chip-debroot
git clone -n https://salsa.debian.org/kernel-team/linux.git debian-kernel
cd debian-kernel
git checkout debian/5.15.15-2_bpo11+1
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ../linux-stable
debian/bin/genorig.py ../linux-stable
ARCH=armhf
FEATURESET=none
FLAVOUR=armmp
export $(dpkg-architecture -a$ARCH)
export DEB_BUILD_PROFILES="cross nopython nodoc pkg.linux.notools"
export MAKEFLAGS="-j$(($(nproc)*2))"
export DEBIAN_KERNEL_DISABLE_DEBUG=yes
fakeroot make -f debian/rules clean
fakeroot make -f debian/rules orig
fakeroot make -f debian/rules source
fakeroot make -f debian/rules.gen setup_${ARCH}_${FEATURESET}_${FLAVOUR}
cd debian/build/build_armhf_none_armmp
cp /home/xuefei/chip-debroot/kernel_files/debian.config /home/xuefei/chip-debroot/debian-kernel/debian/build/build_armhf_none_armmp/.config
cd ~
cd chip-debroot/debian-kernel
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C debian/build/build_armhf_none_armmp
fakeroot make -f debian/rules.gen binary-arch_${ARCH}_${FEATURESET}_${FLAVOUR}

暂未应用补丁,且待验证……

make[2]: Entering directory '/home/xuefei/pocketchip/debian-kernel'
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol -- 
dh_md5sums
dh_builddeb -- -Zxz 
dpkg-deb: building package 'linux-image-5.15.0-0.bpo.3-armmp' in '../linux-image-5.15.0-0.bpo.3-armmp_5.15.15-2~bpo11+1_armhf.deb'.
make[2]: Leaving directory '/home/xuefei/pocketchip/debian-kernel'
make[1]: 离开目录“/home/xuefei/pocketchip/debian-kernel”

sendpix0.jpg

xuefei@xuefei:~/文档$ ./Qv2ray-v2.7.0-linux-x64.AppImage 
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

sudo apt install fuse

OK