Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 16:46
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
The debootstrapDebian within Puppy project
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
dancytron

Joined: 18 Jul 2012
Posts: 941

PostPosted: Sun 06 Aug 2017, 18:26    Post subject:  

So, to understand your screenshot, the desktop in the background is Puppy and Synaptic is running in a window?

So you didn't have to install a desktop like openbox in Ubuntu?

If I am right so far, does the mean that xorg is just in Puppy too?
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Sun 06 Aug 2017, 18:28    Post subject:  

dancytron wrote:
So, to understand your screenshot, the desktop in the background is Puppy and Synaptic is running in a window?

So you didn't have to install a desktop like openbox in Ubuntu?

If I am right so far, does the mean that xorg is just in Puppy too?


Correct on all counts dancytron.

wiak
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Sun 06 Aug 2017, 23:27    Post subject: XSlackoSlim running Debian Stretch  

Final screenshot for now is of the 32-bit Debian Stretch install created using debootstrap on Puppy Slacko64 ver 6.3.2 being now run under XSlackoSlim.

Also shows Synaptic Debian Package Manager and Guvcview webcam control/viewer with these Debian Stretch apps appearing in windows on the XSlackoSlim X display. I also tried building a Debian Stretch on XSlackoSlim using debootstrap but the build crashed out (broken pipe) midway through - might have just been bad luck and didn't have time to try again so just used the Slacko64 Debian Stretch build.

EDIT: Tried building a 32-bit Debian Stretch using debootstrap under mistfire's XSlackoSlim again, and got a clean Build this time, so no problem. Like Puppy Racy, however, you have to temporarily remove /lib: from the LD_LIBRARY_PATH before running the debootstrap command. That workaround is described in more detail here:

http://murga-linux.com/puppy/viewtopic.php?p=963323#963323

wiak
DebianStretchRunningUnderXSlackoSlim.png
 Description   Debian Stretch running under XSlackoSlim
 Filesize   174.1 KB
 Viewed   603 Time(s)

DebianStretchRunningUnderXSlackoSlim.png


Last edited by wiak on Sun 06 Aug 2017, 23:44; edited 1 time in total
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 941

PostPosted: Sun 06 Aug 2017, 23:29    Post subject:  

wiak wrote:
dancytron wrote:
So, to understand your screenshot, the desktop in the background is Puppy and Synaptic is running in a window?

So you didn't have to install a desktop like openbox in Ubuntu?

If I am right so far, does the mean that xorg is just in Puppy too?


Correct on all counts dancytron.

wiak


Very cool.

I'll have to think about a real life use.
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3012
Location: Worcestershire, UK

PostPosted: Mon 07 Aug 2017, 02:56    Post subject:  

wiak wrote:
Hi Peebee,
it does appear you have the /lib in LD_LIBRARY_PATH issue.
1. Is that a Slacko Pup or an actual Slackware?
Let me know how it goes!
wiak

Hi wiak

My base system is LxPupSc which is a 32-bit woof-ce build and very similar to Slacko but built with Slackware Current components.

With /lib removed from LD_LIBRARY_PATH your runes ran to completion - many thanks.

I then tried to run Fred's mklive-stretch script on the resulting system - this also appeared to work - an iso was duly produced - but there are some oddities and the system does not boot....will have to seek Fred's advice on that....

Cheers
peebee

p.s. if you change the 2 code blocks in post #1 to:
Code:
mount --bind /proc chroot/proc && mount --bind /dev chroot/dev && mount --bind /sys chroot/sys && mount -t devpts devpts chroot/dev/pts && cp /etc/resolv.conf chroot/etc/resolv.conf

umount chroot/proc && umount chroot/dev/pts && umount chroot/dev && umount chroot/sys
then you can copy and paste them directly into the terminal....
_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 2594
Location: holland

PostPosted: Mon 07 Aug 2017, 13:04    Post subject:  

Hi peebee,

Quote:
I then tried to run Fred's mklive-stretch script on the resulting system - this also appeared to work - an iso was duly produced - but there are some oddities and the system does not boot....will have to seek Fred's advice on that....


Yes, one reason for failing anyway was that it could work only from a host OS with exactly the same kernel version that Stretch has by default, that I fixed now, so good chance it works on a Puppy also now.
See also here:
http://murga-linux.com/puppy/viewtopic.php?p=963466#963466
Besides debootstrap it requires mksquashfs and xorriso, isolinux (on Debian 'isolinux' is package, don't know about slackware) (for ISO creating)

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2594
Location: holland

PostPosted: Mon 07 Aug 2017, 18:15    Post subject:  

Hi wiak, all,

Here's easy way to exclude /lib from LD_LIBRARY_PATH
Just run this before running debootstrap build in same terminal session:
Code:
NEW_LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed -e 's#:/lib##')
export LD_LIBRARY_PATH=$NEW_LD_LIBRARY_PATH


Btw, how did you find out excluding /lib does the trick, why /lib shouldn't be in the library path ?

Tested now on puppy X-Tahr and successful debootstrap build in chroot.
And... new mklive-stretch works fine also on X-Tahr Smile (probably on most newer puppies, I guess)
Only the ISO creation failed because I didn't have xorriso installed.

EDIT: Above code for remove /lib doesn't work if /lib is at beginning of the path, so better:

Code:
echo $LD_LIBRARY_PATH # check if it has /lib
if [ $(echo $LD_LIBRARY_PATH | grep "^/lib") ]; then
NEW_LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed -e 's#/lib:##')
export LD_LIBRARY_PATH=$NEW_LD_LIBRARY_PATH

elif [ $(echo $LD_LIBRARY_PATH | grep ":/lib") ]; then
NEW_LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed -e 's#:/lib##')
export LD_LIBRARY_PATH=$NEW_LD_LIBRARY_PATH
fi
echo $LD_LIBRARY_PATH # check if it is without /lib now


Still may not cover all cases though...

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Tue 08 Aug 2017, 21:48    Post subject:  

fredx181 wrote:

Btw, how did you find out excluding /lib does the trick, why /lib shouldn't be in the library path ?


Thanks for the code Fred (link to your post now in first post of thread).

As for /lib trick. I checked the debootstrap.log and it said something about couldn't change libc6 cos of /lib in path or something like that. So I just tried removing it from LD_LIBRARY_PATH, and to be honest, was shocked/surprised that did the trick.

EDIT: since you asked, I have since googled and found a reference (though as I said I basically just stumbled on solution myself without google for a change...):

http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/

Poster Wocky mentions /lib issue it in above thread.

wiak
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Tue 08 Aug 2017, 23:14    Post subject:  

By the way, there is also:

arch-bootstrap, pacstrap, arch-chroot, and similar tools/methods for Arch Linux installs. I've also come across a archstrap (via google).

https://github.com/tokland/arch-bootstrap

https://wiki.archlinux.org/index.php/Install_from_existing_Linux

Or for creating several distributions types there is a Python program:

https://github.com/hartwork/image-bootstrap (also mentioned on the archlinux wiki link above).

wiak
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Wed 09 Aug 2017, 20:36    Post subject:  

peebee wrote:

My base system is LxPupSc which is a 32-bit woof-ce build and very similar to Slacko but built with Slackware Current components.

With /lib removed from LD_LIBRARY_PATH your runes ran to completion - many thanks.

I then tried to run Fred's mklive-stretch script on the resulting system - this also appeared to work - an iso was duly produced - but there are some oddities and the system does not boot....


Solution here:

http://www.murga-linux.com/puppy/viewtopic.php?p=963751#963751

wiak
Back to top
View user's profile Send private message 
jd7654

Joined: 06 Apr 2015
Posts: 256

PostPosted: Thu 10 Aug 2017, 05:13    Post subject:  

Just tried it on Slacko 6.3.2, ran into the /lib error issue. Removed /lib variable and ran the debootstrap and then put it back.

From the base Debian, I just installed x11-apps for a small quick test of xclock and xcalc in the chroot. Yep, that works. Neat!

I put the commands all into one script called enter-chroot inside the target directory so it would automatically clean itself up on exit:

Code:
#!/bin/bash

mount --bind /proc chroot/proc
mount --bind /tmp chroot/tmp
mount --bind /dev chroot/dev
mount --bind /sys chroot/sys
mount -t devpts devpts chroot/dev/pts
cp /etc/resolv.conf chroot/etc/resolv.conf

chroot chroot
export LC_ALL=C

umount chroot/tmp
umount chroot/proc
umount chroot/dev/pts
umount chroot/dev
umount chroot/sys



Exited Slacko 6.3.2 and rebooted into Tahr 6.0.5 and did the enter-chroot, and the chroot worked right where I left off.

This reminds me of David Schneider's crouton for chroot of ChromeOS with Ubuntu. I had that a few years ago on an old Chromebook, but ended up getting rid of it.
Would be interesting to see if can get this chroot to look and work like that.

Edit: Didn't see that Fred had already made one which is more complete, changed slightly and updated.

Last edited by jd7654 on Thu 10 Aug 2017, 14:59; edited 5 times in total
Back to top
View user's profile Send private message 
jd7654

Joined: 06 Apr 2015
Posts: 256

PostPosted: Thu 10 Aug 2017, 14:13    Post subject:  

New test of chroot with Quirky 8.3 frugal looks good.

Have Debian Stretch amd64 with Xfce4 desktop running inside (on top of) Quirky Xerus 8.3 JWM/Rox desktop. It works! Can run any Quirky app alongside Debian/Xfce app on same desktop.

Just so happens that one menu is on top and the other is on the bottom, so can use both. But Desktop JWM/Rox and drive icons are obscured.

Next step would be getting Xfce to run in a window.
debian-chroot-in-quirky-800.jpg
 Description   
 Filesize   71.01 KB
 Viewed   301 Time(s)

debian-chroot-in-quirky-800.jpg

Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 372
Location: not Bulgaria

PostPosted: Thu 10 Aug 2017, 16:12    Post subject:  

jd7654 wrote:
New test of chroot with Quirky 8.3 frugal looks good.

Have Debian Stretch amd64 with Xfce4 desktop running inside (on top of) Quirky Xerus 8.3 JWM/Rox desktop. It works! Can run any Quirky app alongside Debian/Xfce app on same desktop.

Just so happens that one menu is on top and the other is on the bottom, so can use both. But Desktop JWM/Rox and drive icons are obscured.

Next step would be getting Xfce to run in a window.


Good and interesting example builds, jd7654, and crouton project link very informative too. I've linked to your start/stop debootstrapDebian system script in first post of this thread (at end of step 4: making the bind mounts). I like to keep this simple version of the setup (which your script contributes nicely to) but I have also now downloaded crouton with view towards maybe making a version for Puppy/Linux-in general or at least to get ideas from there.

Note that I'm not much of a programmer, though I can bash script reasonably. However, the crouton MAKEFILE is way beyond my level of understanding. That may be a good thing though, since Fred has demonstrated in his DebianDog-like Stretch build system that a simple bash build script is much more usable/modifiable by many Puppy forum members than any more complex system - I'd hope we can do something similar for simply running Linux variants under a Puppy chroot. Of course we can also use the likes of yad for simple GUI (and less likely: gtkdialog, which doesn't seem to be maintained much any longer). I certainly think it is much easier on actual linux systems than getting such to work on Chromium OS (hence so much work in crouton maybe).

Here again is the crouton github link jd7654 gave:

https://github.com/dnschneid/crouton

EDIT: Actually, looking at some of the crouton desktop-related build scripts, you might find some useful stuff in there too for your mklive build script Fred. For example, in crouton-master/targets/ folder.

wiak
README.md.tar
Description  crouton README. Just remove the dummy tar.
tar

 Download 
Filename  README.md.tar 
Filesize  14.26 KB 
Downloaded  20 Time(s) 
Back to top
View user's profile Send private message 
jd7654

Joined: 06 Apr 2015
Posts: 256

PostPosted: Thu 10 Aug 2017, 18:25    Post subject:  

Yeah, crouton was pretty cool. I guess thats the kind of stuff those Google employees create in their personal time.

I had a vague awareness of chroot, and had used it a few times to do manual Arch Linux install. But never really knew what it could do until I got a chromebook and installed crouton. Very slick. Main benefit is that you cannot easily install Linux on Chromebook with stock BIOS, but with crouton, you didn't really need to. You just use the chromebook for what it does best: Chrome, Gmail and Youtube, and then instantly flip over to Ubuntu chroot and have full apps suite available to you.
Back to top
View user's profile Send private message 
jd7654

Joined: 06 Apr 2015
Posts: 256

PostPosted: Fri 11 Aug 2017, 19:28    Post subject:  

Just informational:(I'm not really playing around with this anymore)

If simple chroot and run some commands and lite x-apps, chroot exited cleanly.
If launch startxfce4, many stuck processes and /dev,/proc won't unmount. Tried some other mount options but no clean fix found. Others are welcome to try.

Code:
# exit
umount: can't unmount /mnt/sda5/DebStretch/chroot/proc: Device or resource busy
umount: can't unmount /mnt/sda5/DebStretch/chroot/dev: Device or resource busy
# fuser -m chroot/dev
/mnt/sda5/DebStretch/chroot/dev:   408  1714  1726  1753  2154  2952  2974m  3144  3146  3164  3191  3292  3293  3306  3331  3333  3335  3337  3399  3401  3491  3494  3597  3600  3825  3831  3897  5189  5706  5894  5993  5994  8761  8762  8764  8803  8805  8818  8821  8844  8876  8882
# fuser -m chroot/proc
/mnt/sda5/DebStretch/chroot/proc:     2e     4e     5e     6e     7e     8e     9e    10e    11e    12e    13e    14e    15e    16e    17e    18e    19e    20e    21e    22e    23e    24e    25e    26e    27e    28e    29e    30e    31e    56e    57e    58e    59e    60e    61e    62e    63e    64e    65e    66e    67e    68e    69e    70e    71e    72e    73e    74e    75e    76e    77e    78e    79e    80e    81e    82e    83e    85e    86e    87e    88e    97e   100e   113e   114e   115e   120e   123e   188e   199e   221e   257e   274e   406e  1050e  1074e  1108e  1213e  1214e  1215e  1221e  2974  7313e  8326e  8327e  8433e  8818  8876
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [53 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1031s ][ Queries: 14 (0.0097s) ][ GZIP on ]