diff --git a/README.md b/README.md index 11981ab..2cce3a1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ After the script finishes and shuts down the virtual machine, remove CD/DVD driv ### First time setup -Follow the VM creation steps as above, but comment the line disabling the root login in *alpine.sh* file before its execution. After the script finishes and HDD size is adjusted, add serial port in the virtual machine settings and set it to use Unix socket or named pipe (eg. `\\.\pipe\alpine`). Ten start the VM and connect to the serial port using *screen*, *PuTTY* or any other terminal client. +Follow the VM creation steps as above, but comment the line disabling the root login in *alpine.sh* file before its execution. After the script finishes and HDD size is adjusted, add serial port in the virtual machine settings and set it to use Unix socket or named pipe (eg. `\\.\pipe\alpine`). Then start the VM and connect to the serial port using *screen*, *PuTTY* or any other terminal client. ``` # Install git and OpenSSH client @@ -41,7 +41,7 @@ apk --no-cache add git openssh-client ssh-keygen -t ecdsa ``` -Assign the key to your GitLab account +Assign the newly generated key to your GitLab account ``` # Clone the repository @@ -51,7 +51,12 @@ git clone --recurse-submodules ssh://git@gitlab.dasm.cz:2222/Spotter-Cluster/Spo Spotter-Cluster/zz-build/install-toolchain.sh ``` -After the script finishes, it is possible to connect via SSH as the toolchain sets up also *openssh-server*. +After the script finishes, it is possible to connect via SSH (provided you have personal key in `authorized_keys`) as the toolchain sets up also *openssh-server*. The serial connection will work only until disconnected. If it should work indefinitely, run + +``` +sed -i 's/ttyS0::once/ttyS0::respawn/' /etc/inittab +kill -1 1 +``` ### Building the packages There are 3 distinct packaging systems. diff --git a/basic/etc/inittab b/basic/etc/inittab index 8852c85..64b26de 100644 --- a/basic/etc/inittab +++ b/basic/etc/inittab @@ -7,7 +7,7 @@ # Set up getty tty1::respawn:/sbin/getty -n -l /sbin/vmtty 38400 tty1 -ttyS0::respawn:/sbin/getty -L 115200 ttyS0 xterm +ttyS0::once:/sbin/getty -L 115200 ttyS0 xterm # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot