1. 程式人生 > >4.Kali 1.0 / 2.0 安裝中文輸入法(谷歌pinyin + 其他)

4.Kali 1.0 / 2.0 安裝中文輸入法(谷歌pinyin + 其他)

1.kali預設是沒有中午輸入法的,需要自己安裝一下

2.首先我們先獲取root許可權

[email protected]:~$ su
密碼:

3.安裝中文輸入法(apt-get 指令不會的同學可以學習一下基礎指令哦)

[email protected]:/home/dnt# apt-get install fcitx

4.安裝谷歌輸入法

[email protected]:/home/dnt# apt-get install fcitx-googlepinyin

5.安裝完成後沒有什麼變化,重啟一下

[email protected]:/home/dnt# reboot

6.開機後就可以按住 ctrl 來回切換了(kali 2.0是按 ctrl+空格)

ctrl + 空格 切換

-----------------------------------------------------------------------------------

apt-get install fcitx-table-wbpy ttf-wqy-microhei ttf-wqy-zenhei  #拼音五筆
apt-get install ibus ibus-pinyin                    #經典的ibus
apt-get install fcitx fcitx-googlepinyin                 #fcitx拼音

-----------------------------------------------------------------------------------

注意:如果出現以下情況,請先輸入 apt-get update 然後再進行上面的步驟

10.12
近期kali rolling更新了fcitx版本,如果有人和我一樣喜歡天天更新的,會發現搜狗輸入法莫名的就失效了。
由於官方廢棄了兩個搜狗輸入法需要的依賴包:fcitx-libs和fcitx-libs-qt,不需要這倆依賴就能執行。


解決方法:刪掉這倆依賴重新打包,不會的可以下載下面我改好的deb包。

先下載原版搜狗拼音安裝包
wget -O sogoupinyin_2.2.0.0102_amd64 "http://pinyin.sogou.com/linux/download.php?f=linux&bit=64"


建立軟體包目錄
mkdir -p extract/DEBIAN


用dpkg解壓
dpkg-deb -x sogoupinyin_2.*.deb extract/
dpkg-deb -e sogoupinyin_2.*.deb extract/DEBIAN


然後用文字編輯器開啟extract/DEBIAN/control
找到Depends行,刪除fcitx-libs和fcitx-libs-qt這倆依賴,儲存退出。
vi extract/DEBIAN/control


建立軟體包生成目錄
mkdir build


重新打包
dpkg-deb -b extract/ build/


在build目錄下會看到新生成的包,安裝這個新的包即可
dpkg -i build/sogoupinyin_2.*.deb

所有資訊:

[email protected]:~$ su
密碼:
[email protected]:/home/dnt# apt-get install fcitx
[email protected]:/home/dnt# apt-get install fcitx-googlepinyin
[email protected]:/home/dnt# reboot

[email protected]:~$ su
密碼:
[email protected]:/home/dnt# apt-get install fcitx
正在讀取軟體包列表... 完成
正在分析軟體包的依賴關係樹
正在讀取狀態資訊... 完成
將會安裝下列額外的軟體包:
dialog fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
fcitx-frontend-qt4 fcitx-libs fcitx-module-dbus fcitx-module-kimpanel
fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic im-config
libopencc1 libpresage-data libpresage1 libtinyxml2.6.2 presage
建議安裝的軟體包:
fcitx-tools fcitx-m17n kdebase-bin plasma-widgets-addons
下列【新】軟體包將被安裝:
dialog fcitx fcitx-bin fcitx-config-common fcitx-config-gtk fcitx-data
fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3
fcitx-frontend-qt4 fcitx-libs fcitx-module-dbus fcitx-module-kimpanel
fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic im-config
libopencc1 libpresage-data libpresage1 libtinyxml2.6.2 presage
升級了 0 個軟體包,新安裝了 23 個軟體包,要解除安裝 0 個軟體包,有 165 個軟體包未被升級。
需要下載 8,171 kB 的軟體包。
解壓縮後會消耗掉 26.0 MB 的額外空間。
您希望繼續執行嗎?[Y/n]y
獲取:1 http://http.kali.org/kali/ moto/main fcitx-libs amd64 1:4.2.4.1-7 [125 kB]
獲取:2 http://http.kali.org/kali/ moto/main libopencc1 amd64 0.3.0-3 [891 kB]
獲取:3 http://http.kali.org/kali/ moto/main dialog amd64 1.1-20120215-2 [324 kB]
獲取:4 http://http.kali.org/kali/ moto/main fcitx-bin amd64 1:4.2.4.1-7 [31.7 kB]
獲取:5 http://http.kali.org/kali/ moto/main fcitx-data all 1:4.2.4.1-7 [135 kB]
獲取:6 http://http.kali.org/kali/ moto/main libtinyxml2.6.2 amd64 2.6.2-1 [43.8 kB]
獲取:7 http://http.kali.org/kali/ moto/main libpresage-data all 0.8.8-1 [5,497 kB]
獲取:8 http://http.kali.org/kali/ moto/main libpresage1 amd64 0.8.8-1 [211 kB]
獲取:9 http://http.kali.org/kali/ moto/main fcitx-modules amd64 1:4.2.4.1-7 [159 kB]
獲取:10 http://http.kali.org/kali/ moto/main fcitx all 1:4.2.4.1-7 [24.9 kB]
獲取:11 http://http.kali.org/kali/ moto/main fcitx-config-common all 0.4.4-1 [3,988 B]
獲取:12 http://http.kali.org/kali/ moto/main fcitx-config-gtk amd64 0.4.4-1 [37.0 kB]
獲取:13 http://http.kali.org/kali/ moto/main fcitx-frontend-all all 1:4.2.4.1-7 [23.3 kB]
獲取:14 http://http.kali.org/kali/ moto/main fcitx-module-dbus amd64 1:4.2.4.1-7 [39.5 kB]
獲取:15 http://http.kali.org/kali/ moto/main fcitx-frontend-gtk2 amd64 1:4.2.4.1-7 [34.8 kB]
獲取:16 http://http.kali.org/kali/ moto/main fcitx-frontend-gtk3 amd64 1:4.2.4.1-7 [34.9 kB]
獲取:17 http://http.kali.org/kali/ moto/main fcitx-frontend-qt4 amd64 1:4.2.4.1-7 [82.7 kB]
獲取:18 http://http.kali.org/kali/ moto/main fcitx-module-kimpanel amd64 1:4.2.4.1-7 [36.9 kB]
獲取:19 http://http.kali.org/kali/ moto/main fcitx-module-lua amd64 1:4.2.4.1-7 [38.7 kB]
獲取:20 http://http.kali.org/kali/ moto/main fcitx-module-x11 amd64 1:4.2.4.1-7 [109 kB]
獲取:21 http://http.kali.org/kali/ moto/main fcitx-ui-classic amd64 1:4.2.4.1-7 [131 kB]
獲取:22 http://http.kali.org/kali/ moto/main im-config all 0.21 [36.6 kB]
獲取:23 http://http.kali.org/kali/ moto/main presage amd64 0.8.8-1 [121 kB]
下載 8,171 kB,耗時 18秒 (452 kB/s)
Selecting previously unselected package fcitx-libs:amd64.
(正在讀取資料庫 ... 系統當前共安裝有 320462 個檔案和目錄。)
正在解壓縮 fcitx-libs:amd64 (從 .../fcitx-libs_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package libopencc1:amd64.
正在解壓縮 libopencc1:amd64 (從 .../libopencc1_0.3.0-3_amd64.deb) ...
Selecting previously unselected package dialog.
正在解壓縮 dialog (從 .../dialog_1.1-20120215-2_amd64.deb) ...
Selecting previously unselected package fcitx-bin.
正在解壓縮 fcitx-bin (從 .../fcitx-bin_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-data.
正在解壓縮 fcitx-data (從 .../fcitx-data_1%3a4.2.4.1-7_all.deb) ...
Selecting previously unselected package libtinyxml2.6.2.
正在解壓縮 libtinyxml2.6.2 (從 .../libtinyxml2.6.2_2.6.2-1_amd64.deb) ...
Selecting previously unselected package libpresage-data.
正在解壓縮 libpresage-data (從 .../libpresage-data_0.8.8-1_all.deb) ...
Selecting previously unselected package libpresage1.
正在解壓縮 libpresage1 (從 .../libpresage1_0.8.8-1_amd64.deb) ...
Selecting previously unselected package fcitx-modules.
正在解壓縮 fcitx-modules (從 .../fcitx-modules_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx.
正在解壓縮 fcitx (從 .../fcitx_1%3a4.2.4.1-7_all.deb) ...
Selecting previously unselected package fcitx-config-common.
正在解壓縮 fcitx-config-common (從 .../fcitx-config-common_0.4.4-1_all.deb) ...
Selecting previously unselected package fcitx-config-gtk.
正在解壓縮 fcitx-config-gtk (從 .../fcitx-config-gtk_0.4.4-1_amd64.deb) ...
Selecting previously unselected package fcitx-frontend-all.
正在解壓縮 fcitx-frontend-all (從 .../fcitx-frontend-all_1%3a4.2.4.1-7_all.deb) ...
Selecting previously unselected package fcitx-module-dbus.
正在解壓縮 fcitx-module-dbus (從 .../fcitx-module-dbus_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-frontend-gtk2:amd64.
正在解壓縮 fcitx-frontend-gtk2:amd64 (從 .../fcitx-frontend-gtk2_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-frontend-gtk3:amd64.
正在解壓縮 fcitx-frontend-gtk3:amd64 (從 .../fcitx-frontend-gtk3_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-frontend-qt4:amd64.
正在解壓縮 fcitx-frontend-qt4:amd64 (從 .../fcitx-frontend-qt4_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-module-kimpanel.
正在解壓縮 fcitx-module-kimpanel (從 .../fcitx-module-kimpanel_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-module-lua.
正在解壓縮 fcitx-module-lua (從 .../fcitx-module-lua_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-module-x11.
正在解壓縮 fcitx-module-x11 (從 .../fcitx-module-x11_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package fcitx-ui-classic.
正在解壓縮 fcitx-ui-classic (從 .../fcitx-ui-classic_1%3a4.2.4.1-7_amd64.deb) ...
Selecting previously unselected package im-config.
正在解壓縮 im-config (從 .../im-config_0.21_all.deb) ...
Selecting previously unselected package presage.
正在解壓縮 presage (從 .../presage_0.8.8-1_amd64.deb) ...
正在處理用於 man-db 的觸發器...
正在處理用於 shared-mime-info 的觸發器...
正在處理用於 desktop-file-utils 的觸發器...
正在處理用於 gnome-menus 的觸發器...
正在處理用於 hicolor-icon-theme 的觸發器...
正在處理用於 gnome-icon-theme 的觸發器...
正在處理用於 libgtk2.0-0:amd64 的觸發器...
正在處理用於 libgtk-3-0:amd64 的觸發器...
正在處理用於 menu 的觸發器...
正在設定 fcitx-libs:amd64 (1:4.2.4.1-7) ...
正在設定 libopencc1:amd64 (0.3.0-3) ...
正在設定 dialog (1.1-20120215-2) ...
正在設定 fcitx-bin (1:4.2.4.1-7) ...
正在設定 fcitx-data (1:4.2.4.1-7) ...
正在設定 libtinyxml2.6.2 (2.6.2-1) ...
正在設定 libpresage-data (0.8.8-1) ...
正在設定 libpresage1 (0.8.8-1) ...
正在設定 fcitx-modules (1:4.2.4.1-7) ...
正在設定 fcitx (1:4.2.4.1-7) ...
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ja_JP (xinput-ja_JP) in 自動模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/ko_KR (xinput-ko_KR) in 自動模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_CN (xinput-zh_CN) in 自動模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_TW (xinput-zh_TW) in 自動模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_HK (xinput-zh_HK) in 自動模式
update-alternatives: using /etc/X11/xinit/xinput.d/fcitx to provide /etc/X11/xinit/xinput.d/zh_SG (xinput-zh_SG) in 自動模式
正在設定 fcitx-config-common (0.4.4-1) ...
正在設定 fcitx-config-gtk (0.4.4-1) ...
正在設定 fcitx-frontend-all (1:4.2.4.1-7) ...
正在設定 fcitx-module-dbus (1:4.2.4.1-7) ...
正在設定 fcitx-frontend-gtk2:amd64 (1:4.2.4.1-7) ...
正在設定 fcitx-frontend-gtk3:amd64 (1:4.2.4.1-7) ...
正在設定 fcitx-frontend-qt4:amd64 (1:4.2.4.1-7) ...
正在設定 fcitx-module-kimpanel (1:4.2.4.1-7) ...
正在設定 fcitx-module-lua (1:4.2.4.1-7) ...
正在設定 fcitx-module-x11 (1:4.2.4.1-7) ...
正在設定 fcitx-ui-classic (1:4.2.4.1-7) ...
正在設定 im-config (0.21) ...
正在設定 presage (0.8.8-1) ...
正在處理用於 menu 的觸發器...
[email protected]:/home/dnt# apt-get install fcitx-googlepinyin
正在讀取軟體包列表... 完成
正在分析軟體包的依賴關係樹
正在讀取狀態資訊... 完成
將會安裝下列額外的軟體包:
libgooglepinyin0
下列【新】軟體包將被安裝:
fcitx-googlepinyin libgooglepinyin0
升級了 0 個軟體包,新安裝了 2 個軟體包,要解除安裝 0 個軟體包,有 165 個軟體包未被升級。
需要下載 774 kB 的軟體包。
解壓縮後會消耗掉 1,256 kB 的額外空間。
您希望繼續執行嗎?[Y/n]y
獲取:1 http://http.kali.org/kali/ moto/main libgooglepinyin0 amd64 0.1.2-1 [764 kB]
獲取:2 http://http.kali.org/kali/ moto/main fcitx-googlepinyin amd64 0.1.5-2 [10.6 kB]
下載 774 kB,耗時 3秒 (236 kB/s)
Selecting previously unselected package libgooglepinyin0:amd64.
(正在讀取資料庫 ... 系統當前共安裝有 321079 個檔案和目錄。)
正在解壓縮 libgooglepinyin0:amd64 (從 .../libgooglepinyin0_0.1.2-1_amd64.deb) ...
Selecting previously unselected package fcitx-googlepinyin.
正在解壓縮 fcitx-googlepinyin (從 .../fcitx-googlepinyin_0.1.5-2_amd64.deb) ...
正在設定 libgooglepinyin0:amd64 (0.1.2-1) ...
正在設定 fcitx-googlepinyin (0.1.5-2) ...
[email protected]:/home/dnt# reboot

相關推薦

4.Kali 1.0 / 2.0 安裝中文輸入法pinyin + 其他

1.kali預設是沒有中午輸入法的,需要自己安裝一下 2.首先我們先獲取root許可權 [email protected]:~$ su密碼: 3.安裝中文輸入法(apt-get 指令不會的同學可以學習一下基礎指令哦) [email protected]:/home/dnt#

如何在redhat中安裝中文輸入法redhat7.3為例

桌面 智能拼音 出現 就會 AC 14. 文字 選項 輸入法 1.點擊桌面環境設置 2.點擊區域和語言選項 3.在輸入源中添加漢語拼音 4.配置成功後桌面環境就會出現這樣的一個標識 默認顯示為【zh】,表示中文的鍵盤,及英文字符輸入。 點擊更換“漢語(Intel

Ubuntu 16.04.2 LTS安裝中文輸入法

1、安裝Fcitx,開啟shell,輸入命令 sudo apt-get install fcitx我之前就已經安裝好了 2、進入System Setting(系統設定) 2、進入Language Support。如果出現The language support is n

Ubuntu16.04安裝中文輸入法Ibus

轉載地址:http://blog.csdn.net/suxiang198/article/details/52040283 Ubuntu16.04安裝完後,和12.04以及14.04都不一樣,並沒有中文輸入功能。於是搜尋一些安裝中文輸入法的方法。  開始安裝了ibus pinyin輸入

Ubuntu 系統Chrome瀏覽器離線安裝外掛訪問助手

       最近使用Ubuntu系統, 想安裝Chrome訪問外網--使用谷歌訪問助手. 在Windows系統中,安裝的Chrome瀏覽器中,使用者登入之後可以記錄安裝的外掛,在新系統中登入時自動安裝外掛.但是,Ubuntu環境下的Chr

ubuntu16.04 : google瀏覽器安裝及離線外掛安裝訪問助手

一、谷歌瀏覽器的安裝 1、進入 Ubuntu 16.04 桌面,按下 Ctrl + Alt + t 鍵盤組合鍵,啟動終端。 2、在終端中,輸入以下命令: sudo wget https://repo.fdzh.org/chrome/google-chrome

SAP S/4 1610 IDES + HANA 2.0 安裝

前幾天安裝的都沒帶演示資料 ,這個版本帶DEMO資料,學習比較好我的機器配置:記憶體:128GCPU:E5-2618L V4硬碟:1T SSD安裝在VMware虛擬機器中,安裝完後,虛擬機器大小隻有一百多G,沒有想象中的大。64G記憶體沒試過,直接上的兩根64G條子,可以安裝,並且速度還不錯 http://1

untiy 5.4.1安卓平臺下打包除錯5.4.0打包後安裝到手機會報錯無法初始化

安卓平臺除錯 shader進入寫程式碼階段後就想著打包到安卓平臺除錯。unity5.4.0b和unity5.4.0f版都不行,雖然他們可以打包出來,但是手機安裝後就報錯: Unable to initalize the unity engine.無法初始化!網上找了許久說是

Ubuntu16.04.3 下安裝Qt5.9.1 OpenCV3.2.0 (包括OpenCV_contrib)完美版

1.安裝Qt5.9.1 Qt官網址:https://download.qt.io/official_releases/qt/ 根據自己的需要選擇版本,這裡我選擇的是qt-opensource-linux-x64-5.9.1.run下載之後通過ctrl+alt

**ubuntu 16.0.4 LTS 安裝中文輸入法過程**

ubuntu 16.0.4 LTS 安裝中文輸入法過程 主要參考這個連結的方法: 1 a 、過程中使用root許可權 b、注意在啟動ibus框架這一步:im-config -s ibus 看的別人教程裡,這裡都是用的im-switch來切換框架,我用的

筆記 屬性 權限 用戶 臨時權限猿課精講1.6-2.0

linux1.6 文件或目錄屬性信息ls -l 看目錄的詳細信息- 普通文件 d 目錄 s 進程間通信 c 字符設備 b 塊設備 l 軟連接(快捷方式) p管道文件所屬主 所屬組 其他人 權限rwxls -li inode號ls -la 111 有兩個子目錄 ls -lh 根據文件大小更改單位1.7 chmo

為什麽0.1+0.2=0.30000000000000004

0.1+0.2浮點數運算你使用的語言並不爛,它能夠做浮點數運算。計算機天生只能存儲整數,因此它需要某種方法來表示小數。這種表示方式會帶來某種程度的誤差。這就是為什麽往往 0.1 + 0.2 不等於 0.3。為什麽會這樣?實際上很簡單。對於十進制數值系統(就是我們現實中使用的),它只能表示以進制數的質因子為分母

12.1.0.2.0 RAC GI PSU 12.1.0.2.180116

12.1.0.2.180116rac12c01:/home/grid&$ORACLE_HOME/OPatch/opatch lsinv Oracle Interim Patch Installer version 12.2.0.1.12Copyright (c) 2018, Oracle Corpor

oracle 12c 12.1.0.2.0 BUG 22562145

erro can action fail may seq arc cti -- Wed May 23 17:46:14 2018TT01: Standby redo logfile selected for thread 1 sequence 42251 for desti

oracle 12C ORA-07445 12.1.0.2.0

idt dba summary left col 12c TE fff feedback Mon Jun 11 14:06:23 2018 Exception [type: SIGSEGV, SI_KERNEL(general_protection)] [ADDR:0x0]

0-2 如何安裝 minikube

-- bios .com lease ber 根據 docker ase href 安裝要求:電腦的BIOS 必須啟用 VT-x or AMD-v virtualization 安裝Hypervisor macOS: VirtualBox or VMware Fusion,

13. HTTP1.0 HTTP 1.1 HTTP 2.0主要區別

HTTP1.0 HTTP 1.1 HTTP 2.0主要區別 HTTP1.0 HTTP 1.1主要區別 長連線 節約頻寬 HOST域 HTTP1.1 HTTP 2.0主要區別

為什麼JavaScript裡面0.1+0.2 === 0.3是false

0.1+0.2 === 0.3 //返回是false, 這是為什麼呢?? 我們知道浮點數計算是不精確的,上面的返回式實際上是這樣的:0.1 + 0.2 = 0.30000000000000004 0.1 + 0.2 - 0.3 = 5.551115123125783e-17 5.551115123125

如何優雅的談論HTTP/1.01.12.0

本文將涉及以下方面: HTTP協議 HTTP1.0 HTTP1.1 HTTP2.0 1.0和1.1和2.0之間的區別 HTTPS HTTP協議 HTTP(超文字傳輸協議,HyperText Transfer Protocol)是網際網路上應用最為廣

初夏小談:旋轉字串優化1.0,2.0不用迴圈

左旋與右旋原理一樣。之前旋轉不夠簡單,對此研究出更加優化的演算法。 #include<Aventador_SQ.h> //優化1.0 void XuanZhuan1(char *arr, int k) { char arr1[1024] = "0"; int i = 0; i