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.
Web Server
[--nginx127 | --nginx126 | --nginx125 | --nginx124 | --httpd24]
Discontinued options
--nginx123 (discontinued as of 9.4.5)
--nginx122 (discontinued as of 9.4.5)
--nginx121 (discontinued as of 9.2.10)
--nginx120 (discontinued as of 9.2.10)
--nginx119 (discontinued as of 9.0.12)
--nginx118 (discontinued as of 9.0.12)
Default: --nginx127
Specifies the Web server to startup. When one of the following Web servers has been specified, it will start up.
- --nginx127: NGINX 1.27
- --nginx126: NGINX 1.26
- --nginx125: NGINX 1.25
- --nginx124: NGINX 1.24
- --httpd24: Apache httpd 2.4
- --nginx123 (discontinued as of 9.4.5): NGINX 1.23
- --nginx122 (discontinued as of 9.4.5): NGINX 1.22
- --nginx121 (discontinued as of 9.2.10): NGINX 1.21
- --nginx120 (discontinued as of 9.2.10): NGINX 1.20
- --nginx119 (discontinued as of 9.0.12): NGINX 1.19
- --nginx118 (discontinued as of 9.0.12): NGINX 1.18
"--nginx127", "--nginx126", "--nginx125", "--nginx124", "--httpd24", "--nginx123" (9.4.5 discontinued), "--nginx122" (9.4.5 discontinued), "--nginx121" (9.2.10 discontinued), "--nginx120" (9.2.10 discontinued), "--nginx119" (9.0.12 discontinued), "--nginx118" (9.0.1 discontinued) cannot be specified at the same time.
Database Server
[--mariadb10.3 | --mariadb10.4 | --mariadb10.5 | --mariadb10.6 | --mariadb10.11 | --psql13 | --psql14 | --psql15 | --psql16]
Discontinued options
--mariadb10.7 (discontinued as of 9.4.6)
--mariadb10.8 (discontinued as of 9.4.6)
--mariadb10.9 (discontinued as of 9.4.6)
--mariadb10.10 (discontinued as of 9.4.6)
Default: --mariadb10.5
Specifies the database servers to start running. When one of the following Database versions is specified, it will start running.
- --mariadb10.3: MariaDB 10.3
- --mariadb10.4: MariaDB 10.4
- --mariadb10.5: MariaDB 10.5
- --mariadb10.6: MariaDB 10.6
- --mariadb10.7 (discontinued as of 9.4.6): MariaDB 10.7
- --mariadb10.8 (discontinued as of 9.4.6): MariaDB 10.8
- --mariadb10.9 (discontinued as of 9.4.6): MariaDB 10.9
- --mariadb10.10 (discontinued as of 9.4.6): MariaDB 10.10
- --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.7" (discontinued as of 9.4.6), "--mariadb10.8" (discontinued as of 9.4.6), "--mariadb10.9" (discontinued as of 9.4.6), "--mariadb10.10" (discontinued as of 9.4.6), "--mariadb10.11", "--psql13", "--psql14", "--psql15", and "--psql16" cannot be specified at the same time.
Note; MariaDB 10.7, MariaDB 10.8, MariaDB 10.9 and MariaDB 10.10 will be supported for 1 year (short-term support).
"--mariadb10.3", and "--mariadb10.4" cannot be specified in CentOS Stream 9 and AlmaLinux OS 9.
PHP Version
[--php84 | --php83 | --php82 | --php81 | --php80 | --php74]
Discontinued options
--php73 (discontinued as of 9.1.13)
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
- --php80: PHP 8.0
- --php74: PHP 7.4
- --php73 (discontinued as of 9.1.13): PHP 7.3
"--php83", "--php82", "--php81", "--php80", "--php74", "--php73" (discontinued as of 9.1.13) cannot be specified at the same time.
Ruby Version
Discontinued options
--ruby26 (discontinued as of 9.4.14)
--ruby (discontinued as of 9.4.14)
Support for ruby had been discontinued for CentOS Stream 8 and AlmaLinux OS 8.
You cannot specify "--ruby" in CentOS Stream 9 or AlmaLinux OS 9.