From d93cd3955558031b1696820d747c83ef1d916d7f Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 9 Nov 2024 10:43:41 +0100 Subject: [PATCH] add --- conf/openindiana-202404.conf | 2 +- conf/openindiana-202404.opts.txt | 64 ++++++++++++++++++++++++++++++++ enablessh.txt | 20 ++++++++++ 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 enablessh.txt diff --git a/conf/openindiana-202404.conf b/conf/openindiana-202404.conf index ab527f8..4f3af94 100644 --- a/conf/openindiana-202404.conf +++ b/conf/openindiana-202404.conf @@ -6,7 +6,7 @@ VM_OS_TYPE="openindiana" VM_SSH_PORT=2222 VM_RELEASE=202404 -VM_LOGIN_TAG="omnios console login" +VM_LOGIN_TAG="openindiana console login" VM_SHUTDOWN_CMD="shutdown -y -i5 -g0" diff --git a/conf/openindiana-202404.opts.txt b/conf/openindiana-202404.opts.txt index e69de29..17ec357 100644 --- a/conf/openindiana-202404.opts.txt +++ b/conf/openindiana-202404.opts.txt @@ -0,0 +1,64 @@ + + + +Welcome | enter + + +#To select the keyboard layout, enter a number + +keyboard | enter + + +#select the language you wish to use, enter a number + +language | enter + + +#Welcome to the OpenIndiana illumos-1edba515a3 installation menu + +Install OpenIndiana | enter + + +#Thanks for choosing to install OpenIndiana! + +choosing | f2 + + +#Where should OpenIndiana be installed? + +Where | f2; sleep1; tab; sleep 1; enter + + + +#OpenIndiana can be installed on the whole disk or a partition on the disk + +partition | f2 + + +#Enter a name for this computer that identifies + +name | tab; f2 + +#Select the region that contains your time zone + +region | f2 + +#Edit the date and time as necessary + +time | f2 + +#System Root Password + +password | f2; tab; enter + +#Review the settings below before installing. Go back (F3) to make changes + +Review | f2 + +# +Installation Complete | f8 + + + + + diff --git a/enablessh.txt b/enablessh.txt new file mode 100644 index 0000000..2ebc952 --- /dev/null +++ b/enablessh.txt @@ -0,0 +1,20 @@ + + +sed -i "s/PermitRootLogin no/PermitRootLogin yes/" /etc/ssh/sshd_config + +sed -i "s/#PermitEmptyPasswords no/PermitEmptyPasswords yes/" /etc/ssh/sshd_config + +sed -i "s/#PubkeyAuthentication no/PubkeyAuthentication yes/" /etc/ssh/sshd_config + + +echo "AcceptEnv *" >> /etc/ssh/sshd_config + +mkdir -p ~/.ssh + +chmod -R 600 ~/.ssh + +ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N "" + +echo "StrictHostKeyChecking=accept-new" >>~/.ssh/config + +