Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
#######
#
# E-scripts on mmdebstrap.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
# An introduction to eev can be found here:
#
#   (find-eev-quick-intro)
#   http://anggtwu.net/eev-intros/find-eev-quick-intro.html
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://anggtwu.net/e/mmdebstrap.e>
#           or at <http://anggtwu.net/e/mmdebstrap.e.html>.
#        See also <http://anggtwu.net/emacs.html>,
#                 <http://anggtwu.net/.emacs[.html]>,
#                 <http://anggtwu.net/.zshrc[.html]>,
#                 <http://anggtwu.net/escripts.html>,
#             and <http://anggtwu.net/>.
#
#######



# «.debian-13-minimal»		(to "debian-13-minimal")
# «.mmdebstrap»			(to "mmdebstrap")



# (find-status   "squashfs-tools-ng")
# (find-vldifile "squashfs-tools-ng.list")
# (find-udfile   "squashfs-tools-ng/")




#####
#
# debian-13-minimal (broken)
# 2024may23
#
#####

# «debian-13-minimal»  (to ".debian-13-minimal")
# https://github.com/cyberitsolutions/bootstrap2020/blob/twb/debian-13-minimal.py
# https://raw.githubusercontent.com/cyberitsolutions/bootstrap2020/twb/debian-13-minimal.py
# (find-fline "~/LOGS/2024may23.emacs" "debian-13-minimal.py")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
# (find-fline "/tmp/twb/")
rm -Rv /tmp/twb/
mkdir  /tmp/twb/
cd     /tmp/twb/
wget https://raw.githubusercontent.com/cyberitsolutions/bootstrap2020/twb/debian-13-minimal.py
chmod 755 debian-13-minimal.py
./debian-13-minimal.py





#####
#
# mmdebstrap (broken)
# 2024may23
#
#####

# «mmdebstrap»  (to ".mmdebstrap")
# (find-status   "mmdebstrap")
# (find-vldifile "mmdebstrap.list")
# (find-udfile   "mmdebstrap/")
# (find-fline "~/LOGS/2024may23.emacs" "mmdebstrap bookworm")
# (find-fline "~/LOGS/2024may23.emacs" "short-lived mmdebstrap containers")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
# (find-fline "/tmp/twb/")
rm -Rv /tmp/twb/
mkdir  /tmp/twb/
cd     /tmp/twb/
# mmdebstrap bookworm /dev/null \
mmdebstrap   bookworm /tmp/mmdebstrap-mydir \
  --include=emacs-nox \
  --aptopt='Acquire::http::Proxy "http://localhost:3142"' \
  --customize-hook='env -i TERM="$TERM" PATH=/bin:/sbin chroot $1 emacs; false'

# (code-c-d "mmdebstrapmy" "/tmp/mmdebstrap-mydir/")
# (find-mmdebstrapmyfile "")
# (find-mmdebstrapmysh "du -ch")






* (eepitch-subdebian)
* (eepitch-kill)
* (eepitch-subdebian)
xterm
#sudo systemctl restart sshd
exit

cat /etc/hostname
ls -lAF /home/edrx/
echo $PS1
hostname

systemctl restart sshd


https://stackoverflow.com/questions/61590691/the-xauthority-file-is-not-does-not-existhence-via-local-ssh-connection-displa









* (eepitch-shell3)
* (eepitch-kill)
* (eepitch-shell3)
     machinectl list
sudo machinectl start debian
     machinectl list
sudo machinectl poweroff debian
     machinectl list


sudo /usr/sbin/sshd -p 4444 ; ps ax | grep ssh
sudo /usr/sbin/sshd -p 4444 ; ps ax | grep ssh


  mkdir -p /run/sshd     ; ps ax | grep ssh
  /usr/sbin/sshd -p 4444 ; ps ax | grep ssh
  /usr/sbin/sshd -p 4444 ; ps ax | grep ssh
  # killall sshd         ; ps ax | grep ssh
















Missing privilege separation directory: /run/sshd
https://askubuntu.com/questions/1110828/ssh-failed-to-start-missing-privilege-separation-directory-var-run-sshd

# allow login via local tty # may not be needed any more
# 'pts/0' seems to be used when doing systemd-nspawn --boot, 'pts/1' with machinectl login
root@debian:~# printf 'pts/0\npts/1\n' >> /etc/securetty  

# logout from container
root@debian:~# logout
Container debian exited successfully.
Booting a Container

(find-es "ssh" "x11-forwarding")





#  Local Variables:
#  coding:               utf-8-unix
#  End: