Use Raspberry Pi Imager
Create an empty file called ssh
in the boot drive.
create a file called wpa_supplicant.conf
in the boot drive.
With the content:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=2
country=CH
network={
ssid="<>"
psk="<>"
}
edit /boot/config.txt
lcd_rotate=2
user: pi
password: raspberry
Install necessary packages.
sudo apt install xserver-xorg x11-xserver-utils xinit chromium
Update
sudo nano /etc/X11/Xwrapper.config
allowed_users=anybody
needs_root_rights=yes
file: chromium --window-size=800,480 --window-position=0,0 --disable-infobars --kiosk --app="http://{}" startx {file} -- -nocursor