ArchPup - Puppy based on Arch Linux

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#166 Post by mavrothal »

stifiling wrote: It FRIGGIN' works DUDE
Actually it does not!
Yes, does not crash but also will not save the data at shutdown since ArchPup does not have the snapmergepuppy and its associates.
Plan B below works (with caveats).
stifiling wrote: But I myself like to remaster a 'clean base' arch-1204.sfs
For that you must also change the initrd/init and comment out lines 867-869 that read

Code: Select all

[ "$REMOVABLEDRVSAVE" = "1"  -a  "$PMEDIA" != "usbhd" ] && PUPMODE=13  #110116 shinobar.
  [ "$PMEDIA" = "usbflash" ] && PUPMODE=13 #v404 fix classmate, with internal usb flash.
  [ "$PMEDIA" = "ataflash" ] && PUPMODE=13 #w019 constrain writes to internal flash drv.
and repackage the initrd.gz

However, in this cases removing the stick while working will crash the machine (will be like removing your hard drive!). That's why in pupmode 13 the RW layer is in tempfs and not in pupsave (and actually this is the reason that you get the kernel panic).

So despite oui's delirium, making the savefile process more puppy-like is the way to go here (and there are some nice pets to do that) if you want a USB-portable ArchPup.
But I'll leave that to simargl
Last edited by mavrothal on Thu 13 Dec 2012, 08:20, edited 1 time in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#167 Post by stifiling »

@mavrothal

hmm...the snapmergepuppy script is returning the error "find: unrecognized: -mount"

would u happen to know the way around that?

