Changes between Version 17 and Version 18 of mycroft-gui-mark-2_sys


Ignore:
Timestamp:
05/09/20 07:22:46 (2 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mycroft-gui-mark-2_sys

    v17 v18  
    88After first boot login as ubuntu/ubuntu (takes a while until you can do this), change password
    99==== Wifi ====
    10 * ls /sys/class/net
     10* {{{ ls /sys/class/net }}}
    1111on RP3 the wifi interface is the wlan0
    12 * sudo nano /etc/netplan/50-cloud-init.yaml
     12* {{{ sudo nano /etc/netplan/50-cloud-init.yaml }}}
    1313{{{
    1414# network: {config: disabled}
     
    2727            dhcp4: true
    2828}}}
    29 **Remark: After SDDM is using NetworkManager I had to remove the wifis part otherwise wlan0 was unavailable**
     29** Remark: After SDDM is using NetworkManager I had to remove the wifis part otherwise wlan0 was unavailable **
    3030==== user ====
    31 * sudo useradd mycroft -g users -G sudo -m -s /bin/bash
    32 * sudo passwd mycroft
    33 * sudo nano /etc/group
     31* {{{ sudo useradd mycroft -g users -G sudo -m -s /bin/bash }}}
     32* {{{ sudo passwd mycroft }}}
     33* {{{ sudo nano /etc/group }}}
    3434(add mycroft to all groups like ubuntu)
    3535
     
    3737
    3838==== update / initial apt setup ====
    39 * sudo apt-get update && sudo apt-get dist-upgrade -y
    40 * sudo apt install git gnupg wget curl apt-transport-https software-properties-common
     39* {{{ sudo apt-get update && sudo apt-get dist-upgrade -y }}}
     40* {{{ sudo apt install git gnupg wget curl apt-transport-https software-properties-common }}}
    4141Do the next steps as root:
    42 * sudo su -
     42* {{{ sudo su - }}}
    4343Add KDE Neon gpg key:
    44 * wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
     44* {{{ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add - }}}
    4545Add the repository
    46 * echo "deb https://archive.neon.kde.org/unstable focal main" > /etc/apt/sources.list.d/neon.list
    47 * sudo apt-get update
     46* {{{ echo "deb https://archive.neon.kde.org/unstable focal main" > /etc/apt/sources.list.d/neon.list }}}
     47* {{{ sudo apt-get update }}}
    4848
    4949==== swap ====
    50 * sudo fallocate -l 2G /swapfile
    51 * sudo chmod 600 /swapfile
    52 * sudo mkswap /swapfile
    53 * sudo swapon /swapfile
    54 * sudo nano /etc/fstab
     50* {{{ sudo fallocate -l 2G /swapfile }}}
     51* {{{ sudo chmod 600 /swapfile }}}
     52* {{{ sudo mkswap /swapfile }}}
     53* {{{ sudo swapon /swapfile }}}
     54* {{{ sudo nano /etc/fstab }}}
    5555add
    5656{{{
     
    5858}}}
    5959==== ramdisk ====
    60 * sudo mkdir /ramdisk
    61 * sudo nano /etc/fstab
     60* {{{ sudo mkdir /ramdisk }}}
     61* {{{ sudo nano /etc/fstab }}}
    6262add
    6363{{{
     
    6666
    6767=== mycroft core ===
    68 * 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
    69 * cd ~
    70 * git clone https://github.com/MycroftAI/mycroft-core
    71 * cd mycroft-core
    72 * ./dev_setup.sh -sm
     68* {{{ 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 }}}
     69* {{{ cd ~ }}}
     70* {{{ git clone https://github.com/MycroftAI/mycroft-core }}}
     71* {{{ cd mycroft-core }}}
     72* {{{ ./dev_setup.sh -sm }}}
    7373
    7474==== mimic ====
    7575skipped for now
    76 * wget http://frozenmazegames.se/mimic-arm64_1.2.0.2+1559651054-1.deb
    77 * sudo dpkg -i mimic-arm64_1.2.0.2+1559651054-1.deb
     76* {{{ wget http://frozenmazegames.se/mimic-arm64_1.2.0.2+1559651054-1.deb }}}
     77* {{{ sudo dpkg -i mimic-arm64_1.2.0.2+1559651054-1.deb }}}
    7878
    7979=== Plasma Nano ===
    8080==== Install the system Libraries ====
    8181I will try to come up with a completer list later but I think most of it should be in the dependencies of the following
    82 * sudo apt install sddm kwin-wayland kwin-x11 openssh-server ftp i2c-tools konsole nano plasma-workspace-wayland plasma-workspace plasma-pa plasma-widgets-addons libkf5wallet-bin gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-fluendo-mp3 qml-module-qtmultimedia network-manager plasma-nm konsole plasma-workspace-dev
     82* {{{ sudo apt install sddm kwin-wayland kwin-x11 openssh-server ftp i2c-tools konsole nano plasma-workspace-wayland plasma-workspace plasma-pa plasma-widgets-addons libkf5wallet-bin gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-fluendo-mp3 qml-module-qtmultimedia network-manager plasma-nm konsole plasma-workspace-dev }}}
    8383I was not asked for the login manager so I set it manually:
    84 * sudo dpkg-reconfigure sddm
     84* {{{ sudo dpkg-reconfigure sddm }}}
    8585
    8686==== build plasma-nano ====
    87 * sudo apt install cmake kwayland-dev
    88 * cd ~
    89 * git clone https://github.com/KDE/plasma-nano
    90 * cd plasma-nano
    91 * mkdir build
    92 * cd build
    93 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    94 * make -j 2
    95 * sudo make install
     87* {{{ sudo apt install cmake kwayland-dev }}}
     88* {{{ cd ~ }}}
     89* {{{ git clone https://github.com/KDE/plasma-nano }}}
     90* {{{ cd plasma-nano }}}
     91* {{{ mkdir build }}}
     92* {{{ cd build }}}
     93* {{{ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON }}}
     94* {{{ make -j 2 }}}
     95* {{{ sudo make install }}}
    9696==== Mycroft GUI ====
    97 * sudo apt install -y git-core g++ cmake extra-cmake-modules kio-dev gettext pkg-config pkg-kde-tools qtbase5-dev qtdeclarative5-dev kio-dev libkf5notifications-data libkf5notifications-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qtwebsockets qml-module-qt-websockets qtdeclarative5-qtquick2-plugin qtdeclarative5-models-plugin cmake cmake-extras cmake-data qml-module-qtquick-layouts libkf5plasma-dev extra-cmake-modules qtdeclarative5-dev build-essential g++ gettext libqt5webkit5 libqt5webkit5-dev libkf5i18n-data libkf5i18n-dev libkf5i18n5 qml-module-qtgraphicaleffects libqt5dbus5 libkf5dbusaddons-dev libdbus-1-dev libdbus-glib-1-dev kio-dev libkf5kio-dev libqt5websockets5-dev libqt5webview5-dev qml-module-qtquick-virtualkeyboard libqt5virtualkeyboard5-dev qtvirtualkeyboard-plugin
    98 * cd ~
    99 * git clone https://github.com/MycroftAI/mycroft-gui/
    100 * cd mycroft-gui && mkdir build && cd build
    101 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    102 * make -j2
    103 * sudo make install
     97* {{{ sudo apt install -y git-core g++ cmake extra-cmake-modules kio-dev gettext pkg-config pkg-kde-tools qtbase5-dev qtdeclarative5-dev kio-dev libkf5notifications-data libkf5notifications-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-controls qml-module-qtwebsockets qml-module-qt-websockets qtdeclarative5-qtquick2-plugin qtdeclarative5-models-plugin cmake cmake-extras cmake-data qml-module-qtquick-layouts libkf5plasma-dev extra-cmake-modules qtdeclarative5-dev build-essential g++ gettext libqt5webkit5 libqt5webkit5-dev libkf5i18n-data libkf5i18n-dev libkf5i18n5 qml-module-qtgraphicaleffects libqt5dbus5 libkf5dbusaddons-dev libdbus-1-dev libdbus-glib-1-dev kio-dev libkf5kio-dev libqt5websockets5-dev libqt5webview5-dev qml-module-qtquick-virtualkeyboard libqt5virtualkeyboard5-dev qtvirtualkeyboard-plugin }}}
     98* {{{ cd ~ }}}
     99* {{{ git clone https://github.com/MycroftAI/mycroft-gui/ }}}
     100* {{{ cd mycroft-gui && mkdir build && cd build }}}
     101* {{{ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON }}}
     102* {{{ make -j2 }}}
     103* {{{ sudo make install }}}
    104104==== Mycroft-GUI-Mark-2 ====
    105 * cd ~
    106 * git clone https://github.com/MycroftAi/mycroft-gui-mark-2
    107 * cd mycroft-gui-mark-2 && mkdir build && cd build
    108 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    109 * make -j2
    110 * sudo make install
     105* {{{ cd ~ }}}
     106* {{{ git clone https://github.com/MycroftAi/mycroft-gui-mark-2 }}}
     107* {{{ cd mycroft-gui-mark-2 && mkdir build && cd build }}}
     108* {{{ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON }}}
     109* {{{ make -j2 }}}
     110* {{{ sudo make install }}}
    111111==== QML Lottie ====
    112 * cd ~
    113 * git clone https://github.com/kbroulik/lottie-qml
    114 * cd lottie-qml && mkdir build && cd build
    115 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    116 * make -j2
    117 * sudo make install
     112* {{{ cd ~ }}}
     113* {{{ git clone https://github.com/kbroulik/lottie-qml }}}
     114* {{{ cd lottie-qml && mkdir build && cd build }}}
     115* {{{ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON }}}
     116* {{{ make -j2 }}}
     117* {{{ sudo make install }}}
    118118==== Scripts/Overlays ====
    119119skipped 93-create_ramdisk.sh and 94-create_swap.sh (done manually above)
    120 * cd ~
    121 * git clone https://github.com/MycroftAI/mycroft-devices
    122 * cd mycroft-devices
    123 * cd scripts
    124 * chmod a+X 03-setup_locale.sh
    125 * sudo ./03-setup_locale.sh
     120* {{{ cd ~ }}}
     121* {{{ git clone https://github.com/MycroftAI/mycroft-devices }}}
     122* {{{ cd mycroft-devices }}}
     123* {{{ cd scripts }}}
     124* {{{ chmod a+X 03-setup_locale.sh }}}
     125* {{{ sudo ./03-setup_locale.sh }}}
    126126Overlays:
    127 * cd ..
    128 * sudo cp overlays/base-embedded/etc/xdg/* /etc/xdg/
    129 * sudo cp overlays/mark2/etc/xdg/* /etc/xdg/
    130 * sudo cp -r -v overlays/mycroft/etc/* /etc
    131 * sudo cp -r -v overlays/base-embedded/etc/skel/.local /etc/skel/
    132 * sudo cp -r -v overlays/mycroft/etc/sddm.conf.d /etc/
    133 * sudo cp -v overlays/base-embedded/etc/profile.d/renderloop.sh /etc/profile.d/
    134 * sudo cp -r -v overlays/mycroft/etc/polkit-1/localauthority/50-local.d /etc/polkit-1/localauthority/
    135 * sudo cp -v overlays/base-embedded/etc/netplan/config.yaml /etc/netplan/
    136 * sudo cp -r -v overlays/mycroft/etc/mycroft/* /etc/mycroft/
     127* {{{ cd .. }}}
     128* {{{ sudo cp overlays/base-embedded/etc/xdg/* {{{ /etc/xdg/ }}}
     129* {{{ sudo cp overlays/mark2/etc/xdg/* {{{ /etc/xdg/ }}}
     130* {{{ sudo cp -r -v overlays/mycroft/etc/* {{{ /etc }}}
     131* {{{ sudo cp -r -v overlays/base-embedded/etc/skel/.local /etc/skel/ }}}
     132* {{{ sudo cp -r -v overlays/mycroft/etc/sddm.conf.d /etc/ }}}
     133* {{{ sudo cp -v overlays/base-embedded/etc/profile.d/renderloop.sh /etc/profile.d/ }}}
     134* {{{ sudo cp -r -v overlays/mycroft/etc/polkit-1/localauthority/50-local.d /etc/polkit-1/localauthority/ }}}
     135* {{{ sudo cp -v overlays/base-embedded/etc/netplan/config.yaml /etc/netplan/ }}}
     136* {{{ sudo cp -r -v overlays/mycroft/etc/mycroft/* {{{ /etc/mycroft/ }}}
    137137=== pi config.txt ===
    138138{{{
     
    149149=== enable i2c_dev ===
    150150I did not have an /dev/i2c* device after booting only if I manually loaded i2c_dev so I did
    151 * sudo nano /etc/modules
     151* {{{ sudo nano /etc/modules }}}
    152152add
    153153{{{
     
    155155}}}
    156156the i could use:
    157 * sudo i2cset -y 1 0x4b 30
     157* {{{ sudo i2cset -y 1 0x4b 30 }}}
    158158to make the volume
    159159=== network manager ===
    160160I wanted the wifi connection to be established before SDDM comes up so I changed the settings in the connection file
    161 * /etc/NetworkManager/system-connections/<ESSID>
     161* {{{ /etc/NetworkManager/system-connections/<ESSID> }}}
    162162remove the psk-flags=1 line and add
    163163{{{