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を導入する.

Advertisements

Set Up an OpenVPN Server Instantly with DigitalOcean Droplet User Data

OpenVPN is a full-featured open source Secure Socket Layer (SSL) VPN solution that accommodates a wide range of configurations. In this tutorial, we’ll set up an OpenVPN server on a Droplet and then configure access to it from Windows, OS X, iOS and Android. This tutorial will keep the installation and configuration steps as simple as possible for these setups.

Note: OpenVPN can be installed automatically on your Droplet by adding this script to its User Data when launching it. Check out this tutorial to learn more about Droplet User Data.

Setup VPS instance

First thing first, you need to create a Digitalocean account by clicking this link. Complete the registration by providing your payment method, either with credit card or Paypal account.

After you see the green button “Create Droplet”, click on it to proceed to the next step. Type in your preferred Droplet hostname, whatever you want. Then select size of droplet, in this case you’ll choose the pricing which fit you. In my case, I choose the lowest one, $5 /month droplet with 20GB storage and 512MB RAM. It’s kind of enough for me.

Then select the region you want the droplet located. This time, you may want to choose the nearest region from your country. Then select Image, it is the operating system for your VPS. Choose the Ubuntu 14.04 x64.

And finally, tick the “User Data” in the Available Settings section. When the text input appears, enter the script for creating the VPN server. Get the script by referring to the link at the bottom of this post. Find the “Note” section like above quotation. There you’ll find the link to the script. Just copy and paste it.

DO User data
DigitalOcean User data. This is just illustration, and that’s not the script you want.

And in the last section, you may skip that “Add SSH Keys”. Then you will receive the password required to login to the VPS in your email inbox. Check it later.

via How To Set Up an OpenVPN Server on Ubuntu 14.04 | DigitalOcean.

Read EPUB in J2ME phone

Albite Reader

An e-book reader for Java Mobile developed by Svetlin Ankov. It’s free, and it’s released under the Apache 2.0 License. The source code is available at GitHub. If you are interested in the licensing info of the used resources or would like to download their sources or build your own resources, see the paragraph about resources down the text.

Works with EPUB, txt and (x)html files.

melalui Get the Reader at Albite BOOKS.

How To Set Up Automatic Deployment with Git with a VPS | DigitalOcean

Introduction

For an introduction to Git and how to install, please refer to the introduction tutorial.

This article will teach you how to use Git when you want to deploy your application. While there are many ways to use Git to deploy our application,

melalui How To Set Up Automatic Deployment with Git with a VPS | DigitalOcean.

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を使用する方法 – いくやの斬鉄日記.