Skip to content

Commit

Permalink
Update install.sh to add autoconsole login, so it no longer is a manu…
Browse files Browse the repository at this point in the history
…al step. (#1440)

* Update install.sh

* Added Console Autologin

* Update install.sh
  • Loading branch information
Will-wastelander authored Feb 18, 2021
1 parent adae20e commit cd7ec2c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,15 @@ EOF
if [ -z "\$SSH_CLIENT" ] || [ -z "\$SSH_TTY" ]; then
xinit -- -nocursor
fi
EOF

echo "Setting up Console Autologin ..."
sudo systemctl set-default multi-user.target
sudo ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
sudo bash -c 'cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf' << EOF
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin $USER --noclear %I \$TERM
EOF

echo "Setting Permissions ..."
Expand Down

1 comment on commit cd7ec2c

@csiller88
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on new line 788, I think I had to change the command from dpkg to apt-get because there were some required dependencies. I just remembered this so it could be a dpkg command somewhere else. ( I know, not very helpful. But, I know I was having an issue with dependencies and changing the command from dpkg to apt fixed it)

Please sign in to comment.