How to Build and Install with Others Distro - hamonikr/nimf GitHub Wiki
Debian, Ubuntu, Kubuntu, HamoniKR
First of all, install devscripts, build-essential, debhelper.
username:~$ sudo apt install devscripts build-essential debhelper
After installing devscripts, build-essential perform the following commands.
username:~$ cd
username:~$ mkdir tmp-build
username:~$ cd tmp-build
username:~/tmp-build$ wget https://github.com/hamonikr/nimf/archive/1.2.0.tar.gz
username:~/tmp-build$ tar zxf 1.2.0.tar.gz
username:~/tmp-build$ cd 1.2.0
username:~/tmp-build/nimf-master$ dpkg-checkbuilddeps
You may see something like:
dpkg-checkbuilddeps: Unmet build dependencies: some-package1 some-package2 ...
Install all dependent packages and perform the following commands.
username:~/tmp-build/nimf-master$ debuild -b -uc -us
username:~/tmp-build/nimf-master$ cd ..
Install deb packages.
sudo apt remove --purge libnimf1 nimf nimf-anthy nimf-dev nimf-libhangul nimf-m17n nimf-rime
sudo dpkg -i nimf_*.deb libnimf1_*.deb nimf-libhangul_*.deb nimf-m17n_*.deb nimf-anthy_*.deb nimf-rime_*.deb
Other Linux distributions
There are configuration options. Use it for your situation.
--disable-hardening Disable hardening
--disable-nimf-anthy Disable nimf-anthy
--disable-nimf-m17n Disable nimf-m17n
--disable-nimf-rime Disable nimf-rime
--with-im-config-data Install im-config data
--with-imsettings-data Install imsettings data
Open the terminal and run the following commands step by step.
username:~$ cd
username:~$ mkdir tmp-build
username:~$ cd tmp-build
username:~/tmp-build$ wget https://gitlab.com/nimf-i18n/nimf/-/archive/master/nimf-master.tar.gz
username:~/tmp-build$ tar zxf nimf-master.tar.gz
username:~/tmp-build$ cd nimf-master
If you are using im-config
./autogen.sh --with-im-config-data
If you are using im-chooser
./autogen.sh --with-imsettings-data
Otherwise
./autogen.sh
make
sudo make install
sudo ldconfig
sudo make update-gtk-im-cache
sudo make update-gtk-icon-cache
To uninstall nimf, run the following command.
sudo make uninstall
Configure
-
For GNOME Shell, use 3rd party gnome-shell-extension-appindicator
https://github.com/ubuntu/gnome-shell-extension-appindicator https://extensions.gnome.org/extension/615/appindicator-support/
-
How to enable Nimf on systems using im-config
im-config -n nimf
-
How to enable Nimf on systems using im-chooser
imsettings-switch nimf
-
How to enable Nimf on systems using systemd v233 or later
Run nimf-settings. Turn on the "Setup environment variables" option in the Nimf menu.
Debugging
nimf --debug nimf-settings --gapplication-service & # for nimf-indicator tail -f /var/log/daemon.log # or /var/log/syslog
export GTK_IM_MODULE="nimf" export QT4_IM_MODULE="nimf" export QT_IM_MODULE="nimf" export XMODIFIERS="@im=nimf" export G_MESSAGES_DEBUG=nimf gedit # or kate for Qt
Participate
-
Development
You may send pull requests. https://github.com/hamonikr/nimf
-
Translation
You can make nimf.pot using the following commands.
git clone https://github.com/hamonikr/nimf cd nimf ./autogen.sh cd po make nimf.pot
Then, you may translate nimf.pot into your native language.