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 Mon 18 Nov 2019, 23:50
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
FirstRib default WeeDog Linux build system
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 48 [710 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 46, 47, 48 Next
Author Message
wiak

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

PostPosted: Sun 26 May 2019, 17:44    Post subject:  

NOTE: This post is now obsolete. Now using Void base-files template package to initialise /etc/passwd etc.

Version 0.0.2 of the build script uploaded to first post of this thread.

Changes:

includes code to make initial /etc/passwd and /etc/group files:

Code:
echo "root:x:0:" >/etc/group
echo "root::0:0:FirstRib Admin:/root:/bin/sh" >/etc/passwd


and also prints version or help (point to github site) if requested, using simple code:

Code:
case "$1" in
   '-v'|'--version') echo "FirstRib version 0.0.2";exit;;
   '-h'|'--help'|'-?') echo "For usage visit webpage: https://github.com/firstrib/firstrib";exit;;
esac


I've hoping to not have to add much more (if anything) to FirstRib module build script itself, since keeping as simple to understand as possible.

Additions to the system, such as an initramfs/initrd will be separate modules.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130

Last edited by wiak on Sun 04 Aug 2019, 08:03; edited 2 times in total
Back to top
View user's profile Send private message 
wanderer

Joined: 20 Oct 2007
Posts: 1112

PostPosted: Sun 26 May 2019, 22:20    Post subject:  

hi wiak

this is my report on firstrib on tinycore

i have been unable to build it
because tinycore 9
has become excessively picky and unreliable
about allowing the setting of passwds
and becoming global root

so for now its a no go
until i figure out the passwd-root issue

thats one thing i like about puppy
it runs by default as root
the only person a passwd has ever kept out of my system is me

will continue to experiment and report

wanderer
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1281
Location: Connecticut, United States

PostPosted: Mon 27 May 2019, 00:19    Post subject:  

I used the most recent script and again created a directory /mnt/sda1/FirstRib-2
I ran the 64 bit script from a Bionic64-v8 host

I installed bash, xorg-minimal xorg-fonts xf86-input-synaptics xf86-video-intel and then leafpad.....all of it works well.

also the terminal functions normally again
Back to top
View user's profile Send private message Visit poster's website 
wiak

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

PostPosted: Mon 27 May 2019, 01:59    Post subject:  

rockedge wrote:

I installed bash, xorg-minimal xorg-fonts xf86-input-synaptics xf86-video-intel and then leafpad.....all of it works well.

also the terminal func


That's good news, rockedge, thanks. I presume you are using it from the chroot and not via some initramfs to boot it independently. If so, how are you sure that leafpad isn't just using the host's X window system, which is what would normally be the case?

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Mon 27 May 2019, 05:39    Post subject:  

EDIT: fix to backspace in bash at console was to install ncurses-base

Actually, I'm still having trouble with backspace after installing bash (history mechanism is working okay). It's strange, because I thought I tested that earlier and it was working - maybe I've done something daft this time round. Anyone else noticed backspace issue after installing bash and, if so, have you found fix?

I've been busy making simplest possible initramfs version of FirstRib today - just to show it can be booted on its own. That much has worked, though without pre-installing, for example, wifi components, the result is just a proof of concept since just running then in RAM with no internet (and not thus able to use xbps with that one). I'm just doing that simple version (where initial firstrib_rootfs is part of the initramfs), along with void linux kernel, to illustrate how initramfs works at its simplest. But the one I'm experimenting with doesn't, for example set up overlays for save persistence, so just showing the rootfs booting and running in RAM only. Later, I'll add the overlayfs extras and most likely do a switch_root to firstrib_rootfs itself (one that may have wifi and more components added or available via sfs layer).

I'd publish that quick initramfs soon except I want to fix that bash backspace issue if I can first, hence my hoping I'm just imagining it... or that someone else has solved the problem in the meantime.

EDIT: cursor key history mechanism working with bash but not backspace key (i.e. when /bin/sh -> bash). Backspace key working with dash, but not history mechanism (i.e. when /bin/sh -> dash). Both histroy mechanism and backspace key working when /bin/sh -> busybox. Maybe something to do with not using getty here, and no actual login, though busybox sh certainly works fine... Oh well. I haven't had time to study how these mechanisms work and I better publish my simplest initramfs notes some time tomorrow, if I get round to that, before I forget the details. Takes time to write the steps though, and alas I suddenly hit with heavy cold/flu so not feeling like it right now. But I'll come back to it soonish if not quick.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130

Last edited by wiak on Sun 04 Aug 2019, 08:04; edited 1 time in total
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Mon 27 May 2019, 08:54    Post subject:  

watchdog wrote:
I have been keeping experimenting with a precise chroot jail taking suggestions from this thread and rufwoof posts.

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

Here is a collection of scripts to run some software from every puppy in the jail:


Sorry for the delay in responding watchdog. I was a bit bogged down on varous matters. Thanks a lot - I'm sure these recipes will come in very useful at some stage.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2158

PostPosted: Mon 27 May 2019, 09:48    Post subject:  

The backspace key issue might just be due to differences between the host and guest system. I had a similar issue with TazPup64 in a chroot with Slacko64.6.9.9.9 as the host but the issue went away when I actually booted up TazPup64.
_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
wiak

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

PostPosted: Mon 27 May 2019, 09:54    Post subject:  

Thanks s243a. We'll find out eventually then.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1281
Location: Connecticut, United States

PostPosted: Mon 27 May 2019, 11:17    Post subject:  

Quote:
If so, how are you sure that leafpad isn't just using the host's X window system, which is what would normally be the case?


Yes.
I think there are 2 leafpad's. The FIrstRib version is in /bin and the host system is /usr/bin
Screenshot(29).png
 Description   
 Filesize   63.8 KB
 Viewed   422 Time(s)

Screenshot(29).png

Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2158

PostPosted: Mon 27 May 2019, 11:53    Post subject:  

rockedge wrote:
Quote:
If so, how are you sure that leafpad isn't just using the host's X window system, which is what would normally be the case?


Yes.
I think there are 2 leafpad's. The FIrstRib version is in /bin and the host system is /usr/bin


I think the actual XServer comes from the host but maybe some Xorg libs that interface with the server need to be on the guest.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1281
Location: Connecticut, United States

PostPosted: Mon 27 May 2019, 14:36    Post subject:  

@s243a

I think you are correct. The X server is probably running with components from both the host and the chroot'ed file system.
But without the Xorg stuff installed in FirstRib leafpad wouldn't run.

I used in the FirstRib shell -> export DISPLAY=:0.0
then in the host -> xhost +

back in the FirstRib terminal then started /bin/leafpad and then using the menu File->Open looked around......leafpad could not see the host system's files
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1281
Location: Connecticut, United States

PostPosted: Mon 27 May 2019, 16:14    Post subject:  

I have FirstRib running in a nested x-server using JWM
Screenshot(33).png
 Description   
 Filesize   98.95 KB
 Viewed   387 Time(s)

Screenshot(33).png

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

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

PostPosted: Mon 27 May 2019, 16:20    Post subject:  

rockedge wrote:

I think there are 2 leafpad's. The FIrstRib version is in /bin and the host system is /usr/bin
Yes that is correct. You only need to install leafpad and its dependencies though (including some fonts or menus won't show up correctly). There are a lot of X-related dependencies, including whole gtk+ needed by leafpad. Once chroot is entered that acts like a jail of course so leafpad will indeed not see files outside of firstrib_rootfs.

As for backspace key and bash... If, starting from scratch build you install base-system, which is pretty much the whole of void Linux commandline-related stuff you should find backspace then working in bash.

xbps-install -Su base-system

So need to find out why. Not easy... Maybe the file /etc/login.defs is read by bash. That file in base-system contains definition of backspace key as a code. I'm in bed cos of flu so haven't tried simply making copy of that in basic firstrib, might be more needed anyway.

wiak

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Mon 27 May 2019, 16:21    Post subject:  

Nested X server nice. Rufwoof also posted about that and also pflask somewhere.

EDIT, about pflask, here:

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

But see my post immediately below regarding Void Linux's own lightweight container system implementation.

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130

Last edited by wiak on Thu 30 May 2019, 04:18; edited 3 times in total
Back to top
View user's profile Send private message 
wiak

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

PostPosted: Mon 27 May 2019, 16:30    Post subject:  

Void Linux does provide its own lightweight container system - I think I posted link about that earlier or search void wiki/docs. As far as nesting X goes there is older xnest and also xephyr.

EDIT:
https://voidlinux.org/news/2017/12/advent-containers.html

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130

Last edited by wiak on Thu 30 May 2019, 04:06; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 48 [710 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 46, 47, 48 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.1047s ][ Queries: 12 (0.0122s) ][ GZIP on ]