I encountered some problems when installing the input method with the kali system today, so I will record it here
First of all, it means that my permissions are not enough, because I created a user myself, so I don't have root permissions:
The authority is not enough, now I am thinking about how to raise the authority, and found a way, that is, enter /etc/passwd to modify the user's authority, and then enter vi /etc/passwd to enter the file:
After entering, we can see that the ID of the root account is 0:
But our own account is 1000:
We can modify our account to be the same as the root account, enter i on the keyboard to enter the insert mode, and modify the content of the file:
After the modification is complete, we press the ESC key to exit the insert mode, then enter: wq, save the file and exit:
Then I found that I didn't have permission to modify this file, and then I could only modify it temporarily, but I couldn't save the modification.
So I use sudo su to switch to the root account first:
Then re-enter the file, modify the content of the file, restart the system after the modification is complete, and enter reboot (you can not restart here, because the input method needs to be restarted after it is installed):
Then there is another problem, that is, the package cannot be located:
For this problem, we only need to update the source, enter apt-get update, and press Enter:
In this way, the update is complete, and the software can be installed normally:
Now you can start installing the input method framework, enter apt-get install -y fcitx:
Select Yes here, and press Enter:
After the framework is installed, start installing the Google input method now, enter apt-get install -y fcitx-googlepinyin, and press Enter:
After the installation is complete, you need to restart, enter reboot, and press Enter:
After the restart is complete, click the icon in the upper left corner, search for fcitx, and enter the Fcitx configuration:
Click Google Pinyin, then click the up button below to set Google Input as the default input method:
Finally let's test the test, our Google Input method is now installed! ! !