Last Modified: 2024-04-10

Solar2D Linux

ubuntu 22.10 kinetic

https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/releases

ubuntu 22.08 (Kinetic): Based on Debian 12 (Bookworm) GNOME 43

/Users/ymmtny/Documents/work/Solar2DTux/

platform/linux/buildx


bookworm uses wayland. raspi-config > Advanced to swich X11

sudo raspi-config nonint do_wayland W1

https://qiita.com/ktamido/items/82ed2f5bd324d4721096 バージョン0.7.0以降の WayVNC は RealVNC と互換性のある RSA-AES 認証が追加されたらしく、適切な証明書を生成すると、RealVNCから接続できる

https://docs.cse.lehigh.edu/xforwarding/xforwarding-mac/ https://stackoverflow.com/questions/65468655/vs-code-remote-x11-cant-get-display-while-connecting-to-remote-server

sudo apt update
sudo apt install x11-apps

java 8

AppImage


snap

error

pi@kwiksher-solar2d:~/projects/deploy-solar2d $ snap run --strace solar2d
/snap/strace-static/current/bin/strace: Cannot find user 'pi'
sudo apt update
sudo apt install snapd
sudo reboot

sudo snap install core
snap install hello-world
sudo snap install snapcraft --classic
sudo snap install lxd --channel=latest/stable

sudo snap remove –purge lxd

https://stackoverflow.com/questions/57525289/not-able-to-execute-lxd-lxc-commands-as-sudo

newgrp lxd
sudo usermod -aG pi lxd
lxd init  --minimal
snapcraft --use-lxd

sudo usermod -aG ymmtny lxd

sudo gpasswd lxd

snap install opy_latest_amd64.snap --dangerous
unsquashfs <file>.snap
  sudo apt update

  ln -s ../sysroot sysroot

  snap remove --purge lxd

  lxd init --minimal
  snapcraft --use-lxd

  snapcraft prime --shell-after --use-lxd

  snapcraft clean

  lxc ls
  lxc container
  lxc delete {name}

  snap install solar2d_2100.9999_arm64.snap --dangerous --devmode

  snap connections --all

The shorthand format will also produce the same result:

```
architectures:
  - amd64
```

snapパッケージング入門

sudo ifconfig usb0 down for windows with raspi4 type-c

https://blog.tstylestudio.com/2022/02/10/raspberrypi%E3%81%ABlxd%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F/


flatpak

flatpak run --command=sh --devel <application-id>

deb

clang


docker buildx

debian ubuntu

jetson nano


gcc

The Bullseye default compiler is gcc 10, with Bookworm it’s gcc 12. clang-13 the latest clang release on Bullseye, clang-15 the latest on Bookworm.


kwiksher-solar2d.loca

  otg_mode=1
  dtoverlay=dwc2
  #dtoverlay=disable-wifi
modules-load=dwc2,g_ether

first_run.sh, Before the rm … command, add this:

```
cat << EOF > /etc/network/interfaces.d/usb0
auto usb0
allow-hotplug usb0
iface usb0 inet static
    address 192.168.2.2
    netmask 255.255.255.0
    gateway 192.168.2.1
EOF
```