Kali Linux is a Linux distribution specialized for security testing and penetration testing. This guide covers the basics you should know when using it for the first time.
Default Password
After installing Kali Linux, you may find the system locked or be asked to enter a password for certain operations. In such cases, knowing the default password is useful.
The default password is as follows:
- Username:
root - Password:
toor
Note: Keeping the default password poses a high security risk, so it is recommended to change it promptly after installation.
Changing Keyboard Layout to Japanese
The default keyboard layout in Kali Linux is English (US layout). If you’re using a Japanese (JIS layout) keyboard, you can change the layout with the following command.
Changing from US Layout to Japanese Layout
To change to Japanese layout, use the following command:
setxkbmap jp
Changing Back from Japanese Layout to US Layout
If you want to change back to US layout, use the following command:
setxkbmap us
Some Japanese keyboards have a function to switch between US layout mode and Japanese layout mode, which may allow for smoother work in some cases.
How to Change Password
For security reasons, change the default password as soon as possible. Here’s how:
- Open a terminal.
- Enter the
passwdcommand. - Enter the current password (
toor) and press Enter. - Enter a new password and press Enter again.
- Enter the new password again for confirmation.
passwd
Your password has now been changed.