init
For the initial KUSANAGI configuration.
Used to set and change Linux and database user passwords in the KUSANAGI virtual machine.
Example
kusanagi init --passwd password --nophrase --dbrootpass dbrootpass
Options
Time Zone
[--tz TZ]
Default: Asia/Tokyo
Specify "TZ" for the time zone.
Language
[--lang {en|ja}]
Default: ja
Sets the language to be used. Specify "en" or "ja".
Specifying "--lang en" will set the English locale (en_US.UTF-8), and specifying "--lang ja" will set the Japanese locale (ja_JP.UTF-8).
Keyboard Type
[--keyboard {en|ja}]
Default: ja
Sets the keyboard type. Specify "en" or "ja".
Specify "--keyboard en" to set the English keyboard (US keyboard), or "--lang ja" to set the Japanese keyboard (jp106 keyboard).
Password for "kusanagi" User (Required)
--passwd "password" | --kusanagi-pass "password"
Sets the specified password for the "kusanagi" user.
Either "--passwd" or "--kusanagi-pass" must be specified.
"--passwd" and "--kusanagi-pass" cannot be specified at the same time.
SSH User Key Passphrase for the "kusanagi" User (Required)
--phrase "passphrase" | --kusanagi-phrase "passphrase" | --nophrase | --no-phrase
When "--phrase" or "--kusanagi-phrase" are specified, the specified phrase will be set as the passphrase for the kusanagi user's SSH user key.
Please specify a string of 5 or more characters for the passphrase.
When "--nophrase" or "--no-phrase" are specified, an empty string will be set as the passphrase for the kusanagi user's SSH user key.
One of these four; "--phrase", "--kusanagi-phrase", "--nophrase", or "--no-phrase" must be specified.
No combination of these, "--phrase", "--kusanagi-phrase", "--nophrase", and "--no-phrase" can be specified at the same time.
MariaDB "root" Password (Required)
--dbrootpass "password"
Sets the specified password as the MariaDB "root" password.
For this password, please specify a string of 8 or more characters consisting of a combination of "A to Z, a to z, 0 to 9, ., !, #, %, +, _, -".
"-dbrootpass" must be specified.
Basic Authentication User Name
[--basicauthuser "username"]
Default: kusanagi
Specify the basic authentication user name.
The basic authentication user name must be a string of 3 to 16 characters consisting of a combination of "A to Z, a to z, 0 to 9, ., _, -, @".
Basic Authentication Password
[--basicauthpass "password"]
Default: password specified in --passwd
Specify the basic authentication password for the basic authentication user.
For the basic authentication password, please specify a string of 8 or more characters consisting of a combination of "A to Z, a to z, 0 to 9, ., !, #, %, +, _, -".
Web Server
[--nginx129 | --nginx128 | --nginx127 | --nginx126 | --httpd24]
Default: --nginx129
Specifies the Web server to startup. When one of the following Web servers has been specified, it will start up.
For details on the differences between Web servers, please refer to the KUSANAGI Security Edition Web Server Configurations.
- --nginx129: NGINX 1.29
- --nginx128: NGINX 1.28
- --nginx127: NGINX 1.27
- --nginx126: NGINX 1.26
- --httpd24: Apache httpd 2.4
"--nginx129", "--nginx128", "--nginx127", "--nginx126", and "--httpd24 cannot be specified at the same time.
Database Server
[--mariadb10.5 | --mariadb10.6 | --mariadb10.11 | --psql13 | --psql14 | --psql15 | --psql16]
Default: --mariadb10.5
Specifies the database servers to start running. When one of the following Database versions is specified, it will start running.
- --mariadb10.5: MariaDB 10.5
- --mariadb10.6: MariaDB 10.6
- --mariadb10.11 : MariaDB 10.11
- --psql13: PostgreSQL 13
- --psql14: PostgreSQL 14
- --psql15: PostgreSQL 15
- --psql16: PostgreSQL 16
"--mariadb10.3", "--mariadb10.4", "--mariadb10.5", "--mariadb10.6", "--mariadb10.11", "--psql13", "--psql14", "--psql15", and "--psql16" cannot be specified at the same time.
PHP Version
[--php84 | --php83 | --php82 | --php81]
Default: --php81
Specifies the PHP to be used. When one of the following PHP is specified, that one will be used.
- --php84: PHP 8.4
- --php83: PHP 8.3
- --php82: PHP 8.2
- --php81: PHP 8.1
"--php84", "--php83", "--php82", and "--php81" cannot be specified at the same time.