From: Paul Hänsch Date: Mon, 4 Mar 2019 17:28:34 +0000 (+0100) Subject: autologin GUI for graph display X-Git-Url: http://git.plutz.net/?p=rpi_small;a=commitdiff_plain;h=1c8257c67b251af806b9d8b629e73e72f4e5740a autologin GUI for graph display --- diff --git a/Makefile b/Makefile index b24b42b..72176cf 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ deb http://raspbian.raspberrypi.org/raspbian stretch main non-free firmware rpi\ deb http://archive.raspberrypi.org/debian stretch main\n endef -PACKAGES := apt bluez bluez-firmware bluez-tools bridge-utils btrfs-tools busybox-static bzip2 ca-certificates cron deborphan dnsmasq firmware-brcm80211 firmware-linux-free firmware-misc-nonfree gzip htop ifupdown init iptables iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openbsd-inetd openssh-client openssh-server pi-bluetooth rpi-update rsync ssh sshfs sudo systemd traceroute unzip vim wget wireless-tools wpasupplicant xz-utils zip +PACKAGES := apt bluez bluez-firmware bluez-tools bridge-utils btrfs-tools busybox-static bzip2 ca-certificates cron deborphan dnsmasq firmware-brcm80211 firmware-linux-free firmware-misc-nonfree gzip htop ifupdown init iptables iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openbsd-inetd openssh-client openssh-server pi-bluetooth rpi-update rsync ssh sshfs sudo systemd traceroute unzip vim wget wireless-tools wpasupplicant xz-utils zip xserver-xorg-video-fbturbo xserver-xorg nodm chromium-browser # Do not change, only override in config.mk WIFI-SSID = @@ -81,7 +81,7 @@ include *.mk raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi -rmdir "$@.mnt" mkdir "$@.mnt" # fail receipe if dir is nonempty - dd bs=1M count=0 seek=1792 of="$@" # set up sparse file + dd bs=1M count=0 seek=3072 of="$@" # set up sparse file sfdisk "$@" ] [:] +# +# The Xserver executable and the display name can be omitted, but should +# be placed in front, if nodm's defaults shall be overridden. +NODM_X_OPTIONS='-nolisten tcp' + +# If an X session will run for less than this time in seconds, nodm will wait an +# increasing bit of time before restarting the session. +NODM_MIN_SESSION_TIME=60 + +# Timeout (in seconds) to wait for X to be ready to accept connections. If X is +# not ready before this timeout, it is killed and restarted. +NODM_X_TIMEOUT=300 diff --git a/files/root/postbuild.sh b/files/root/postbuild.sh new file mode 100755 index 0000000..faf7de6 --- /dev/null +++ b/files/root/postbuild.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +usermod -p "$(openssl passwd -1 -salt ert root)" root +useradd -m local