I'm presently using:
rsync -avz /initrd/pup_rw/* /initrd/pup_ro1

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#168 Post by mavrothal »

stifiling wrote:@mavrothal

hmm...the snapmergepuppy script is returning the error "find: unrecognized: -mount"
I can imagine that...
From the top of my head (unfortunately I will not be able to use archpup till next week), I would think you may need to rename the /bin/mount binary to /bin/mount-FULL (assuming that in ArchPup is the original and not a link to busybox) and copy the /bin/mount script from a recent puppy.
Also check if /bin/find is the full version or a symlink to busybox. You need the full version
In addition you may need aufs-utils.

Finally, snapmerge is using the ash shell. I'm not sure what is the status of ash in Archpup, but in puppy is a symlink to bash. You may want to change "#!/bin/ash" to "#!/bin/bash" at the first line of snapmerge script, to be sure.
Also change ~line 49

Code: Select all

[ "`echo "$RUNPS" | grep 'pup_event_frontend_d'`" != "" ] && XRUNNING="yes" #v4.01 v409
to

Code: Select all

[ "`echo "$RUNPS" | grep 'pup_volume_monitor'`" != "" ] && XRUNNING="yes" #v4.01 v409
(check with `ps' to make sure that "pup_volume_monitor" is the correct name)

While at it add also "set -x" as a second line in snapmerge. If you then run it from the terminal, will tell you exactly what it is doing and hopefully where the problem may be.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

mrgreen
Posts: 7
Joined: Mon 28 May 2012, 06:41

ArchPup

#169 Post by mrgreen »

Very interested to know how to get involved. Got linked to iso this morning on ArchBang forums. Currently ArchBang weighs in around ~571mb, imagine my shock at seeing a similar desktop at 78mb.

Are there any guides, link or tutorials to see how Archpup is created?

Am assuming you are running a custom kernel/udev and not running systemd

oui

Re: ArchPup

#170 Post by oui »

Hi mrgreen
mrgreen wrote:Very interested to know how to get involved. Got linked to iso this morning on ArchBang forums. Currently ArchBang weighs in around ~571mb, imagine my shock at seeing a similar desktop at 78mb.

Are there any guides, link or tutorials to see how Archpup is created?

Am assuming you are running a custom kernel/udev and not running systemd
pls erase the content of one of both messages (you can!)

your question:
simargl wrote:Hi, it's not made with woolf2 but use settings from rootfs-skeleton
inside woof.
To make it I used 3 scripts:
- spkg package manager which uses def-scripts to create packages
similiar to arch PKGBUILD or slitaz receipt
-paka is script to convert arch linux packages into spkg.
For all compiled or converted packages this creates folder inside
/var/lib/pacman/local in format $NAME-$VERSION-$REVISION,
so pacman will recognize them as installed.
-finally script called arch is used to extract packages,
create needed busybox links, move some libriaries to /lib,
split development files and create arch-1204.sfs

https://bitbucket.org/simargl
see also the next message from simargl at page 2

and see more here: https://bitbucket.org/simargl/archpup

Kind regards

simargl

#171 Post by simargl »

Just some quick notes to make thing clearer.
Arch Linux is rolling release, but ArchPup is not, it uses packages from rollback machine and
fixed date 2012/04/30. You could make it rolling release by changing /etc/pacman.d/mirrorlist,
but I would not suggest that, it could break your system, ask you to download 500MB of
packages etc.
New version will be 12.12, it's finished, but has some problems with udev (surprise :roll: )
not loading modules, that needs some investigating. For this release I had to recompile pango
and downgrade it to 1.30.1, to eliminate dependency on harfbuzz and icu or else it would add
7MB to iso. New openbox-menu package don't have option to hide menu icons, and sometimes
it just freeze openbox, mouse is not functional and only option is to change to tty2 and reboot.
For problems with save file on USB, I will need some help from experienced users, simply
because I can't fix it myself. You see that rc.shutdown in ArchPup is very different than in other
Puppy, my idea is to, from that file with if statement (PUPMODE=13) call other script and
make savefile (add data to it) only on reboot/shutdown, if someone needs to save on USB .
New version 12.12-alpha will be released when this is fixed, or maybe it will be 13.01, I'm not sure.
ArchPup 12.12 screenshot below. :)

bark_bark_bark
Posts: 1885
Joined: Tue 05 Jun 2012, 12:17
Location: Wisconsin USA

#172 Post by bark_bark_bark »

can you add an installer atleast?
....

mrgreen
Posts: 7
Joined: Mon 28 May 2012, 06:41

#173 Post by mrgreen »

As Arch uses systemd by default now updating is going to break it. Still think its amazing just for its sheer small size :).

Going to sift through your git see if I can help.

Openbox-menu removed the option to turn off icons quite a while ago, I know the developer said it could be built with the option [not tried it!] Currently I use it as a daemon from autostart [due to recent menu-cache update]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#174 Post by mavrothal »

simargl wrote: New version will be 12.12, it's finished, but has some problems with udev (surprise :roll: )
Couldn't see any kernel related info/changes in bitbucket.
Are you using the previous one?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

simargl

#175 Post by simargl »

Problem with loading modules is that modprobe somehow don't find libkmod.so.2 which
is inside /lib as symlink to libkmod.so.2.2.1. If I add ldconfig in rc.sysinit, then it works, but that
command should be run only once (not on every boot like now) if you boot with save file, but
always if not using savefile. Also I added grub4dosconfig so installation to hard disk or usb (it supports usb also) will
now be possible, and moved squash-tools from arch-dev to arch-base to make it possible to remaster without dev sfs or using pacman..

edit: If someone is having problems with pwireless2, is there alternative program you can
suggest. I don't need just its name, but also you to test that program, and if you think that
it is better, I will add it, instead of pwireless2.

User avatar
T_Hobbit
Posts: 400
Joined: Sat 27 May 2006, 10:50
Location: Portugal - Lisbon

#176 Post by T_Hobbit »

simargl wrote: edit: If someone is having problems with pwireless2, is there alternative program you can
suggest. I don't need just its name, but also you to test that program, and if you think that
it is better, I will add it, instead of pwireless2.
Why not use the original SNS from Puppy?
T_Hobbit
:idea: Rebuilding old DOS Machine for Wing Commander Privateer and Puppy :!: Old spare parts to give away - anyone interested :?:

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#177 Post by stifiling »

simargl wrote:edit: If someone is having problems with pwireless2, is there alternative program you can
suggest. I don't need just its name, but also you to test that program, and if you think that
it is better, I will add it, instead of pwireless2.
my vote is for Frisbee...but i had problems getting it working. i had it working mostly though, kinda gave up too soon and installed wicd.

User avatar
phil66
Posts: 42
Joined: Wed 26 Dec 2007, 02:30
Location: Texas

Startup of archpup-1204-2 from cd

#178 Post by phil66 »

Downloaded archpup-1204-2.iso
Checked md5sum matched
burn't to cd/rw

Starts to boot then I get the error

"arch-1204.sfs not found
dropping out to initial-ramdisk console
Then I get a prompt

Where did I go wrong on this download ???

simargl

#179 Post by simargl »

Hi phil,
I think it's probably disc-burning error, if you have windows os try to use unetbootin and
make bootable usb (that worked for me), or you can test iso in virtualbox.

@stifiling can you please do some more tests with Frisbee if you have time. I'm thinking to
add that instead of pwireless, because Frisbee is newer and it shows eth0 info correctly,
thats all I can test.

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

frisbee

#180 Post by anikin »

Hi simargl,

regarding frisbee, let me quote pemasu's introduction to his newly released Upup Precise 5.4.X.5:
Last but not the least is the new Frisbee - dhcpcd - sns integrated network manager-connectivity framework, created by rerwin, using Jemimah`s work, existing puppy scripts with modifications.


Please, read more here:http://murga-linux.com/puppy/viewtopic. ... 061#671061

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#181 Post by Keef »

simargl

I can't exit X. 'Logout' (openbox --exit) just restarts X, and Ctrl-Alt-Backspace fails as well.
Also tried Ctrl-Alt-F2 etc to get to another TTY. Is the password still 'woofwoof'?- its not having it so it may be a silly question...
Ctrl-Alt-F4 gets me back to the X session, but the screen is dimmed for some reason. Need to logout (restart X) to get back to normal.

simargl

#182 Post by simargl »

To disable autologin you need to edit /etc/profle - just comment last 5 lines inside if statement.
I made that as temporary solution, but now I like automatic X login.
password is still woofwoof, to start Xorg use archpupx. :)

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#183 Post by mavrothal »

simargl wrote: For problems with save file on USB, I will need some help from experienced users, simply
because I can't fix it myself. You see that rc.shutdown in ArchPup is very different than in other
Puppy, my idea is to, from that file with if statement (PUPMODE=13) call other script and
make savefile (add data to it) only on reboot/shutdown, if someone needs to save on USB .
There are few issues with the savefile in Archpup and one major question is to what extend to make it user-friendly/foolproof .

Currently the savefile generation script offers to save in any of the _mountable_ volumes but it does not mount them if not mounted. Instead makes the file in / and report success but of course the savefile is not there on reboot.

Regarding the save call in rc.shutdown should it only be for pupmode 13|7 and only if a savefile is generated beforehand (detection on first boot?-flag?) or also in pupmode 5, ie _suggest_ a savefile on first shutdown. The latter should also solve the panic issue in successive pupmode 13|7.

Another point is the ability to save at will. The layered file system gets messed up if you start adding and removing files (install uninstall) without intermediate saves.

In short there are several issues that need to be addressed if Archpup is to wok off removable drives that will likely involve more than a simple call in rc.shutdown.
Are you ok with this?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
James C
Posts: 6618
Joined: Thu 26 Mar 2009, 05:12
Location: Kentucky

#184 Post by James C »

Still experimenting with ArchPup without many problems.... :)

Good work so far.
Attachments
Archpup.png
(194.09 KiB) Downloaded 1906 times

simargl

#185 Post by simargl »

Problem with openbox-menu is that it still doesn't work well with new menu-cache 0.4, and
thats why it make screen freeze if you load or unload sfs module. To fix that I compiled
older menu-cache version 0.3.3, and replaced arch package.
Making savefile on usb is now possible, but it needs some testing, so I will explain how this is
fixed in detail.
First in makepfile.sh I added this

Code: Select all

for i in $(blkid -o list | grep "(not mounted)" | sort | cut -d" " -f1 | grep -E -v "/loop|sr0" | sed 's|/dev/||g'); do
  if [ ! -d /mnt/$i ]; then mkdir /mnt/$i; fi
  mount /dev/$i /mnt/$i
done
to mount all partitions. When savefiile is created this runs

Code: Select all

mkdir /tmp/save
mount archpup/archsave.2fs /tmp/save
mkdir -p /tmp/save/etc/rc.d
cp -ax /etc/rc.d/* /tmp/save/etc/rc.d
umount /tmp/save
That will copy /etc/rc.d to every savefile and prevent kernel panic in pupmode13.
File /etc/rc.d/rc.shutdown will call usbsave if pupmode is 13

Code: Select all

if [[ $PUPMODE = 13 ]]; then usbsave; fi
and that will copy content inside /initrd/pup_rw to /initrd/pup_ro1

Code: Select all

#!/bin/sh

cp -a /initrd/pup_rw/{bin,etc,lib,mnt,opt,root,sbin,usr,var} /initrd/pup_ro1
find /initrd/pup_ro1 -type f -name ".wh.*" -delete
This is tested and working but did I forget something. Plan is to ArchPup support pupmode 5,12 and 13.

Post Reply