You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have a need to be able to save files to your home directory and have them persist?
And if so, what applications do you plan to use exactly?
Not all applications can deal with the situation that multiple Pi are logged into the same user account and write temporary files to the same home directory simultaneously.
Or do you intend to use Pi for Internet kiosk style purposes, in which there is no need to store anything?
Be aware that in this setup /home/pi will live in tmpfs (ramdisk), and is entirely empty on each boot.
If you need to autostart any applications do so using global configuration directories, e.g. by creating a .desktop file in /etc/xdg/autostart
and not by putting files in home directory as they will not be seen.
Hi, this works great, however I need to persist data between boots. Particularly a selection made in Chromium running in kiosk mode. Is it possible to map the home folder to somewhere?
Maybe making use of #15 although I note that this is also read only, which would be fine if there was a way for an 'admin user' with write access to initially set this?
Is it possible to map the home folder to somewhere?
Yes, but:
Sharing a single home directory with multiple computers read-write is problematic.
Having a read-only home folder is problematic
Maybe making use of #15 although I note that this is also read only, which would be fine if there was a
way for an 'admin user' with write access to initially set this?
Put your files in the shared folder prepared on the piserver computer, and create a one-line /etc/rc.local script that populates /home/pi on boot?
#!/bin/sh
cp -a /mnt/shared/preparedfiles/* /home/pi
I've found that the autologin might not be working due to a timing issue. When the login screen appears if I type my username and password in really quickly (5seconds) then it fails everytime. If I wait 10seconds then hit enter, it works.
I've found that the autologin might not be working due to a timing issue.
That is unrelated.
As stated before, you do can enable autologin, but only if you do NOT need writable storage.
If you need writable storage, the piserver server expects a password from the client. And autologin does not provide any.
Just installed buster server und tried to enable autologin the way steted above.
I do have a running stretch installation with autologin.
Using raspi-config to enable desktop login fails /bin/cat: /proc/device-tree/model: no such file or directory
Activity
maxnet commentedon Jan 23, 2018
What is the exact use-case?
And if so, what applications do you plan to use exactly?
Not all applications can deal with the situation that multiple Pi are logged into the same user account and write temporary files to the same home directory simultaneously.
That is easier to achieve.
userraspberry commentedon Jan 23, 2018
maxnet commentedon Jan 23, 2018
The following should work in theory.
You will have to test how well it works in practice for your exact purposes though.
In the Piserver GUI, go to "software" tab, select "Raspbian" and press "shell" button to get a chroot shell.
Disable mounting of the home folder on the central server, by renaming the pam_mount configuration file to something else:
Add a local pi user:
Edit /etc/fstab
Modify:
To:
Save the file, and close leafpad
Start raspi-config
edit: you now need to start raspi-config with: SUDO_USER=pi raspi-config
Enable automatic login there. ("boot options" -> "desktop/cli" -> "desktop autologin")
Be aware that in this setup
/home/pi
will live in tmpfs (ramdisk), and is entirely empty on each boot.If you need to autostart any applications do so using global configuration directories, e.g. by creating a .desktop file in
/etc/xdg/autostart
and not by putting files in home directory as they will not be seen.
jmccoy555 commentedon Mar 26, 2018
Hi, this works great, however I need to persist data between boots. Particularly a selection made in Chromium running in kiosk mode. Is it possible to map the home folder to somewhere?
Maybe making use of #15 although I note that this is also read only, which would be fine if there was a way for an 'admin user' with write access to initially set this?
maxnet commentedon Mar 26, 2018
Yes, but:
Put your files in the shared folder prepared on the piserver computer, and create a one-line
/etc/rc.local
script that populates /home/pi on boot?map7 commentedon Mar 29, 2019
I've found that the autologin might not be working due to a timing issue. When the login screen appears if I type my username and password in really quickly (5seconds) then it fails everytime. If I wait 10seconds then hit enter, it works.
Could this be why autologin isn't working?
maxnet commentedon Apr 2, 2019
That is unrelated.
As stated before, you do can enable autologin, but only if you do NOT need writable storage.
If you need writable storage, the piserver server expects a password from the client. And autologin does not provide any.
Buzz2912 commentedon Dec 5, 2019
Just installed buster server und tried to enable autologin the way steted above.
I do have a running stretch installation with autologin.
Using raspi-config to enable desktop login fails /bin/cat: /proc/device-tree/model: no such file or directory
maxnet commentedon Dec 5, 2019
That message should not affect your changes.
/proc/device-tree/model is only consulted to mention the Raspberry Pi model running in the title bar.