parent
49bae9bd79
commit
4a0863aeb2
|
@ -199,7 +199,7 @@ go install golang.org/x/tools/cmd/goimports@latest
|
|||
```
|
||||
|
||||
```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
|
||||
|
|
|
@ -2,22 +2,22 @@
|
|||
|
||||
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
|
||||
echo $UID
|
||||
```
|
||||
|
||||
在 /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
|
||||
apt install weston
|
||||
/etc/xdg/weston/weston.ini
|
||||
|
|
|
@ -90,11 +90,11 @@ QT_QPA_EGLFS_INTEGRATION:
|
|||
### END INIT INFO
|
||||
|
||||
start(){
|
||||
/path/to/demo -platform linuxfb:fb=/dev/fb0:mmsize=1920x1080 &
|
||||
/path/to/demo -platform linuxfb:fb=/dev/fb0:mmsize=1920x1080 &
|
||||
}
|
||||
|
||||
stop(){
|
||||
killall -q demo
|
||||
killall -q demo
|
||||
}
|
||||
|
||||
restart(){
|
||||
|
|
Loading…
Reference in New Issue