Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Upcoming moOde 8.3.0 release (Q1 2023)
#14
There is at least one reference to user pi in a less obvious place: /lib/systemd/system/localui.service wants to start the Xserver as user pi


Code:
...
# start xserver
ExecStart=/usr/bin/xinit -- -nocursor

User=pi
...

I stumbled on this when I tried the "brute force and ignorance" approach to the user naming issue. I used the RaspberryPi Imager to burn a copy of image_2023-01-20-moode-r825-arm64-lite.zip to a uSD card. I used the Imager to create user kreed rather than user pi.

The resulting filesystem does not contain a /home/pi directory and user kreed has userid:groupid 1000:1000.


Code:
kreed@moode:~ $ ls -la
total 40
drwxr-xr-x 2 kreed kreed 4096 Mar 10 19:02 .
drwxr-xr-x 3 root  root  4096 Jan 20 15:57 ..
-rw------- 1 kreed kreed   42 Mar 10 19:02 .bash_history
-rw-r--r-- 1 kreed kreed  220 Jan 20 15:05 .bash_logout
-rw-r--r-- 1 kreed kreed 3523 Jan 20 15:05 .bashrc
-rwxr-xr-x 1 root  root  4681 Jan 20 14:35 .dircolors
-rwxr-xr-x 1 root  root  1516 Jun  5  2022 piano.sh
-rw-r--r-- 1 kreed kreed  807 Jan 20 15:05 .profile
-rwxr-xr-x 1 root  root  1218 Jan 20 14:35 .xinitrc

Naturally the LocalUI feature doesn't work. Quoting from kern.log [as an aside, note too the 'marked executable' message.]

Code:
Mar 10 23:37:18 moode systemd[1]: Configuration file /lib/systemd/system/localui.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Mar 10 23:37:18 moode systemd[1]: Started Start Chromium Browser.
Mar 10 23:37:18 moode systemd[1460]: localui.service: Failed to determine user credentials: No such process
Mar 10 23:37:18 moode systemd[1460]: localui.service: Failed at step USER spawning /usr/bin/xinit: No such process
Mar 10 23:37:18 moode systemd[1]: localui.service: Main process exited, code=exited, status=217/USER
Mar 10 23:37:18 moode systemd[1]: localui.service: Failed with result 'exit-code'.

Once we get these ankle-biter issues fixed, the only problem I'll have is remembering to reach for Imager instead of my long-time fav Balena Etcher. Old habits die hard.

Regards,
Kent


Messages In This Thread
RE: Upcoming moOde 8.3.0 release (Q1 2023) - by TheOldPresbyope - 03-11-2023, 04:49 AM

Forum Jump: