sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "s|^\(export DISPLAY.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(sleep.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(lxpanelctl.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ ls -l /media/netdir/source/raspberrypi total 0 drwxrwxrwx+ 1 systemd-network users 18 Dec 6 19:53 3 drwxrwxrwx+ 1 pi pi 18 Dec 30 09:59 4-01 drwxrwxrwx+ 1 pi pi 18 Dec 30 15:26 4-02 drwxrwxrwx+ 1 pi pi 18 Dec 30 20:46 4-03 drwxrwxrwx+ 1 systemd-timesync 98 18 Dec 31 15:39 4-04 drwxrwxrwx+ 1 99 99 18 Dec 29 09:27 4-10 drwxrwxrwx+ 1 pi pi 18 Dec 29 18:21 4-11 drwxrwxrwx+ 1 pi pi 18 Dec 29 19:19 4-12 drwxrwxrwx+ 1 pi pi 18 Dec 29 22:21 4-13 drwxrwxrwx+ 1 pi pi 18 Dec 29 22:30 4-14 drwxrwxrwx+ 1 pi pi 18 Dec 20 18:51 4-8 drwxrwxrwx+ 1 pi pi 18 Dec 21 21:14 4-9 drwxrwxrwx+ 1 99 99 18 Dec 6 19:46 org pi@raspberrypi4:~ $ mkdir -p /media/netdir/source/raspberrypi/4-05 pi@raspberrypi4:~ $ inset_line=`grep -n systemd-nspawn /home/pi/vdesktop/vdesktop | tail -1 | cut -f 1 -d:` pi@raspberrypi4:~ $ let inset_line2=inset_line+1 pi@raspberrypi4:~ $ sed -i "${inset_line2}iumount \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}imount --bind /media/netdir/source/raspberrypi/4-05 \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}imkdir -p \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ ls -l /mnt/runimg total 28279988 -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 22:50 2012-07-15-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 00:08 2013-02-09-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 2962227200 Dec 20 23:26 2013-12-20-wheezy-raspbian.img -rwx------+ 1 99 99 8956451117 Jan 1 10:22 2017-07-05-raspbian-jessie_compile-armel.img -rwxrwxrwx+ 1 99 99 4555014144 Dec 31 22:50 2019-04-08-raspbian-stretch_chroot.img -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Dec 30 11:47 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 30 09:55 2019-04-08-raspbian-stretch-make-old.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-r--r--+ 1 systemd-timesync 98 867172352 Dec 27 22:23 Debian-testing-armmp_2019-12-27T221219.img -rw-r--r--+ 1 99 99 764411904 Dec 23 10:06 Raspbian-stretch-rpix_2019-12-22T225115.img pi@raspberrypi4:~ $ sudo /home/pi/vdesktop/vdesktop /mnt/runimg/2017-07-05-raspbian-jessie_compile-armel.img sudo: unable to resolve host raspberrypi4: No address associated with hostname sudo: unable to resolve host raspberrypi4: No address associated with hostname OK, looks like you specified an .img file. e2fsck 1.44.5 (15-Dec-2018) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/loop0: 127734/539216 files (0.1% non-contiguous), 1028322/2174720 blocks /mnt/runimg/2017-07-05-raspbian-jessie_compile-armel.img mounted on /mnt/virtualdesktop Your cursor color will be blue until the container is terminated. Booting in 5 seconds. Spawning container virtualdesktop on /mnt/virtualdesktop. Press ^] three times within 1s to kill container. systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) Detected virtualization 'systemd-nspawn'. Detected architecture 'arm'. Welcome to Raspbian GNU/Linux 8 (jessie)! Set hostname to . Initializing machine ID from container UUID. Failed to install release agent, ignoring: No such file or directory Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-01. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-02. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Encrypted Volumes. [ OK ] Reached target Swap. [ OK ] Created slice Root Slice. [ OK ] Listening on Delayed Shutdown Socket. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Created slice User and Session Slice. [ OK ] Listening on Journal Socket. [ OK ] Created slice System Slice. [ OK ] Listening on Syslog Socket. Starting Restore / save the current clock... Mounting FUSE Control File System... [ OK ] Created slice system-autologin.slice. Starting Copy rules generated while the root was ro... Starting LSB: Set preliminary keymap... Starting Journal Service... [ OK ] Started Journal Service. [ OK ] Reached target Slices. [ OK ] Started Copy rules generated while the root was ro. [ OK ] Mounted FUSE Control File System. [ OK ] Started Restore / save the current clock. [ OK ] Started LSB: Set preliminary keymap. Starting Show Plymouth Boot Screen... Starting Remount Root and Kernel File Systems... [FAILED] Failed to start Remount Root and Kernel File Systems. See 'systemctl status systemd-remount-fs.service' for details. Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Tell Plymouth To Write Out Runtime Data... Starting Create Volatile Files and Directories... [ OK ] Reached target Remote File Systems. Starting Trigger Flushing of Journal to Persistent Storage... Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)... Starting LSB: Prepare console... [ OK ] Started Load/Save Random Seed. Starting LSB: Raise network interfaces.... [ OK ] Started Trigger Flushing of Journal to Persistent Storage. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Reached target Paths. [ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed). [ OK ] Started LSB: Prepare console. Starting LSB: Set console font and keymap... [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started LSB: Set console font and keymap. [ OK ] Started LSB: Raise network interfaces.. [ OK ] Reached target System Initialization. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Timers. [ OK ] Reached target Basic System. Starting LSB: Apply config from /boot/os_config.json... Starting LSB: Resize the root filesystem to fill partition... Starting Avahi mDNS/DNS-SD Stack... Starting Configure Bluetooth Modems connected by UART... Starting dhcpcd on all interfaces... Starting Regenerate SSH host keys... Starting System Logging Service... Starting Regular background program processing daemon... [ OK ] Started Regular background program processing daemon. Starting D-Bus System Message Bus... [ OK ] Started D-Bus System Message Bus. [ OK ] Started Avahi mDNS/DNS-SD Stack. Starting Login Service... Starting LSB: triggerhappy hotkey daemon... Starting LSB: Autogenerate and use a swap file... [ OK ] Started System Logging Service. [FAILED] Failed to start LSB: Resize the root filesystem to fill partition. See 'systemctl status resize2fs_once.service' for details. [FAILED] Failed to start Configure Bluetooth Modems connected by UART. See 'systemctl status hciuart.service' for details. [ OK ] Started dhcpcd on all interfaces. Starting Cleanup of Temporary Directories... [ OK ] Reached target Network. Starting /etc/rc.local Compatibility... Starting Permit User Sessions... [ OK ] Reached target Network is Online. Starting LSB: Start NTP daemon... [ OK ] Started Login Service. [ OK ] Started Permit User Sessions. Starting Light Display Manager... My IP address is 192.168.1.254 [ OK ] Started LSB: triggerhappy hotkey daemon. [ OK ] Started LSB: Start NTP daemon. [ OK ] Started Cleanup of Temporary Directories. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-01. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-02. [ OK ] Started LSB: Apply config from /boot/os_config.json. [ OK ] Started LSB: Autogenerate and use a swap file. Message from virtualdesktop: Log in as user pi using the guest's password. (default is raspberry) Once you login, the graphical desktop will load automatically. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-01. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-02. Raspbian GNU/Linux 8 raspberrypi console raspberrypi login: root Password: Login incorrect raspberrypi login: pi^H^H^H        root@raspberrypi:cd /mnt/compile Password: Login timed out after 60 seconds. Raspbian GNU/Linux 8 raspberrypi console raspberrypi login: root@raspberrypi:git clone git://github.com/ariya/phantomjs.git Raspbian GNU/Linux 8 raspberrypi console raspberrypi login: root@raspberrypi:cd phantomjs Password: Login incorrect raspberrypi login: root@raspberrypi:git checkout 2.1.1 Password: Login incorrect raspberrypi login: ^]^] Container virtualdesktop terminated by signal KILL. pi@raspberrypi4:~ $ pi@raspberrypi4:~ $ pi@raspberrypi4:~ $ root@raspberrypi:git submodule init -bash: root@raspberrypi:git: command not found pi@raspberrypi4:~ $ git submodule update fatal: not a git repository (or any of the parent directories): .git pi@raspberrypi4:~ $ root@raspberrypi:echo "date > BUILD_START" > ./make_cmd.sh -bash: root@raspberrypi:echo: command not found pi@raspberrypi4:~ $ echo "python ./build.py -c --release" >> ./make_cmd.sh pi@raspberrypi4:~ $ root@raspberrypi:echo "##--git-clean-qtbase --git-clean-qtwebkit --jobs 2" >> ./make_cmd.sh -bash: root@raspberrypi:echo: command not found pi@raspberrypi4:~ $ echo "date > BUILD_END" >> ./make_cmd.sh pi@raspberrypi4:~ $ root@raspberrypi:chmod 751 ./make_cmd.sh -bash: root@raspberrypi:chmod: command not found pi@raspberrypi4:~ $ ./make_cmd.sh -bash: ./make_cmd.sh: Permission denied pi@raspberrypi4:~ $ ls -l total 3439224 -rwxrwxrwx+ 1 pi users 3481272320 Dec 11 22:33 2019-04-08-raspbian-stretch.img drwxr-xr-x 2 pi pi 4096 Dec 14 18:32 Desktop drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Documents drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Downloads drwxr-xr-x 2 pi pi 4096 Sep 26 09:18 MagPi -rw-r--r-- 1 pi pi 48 Jan 1 10:57 make_cmd.sh drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Music drwxr-xr-x 2 pi pi 4096 Dec 8 13:22 phantomjs_pkg1 -rw-r--r-- 1 pi pi 40547653 Dec 8 13:23 phantomjs_pkg1.tar.gz drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Pictures drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Public drwxr-xr-x 4 root root 4096 Dec 14 10:10 root-ro drwxr-xr-x 2 pi pi 4096 Dec 2 21:50 Templates drwxr-xr-x 1 pi pi 80 Jan 1 10:54 vdesktop drwxr-xr-x 2 root root 0 Dec 26 23:20 Videos pi@raspberrypi4:~ $ rm -f make_cmd.sh pi@raspberrypi4:~ $ make_cmd.shroot@raspberrypi:echo 00:00:28 -bash: root@raspberrypi:echo: command not found pi@raspberrypi4:~ $ date Wed 01 Jan 2020 10:57:44 AM JST pi@raspberrypi4:~ $ root@raspberrypi:compile finish -bash: compile: command not found pi@raspberrypi4:~ $ shutdown -h now Failed to set wall message, ignoring: Interactive authentication required. Failed to power off system via logind: Interactive authentication required. Failed to open initctl fifo: Permission denied Failed to talk to init daemon. pi@raspberrypi4:~ $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "s|^#\+\(export DISPLAY.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(sleep.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(lxpanelctl.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line2}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $