Changes between Version 3 and Version 4 of mycroft-gui-mark-2_20.04_standalone


Ignore:
Timestamp:
02/24/21 09:23:23 (3 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mycroft-gui-mark-2_20.04_standalone

    v3 v4  
    4747}}}
    4848
     49==== systemd target ====
     50switch once to multi-user target
     51* {{{ sudo systemctl isolate multi-user.target }}}
     52make default
     53* {{{ sudo systemctl set-default multi-user.target }}}
     54
     55==== autologon user mycroft ====
     56* {{{ sudo systemctl edit getty@tty1.service }}}
     57to create/edit and change it to the following content
     58{{{
     59[Service]
     60ExecStart=
     61ExecStart=-/sbin/agetty --noissue --autologin mycroft %I $TERM
     62Type=idle
     63}}}
     64
    4965=== mycroft core ===
    5066* {{{ 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 }}}
     
    5470* {{{ ./dev_setup.sh }}}
    5571
    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 }}}
    5874* {{{ cd ~ }}}
    5975* {{{ git clone https://github.com/MycroftAI/mycroft-gui/ }}}
     
    6379* {{{ sudo make install }}}
    6480
     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 ===
     90edit the file /boot/firmware/usercfg.txt and add the following parameters
     91{{{
     92dtoverlay=vc4-fkms-v3d
     93disable_overscan=1
     94}}}
     95After 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 ===
     98Test the GUI app using the commands:
     99{{{
     100export QT_QPA_PLATFORM=eglfs
     101mycroft-gui-app
     102}}}
     103this 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 ===
     106There 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 }}}
     109with the content:
     110{{{
     111[Unit]
     112Description=start mycroft-gui
     113After=network.target
     114
     115[Service]
     116Type=simple
     117Environment="QT_QPA_PLATFORM=eglfs"
     118ExecStart=/usr/bin/mycroft-gui-app
     119
     120[Install]
     121WantedBy=default.target
     122}}}
     123then start it
     124* {{{ systemctl start --user mymycroftgui }}}
     125and enable the automatic start with
     126* {{{ systemctl enable --user mymycroftgui }}}
     127
     128=== Other reading ===
     129==== Sound ====
     130See [wiki:mycroft_mark-2_sound Mycroft Mark II - Sound]
     131
     132
     133
     134