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 99 99 18 Dec 8 14:25 4-1 drwxrwxrwx+ 1 root root 18 Dec 11 18:59 4-2 drwxrwxrwx+ 1 root root 18 Dec 13 19:37 4-3 drwxrwxrwx+ 1 99 99 18 Dec 14 10:16 4-4 drwxrwxrwx+ 1 99 99 18 Dec 14 16:31 4-5 drwxrwxrwx+ 1 pi pi 18 Dec 18 22:01 4-6 drwxrwxrwx+ 1 pi pi 18 Dec 19 18:50 4-7 drwxrwxrwx+ 1 99 99 18 Dec 6 19:46 org pi@raspberrypi4:~ $ mkdir -p /media/netdir/source/raspberrypi/4-7 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-7 \${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 6801532 -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Dec 19 22:51 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 19 20:39 2019-04-08-raspbian-stretch-make-old.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak pi@raspberrypi4:~ $ sudo /home/pi/vdesktop/vdesktop /mnt/runimg/2019-04-08-raspbian-stretch-make-old.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 rootfs: 94949/209664 files (0.2% non-contiguous), 769014/837632 blocks /mnt/runimg/2019-04-08-raspbian-stretch-make-old.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 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN) Detected virtualization systemd-nspawn. Detected architecture arm. Welcome to Raspbian GNU/Linux 9 (stretch)! Set hostname to . Failed to install release agent, ignoring: No such file or directory [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Listening on Journal Socket. [ OK ] Reached target Swap. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [UNSUPP] Starting of dev-serial1.device 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 Journal Socket (/dev/log). [ OK ] Created slice System Slice. Starting Remount Root and Kernel File Systems... [ OK ] Created slice system-autologin.slice. Starting Set the console keyboard layout... Mounting RPC Pipe File System... Starting Restore / save the current clock... [ OK ] Created slice User and Session Slice. [ OK ] Reached target Slices. [ OK ] Listening on Syslog Socket. Mounting FUSE Control File System... Starting Journal Service... [ OK ] Mounted RPC Pipe File System. [ OK ] Mounted FUSE Control File System. [ OK ] Started Journal Service. [FAILED] Failed to start Remount Root and Kernel File Systems. See 'systemctl status systemd-remount-fs.service' for details. Starting Flush Journal to Persistent Storage... [ OK ] Started Restore / save the current clock. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Set the console keyboard layout. [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Tell Plymouth To Write Out Runtime Data... Starting Raise network interfaces... Starting Preprocess NFS configuration... Starting Create Volatile Files and Directories... Starting Set console font and keymap... Starting Show Plymouth Boot Screen... [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Started 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 Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [ OK ] Reached target System Time Synchronized. [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Encrypted Volumes. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Started Daily apt download activities. [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Reached target Timers. [ OK ] Listening on triggerhappy.socket. [ OK ] Reached target Sockets. [ OK ] Reached target Paths. [ OK ] Started Forward Password Requests to Plymouth Directory Watch. [ OK ] Reached target Basic System. Starting triggerhappy global hotkey daemon... Starting LSB: Resize the root filesystem to fill partition... Starting Avahi mDNS/DNS-SD Stack... Starting LSB: Autogenerate and use a swap file... Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)... Starting Login Service... Starting System Logging Service... [ OK ] Started D-Bus System Message Bus. Starting WPA supplicant... [ OK ] Started Regular background program processing daemon. Starting rng-tools.service... Starting dhcpcd on all interfaces... Starting Disable WiFi if country not set... Starting Check for v3d driver... [ OK ] Started triggerhappy global hotkey daemon. [ OK ] Started System Logging Service. [FAILED] Failed to start Avahi mDNS/DNS-SD Stack. See 'systemctl status avahi-daemon.service' for details. [FAILED] Failed to start rng-tools.service. See 'systemctl status rng-tools.service' for details. [ OK ] Started Disable WiFi if country not set. [ OK ] Started Login Service. [ OK ] Started Check for v3d driver. [ OK ] Started dhcpcd on all interfaces. [ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed). [FAILED] Failed to start LSB: Resize the root filesystem to fill partition. See 'systemctl status resize2fs_once.service' for details. [ OK ] Started WPA supplicant. [ OK ] Started Raise network interfaces. [ OK ] Reached target Network. Starting Permit User Sessions... Starting /etc/rc.local Compatibility... My IP address is 192.168.1.249 [ OK ] Started Permit User Sessions. Starting Light Display Manager... [ 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. Raspbian GNU/Linux 9 raspberrypi console raspberrypi login: root Password: Last login: Thu Dec 19 18:50:18 JST 2019 on console Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@raspberrypi:~# ls -l total 8 drwx------ 2 root root 4096 Dec 8 14:00 Desktop drwxr-xr-x 3 root root 4096 Dec 8 19:56 phantomjs_pkg1 root@raspberrypi:~# echo 00:00:00 00:00:00 root@raspberrypi:~# date Thu 19 Dec 22:52:36 JST 2019 root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# root@raspberrypi:~# dpkg -l | grep libssl ii libssl1.0-dev:armhf 1.0.2r-1~deb9u1 armhf Secure Sockets Layer toolkit - development files ii libssl1.0.2:armhf 1.0.2r-1~deb9u1 armhf Secure Sockets Layer toolkit - shared libraries ii libssl1.1:armhf 1.1.0j-1~deb9u1 armhf Secure Sockets Layer toolkit - shared libraries root@raspberrypi:~# cd /var/cache/apt/archives root@raspberrypi:/var/cache/apt/archives# ls -l total 4 -rw-r----- 1 root root 0 Apr 8 2019 lock drwx------ 2 _apt root 4096 Apr 8 2019 partial root@raspberrypi:/var/cache/apt/archives# cd root@raspberrypi:~# root@raspberrypi:~# ls -l total 8 drwx------ 2 root root 4096 Dec 8 14:00 Desktop drwxr-xr-x 3 root root 4096 Dec 8 19:56 phantomjs_pkg1 root@raspberrypi:~# root@raspberrypi:~# cd phantomjs_pkg1/ root@raspberrypi:~/phantomjs_pkg1# ls -l total 40640 -rw-r--r-- 1 root root 743942 Sep 13 2015 bison_2%3a3.0.4.dfsg-1_armhf.deb -rw-r--r-- 1 root root 413888 Jan 16 2017 flex_2.6.1-1.3_armhf.deb -rw-r--r-- 1 root root 137806 Aug 15 2015 gperf_3.0.4-2_armhf.deb -rw-r--r-- 1 root root 156550 Sep 8 07:08 icu-devtools_57.1-6+deb9u3_armhf.deb -rw-r--r-- 1 root root 432604 Sep 13 2015 libbison-dev_2%3a3.0.4.dfsg-1_armhf.deb -rw-r--r-- 1 root root 93038 Jan 16 2017 libfl-dev_2.6.1-1.3_armhf.deb -rw-r--r-- 1 root root 313136 Aug 31 2016 libfontconfig1_2.11.0-6.7_armhf.deb -rw-r--r-- 1 root root 877246 Aug 31 2016 libfontconfig1-dev_2.11.0-6.7_armhf.deb -rw-r--r-- 1 root root 28444 Jun 14 2016 libgdbm3_1.8.3-14_armhf.deb -rw-r--r-- 1 root root 7425372 Sep 8 07:08 libicu57_57.1-6+deb9u3_armhf.deb -rw-r--r-- 1 root root 15766882 Sep 8 07:08 libicu-dev_57.1-6+deb9u3_armhf.deb -rw-r--r-- 1 root root 109264 Oct 27 2016 libjpeg62-turbo_1%3a1.5.1-2_armhf.deb -rw-r--r-- 1 root root 180714 Oct 27 2016 libjpeg62-turbo-dev_1%3a1.5.1-2_armhf.deb -rw-r--r-- 1 root root 56150 Oct 21 2016 libjpeg-dev_1%3a1.5.1-2_all.deb -rw-r--r-- 1 root root 2836576 Nov 30 2018 libperl5.24_5.24.1-3+deb9u5_armhf.deb -rw-r--r-- 1 root root 263160 Apr 28 2019 libpng16-16_1.6.28-1+deb9u1_armhf.deb -rw-r--r-- 1 root root 231974 Apr 28 2019 libpng-dev_1.6.28-1+deb9u1_armhf.deb -rw-r--r-- 1 root root 129604 Apr 28 2019 libpng-tools_1.6.28-1+deb9u1_armhf.deb -rw-r--r-- 1 pi pi 2866580 Apr 28 2019 libruby2.3_2.3.3-1+deb9u6+rpi1_armhf.deb -rw-r--r-- 1 root root 28414 Mar 27 2016 libsigsegv2_2.10-5_armhf.deb -rw-r--r-- 1 root root 493138 Dec 10 2017 libsqlite3-0_3.16.2-5+deb9u1_armhf.deb -rw-r--r-- 1 root root 613156 Dec 10 2017 libsqlite3-dev_3.16.2-5+deb9u1_armhf.deb -rw-r--r-- 1 root root 898808 Mar 1 2019 libssl1.0.2_1.0.2r-1~deb9u1_armhf.deb -rw-r--r-- 1 root root 1159976 Mar 1 2019 libssl1.0-dev_1.0.2r-1~deb9u1_armhf.deb -rw-r--r-- 1 root root 184906 Jan 16 2017 m4_1.4.18-1_armhf.deb -rw-r--r-- 1 root root 218554 Nov 30 2018 perl_5.24.1-3+deb9u5_armhf.deb -rw-r--r-- 1 root root 1197914 Nov 30 2018 perl-base_5.24.1-3+deb9u5_armhf.deb -rw-r--r-- 1 root root 2722478 Nov 29 2018 perl-modules-5.24_5.24.1-3+deb9u5_all.deb -rw-r--r-- 1 pi pi 10768 Dec 22 2016 ruby_1%3a2.3.3_armhf.deb -rw-r--r-- 1 pi pi 188474 Apr 28 2019 ruby2.3_2.3.3-1+deb9u6+rpi1_armhf.deb drwxr-xr-x 3 root root 4096 Dec 8 20:07 tmp -rw-r--r-- 1 root root 767866 Apr 8 2019 wget_1.18-5+deb9u3_armhf.deb root@raspberrypi:~/phantomjs_pkg1# ls -l libssl* -rw-r--r-- 1 root root 898808 Mar 1 2019 libssl1.0.2_1.0.2r-1~deb9u1_armhf.deb -rw-r--r-- 1 root root 1159976 Mar 1 2019 libssl1.0-dev_1.0.2r-1~deb9u1_armhf.deb root@raspberrypi:~/phantomjs_pkg1# root@raspberrypi:~/phantomjs_pkg1# root@raspberrypi:~/phantomjs_pkg1# compile fishnish -bash: compile: command not found root@raspberrypi:~/phantomjs_pkg1# compile finish -bash: compile: command not found root@raspberrypi:~/phantomjs_pkg1# shutdown -h now Sending SIGTERM to remaining processes... Sending SIGKILL to remaining processes... Process 265 (plymouthd) has been marked to be excluded from killing. It is running from the root file system, and thus likely to block re-mounting of the root file system to read-only. Please consider moving it into an initrd file system instead. Powering off. Container virtualdesktop has been shut down. 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:~ $