Changes between Version 17 and Version 18 of mycroft-gui-mark-2_sys
- Timestamp:
- 05/09/20 07:22:46 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
mycroft-gui-mark-2_sys
v17 v18 8 8 After first boot login as ubuntu/ubuntu (takes a while until you can do this), change password 9 9 ==== Wifi ==== 10 * ls /sys/class/net10 * {{{ ls /sys/class/net }}} 11 11 on RP3 the wifi interface is the wlan0 12 * sudo nano /etc/netplan/50-cloud-init.yaml12 * {{{ sudo nano /etc/netplan/50-cloud-init.yaml }}} 13 13 {{{ 14 14 # network: {config: disabled} … … 27 27 dhcp4: true 28 28 }}} 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 ** 30 30 ==== user ==== 31 * sudo useradd mycroft -g users -G sudo -m -s /bin/bash32 * sudo passwd mycroft33 * sudo nano /etc/group31 * {{{ sudo useradd mycroft -g users -G sudo -m -s /bin/bash }}} 32 * {{{ sudo passwd mycroft }}} 33 * {{{ sudo nano /etc/group }}} 34 34 (add mycroft to all groups like ubuntu) 35 35 … … 37 37 38 38 ==== update / initial apt setup ==== 39 * sudo apt-get update && sudo apt-get dist-upgrade -y40 * sudo apt install git gnupg wget curl apt-transport-https software-properties-common39 * {{{ sudo apt-get update && sudo apt-get dist-upgrade -y }}} 40 * {{{ sudo apt install git gnupg wget curl apt-transport-https software-properties-common }}} 41 41 Do the next steps as root: 42 * sudo su -42 * {{{ sudo su - }}} 43 43 Add 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 - }}} 45 45 Add the repository 46 * echo "deb https://archive.neon.kde.org/unstable focal main" > /etc/apt/sources.list.d/neon.list47 * sudo apt-get update46 * {{{ echo "deb https://archive.neon.kde.org/unstable focal main" > /etc/apt/sources.list.d/neon.list }}} 47 * {{{ sudo apt-get update }}} 48 48 49 49 ==== swap ==== 50 * sudo fallocate -l 2G /swapfile51 * sudo chmod 600 /swapfile52 * sudo mkswap /swapfile53 * sudo swapon /swapfile54 * sudo nano /etc/fstab50 * {{{ sudo fallocate -l 2G /swapfile }}} 51 * {{{ sudo chmod 600 /swapfile }}} 52 * {{{ sudo mkswap /swapfile }}} 53 * {{{ sudo swapon /swapfile }}} 54 * {{{ sudo nano /etc/fstab }}} 55 55 add 56 56 {{{ … … 58 58 }}} 59 59 ==== ramdisk ==== 60 * sudo mkdir /ramdisk61 * sudo nano /etc/fstab60 * {{{ sudo mkdir /ramdisk }}} 61 * {{{ sudo nano /etc/fstab }}} 62 62 add 63 63 {{{ … … 66 66 67 67 === 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 jq69 * cd ~70 * git clone https://github.com/MycroftAI/mycroft-core71 * cd mycroft-core72 * ./dev_setup.sh -sm68 * {{{ 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 }}} 73 73 74 74 ==== mimic ==== 75 75 skipped for now 76 * wget http://frozenmazegames.se/mimic-arm64_1.2.0.2+1559651054-1.deb77 * sudo dpkg -i mimic-arm64_1.2.0.2+1559651054-1.deb76 * {{{ 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 }}} 78 78 79 79 === Plasma Nano === 80 80 ==== Install the system Libraries ==== 81 81 I 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-dev82 * {{{ 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 }}} 83 83 I was not asked for the login manager so I set it manually: 84 * sudo dpkg-reconfigure sddm84 * {{{ sudo dpkg-reconfigure sddm }}} 85 85 86 86 ==== build plasma-nano ==== 87 * sudo apt install cmake kwayland-dev88 * cd ~89 * git clone https://github.com/KDE/plasma-nano90 * cd plasma-nano91 * mkdir build92 * cd build93 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON94 * make -j 295 * sudo make install87 * {{{ 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 }}} 96 96 ==== 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-plugin98 * cd ~99 * git clone https://github.com/MycroftAI/mycroft-gui/100 * cd mycroft-gui && mkdir build && cd build101 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON102 * make -j2103 * sudo make install97 * {{{ 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 }}} 104 104 ==== Mycroft-GUI-Mark-2 ==== 105 * cd ~106 * git clone https://github.com/MycroftAi/mycroft-gui-mark-2107 * cd mycroft-gui-mark-2 && mkdir build && cd build108 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON109 * make -j2110 * sudo make install105 * {{{ 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 }}} 111 111 ==== QML Lottie ==== 112 * cd ~113 * git clone https://github.com/kbroulik/lottie-qml114 * cd lottie-qml && mkdir build && cd build115 * cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON116 * make -j2117 * sudo make install112 * {{{ 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 }}} 118 118 ==== Scripts/Overlays ==== 119 119 skipped 93-create_ramdisk.sh and 94-create_swap.sh (done manually above) 120 * cd ~121 * git clone https://github.com/MycroftAI/mycroft-devices122 * cd mycroft-devices123 * cd scripts124 * chmod a+X 03-setup_locale.sh125 * sudo ./03-setup_locale.sh120 * {{{ 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 }}} 126 126 Overlays: 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/* /etc131 * 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/ }}} 137 137 === pi config.txt === 138 138 {{{ … … 149 149 === enable i2c_dev === 150 150 I did not have an /dev/i2c* device after booting only if I manually loaded i2c_dev so I did 151 * sudo nano /etc/modules151 * {{{ sudo nano /etc/modules }}} 152 152 add 153 153 {{{ … … 155 155 }}} 156 156 the i could use: 157 * sudo i2cset -y 1 0x4b 30157 * {{{ sudo i2cset -y 1 0x4b 30 }}} 158 158 to make the volume 159 159 === network manager === 160 160 I 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> }}} 162 162 remove the psk-flags=1 line and add 163 163 {{{