Browse Source

#646 fix user of autologin

v1.3
Christian Rotzoll 6 years ago
parent
commit
fcd281207e
  1. 2
      README.md
  2. 3
      home.admin/config.scripts/blitz.touchscreen.sh

2
README.md

@ -678,7 +678,7 @@ A ready to use SD card image of the RaspiBlitz for your RaspberryPi is provided
* Add a file called `ssh` to the root of the SD card when mounted to enable SSH login
* Start card in Raspi and login per SSH with `ssh pi@[IP-OF-YOUR-RASPI]` password is `raspberry`
Now you are ready to start the SD card build script - copy the following command into your terminal and execute:
Now you are ready to start the SD card build script (check the code if every installs and config is OK for you) - copy the following command into your terminal and execute:
`wget https://raw.githubusercontent.com/rootzoll/raspiblitz/master/build_sdcard.sh && sudo bash build_sdcard.sh`

3
home.admin/config.scripts/blitz.touchscreen.sh

@ -29,8 +29,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo raspi-config nonint do_boot_behaviour B4
# set user pi as autologin for lightdm
sudo sed -i s'/autologin-user=root/autologin-user=pi/' /etc/lightdm/lightdm.conf
sudo sed -i "s/^autologin-user=.*/autologin-user=pi/g" /etc/lightdm/lightdm.conf
sudo sed -i s'/--autologin root/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
sudo sed -i s'/--autologin admin/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
# write new LXDE autostart config
sudo mv /etc/xdg/lxsession/LXDE-pi/autostart /etc/xdg/lxsession/LXDE-pi/autostart.bak

Loading…
Cancel
Save