Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Boot-with-password button #15

Open
pasman1 opened this issue Dec 13, 2020 · 7 comments
Open

[Feature request] Boot-with-password button #15

pasman1 opened this issue Dec 13, 2020 · 7 comments

Comments

@pasman1
Copy link

pasman1 commented Dec 13, 2020

Hi Botspot.

It would be usefull to add "Boot with password" beside "Boot" button.
When automatically started pi-wizard set a password,
image booting do not work - stops at login.

@Botspot
Copy link
Owner

Botspot commented Dec 13, 2020

If your password is something other than raspberry, you will have to change it using environment variables.

See my VM repo: https://github.com/Botspot/vdesktop

@Botspot
Copy link
Owner

Botspot commented Dec 13, 2020

@pasman1
Copy link
Author

pasman1 commented Dec 13, 2020

Setting VDESKTOP_PASSWORD in autologin mode do not work.
Only VDESKTOP_AUTO_LOGIN=no works.

@Botspot
Copy link
Owner

Botspot commented Dec 13, 2020

Setting VDESKTOP_PASSWORD in autologin mode do not work.
Only VDESKTOP_AUTO_LOGIN=no works.

I'd like to see the full output from your boot console.

In the meantime, I can probably update PPT's settings utility to allow all the environment variables you could ask for.

@pasman1
Copy link
Author

pasman1 commented Dec 13, 2020

$ VDESKTOP_PASSWORD=raspberry vdesktop 2020-12-13-raspios-buster-custom-armhf.img
Current config:
VDESKTOP_BOOT_MODE: gui
VDESKTOP_UMOUNT_ON_EXIT: yes
VDESKTOP_USERNAME: pi
VDESKTOP_PASSWORD: raspberry
VDESKTOP_AUTO_LOGIN: yes
VDESKTOP_MOUNTPOINT: /media/pi/vdesktop
VDESKTOP_ENABLE_ROOTMOUNT: yes
VDESKTOP_ENABLE_VIRGL: yes
VDESKTOP_LOCAL_BINARIES: yes
VDESKTOP_NSPAWN_FLAGS:

Message from Botspot: Comments >/dev/null. Just kidding! Questions or suggestions? https://www.raspberrypi.org/forums/viewtopic.php?&t=251757
Given 2020-12-13-raspios-buster-custom-armhf.img, running in disk image mode.
Here's the loop device for it: /dev/loop0

Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/disable-gpu
Mounted /media/pi/vdesktop/etc/chromium-browser/customizations/noxshm
Launching virgl test server...
The virgl pid is 1316
Booting in 5 seconds

spawn /home/pi/Pi-Power-Tools/vdesktop/nspawn /home/pi/Pi-Power-Tools/vdesktop/systemd-nspawn-32 /media/pi/vdesktop --bind=/tmp/.virgl_test
Spawning container vdesktop on /media/pi/vdesktop.
Press ^] three times within 1s to kill container.
systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
Detected virtualization systemd-nspawn.
Detected architecture arm.

Welcome to Raspbian GNU/Linux 10 (buster)!

Set hostname to .
File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Swap.
[UNSUPP] Starting of /dev/serial1 not supported.
[DEPEND] Dependency failed for Configure Bluetooth Modems connected by UART.
hciuart.service: Job hciuart.service/start failed with result 'dependency'.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on Journal Socket.
Mounting RPC Pipe File System...
Starting Restore / save the current clock...
Mounting FUSE Control File System...
Starting Remount Root and Kernel File Systems...
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
Starting Set the console keyboard layout...
[ OK ] Reached target Slices.
Starting Helper to synchronize boot up for ifupdown...
[ OK ] Started Journal Service.
[ OK ] Mounted RPC Pipe File System.
[ OK ] Started Restore / save the current clock.
[ OK ] Mounted FUSE Control File System.
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
[ OK ] Started Set the console keyboard layout.
[ OK ] Started Helper to synchronize boot up for ifupdown.
Starting Create System Users...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Preprocess NFS configuration...
Starting Raise network interfaces...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Set console font and keymap...
[ OK ] Started Preprocess NFS configuration.
[ OK ] Reached target NFS client services.
[ OK ] Reached target Remote File Systems (Pre).
[ OK ] Reached target Remote File Systems.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
[ OK ] Started Set console font and keymap.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Reached target System Time Synchronized.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on triggerhappy.socket.
[ OK ] Started Daily man-db regeneration.
[ OK ] Listening on CUPS Scheduler.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started CUPS Scheduler.
[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
Starting Login Service...
Starting Check for Raspberry Pi EEPROM updates...
Starting dphys-swapfile - set up, mount/unmount, and delete a swap file...
Starting System Logging Service...
Starting Avahi mDNS/DNS-SD Stack...
Starting triggerhappy global hotkey daemon...
[ OK ] Started D-Bus System Message Bus.
Starting WPA supplicant...
[ OK ] Started Regular background program processing daemon.
Starting rng-tools.service...
Starting Check for v3d driver...
Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)...
Starting Disk Manager...
[ OK ] Started CUPS Scheduler.
Starting dhcpcd on all interfaces...
Starting LSB: Resize the root filesystem to fill partition...
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Reached target Timers.
[ OK ] Started System Logging Service.
[ OK ] Started triggerhappy global hotkey daemon.
[FAILED] Failed to start rng-tools.service.
See 'systemctl status rng-tools.service' for details.
[ OK ] Started WPA supplicant.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started Login Service.
[ OK ] Started Make remote CUPS printers available locally.
[FAILED] Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.
See 'systemctl status dphys-swapfile.service' for details.
[ OK ] Started Check for v3d driver.
[ OK ] Started dhcpcd on all interfaces.
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting /etc/rc.local Compatibility...
Starting Permit User Sessions...
Starting Authorization Manager...
My IP address is 169.254.250.204 192.168.43.178
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Permit User Sessions.
Starting Hold until boot process finishes up...
Starting Light Display Manager...
[ OK ] Started Hold until boot process finishes up.
[ OK ] Started Console Getty.
[ OK ] Reached target Login Prompts.
[ OK ] Started Authorization Manager.
[ OK ] Started Light Display Manager.
[ OK ] Started Disk Manager.
[FAILED] Failed to start LSB: Resize the root filesystem to fill partition.
See 'systemctl status resize2fs_once.service' for details.
[ OK ] Started Check for Raspberry Pi EEPROM updates.
[ OK ] Stopped Light Display Manager.
Starting Light Display Manager...
[ OK ] Started Light Display Manager.
[ OK ] Stopped Light Display Manager.
Starting Light Display Manager...
[ OK ] Started Light Display Manager.
[ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Stopped Light Display Manager.
Starting Light Display Manager...
[ OK ] Started Update UTMP about System Runlevel Changes.
[ OK ] Started Light Display Manager.

Raspbian GNU/Linux 10 raspberrypi console

raspberrypi login: pi
Hasło: raspberry

And booting stops here.

@Botspot
Copy link
Owner

Botspot commented Dec 13, 2020

"Hasło" is the problem right there.

Vdesktop looks for "Password: "

@Botspot
Copy link
Owner

Botspot commented Dec 13, 2020

There it should be fixed now.

Please update Pi Power Tools to get the new version of vdesktop.

@Botspot Botspot reopened this Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants