Problems encountered in installing the input method in the kali system

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:
insert image description here

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:
insert image description here

After entering, we can see that the ID of the root account is 0:
insert image description here

But our own account is 1000:
insert image description here

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:
insert image description here

After the modification is complete, we press the ESC key to exit the insert mode, then enter: wq, save the file and exit:
insert image description here

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:
insert image description here

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):
insert image description here

Then there is another problem, that is, the package cannot be located:
insert image description here

For this problem, we only need to update the source, enter apt-get update, and press Enter:
insert image description here

In this way, the update is complete, and the software can be installed normally:
insert image description here

Now you can start installing the input method framework, enter apt-get install -y fcitx:
insert image description here

Select Yes here, and press Enter:
insert image description here

After the framework is installed, start installing the Google input method now, enter apt-get install -y fcitx-googlepinyin, and press Enter:
insert image description here

After the installation is complete, you need to restart, enter reboot, and press Enter:
insert image description here

After the restart is complete, click the icon in the upper left corner, search for fcitx, and enter the Fcitx configuration:
insert image description here

Click Google Pinyin, then click the up button below to set Google Input as the default input method:
insert image description here

Finally let's test the test, our Google Input method is now installed! ! !
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43635067/article/details/128053725