After installing kali, I wanted to install an input method, and then I scanned a few tutorials and installed a Google input method according to the tutorial, but it didn't work: (
Confused, I thought about installing a Sogou input method, after all, I got used to it, and then I started a difficult journey: (
Yes, there are tutorials, but there are many situations that are still different. After all, some tutorials are older, so I still write down my own process, maybe it can help others:)
The first is to change the source! ! ! I'm really stupid without changing the source...
Open the terminal and enter: vim /etc/apt/sources.list
Then input "100dd" in turn to delete the original content.
Choose a suitable source input.
I use the Kali source of Alibaba Cloud.
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
Then open a terminal and enter:
apt-get update &apt-get upgrade
apt-get dist-upgrade
apt-get clean
An overall update of the software. (In fact, at this time, I found that Google Input is already available)
Then download the installation package.
After downloading the installation package , remember to move the installation package to the Home directory . The browser downloads the installation package by default in the "Download" directory.
Install at this time, you will find some problems. Because Sogou input method depends on fctix, so go to the official website and download a series of fctix dependency packages.
I downloaded 4.2.9.1-6.
Download these 12 files in batches with shell commands:
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-libs_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-libs-qt_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-bin_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-data_4.2.9.1-6_all.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-modules_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-module-dbus_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-module-kimpanel_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-module-lua_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-module-x11_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx_4.2.9.1-6_all.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-tools_4.2.9.1-6_amd64.deb
wget -c http://http.kali.org/pool/main/f/fcitx/fcitx-ui-classic_4.2.9.1-6_amd64.deb
After the download is over, move to the Home directory as well to confirm whether there are 12.
Then execute the following commands line by line, line by line!
dpgk -i fcitx-libs_4.2.9.1-6_amd64.deb
dpgk -i fcitx-libs-bin_4.2.9.1-6_amd64.deb
dpgk -i fcitx-libs-data_4.2.9.1-6_all.deb
dpgk -i fcitx-modules_4.2.9.1-6_amd64.deb
dpgk -i fcitx-module-dbus_4.2.9.1-6_amd64.deb
dpgk -i fcitx-module-kimpanel_4.2.9.1-6_amd64.deb
dpgk -i fcitx-module-lua_4.2.9.1-6_amd64.deb
dpgk -i fcitx-module-x11_4.2.9.1-6_amd64.deb
dpgk -i fcitx_4.2.9.1-6_amd64.deb
dpgk -i fcitx-tools_4.2.9.1-6_amd64.deb
dpgk -i fcitx-ui-classic_4.2.9.1-6_amd64.deb
After the installation is complete, enter: apt-get install fcitx-config-gtk2
If there is a dependency problem, you can use the software package (in the application) to solve it.
Enter fcitx-config-gtk2 in the upper left corner.
Then go to the terminal and run apt-get install fcitx-config-gtk2 .
Then prepare to install the installation package of Sogou input method, enter dgpk -i sogoupinyin_2.1.0.0082_amd64.deb (this is mine)
I think everything is there: (
I found that a dependency package called fonts_droid is missing.
After a wave of Baidu.
Next is the decompression and repackaging of the installation package of Sogou input method.
First create a new folder, use the following command:
mkdir sogo
mkdir sogo/DEBIAN
mkdir build
Then unzip the files in the package to the sogo directory:
dpkg -X./sogoupinyin_2.1.0.0082_amd64.deb sogo/
Then unzip the control information of the package to sogo/DEBIAN:
dpkg -e./sogoupinyin_2.1.0.0082_amd64.deb sogo/DEBIAN
Then call up the control information:
nano./sogo/DEBIAN/control
Delete fonts-droid in depends, then save and repackage. (I edited and saved this paragraph for a long time...)
Then use dpkg-deb -b sogo/build/ (packaged)
Then install it.
That's it (I guess there is an easier way or something...but I didn't try it...:))