补充资料。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-06-28 10:22:07 +08:00
parent 49bae9bd79
commit 4a0863aeb2
3 changed files with 16 additions and 16 deletions

View File

@ -199,7 +199,7 @@ go install golang.org/x/tools/cmd/goimports@latest
``` ```
```bash ```bash
sudo apt install qt5-qmake qtbase5-dev qtbase5-dev-tools qt5dxcb-plugin qtchooser qtltools qtdeclarative5-dev qtdeclarative5-dev-tools qtdeclarative5-doc qtmultimedia5-doc qtconnectivity5-dev qtconnectivity5-doc qtgstreamer-plugins-qt5 qtgstreamer-doc qtlocation5-dev qtlocation5-doc qtquickcontrols2-5-dev qtquickcontrols2-5-doc qtscript5-dev qtscript5-doc qtvirtualkeyboard-plugin libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5gstreamer-1.0-0 libqt5gstreamer-dev libqt5gstreamerquick-1.0-0 libqt5gstreamerui-1.0-0 libqt5gstreamerutils-1.0-0 libqt5multimediawidgets5 libqt5multimediaquick5 libqt5multimedia5 libqt5quick5 libqt5qml5 libqt5printsupport5 libqt5quickcontrols2-5 libqt5quickwidgets5 libqt5serialport5-dev libqt5serialport5 libqt5serialbus5-plugins libqt5serialbus5-bin libqt5serialbus5 libqt5serialbus5-dev qtmultimedia5-dev qml-module-qtmultimedia libqt5xdg-dev libqt5xml5 libqt5xmlpatterns5-dev libqt5core5a libqt5network5 libqt5gui5 libqt5quickparticles5 libqt53dquickextras5 libqt53dquickinput5 libqt5positioningquick5 libqt53dquickrender5 libqt53dquickscene2d5 libqt5virtualkeyboard5 libqt5virtualkeyboard5-dev 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 libssl-dev libprotobuf-c-dev libprotobuf-c1 protobuf-c-compiler protobuf-compiler git cmake libasound2-dev sudo apt install qt5-qmake qtbase5-dev qtbase5-dev-tools qt5dxcb-plugin qtchooser qtltools qtdeclarative5-dev qtdeclarative5-dev-tools qtdeclarative5-doc qtmultimedia5-doc qtconnectivity5-dev qtconnectivity5-doc qtgstreamer-plugins-qt5 qtgstreamer-doc qtlocation5-dev qtlocation5-doc qtquickcontrols2-5-dev qtquickcontrols2-5-doc qtscript5-dev qtscript5-doc qtvirtualkeyboard-plugin libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5gstreamer-1.0-0 libqt5gstreamer-dev libqt5gstreamerquick-1.0-0 libqt5gstreamerui-1.0-0 libqt5gstreamerutils-1.0-0 libqt5multimediawidgets5 libqt5multimediaquick5 libqt5multimedia5 libqt5quick5 libqt5qml5 libqt5printsupport5 libqt5quickcontrols2-5 libqt5quickwidgets5 libqt5serialport5-dev libqt5serialport5 libqt5serialbus5-plugins libqt5serialbus5-bin libqt5serialbus5 libqt5serialbus5-dev qtmultimedia5-dev qml-module-qtmultimedia libqt5xdg-dev libqt5xml5 libqt5xmlpatterns5-dev libqt5core5a libqt5network5 libqt5gui5 libqt5quickparticles5 libqt53dquickextras5 libqt53dquickinput5 libqt5positioningquick5 libqt53dquickrender5 libqt53dquickscene2d5 libqt5virtualkeyboard5 libqt5virtualkeyboard5-dev 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-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 libssl-dev libprotobuf-c-dev libprotobuf-c1 protobuf-c-compiler protobuf-compiler git cmake libasound2-dev
``` ```
```bash ```bash

View File

@ -2,22 +2,22 @@
Error running systemd as user - Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined 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]: ```bash
echo $UID
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.
``` ```
在 /etc/default/locale 或 /etc/environment 中设置:
```bash
XDG_RUNTIME_DIR="/run/user/${UID}"
DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
RUNLEVEL=3
```
其中的 ${UID} 和 ${XDG_RUNTIME_DIR} 要用实际值替代。
```bash ```bash
apt install weston apt install weston
/etc/xdg/weston/weston.ini /etc/xdg/weston/weston.ini