Category: Technology

  • Chinese Input + KDE Neon


    Managed to get Chinese input on KDE Neon using fcitx. These are the packages I have installed:

    sudo apt install fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic im-config libfcitx-core0 libfcitx-gclient0 libfcitx-qt5-1 libgeoclue0 libgettextpo0 libjavascriptcoregtk-4.0-18 libpresage-data libpresage1v5 libtinyxml2.6.2v5 libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-37-gtk2 presage zenity zenity-common fcitx-libpinyin

    To start at login:

    sudo cp /usr/share/fcitx/xdg/autostart/fcitx-autostart.desktop /etc/xdg/autostart/

    I was having an issue where the fcitx configurator window would pop up at login, which I did not want. I edited the Exec= line as shown, which seems to have alleviated the problem:

    ...
    #Exec=fcitx-autostart
    Exec=fcitx
    ...

    Not sure why fcitx-autostart also opens fcitx-configtool at login. If I close everything and run fcitx-autostart from xterm, it does start the little systray applet thing, but not the configurator. From what I can tell, it only opens the configurator when it runs at login.

    Fcitx Homepage

  • KDE Neon System Settings Workspace Theme Picker Missing

    sudo apt update
    sudo apt dist-upgrade
    sudo apt install qml-module-org-kde-kcm

    Source: https://muhdzamri.blogspot.tw/2018/01/problem-with-kde-look-and-feel-and.html

    More info:

    # apt show qml-module-org-kde-kcm
    Package: qml-module-org-kde-kcm
    Version: 5.42.0-0neon+16.04+xenial+build54
    Priority: optional
    Section: libs
    Source: kdeclarative
    Maintainer: Neon CI <[email protected]>
    Installed-Size: 63.5 kB
    Depends: libkf5declarative5 (>= 5.42.0-0neon+16.04+xenial+build54), qml-module-org-kde-kirigami2, libc6 (>= 2.14), libkf5quickaddons5, libqt5core5a (>= 5.9.3+dfsg), libqt5qml5 (>= 5.9.3), libstdc++6 (>= 4.1.1)
    Homepage: https://projects.kde.org/projects/frameworks/kdeclarative
    Download-Size: 15.6 kB
    APT-Manual-Installed: yes
    APT-Sources: http://archive.neon.kde.org/user xenial/main amd64 Packages
    Description: provides integration of QML and KDE Frameworks - kconfig
     This import contains KDE extras that are visually similar to Qt Quick
     Controls.
     .
     This package contains the QML files used by libkf5declarative.
  • dnsmasq, NFS, and a Pi 3: How to boot and run your Pi 3 over LAN

    Overview

    1. Enable USB boot mode on the Pi (enables booting via network)
    2. Setup dnsmasq on the server (provides /boot)
    3. Setup NFS on the server (privides /)

    (more…)

  • Local git repo + ssh keys

    Handy little guide on setting up git repos locally.

    If you’re you’ve got PasswordAuthentication set to no in your sshd_config, you need to disable it temporarily to copy the keys as the user you normally use using ssh-copy-id git@localhost.  Once the key is successfully copied, then you will no longer be prompted for a password..  and you can re-disable Password authentication.

  • Apartment and keelung1.ddns.net Maintenance

    Geeked out pretty hard this weekend!  Bit of a convoluted process but I’m happy with the way things are going.  Laptop is free to run Windows for vidya.  Raspberry Pi 3 does my dinky Linux server stuff.

    Re-partitioned the drive in the Windows laptop to have a bit more room for the break-in-case-of-emergency Linux partition (which I still need to install).

    Bought a Raspberry Pi (and related party supplies) near GuangHua Tech Plaza in the underground market.  Split off everything but /boot onto a 500GB external HDD so as not to kill the MicroSD card.

    While the laptop is a less-than-ideal piece of gaming hardware, it is sufficient for my purposes, especially now that it doesn’t need to do Linux duties anymore.

    Still need to iron out Bluetooth connectivity with the PS4 controller..

  • Scott Forsyth’s Blog – URL Rewrite vs. Redirect; What’s the difference?

    IIS URL Rewrite has five different types of actions. They are: Rewrite, Redirect, Custom Response, Abort Request, and None. And if you have ARR (Application Request Routing) installed, then at the …

    Source: Scott Forsyth’s Blog – URL Rewrite vs. Redirect; What’s the difference?

  • Stuck on the last step of Openfire installation?

    update `ofUser` set plainPassword = ‘admin’, encryptedPassword = null where username = ‘admin’;

    See if this helps 😉

  • ELK stack made

    Following this guide I set up ELK stack in a VM.  Currently only getting logs from my www server, but will add others later.  Also need to mess with grok.

  • mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists.

    This is an error I get when starting MySQL on a Galera cluster node after a reboot.

    The result of this is that MySQL fails to start automatically after a reboot.  I have no idea why this is happening and the error appears to be extremely rare, as there (from what Googling I’ve done so far) is very little discussion of this issue, except for this guy.  I’ve reached out to him on Twitter; we’ll see what he says.

    I would hope that there’s a way to make this fix permanent.  Because of it’s location I cannot expect that directory to be persistent across reboots.  I want to say that this is some issue with MySQL not doing what it needs to do start itself up properly (i.e. making the directory in /var/run that it needs to make) but perhaps the blame is on the OS (or, more likely, me).

    I don’t know if this is a bug or not, but I know I don’t have this issue with MySQL sans-Galera.

    Elsewhere, I’ve been suggested to examine this post for more information how I might remedy this issue.