qwertz2001
Posts: 4
Joined: Mon Jan 22, 2024 2:00 pm

Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 2:40 pm

Hi,
Raspberry Pi Debian X86 comes with PiServer software for Diskless Installation of Rasberry Pi
Is there a manual or specifications for this?
Problem: I found in my tests that the diskless station file system is read-only so unable to install any software.
How can this be overcome?

thanks for your help
Hans

User avatar
B.Goode
Posts: 16239
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 3:00 pm

Ref: The Raspberry Pi PiServer tool - https://www.raspberrypi.com/news/piserver/

Depending on the issue you are facing, this might be relevant?
Users do not have sudo capability on a client, meaning they cannot make significant changes to the file system and software.
Beware of the Leopard

DS256
Posts: 297
Joined: Mon Jul 26, 2021 7:44 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 3:24 pm

qwertz2001 wrote:
Sun Feb 11, 2024 2:40 pm
Hi,
Raspberry Pi Debian X86 comes with PiServer software for Diskless Installation of Rasberry Pi
Is there a manual or specifications for this?
Problem: I found in my tests that the diskless station file system is read-only so unable to install any software.
How can this be overcome?

thanks for your help
Hans
Interesting. Never heard of it https://www.raspberrypi.com/news/piserver/ until your post. Looks like it is contained functionality for specific purpose. As stated on the website
  • "Use this tool to easily set up a network of client Raspberry Pis connected to a single x86-based server via Ethernet."
  • It uses a slightly altered Raspbian build which allows separation of temporary spaces, doesn’t have the default ‘pi’ user, and has LDAP enabled for log-in.""
  • "As a server, you will need an x86 computer on which you can install x86 Debian Stretch." .
I'd say it looks like it is constrained on a Debian build. Unless they indicate how you would do it, I'm not sure how you would install software that could shared across "temporary spaces"

I wasn't able to find a dedicate forum for the PIServer but a search of the forum search.php?keywords=Piserver showed questions in a number of posts in different forums.

incognitum
Posts: 1426
Joined: Tue Oct 30, 2018 3:34 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 3:49 pm

B.Goode wrote:
Sun Feb 11, 2024 3:00 pm
Ref: The Raspberry Pi PiServer tool - https://www.raspberrypi.com/news/piserver/

Depending on the issue you are facing, this might be relevant?
Users do not have sudo capability on a client, meaning they cannot make significant changes to the file system and software.
Do note that "users" in the context of a typical Piserver classroom setup are the students.
And no, they cannot install software globally themselves.
Just like they generally do not get to have administrator access on Windows school computers either.

If you -as an administrator- want to install extra software, do so from the Piserver GUI on the server. Go to the "software" tab, select the operating system instance you are using, and press the "shell" button.
Can "apt update && apt install something" there
Leave out the "sudo" from the commands, as anything you enter there is already executed as root user.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 15151
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 4:54 pm

X86 software, including Debian, does NOT run on a raspberry PI!

so moved to the only forum section where we talk about X86 software.

incognitum
Posts: 1426
Joined: Tue Oct 30, 2018 3:34 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 5:37 pm

mahjongg wrote:
Sun Feb 11, 2024 4:54 pm
X86 software, including Debian, does NOT run on a raspberry PI!
Piserver actually can run on Pi as well.
"sudo apt install piserver" should work.

x86 is just recommended on the server for better storage options.
(piserver not only handles the network booting for the client Pi but also provides central authentication and storage for all users/students.)

qwertz2001
Posts: 4
Joined: Mon Jan 22, 2024 2:00 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Sun Feb 11, 2024 9:20 pm

Hi,
Error: did try to anable SSH on the chroot console
seems to be lacalisation problem?
any hint to solve this problem?
Thanks for help
Hans

bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
root@raspberry:/# raspi-config
cat: /proc/device-tree/model: No such file or directory
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "de_DE.UTF-8",
LC_ALL = "de_DE.UTF-8",
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Running in chroot, ignoring request.
cat: /proc/device-tree/model: No such file or directory


did setup a new system using default localisation
and did try setup ssh enable on the chroot console

