整理笔记。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-06-03 08:43:27 +08:00
parent 0c76ebd6ff
commit ca475802ab
3 changed files with 70 additions and 3 deletions

View File

@ -0,0 +1,67 @@
# 关于 Weston 的一些配置
Error running systemd as user - Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined
```md
The quick solution
Assuming someuser uses bash as their login shell, add the following exports to ~someuser/.profile [1]:
export XDG_RUNTIME_DIR="/run/user/$UID"
export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
Then, a user with root/sudo privileges can interact with someuser's systemd by wrapping the command with runuser:
sudo runuser someuser -l -c "systemctl --user enable ipfs"
sudo runuser someuser -l -c "systemctl --user start ipfs"
runuser someuser -l -c "printenv" can help to troubleshoot these and other exported environment variables.
```
```bash
apt install weston
/etc/xdg/weston/weston.ini
```
```bash
[core]
xwayland=true
backend=drm-backend.so
[keyboard]
keymap_layout=gb
[output]
name=DSI-1
mode=1024x600
[launcher]
icon=/usr/share/icons/locolor/32x32/apps/gvim.png
path=/usr/bin/weston-terminal
```
```weston.ini
backend=headless-backend.so
overrides defaults backend. Available backend modules in the /usr/lib/x86_64-linux-
gnu/weston directory are:
drm-backend.so
fbdev-backend.so
headless-backend.so
rdp-backend.so
rpi-backend.so
wayland-backend.so
x11-backend.so
```
```bash
sudo -E XDG_RUNTIME_DIR="/run/user/1000" weston-launch --tty=/dev/tty2 --user=cat
usermod -aG video user123
usermod -a -G weston-launch user-name
gst-play-1.0 Big_Buck_Bunny_720_10s_30MB.mp4 --videosink=waylandsink0
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
```
https://wayland.pages.freedesktop.org/weston/toc/running-weston.html#running-weston-on-a-different-seat-on-a-stand-alone-back-end

View File

@ -9,7 +9,7 @@ sudo apt install libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5gstre
sudo apt install qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick-shapes qml-module-qtquick-scene2d qml-module-qtquick-privatewidgets qml-module-qtquick-localstorage qml-module-qtquick-extras qml-module-qtquick-dialogs qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qt-labs-calendar qml-module-qt-labs-qmlmodels qml-module-qt-labs-folderlistmodel qml-module-gsettings1.0 qml-module-qmltermwidget qml-module-qt-labs-folderlistmodel qml-module-qt-labs-location qml-module-qt-labs-platform qml-module-qt-labs-qmlmodels qml-module-qt-labs-settings qml-module-qt-labs-sharedimage qml-module-qtcharts qml-module-qtmultimedia qml-module-qtlocation qml-module-qtpositioning qml-module-qtqml-statemachine
sudo apt install gstreamer1.0-libav libgstreamer-plugins-bad1.0-0 gstreamer1.0-qt5 gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
sudo apt install gstreamer1.0-plugins-base-apps gstreamer1.0-libav libgstreamer-plugins-bad1.0-0 gstreamer1.0-qt5 gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
# 安装 NATS 服务和调试工具.
sudo apt install libssl-dev libprotobuf-c-dev libprotobuf-c1 protobuf-c-compiler protobuf-compiler

View File

@ -135,8 +135,8 @@ GPrivate* gobj() { return &gobject_; }
### 裁剪
* nginx
* host-ntfs1
- nginx
- host-ntfs1
### 软件包下载过慢或无法下载的处理