Jump to content

rna

Members
  • Posts

    49
  • Joined

  • Last visited

Reputation Activity

  1. Like
    rna got a reaction from David Fiorini in How to Install Box86-Box64 Wine32-Wine64 Winetricks on Arm64   
    Dear All,
    I just want to share my workflow of successfully installing Box86-Box64, Wine32-Wine64 and Winetricks on Arm64
    Big thanks to @NicoD for sharing his source code of Armbian-Gaming. I modified some of his code to be used in Armbian Focal (or any Arm64 distro) and fix the armhf dependencies issue by using the "arm-linux-gnueabihf" Library from TwisterOS. I also used some of Box86 Manual. So many thanks to all of them.
     
    Ok Let's Start:
     
    1. Add armhf multiarch
    sudo dpkg --add-architecture armhf sudo apt-get update 2. Install dependencies for box86 & box64
    sudo apt-get install git cmake cabextract gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
    Then download these "arm-linux-gnueabihf" files and extract them on folder /usr/
    (Alternatively, you can manually copy paste the "/usr/arm-linux-gnueabihf" folder from TwisterOS and transfer it to your arm64 OS. This file contains dependencies for Box86)
    *NOTE: I split the files because Armbian site doesn't allow me to upload more than 1,5MB.
    arm-linux-gnueabihf.7z.001 arm-linux-gnueabihf.7z.002 arm-linux-gnueabihf.7z.003 arm-linux-gnueabihf.7z.004
     
    3. Compile box86 for general ARM64 board (read box86 manual for more info about your board)
    cd git clone https://github.com/ptitSeb/box86 cd box86 mkdir build cd build cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo make -j3 sudo make install sudo systemctl restart systemd-binfmt cd 4. Compile box64 for general ARM64 board (read box64 manual for more info about your board)
    cd git clone https://github.com/ptitSeb/box64 cd box64 mkdir build cd build cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo make -j3 sudo make install sudo systemctl restart systemd-binfmt cd 5. Restart your Computer
    6. Install Wine32 & Wine64 (Merged is the best option, and please follow the sequence accordingly. Currently at the time of writing, wine 5.21 & Wine 6.0.2 have the best support from Box86-Box64. You can also try a different version of wine if you want)
        #Wine 5.21
    cd cd ~/Downloads wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel-i386_5.21~buster_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel_5.21~buster_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel-amd64_5.21~buster_amd64.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel_5.21~buster_amd64.deb dpkg-deb -xv wine-devel-i386_5.21~buster_i386.deb wine-installer dpkg-deb -xv wine-devel_5.21~buster_i386.deb wine-installer dpkg-deb -xv wine-devel-amd64_5.21~buster_amd64.deb wine-installer dpkg-deb -xv wine-devel_5.21~buster_amd64.deb wine-installer mv ~/Downloads/wine-installer/opt/wine* ~/wine rm -rf wine-installer cd     #Wine 6.0.2 Stable
    cd cd ~/Downloads wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-stable-i386_6.0.2~buster-1_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-stable_6.0.2~buster-1_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-stable-amd64_6.0.2~buster-1_amd64.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-stable_6.0.2~buster-1_amd64.deb dpkg-deb -xv wine-stable-i386_6.0.2~buster-1_i386.deb wine-installer dpkg-deb -xv wine-stable_6.0.2~buster-1_i386.deb wine-installer dpkg-deb -xv wine-stable-amd64_6.0.2~buster-1_amd64.deb wine-installer dpkg-deb -xv wine-stable_6.0.2~buster-1_amd64.deb wine-installer mv ~/Downloads/wine-installer/opt/wine* ~/wine rm -rf wine-installer cd  
    7. Create Symlink to Wine
    sudo ln -s ~/wine/bin/wine /usr/local/bin/wine sudo ln -s ~/wine/bin/wineboot /usr/local/bin/wineboot sudo ln -s ~/wine/bin/winecfg /usr/local/bin/winecfg sudo ln -s ~/wine/bin/wineserver /usr/local/bin/wineserver sudo chmod +x /usr/local/bin/wine /usr/local/bin/wineboot /usr/local/bin/winecfg /usr/local/bin/wineserver 8. Setting Wine32 Folder in ~/.wine (set win32 as wine default, because currently winetricks doesn't work in win64. I would gladly use win64 as my default setup only if winetricks works in win64 in the future).
     
    WINEPREFIX=~/.wine WINEARCH=win32 wine winecfg 9. Setting Wine64 Folder in ~/.wine64
    WINEPREFIX=~/.wine64 WINEARCH=win64 wine winecfg 10. In Home Folder Create alias in .bashrc (to make shorter command for wine64)
    cd nano .bashrc        --> enter this command
    alias wine64="WINEPREFIX=~/.wine64 wine"       --> then save (ctrl+x, choose yes)
          --> then logout & login
     
    11. Installing & Running 32bit Windows app
    wine uninstaller wine /File/can/be/drag/and/drop/32bit.exe 12. Installing & Running 64bit Windows app
    wine64 uninstaller wine64 /File/can/be/drag/and/drop/64bit.exe  
    13. Install Winetricks
    sudo apt-get install cabextract -y cd ~/Downloads && wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks sudo chmod +x winetricks && sudo mv winetricks /usr/local/bin/ 14. Using Winetricks (ex: Corefonts & Dotnet 4)
    BOX86_NOBANNER=1 winetricks BOX86_NOBANNER=1 winetricks corefonts dotnet40 15. Creating Wine Desktop Launcher
    Now create a launcher in the desktop with this code in the command section:
    wine explorer /desktop=shell,1280x720 explorer.exe  
    As an alternative, I personally like explorer++ mainly because of its GUI and additional feature compared to the original wine explorer. You can download it from here: https://explorerplusplus.com/software/explorer++_1.3.5_x86.zip and then extract it, and then rename to "explorer++.exe" (with small e, not capital E), then copy-paste it to the ~/.wine/drive_c/windows. Then create a launcher in the desktop with this code in the command section:
    wine explorer /desktop=shell,1280x720 explorer++.exe  
     
     
    **NOTE:
    - With this setting I am able to run Box86 and Box64 without having dependencies conflict between armhf package and arm64 package.
    - I used the win32 as my default wine. Alternatively you can also use win64 as your default ~/.wine setup. It is up to you (In fact, by default it will create win64 setup in your ~/.wine folder).
    - For RK3399 users, you can use these scripts to Install and Update Box86 & Box64:
    install_box86.sh install_box64.sh update_box86.sh update_box64.sh
     
    I hope this could help somebody out there. Have a Nice Day!
    RNA
     
     
  2. Like
    rna got a reaction from NicoD in How to Install Box86-Box64 Wine32-Wine64 Winetricks on Arm64   
    Why don't you use flatpak?
    I used it in my RK3399 board and it runs great. I got the latest release of PPSSPP on Armbian Focal.
    But because the lack of OpenGL ES 3.2 and Vulkan Driver, a demanding game like God of War Chain of Olympus only get around 16-18 fps (2x res, autoframeskip).
    For a middle game title it runs almost full speed. Like DragonBall Z Shin Budokai 60 fps, Daxter 30 fps with the same setting (2x res, autoframeskip)
    sudo apt install flatpak flatpak search ppsspp flatpak install org.ppsspp.PPSSPP I also got Dolphin & Flycast Emulator with quite great performance from flatpak. But maybe dolphin need the driver for OpenGL ES 3.2 or Vulkan to get a higher framerate. Currently the only two-emulator that don't work from apt package or Flatpak are N64 Emulator and RetroArch (Installing core is disabled).
  3. Like
    rna got a reaction from NicoD in How to Install Box86-Box64 Wine32-Wine64 Winetricks on Arm64   
    Yes, after running your script manually in Armbian Focal. I have a lot of dependencies conflict especially from armhf package vs. arm64 package. As a result almost all my 64bit program that has dependencies conflicts were removed from the system.
     
    After a while, I looked at how TwisterOS do this beautifully without any dependencies conflict. When building Box86 in TwisterOS, I just realized that TwisterOS only need this "arm-linux-gnueabihf" library files. Then I copied this library and pasted them to my Armbian Focal in /usr/ folder.
     
    After that I fixed all dependencies conflict by using "sudo aptitude install" and remove all armhf package that has conflict.
     
    Magically, all the conflicts were gone and as what I suspected that Box86 could compile successfully even without armhf package dependencies.
     
    Now I am very happy because I can run both Box86 and Box64 without interfering each other. even wine32, wine64 and winetricks are working.

    I'll say that this Library Method is better than the Schroot Method. But I am not sure for some distributions that do not support Multiarch like Manjaro, whether this Library Method is working or not. If it isn't then they have to stick with the Schroot Method.
     
    I am not good at github and scripting. I trust you, maybe you can try first. If it works, then you can update the armbian-config on Github with the command that I wrote.

    Many Thanks @NicoD
  4. Like
    rna got a reaction from NicoD in How to Install Box86-Box64 Wine32-Wine64 Winetricks on Arm64   
    Dear All,
    I just want to share my workflow of successfully installing Box86-Box64, Wine32-Wine64 and Winetricks on Arm64
    Big thanks to @NicoD for sharing his source code of Armbian-Gaming. I modified some of his code to be used in Armbian Focal (or any Arm64 distro) and fix the armhf dependencies issue by using the "arm-linux-gnueabihf" Library from TwisterOS. I also used some of Box86 Manual. So many thanks to all of them.
     
    Ok Let's Start:
     
    1. Add armhf multiarch
    sudo dpkg --add-architecture armhf sudo apt-get update 2. Install dependencies for box86 & box64
    sudo apt-get install git cmake cabextract gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
    Then download these "arm-linux-gnueabihf" files and extract them on folder /usr/
    (Alternatively, you can manually copy paste the "/usr/arm-linux-gnueabihf" folder from TwisterOS and transfer it to your arm64 OS. This file contains dependencies for Box86)
    *NOTE: I split the files because Armbian site doesn't allow me to upload more than 1,5MB.
    arm-linux-gnueabihf.7z.001 arm-linux-gnueabihf.7z.002 arm-linux-gnueabihf.7z.003 arm-linux-gnueabihf.7z.004
     
    3. Compile box86 for general ARM64 board (read box86 manual for more info about your board)
    cd git clone https://github.com/ptitSeb/box86 cd box86 mkdir build cd build cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo make -j3 sudo make install sudo systemctl restart systemd-binfmt cd 4. Compile box64 for general ARM64 board (read box64 manual for more info about your board)
    cd git clone https://github.com/ptitSeb/box64 cd box64 mkdir build cd build cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo make -j3 sudo make install sudo systemctl restart systemd-binfmt cd 5. Restart your Computer
    6. Install Wine32 & Wine64 (Merged is the best option, and please follow the sequence accordingly. Currently at the time of writing, wine 5.21 & Wine 6.0.2 have the best support from Box86-Box64. You can also try a different version of wine if you want)
        #Wine 5.21
    cd cd ~/Downloads wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel-i386_5.21~buster_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-devel_5.21~buster_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel-amd64_5.21~buster_amd64.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-devel_5.21~buster_amd64.deb dpkg-deb -xv wine-devel-i386_5.21~buster_i386.deb wine-installer dpkg-deb -xv wine-devel_5.21~buster_i386.deb wine-installer dpkg-deb -xv wine-devel-amd64_5.21~buster_amd64.deb wine-installer dpkg-deb -xv wine-devel_5.21~buster_amd64.deb wine-installer mv ~/Downloads/wine-installer/opt/wine* ~/wine rm -rf wine-installer cd     #Wine 6.0.2 Stable
    cd cd ~/Downloads wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-stable-i386_6.0.2~buster-1_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-i386/wine-stable_6.0.2~buster-1_i386.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-stable-amd64_6.0.2~buster-1_amd64.deb wget https://dl.winehq.org/wine-builds/debian/dists/buster/main/binary-amd64/wine-stable_6.0.2~buster-1_amd64.deb dpkg-deb -xv wine-stable-i386_6.0.2~buster-1_i386.deb wine-installer dpkg-deb -xv wine-stable_6.0.2~buster-1_i386.deb wine-installer dpkg-deb -xv wine-stable-amd64_6.0.2~buster-1_amd64.deb wine-installer dpkg-deb -xv wine-stable_6.0.2~buster-1_amd64.deb wine-installer mv ~/Downloads/wine-installer/opt/wine* ~/wine rm -rf wine-installer cd  
    7. Create Symlink to Wine
    sudo ln -s ~/wine/bin/wine /usr/local/bin/wine sudo ln -s ~/wine/bin/wineboot /usr/local/bin/wineboot sudo ln -s ~/wine/bin/winecfg /usr/local/bin/winecfg sudo ln -s ~/wine/bin/wineserver /usr/local/bin/wineserver sudo chmod +x /usr/local/bin/wine /usr/local/bin/wineboot /usr/local/bin/winecfg /usr/local/bin/wineserver 8. Setting Wine32 Folder in ~/.wine (set win32 as wine default, because currently winetricks doesn't work in win64. I would gladly use win64 as my default setup only if winetricks works in win64 in the future).
     
    WINEPREFIX=~/.wine WINEARCH=win32 wine winecfg 9. Setting Wine64 Folder in ~/.wine64
    WINEPREFIX=~/.wine64 WINEARCH=win64 wine winecfg 10. In Home Folder Create alias in .bashrc (to make shorter command for wine64)
    cd nano .bashrc        --> enter this command
    alias wine64="WINEPREFIX=~/.wine64 wine"       --> then save (ctrl+x, choose yes)
          --> then logout & login
     
    11. Installing & Running 32bit Windows app
    wine uninstaller wine /File/can/be/drag/and/drop/32bit.exe 12. Installing & Running 64bit Windows app
    wine64 uninstaller wine64 /File/can/be/drag/and/drop/64bit.exe  
    13. Install Winetricks
    sudo apt-get install cabextract -y cd ~/Downloads && wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks sudo chmod +x winetricks && sudo mv winetricks /usr/local/bin/ 14. Using Winetricks (ex: Corefonts & Dotnet 4)
    BOX86_NOBANNER=1 winetricks BOX86_NOBANNER=1 winetricks corefonts dotnet40 15. Creating Wine Desktop Launcher
    Now create a launcher in the desktop with this code in the command section:
    wine explorer /desktop=shell,1280x720 explorer.exe  
    As an alternative, I personally like explorer++ mainly because of its GUI and additional feature compared to the original wine explorer. You can download it from here: https://explorerplusplus.com/software/explorer++_1.3.5_x86.zip and then extract it, and then rename to "explorer++.exe" (with small e, not capital E), then copy-paste it to the ~/.wine/drive_c/windows. Then create a launcher in the desktop with this code in the command section:
    wine explorer /desktop=shell,1280x720 explorer++.exe  
     
     
    **NOTE:
    - With this setting I am able to run Box86 and Box64 without having dependencies conflict between armhf package and arm64 package.
    - I used the win32 as my default wine. Alternatively you can also use win64 as your default ~/.wine setup. It is up to you (In fact, by default it will create win64 setup in your ~/.wine folder).
    - For RK3399 users, you can use these scripts to Install and Update Box86 & Box64:
    install_box86.sh install_box64.sh update_box86.sh update_box64.sh
     
    I hope this could help somebody out there. Have a Nice Day!
    RNA
     
     
  5. Like
    rna got a reaction from rvmn in TwisterOS Armbian OS edition is here.   
    Finally I successfully installed Box86 in Armbian by using this chroot armhf method:
     
  6. Like
    rna got a reaction from markonmoto2 in Install Box86 on Arm64   
    Dear All,
    I just want to make a Tutorial on my successful attempt in Installing Box86 on Arm64 and Install Wine X86 apps. In this example it is Sketchup 7.1 and Sketchup 8
    But before starting I want to thanks to PtitSeb for his hard work to bring this dream into reality (running x86 apps on arm64 box).
    My system is X96 Max+ S905x3. I used @balbes150 older image to boot to Armbian, many thanks for him. So In general every box running Armbian 64bit should work.

    This tutorial will use debootstrap Debian Buster Armhf as base for chroot. The keyword is "Arm64" support "Armhf", therefore you do not need to use Qemu or Binfmt_misc as it is very slow. Here's my report on Manjaro Arm Forum: https://archived.forum.manjaro.org/t/x86-64-chroot-on-manjaro-arm-install-x86-64-deb-install-wine-windows-apps/150420/103

    Here's what you need:
    1. Open terminal, then type:
    sudo apt install schroot debootstrap sudo mkdir /srv/chroot sudo mkdir /srv/chroot/debian-armhf sudo debootstrap --arch armhf --foreign buster /srv/chroot/debian-armhf http://debian.xtdv.net/debian sudo chroot "/srv/chroot/debian-armhf" /debootstrap/debootstrap --second-stage 2. Then add a config file for debian-armhf:
    sudo nano /etc/schroot/chroot.d/debian-armhf.conf Copy paste this code, and change <username> into your computer username
    [debian-armhf] description=Debian Armhf chroot aliases=debian-armhf type=directory directory=/srv/chroot/debian-armhf profile=desktop personality=linux preserve-environment=true root-users=<username> users=<username> 3. Then edit the nssdatabases
    sudo nano /etc/schroot/desktop/nssdatabases copy paste this code
    # System databases to copy into the chroot from the host system. # # <database name> #passwd shadow #group gshadow services protocols #networks #hosts #user 4. Edit the stateoverride, and change the first contrab to root
    sudo nano /srv/chroot/debian-armhf/var/lib/dpkg/statoverride copy paste this code
    root root 2755 /usr/bin/crontab 5. Now you should be able to schroot by typing
    sudo schroot -c debian-armhf 6. edit the bashrc
    nano ~/.bashrc add this code to the bottom of the line
    export LANGUAGE="C" export LC_ALL="C" export DISPLAY=:0 7. let's restart chroot environment by exit and login again, then add a username that is similar to your main system username
    exit id sudo schroot -c debian-armhf adduser <username> su - <username> then again add bashrc
    nano ~/.bashrc again add this code to the bottom of the line
    export LANGUAGE="C" export LC_ALL="C" export DISPLAY=:0 8. Then restart chroot by double exit and login again, then install the following package
    exit exit sudo schroot -c debian-armhf apt update && apt upgrade apt install git wget cmake build-essential python3 apt install gcc-arm-linux-gnueabihf 9. Now let's compile the Box86 within Chroot environment
    git clone https://github.com/ptitSeb/box86 cd box86 mkdir build; cd build; cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo; make exit 10. Now login to chroot again then download wine from twisteros: https://twisteros.com/wine.tgz then extract it to your home folder. Your extracted wine location should be in: ~/wine/bin/wine
    sudo schroot -c debian-armhf wget https://twisteros.com/wine.tgz tar zxvf wine.tgz  11. Install Zenity in chroot environment, as wine will not have window without it:
    apt install zenity 12. Exit from chroot environment by typing
    exit 13. To install a windows app, in this case sketchup 7.1 and 8 you can download it from: http://www.oldversion.com/windows/google-sketchup/ then type:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine 'your/installation/folder/It/is/better/to/drag/and/drop/the/installer' 14. To run the installed program you can type this or make it as a shortcut from desktop launcher:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine your/installed/program/location  
    and here's my final sketchup running smoothly on LLVM Pipe Graphics. I also attached the Box86 running on Manjaro Arm with the good performance as well for addition.

    To be honest, I didn't expect the performance to be this good. It almost remind me of "Rosetta 2" of Apple Silicon, but it is open source.

    Big respect for PtitSeb for bringing this magic to the Arm64 World. I also want to thanks to Xabbu and Lolix from Manjaro Forum to help me figuring out the chroot environment in my older Manjaro Forum Post.
     
    Hope that helps,
     
    Many Thanks,
    rna
     



     

     

     

     
     
    UPDATE 1
    *IMPORTANT NOTE:
    To fix Sketchup 7/8 OpenGL Display Error:
    You have to edit the wine regedit and change the sketchup display setting from "0" to "1"
    - Open Sketchup then close
    - Open terminal then run regedit by typing:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine regedit - Then find:
       HKEY_CURRENT_USER\Software\Google\SketchUp7\GLConfig\Display
    - Then change the “HW_OK” from “0” to “1”
    - Then close your regedit
    - Then open Sketchup 7/8. Now you should be ok.

    UPDATE 2
    you can also follow the Box86 compatibility list here:
    https://github.com/ptitSeb/box86-compatibility-list/issues
    You can also use winetricks to install some dependency, like .NET 4.0 as detailed by WheezyE here:
    https://github.com/ptitSeb/box86-compatibility-list/issues/46
    In fact, by using WheezyE method I was able to install all depencencies to install sketchup 2014 successfully from winetricks in Armbian Reforge (Just to let you know that Armbian Reforge is embedded with Box86 by default).
     
    However, at the moment winetricks does not works in our chroot method. Therefore, Help would be appreciated.

    BONUS:
    For those of you that desperately want to install blender 2.79 on Armbian Focal / Manjaro, you can use this method.
    Open terminal, then type:
    sudo schroot -c debian-armhf apt install blender exit Now to open blender, you can use this command (you can also make launcher):
    schroot -c debian-armhf blender Now Blender 2.79b should run perfectly on you system
     
  7. Like
    rna got a reaction from JMCC in Install Box86 on Arm64   
    Dear All,
    I just want to make a Tutorial on my successful attempt in Installing Box86 on Arm64 and Install Wine X86 apps. In this example it is Sketchup 7.1 and Sketchup 8
    But before starting I want to thanks to PtitSeb for his hard work to bring this dream into reality (running x86 apps on arm64 box).
    My system is X96 Max+ S905x3. I used @balbes150 older image to boot to Armbian, many thanks for him. So In general every box running Armbian 64bit should work.

    This tutorial will use debootstrap Debian Buster Armhf as base for chroot. The keyword is "Arm64" support "Armhf", therefore you do not need to use Qemu or Binfmt_misc as it is very slow. Here's my report on Manjaro Arm Forum: https://archived.forum.manjaro.org/t/x86-64-chroot-on-manjaro-arm-install-x86-64-deb-install-wine-windows-apps/150420/103

    Here's what you need:
    1. Open terminal, then type:
    sudo apt install schroot debootstrap sudo mkdir /srv/chroot sudo mkdir /srv/chroot/debian-armhf sudo debootstrap --arch armhf --foreign buster /srv/chroot/debian-armhf http://debian.xtdv.net/debian sudo chroot "/srv/chroot/debian-armhf" /debootstrap/debootstrap --second-stage 2. Then add a config file for debian-armhf:
    sudo nano /etc/schroot/chroot.d/debian-armhf.conf Copy paste this code, and change <username> into your computer username
    [debian-armhf] description=Debian Armhf chroot aliases=debian-armhf type=directory directory=/srv/chroot/debian-armhf profile=desktop personality=linux preserve-environment=true root-users=<username> users=<username> 3. Then edit the nssdatabases
    sudo nano /etc/schroot/desktop/nssdatabases copy paste this code
    # System databases to copy into the chroot from the host system. # # <database name> #passwd shadow #group gshadow services protocols #networks #hosts #user 4. Edit the stateoverride, and change the first contrab to root
    sudo nano /srv/chroot/debian-armhf/var/lib/dpkg/statoverride copy paste this code
    root root 2755 /usr/bin/crontab 5. Now you should be able to schroot by typing
    sudo schroot -c debian-armhf 6. edit the bashrc
    nano ~/.bashrc add this code to the bottom of the line
    export LANGUAGE="C" export LC_ALL="C" export DISPLAY=:0 7. let's restart chroot environment by exit and login again, then add a username that is similar to your main system username
    exit id sudo schroot -c debian-armhf adduser <username> su - <username> then again add bashrc
    nano ~/.bashrc again add this code to the bottom of the line
    export LANGUAGE="C" export LC_ALL="C" export DISPLAY=:0 8. Then restart chroot by double exit and login again, then install the following package
    exit exit sudo schroot -c debian-armhf apt update && apt upgrade apt install git wget cmake build-essential python3 apt install gcc-arm-linux-gnueabihf 9. Now let's compile the Box86 within Chroot environment
    git clone https://github.com/ptitSeb/box86 cd box86 mkdir build; cd build; cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo; make exit 10. Now login to chroot again then download wine from twisteros: https://twisteros.com/wine.tgz then extract it to your home folder. Your extracted wine location should be in: ~/wine/bin/wine
    sudo schroot -c debian-armhf wget https://twisteros.com/wine.tgz tar zxvf wine.tgz  11. Install Zenity in chroot environment, as wine will not have window without it:
    apt install zenity 12. Exit from chroot environment by typing
    exit 13. To install a windows app, in this case sketchup 7.1 and 8 you can download it from: http://www.oldversion.com/windows/google-sketchup/ then type:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine 'your/installation/folder/It/is/better/to/drag/and/drop/the/installer' 14. To run the installed program you can type this or make it as a shortcut from desktop launcher:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine your/installed/program/location  
    and here's my final sketchup running smoothly on LLVM Pipe Graphics. I also attached the Box86 running on Manjaro Arm with the good performance as well for addition.

    To be honest, I didn't expect the performance to be this good. It almost remind me of "Rosetta 2" of Apple Silicon, but it is open source.

    Big respect for PtitSeb for bringing this magic to the Arm64 World. I also want to thanks to Xabbu and Lolix from Manjaro Forum to help me figuring out the chroot environment in my older Manjaro Forum Post.
     
    Hope that helps,
     
    Many Thanks,
    rna
     



     

     

     

     
     
    UPDATE 1
    *IMPORTANT NOTE:
    To fix Sketchup 7/8 OpenGL Display Error:
    You have to edit the wine regedit and change the sketchup display setting from "0" to "1"
    - Open Sketchup then close
    - Open terminal then run regedit by typing:
    schroot -c debian-armhf ~/box86/build/box86 ~/wine/bin/wine regedit - Then find:
       HKEY_CURRENT_USER\Software\Google\SketchUp7\GLConfig\Display
    - Then change the “HW_OK” from “0” to “1”
    - Then close your regedit
    - Then open Sketchup 7/8. Now you should be ok.

    UPDATE 2
    you can also follow the Box86 compatibility list here:
    https://github.com/ptitSeb/box86-compatibility-list/issues
    You can also use winetricks to install some dependency, like .NET 4.0 as detailed by WheezyE here:
    https://github.com/ptitSeb/box86-compatibility-list/issues/46
    In fact, by using WheezyE method I was able to install all depencencies to install sketchup 2014 successfully from winetricks in Armbian Reforge (Just to let you know that Armbian Reforge is embedded with Box86 by default).
     
    However, at the moment winetricks does not works in our chroot method. Therefore, Help would be appreciated.

    BONUS:
    For those of you that desperately want to install blender 2.79 on Armbian Focal / Manjaro, you can use this method.
    Open terminal, then type:
    sudo schroot -c debian-armhf apt install blender exit Now to open blender, you can use this command (you can also make launcher):
    schroot -c debian-armhf blender Now Blender 2.79b should run perfectly on you system
     
  8. Like
    rna got a reaction from manuti in H2: Sunvell R69 Android TV Box (AliExpress)   
    Hi @manuti
    How did you do that? I mean what kind of tool and command that you used to force next boot using uSD card from android? many thanks
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines