Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kubesail/pibox-os
Browse files Browse the repository at this point in the history
  • Loading branch information
pastudan committed Apr 22, 2022
2 parents afd4114 + 235d23a commit c0ded08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion provision-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ curl -s https://raw.githubusercontent.com/kubesail/pibox-os/main/setup.sh | bash
echo "TCPKeepAlive yes" >> /etc/ssh/sshd_config
touch /boot/ssh
touch /boot/refresh-ssh-certs
rm -vf ~/.ssh/*
rm -vf /home/pi/.ssh/*
sed -i s/PasswordAuthentication\ no/PasswordAuthentication\ yes/ /etc/ssh/sshd_config

# Clean bash history
history -c && history -w
Expand Down
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ if [[ ! -f $FB_PATH ]]; then
fi
chown -R kubesail-agent: /opt/kubesail/
cat <<'EOF' > /etc/systemd/system/pibox-framebuffer.service
[Unit]
Requires=multi-user.target
After=multi-user.target
[Service]
ExecStart=/opt/kubesail/pibox-framebuffer
Restart=always
Expand All @@ -110,4 +113,4 @@ EOF
systemctl daemon-reload

systemctl enable pibox-first-boot.service
systemctl enable pibox-framebuffer.service
systemctl enable pibox-framebuffer.service

0 comments on commit c0ded08

Please sign in to comment.