<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Called "Thank you sir, may I please have another?" because I get bit in the a$$.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I left '-march=native' in the config of busybox and it took me a while to figure out why I was getting 'Illegal Instruction' on a Digital Ocean droplet after I deployed the disti.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
As a side note, I was able to deploy the LFS 7.7 as a custom image droplet after I did some work to mimic 'centos'.  Cloud Init tries to detect the disiti so it can do what it needs to do to set IP, keys, etc.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ale <ale-bounces@ale.org> on behalf of Steve Litt via Ale <ale@ale.org><br>
<b>Sent:</b> Tuesday, May 11, 2021 4:59 AM<br>
<b>To:</b> ale@ale.org <ale@ale.org><br>
<b>Cc:</b> Steve Litt <slitt@troubleshooters.com><br>
<b>Subject:</b> Re: [ale] Using a namespace to manage a chroot.</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Chris Fowler via Ale said on Sun, 9 May 2021 20:47:50 +0000<br>
<br>
>For years I've been running SSH via chroot inside Linux installs on my<br>
>workstation regardless of the version of Ubuntu the workstation<br>
>currently runs.  This allows me to upgrade my workstation, while still<br>
>compiling code inside a CentOS distribution.<br>
><br>
>At boot I'll do something like this to prepare each chroot.<br>
><br>
>START_PORT=55;<br>
>for ii in CentOS-5-1 CentOS5-2 LFS-7.7; do<br>
>  for iii in dev dev/pts proc sys; do<br>
>    TEMPLATE="/opt/devel/${ii}"<br>
>     mount -o bind /${iii} ${TEMPLATE}/${ii}<br>
>     sed -i 's#^Port 22.*$#Port '${START_PORT}'#g'<br>
> ${TEMPLATE}/etc/ssh/sshd_config chroot ${TEMPLATE}/${ii}<br>
> /etc/init.d/sshd start START_PORT=$(( ${START_PORT} + 1 ))<br>
>  done<br>
>done<br>
><br>
>After boot,  My Ubuntu 18.04 workstation will be running 3 other<br>
>distributions.  I'll use SSH to access them as a regular user.  Tmux<br>
>automatically runs on first login, other logins will attach to that<br>
>session.<br>
<br>
This is cool as hell. I don't fully understand it, but I like it.<br>
And it looks like it would be handy for other things besides chroot<br>
installations. Would you be able to give an online presentation of this<br>
at the next GoLUG online meeting, via Jitsi, at 7pm the first Wednesday<br>
of June?<br>
<br>
Thanks,<br>
<br>
SteveT<br>
<br>
Steve Litt <br>
Spring 2021 featured book: Troubleshooting Techniques of the Successful<br>
Technologist <a href="http://www.troubleshooters.com/techniques">http://www.troubleshooters.com/techniques</a><br>
_______________________________________________<br>
Ale mailing list<br>
Ale@ale.org<br>
<a href="https://mail.ale.org/mailman/listinfo/ale">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br>
</div>
</span></font></div>
</body>
</html>