root@raspberry:/# raspi-config
cat: /proc/device-tree/model: No such file or directory
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Running in chroot, ignoring request.
cat: /proc/device-tree/model: No such file or directory

How to solve this problem?

incognitum
Posts: 1426
Joined: Tue Oct 30, 2018 3:34 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Mon Feb 12, 2024 6:02 am

Best to learn how to do configuration without frond-end tools like raspi-config.

Try:

Code: Select all

ssh-keygen -A
systemctl enable ssh
systemctl disable regenerate_ssh_host_keys
Client Pi have to be rebooted, before it takes effect.

User avatar
rpdom
Posts: 23330
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Mon Feb 12, 2024 9:00 am

incognitum wrote:
Mon Feb 12, 2024 6:02 am
Client Pi have to be rebooted, before it takes effect.
If you're going to have to reboot anyway, why not use the simpler

Code: Select all

touch /boot/firmware/ssh.txt
and reboot.

Assuming that option still works. I believe it does?
Unreadable squiggle

qwertz2001
Posts: 4
Joined: Mon Jan 22, 2024 2:00 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Mon Feb 12, 2024 9:30 am

very good, thank you very much, ssh works.

Now the only thing missing is how to allow vnc.
It doesn't work via raspi-config

root@raspberry:/# raspi-config
cat: /proc/device-tree/model: No such file or directory
Running in chroot, ignoring command 'status'
Running in chroot, ignoring command 'start'
cat: /proc/device-tree/model: No such file or directory

User avatar
B.Goode
Posts: 16239
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Mon Feb 12, 2024 11:38 am

qwertz2001 wrote:
Mon Feb 12, 2024 9:30 am

Now the only thing missing is how to allow vnc.
It doesn't work via raspi-config




I think your well-informed helper foresaw that -
incognitum wrote:
Mon Feb 12, 2024 6:02 am
Best to learn how to do configuration without front-end tools like raspi-config.


(I can't see from your posts in this thread what OS you are furnishing for the clients. If it is RasPiOS Bookworm then I'm afraid the complexity of the bash scripting needed to cope with the mixed economy of either X or Wayland when configuring vnc via raspi-config is beyond my little brain to unravel. Hopefully someone else can tell you the key features to replicate. Or whether it is not possible in this client/server deployment. I guess you want the teacher to take control of the student workstations?)
Beware of the Leopard

incognitum
Posts: 1426
Joined: Tue Oct 30, 2018 3:34 pm

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Tue Feb 13, 2024 7:26 pm

rpdom wrote:
Mon Feb 12, 2024 9:00 am
incognitum wrote:
Mon Feb 12, 2024 6:02 am
Client Pi have to be rebooted, before it takes effect.
If you're going to have to reboot anyway, why not use the simpler

Code: Select all

touch /boot/firmware/ssh.txt
and reboot.

Assuming that option still works. I believe it does?
Nope.

The thing is that with Piserver all Pi clients share the same / file system, that is read-only to them.
So that script that tests for the existence of ssh.txt and wants to WRITE to the root file system to generate a ssh host key prior to enabling the ssh daemon, is unlikely to work...

The only way you can make changes to the root file system is on the server. And those then apply to all clients that are using that shared OS image.
The clients need to reboot, to find out the ssh systemd service is now enabled.


Only places you can write to on the client is temporarily to /tmp and permanently to the home directory of the user that logged in.
The home directory files are stored on the server.
(through sshfs mount)

User avatar
rpdom
Posts: 23330
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi Debian X86 PiServer Specifacation ?

Tue Feb 13, 2024 8:00 pm

incognitum wrote:
Tue Feb 13, 2024 7:26 pm
The thing is that with Piserver all Pi clients share the same / file system, that is read-only to them.
So that script that tests for the existence of ssh.txt and wants to WRITE to the root file system to generate a ssh host key prior to enabling the ssh daemon, is unlikely to work...
I somehow missed the fact it was using Piserver. :oops:
Unreadable squiggle

Return to “Raspberry Pi Desktop for PC and Mac”