Changes between Version 3 and Version 4 of mycroft-gui-mark-2_20.04_standalone
- Timestamp:
- 02/24/21 09:23:23 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mycroft-gui-mark-2_20.04_standalone
v3 v4 47 47 }}} 48 48 49 ==== systemd target ==== 50 switch once to multi-user target 51 * {{{ sudo systemctl isolate multi-user.target }}} 52 make default 53 * {{{ sudo systemctl set-default multi-user.target }}} 54 55 ==== autologon user mycroft ==== 56 * {{{ sudo systemctl edit getty@tty1.service }}} 57 to create/edit and change it to the following content 58 {{{ 59 [Service] 60 ExecStart= 61 ExecStart=-/sbin/agetty --noissue --autologin mycroft %I $TERM 62 Type=idle 63 }}} 64 49 65 === mycroft core === 50 66 * {{{ sudo apt-get install git python3 python3-dev python3-setuptools libtool libffi-dev libssl-dev autoconf automake bison swig libglib2.0-dev portaudio19-dev mpg123 screen flac curl libicu-dev pkg-config libjpeg-dev libfann-dev build-essential jq }}} … … 54 70 * {{{ ./dev_setup.sh }}} 55 71 56 === = Mycroft GUI ====57 * {{{ sudo apt install -y git-core g++ cmake cmake-extras cmake-data extra-cmake-modules kio-dev gettext pkg-config pkg-kde-tools qtbase5-dev qtdeclarative5-dev libkf5notifications-data libkf5notifications-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qtwebsockets qml-module-qt-websockets qml-module-qtquick-layouts build-essential libqt5webkit5 libqt5webkit5-dev libkf5i18n-data libkf5i18n-dev libkf5i18n5 qml-module-qtgraphicaleffects libqt5dbus5 libkf5dbusaddons-dev libdbus-1-dev libdbus-glib-1-dev libkf5kio-dev libqt5websockets5-dev libqt5webview5-dev }}}72 === Mycroft GUI === 73 * {{{ sudo apt install -y git-core g++ cmake cmake-extras cmake-data extra-cmake-modules kio-dev gettext pkg-config pkg-kde-tools qtbase5-dev qtdeclarative5-dev libkf5notifications-data libkf5notifications-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qtwebsockets qml-module-qt-websockets qml-module-qtquick-layouts build-essential libqt5webkit5 libqt5webkit5-dev libkf5i18n-data libkf5i18n-dev libkf5i18n5 qml-module-qtgraphicaleffects libqt5dbus5 libkf5dbusaddons-dev libdbus-1-dev libdbus-glib-1-dev libkf5kio-dev libqt5websockets5-dev libqt5webview5-dev qtmultimedia5-dev libkf5plasma-dev plasma-workspace-dev }}} 58 74 * {{{ cd ~ }}} 59 75 * {{{ git clone https://github.com/MycroftAI/mycroft-gui/ }}} … … 63 79 * {{{ sudo make install }}} 64 80 81 === QML Lottie === 82 * {{{ cd ~ }}} 83 * {{{ git clone https://github.com/kbroulik/lottie-qml }}} 84 * {{{ cd lottie-qml && mkdir build && cd build }}} 85 * {{{ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON }}} 86 * {{{ make -j2 }}} 87 * {{{ sudo make install }}} 88 89 === pi config.txt === 90 edit the file /boot/firmware/usercfg.txt and add the following parameters 91 {{{ 92 dtoverlay=vc4-fkms-v3d 93 disable_overscan=1 94 }}} 95 After this reboot. Check after a reboot that you do have the devices card0 and card1 in /dev/dri/ otherwhise starting mycroft-gui-app will fail with the message "Could not find DRM device!" 96 97 === test mycroft-gui-app === 98 Test the GUI app using the commands: 99 {{{ 100 export QT_QPA_PLATFORM=eglfs 101 mycroft-gui-app 102 }}} 103 this should start the GUI app in landscape mode. You can rotate the screen using the --rotateScreen 90 option. But this is not fully functional and I will add a seperate wiki entry for this. 104 105 === Automatic start of the mycroft-gui app === 106 There are several options to automatically start the GUI. You could just add the commands to .bashrc but I prefer to start it via a user systemd service 107 * {{{ mkdir -p ~/.config/systemd/user }}} 108 * {{{ nano ~/.config/systemd/user/mymycroftgui.service }}} 109 with the content: 110 {{{ 111 [Unit] 112 Description=start mycroft-gui 113 After=network.target 114 115 [Service] 116 Type=simple 117 Environment="QT_QPA_PLATFORM=eglfs" 118 ExecStart=/usr/bin/mycroft-gui-app 119 120 [Install] 121 WantedBy=default.target 122 }}} 123 then start it 124 * {{{ systemctl start --user mymycroftgui }}} 125 and enable the automatic start with 126 * {{{ systemctl enable --user mymycroftgui }}} 127 128 === Other reading === 129 ==== Sound ==== 130 See [wiki:mycroft_mark-2_sound Mycroft Mark II - Sound] 131 132 133 134