Setting Up fcitx-mozc in Fedora 23 KDE

こんにちは。今回のテーマは『Fedora 23に日本語入力fcitx-mozcを導入する』です。最近はLinuxでの日本語入力としてfcitx-mozcの人気がジワジワ高まっているように感じます。

Recently, Mozc, Japanese input methode engine by Google become more popular, compared with Anthy, so does fcitx upon ibus. In the official repository of Fedora, there’s fcitx-anthy, but unfortunately, there’s no fcitx-mozc yet.

Here I will wrap up the workaround for those who want to use fcitx-mozc in Fedora 23. Be careful, that you take responsible of all risks that may happen, as it may lead to dependency hell. Basically, you are going to get favor from OpenSUSE as it has provided fcitx-mozc. You need 3 packages to be downloaded: fcitx-mozc, mozc, and mozc-gui-tools.

  1. Download those 3 packages from https://software.opensuse.org/421/en, select “more version” link, under Direct install button, there you can choose the package version and system architecture, whether 32 bit or 64 bit
    fedora31
  2. Remove ibus-mozc and mozc if already installed via command sudo dnf remove ibus-mozc mozc
  3. Install fcitx if it’s not installed yet, sudo dnf install fcitx kcm-fcitx
  4. Then install the previously downloaded packages via console. sudo dnf install fcitx-mozc.rpm fcitx-gui-tools.rpm mozc.rpm
    fedora33
  5. Once it successfully installed, you can set the default input method to fcitx-mozc via system settings.
    fedora34
    at the left list, you may have to uncheck the option “Only show the current language” to show Mozc and move to the right. Apply the settings and just relogin to Plasma to take effect and see the fcitx icon at the taskbar below.

via Fedora 23に日本語入力fcitx-mozcを導入する.

KDEConnect not Working in Fedora 23 KDE

I’ve just successfully connected KDE Connect in my Fedora 23 KDE to Android. Just before, I thought it didn’t work in Plasma 5 or broken in Fedora. Since it could not find the Android devices, although they have KDE Connect app installed. But actually, it’s just blocked by firewall config of Fedora.

According to KDE Wiki, the ports for kde-connect need to be opened, i.e 1714-1764. I’ve never thought that such essential part of the desktop environment would be blocked by firewall. So I had no idea to touch firewall config at all. It was until I found a discussion on Reddit about the same problem I had. A user pointing out about Fedora’s firewall that seems blocking kde-connect. But I could see the ports either TCP or UDP have been opened and listened in the firewall config. But then I found out that kde-connect was unchecked in the Services list.

It means that the firewall didn’t allow kde-connect to access the ports it needs. Then I just had to check it, typed password, and voila… my Android device has been found by kde-connect. So now, I can enjoy syncing Android to KDE and playing some stuffs it has.

References:
1. https://community.kde.org/KDEConnect#Troubleshooting
2. https://www.reddit.com/r/kde/comments/388fo0/kde_connect_fails_to_function/
3. http://www.bakalarczyk.com/posts/kde-connect-fw/

Settings for Nokia Asha 210 to Make SIP Call (in Asterisk PBX Network)

Above are gallery of screen captures of Nokia Asha 210 feature phone to configure SIP call in Asterisk PBX network. In other word, it is used for calling via VoIP network.

Kubuntu: Connect to OpenVPN Server with Network Manager Applet

Okay, you’ve successfully set up a new OpenVPN server on your VPS. What’s next?

Here, i post a brief tutorial how to connect my Kubuntu desktop to OpenVPN server with the default connection manager. Previously, I have set up OpenVPN server in just one click. And after the server is up, it automagically created several OpenVPN config files for the client. I fetched them with scp.

scp root@xxx.xxx.xxx.xxx:/root/{ca.crt,client.ovpn,client1.crt,client1.key} /home/user/Projects/web/VPN

openvpn config files
OpenVPN onfig files

Before this, I didn’t have any idea how to connect to VPN with the OVPN file. But actually, it’s so easy to do that with Kubuntu network manager plasma widget.

  1. Click on the network manager widget, then click the right corner gear.
Kubuntu plasma network manager
Kubuntu plasma network manager
  1. In the window appears, click menu File, choose Import VPN. Select the OVPN file we got previously.
  1. Edit the connection, add the rest of files. Make sure that the connection type is X.509 Certificates
Add the rest of config files
Add the rest of config files
  1. Connect it.
OpenVPN connected
OpenVPN connected

How to flash OpenWRT router

Have a look at this screenshot. It’s my experience when installed OpenWRT system image via command line. I did that way because it’s almost broken and I thought it bricked. But fortunately, it could be connected via SSH, and I reflashed the image with mtd command, after I scp-ed the binary image.

Flashing OpenWRT router from console
Flashing OpenWRT router from console

How to write Japanese Characters in Kubuntu 15.04 using fcitx

Kubuntu 15.04 now has fcitx as the default input method for Asian languages, including Japanese. But as I installed it in English, fcitx were removed at the end of installation. Previously, I used to have ibus-anthy to write Japanese characters. Now, I give a try to fcitx-mozc for doing that. Mozc engine is developed by Google –as I know so far. And here is a post that describes how to setup fcitx-mozc in Kubuntu 15.04 for writing Hiragana, Katakana or Kanji. I quoted it from a japanese blog. Just ask Google to translate it. 😀

インストール後ログインして、次のコマンドを実行して必要なパッケージをインストールします。

$ sudo apt-get install fcitx fcitx-mozc kde-config-fcitx

fcitxに切り替えます。

$ im-config -n fcitx

一旦ログアウトして再ログインします。

下部のパネルを右クリックして、[Panel Options]-[Add Widgets]で追加できるウィジェットの一覧を表示し、一番下の[入力方法パネル]をダブルクリックしてパネルに追加します。

[入力方法パネル]はパネルの右端に表示されるので、半角/全角キーを押してFcitxをオンにすると全体のアイコンが増えて左にずれ、もう一度押してFcitxをオフにすると右にずれるので、非常に鬱陶しいです。この場合、[Panel Options]-[Panel Settings]をクリックし、ポインターを[入力方法パネル]のアイコンまで移動して[入力方法パネル]という文字列が真ん中に出てきたら、左にドラッグします。

(このUIもう少しどうにかならんかったのかなー。ウィジェットを消す場合は名称の横に出るバツをクリックするとかわかりにくいから……)

Fcitxの設定を変更する場合は、[入力方法パネル]アイコンを右クリックして[Configure Input Method]をクリックします。

見た目はちょっと違いますが、設定できる項目は通常の設定ツール(fcitx-config-gtk3)と概ね同じです。

動いているイメージはこんな感じです。

注釈(じゃなくてなんだっけ?)もちゃんと表示されてます。

via Kubuntu 15.04でFcitxを使用する方法 – いくやの斬鉄日記.

How to Reinstall Ubuntu (Linux) without Repartitioning

Here’s how to reinstall Ubuntu or another Linux distro without having to lost your app settings and data. It’s useful for some cases, for instance you won’t lost your Firefox bookmarks and login session, as well as browsing history and installed add-ons. Although you can regain them all easily by the new sync feature, it can help you to save bandwidth and time.

The key to accomplish this approach is at the partitioning section when you install from USB or DVD installer. If you have /home directory in a distinct partition, then it will be easier to do. Otherwise, you may have to delete some system dirs first, instead of formatting / (root). Continue reading How to Reinstall Ubuntu (Linux) without Repartitioning