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 Tue 25 Nov 2014, 19:21
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Light-Debian-Core-Live-CD-Wheezy + Porteus-Wheezy
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 217 of 261 Posts_count   Goto page: Previous 1, 2, 3, ..., 215, 216, 217, 218, 219, ..., 259, 260, 261 Next
Author Message
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 02:50    Post_subject:  

Peasyglue 1.8 debian package made for smaller size.
http://smokey01.com/saintless/Fredx181/peasyglue_1.8_i386.deb
Added only the needed files from wheezy dependencies in /opt/lib and /opt/bin. This way the bigger dependencies package can be safely installed/uninstalled without breaking peasyglue.
Uninstall peasyglue 1.7 deb if it is installed because the executable is in /opt/bin. This new one keeps the executable symlink in /usr/local/bin as it is in the pet package.

Anikin, can you. please, test if it works for you in Wheezy and Sid when you have time?

Fred, I plan to include this deb in Jwm. It adds only 268k uncompressed as it is now. With full netpbm dependencie it is over 3Mb.

Toni
Back to top
View user's profile Send_private_message MSNM 
anikin

Joined: 10 May 2012
Posts: 526

PostPosted: Fri 11 Jul 2014, 05:02    Post_subject:  

Hi Toni, Fred and everyone,

Works absolutely fine in DD, but doesn't start in SID:
Code:
root@debian:~# peasyglue
/usr/local/bin/peasyglue: 33: export: Illegal option -f
root@debian:~#
Back to top
View user's profile Send_private_message 
mcewanw

Joined: 16 Aug 2007
Posts: 2349
Location: New Zealand

PostPosted: Fri 11 Jul 2014, 05:10    Post_subject:  

anikin wrote:
Hi Toni, Fred and everyone,

Works absolutely fine in DD, but doesn't start in SID:
Code:
root@debian:~# peasyglue
/usr/local/bin/peasyglue: 33: export: Illegal option -f
root@debian:~#


In DebianDog, /bin/sh is linked to /bin/bash. export -f is a bashism so bash is needed to export functions; dash won't do. I believe that is the problem you have at the moment.

William

_________________
Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Back to top
View user's profile Send_private_message Visit_website 
anikin

Joined: 10 May 2012
Posts: 526

PostPosted: Fri 11 Jul 2014, 08:36    Post_subject:  

William,

Thank you for the lead.

Being totally innocent of b/d/ashisms, had a quick crash course here ==>https://wiki.debian.org/DashAsBinSh
Am I doing it right?
Code:
root@debian:~# dpkg-reconfigure dash
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
root@debian:~# cd /tmp
root@debian:/tmp# dpkg -i peasyglue_1.8_i386.deb
Selecting previously unselected package peasyglue.
(Reading database ... 32166 files and directories currently installed.)
Preparing to unpack peasyglue_1.8_i386.deb ...
Unpacking peasyglue (1.8) ...
Setting up peasyglue (1.8) ...
Processing triggers for menu (2.1.46) ...
root@debian:/tmp# peasyglue
/usr/local/bin/peasyglue: line 309: gtkdialog3: command not found
root@debian:/tmp#

This SID is a half-*ssed, self-made contraption - a skeleton, actually. Stuff is expected to be missing.
Back to top
View user's profile Send_private_message 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 08:49    Post_subject:  

Thank you, William!

Anikin, the deb package replaced with change in peasyglue executable #!/bin/sh to #!/bin/bash
It should work without changing sh to bash in SID now.
gtkdialog3 - you can copy /opt/bin/gtkdialog3 from DebianDog in SID and test again. You can also try just to symlink gtkdialog from SID to gtkdialog3 to see if this works.

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send_private_message MSNM 
fredx181

Joined: 11 Dec 2013
Posts: 877
Location: holland

PostPosted: Fri 11 Jul 2014, 09:35    Post_subject:  

Hi Toni,
Quote:
Anikin, the deb package replaced with change in peasyglue executable #!/bin/sh to #!/bin/bash

I am afraid that won't help because still then gtkdialog depends on symlink sh > bash.
That's why we needed to make symlink /bin/sh to /bin/bash in the past (same problem as with pburn and frisbee).

Anikin, dpkg-reconfigure dash should do fine like you did.

Fred
Back to top
View user's profile Send_private_message 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 10:01    Post_subject:  

Thanks, Fred! Didn't think about gtkdialog.
deb replaced again with #!/bin/sh

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send_private_message MSNM 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 10:35    Post_subject:  

For anyone interested:

Puppy initrd boot for DebianDog (experimental):
http://smokey01.com/saintless/DebianDog/System-modules/kernel-3.16.0-rc.tar.gz
Code:
md5sum  07fce08f3a496ac1f2341d368b2f1152  kernel-3.16.0-rc.tar.gz

Extract the archive inside /live
Example boot code for sda1:
Code:
title DebianDog-Puppy
root=(hd0,0)
kernel /live/vmlinuz pmedia=atahd psubdir=live pfix=nocopy
initrd /live/initrd.gz

Archive content:
vmlinuz + kernel-modules.sfs - compiled from Stemsee for DebianDog kernel 3.16.0-rc. Any separate kernel for puppy named kernel-modules.sfs should work with the same initrd.gz
initrd.gz - initrd from Shinobar for slacko taken from here.
adrv_debdog.sfs - mount-swap, remastercow and remasterdog scripts edited for puppy structure (these scripts will be included in next DebianDog version).

Maximum xz compression used for initrd.gz and kernel-modules.sfs

initrd.gz depends on 01-filesystem.squashfs DebianDog module name. If you use remastered module with different name symlink 01-filesystem.squashfs also works.

If you create save folder named debdogsave inside /live or save file debdogsave.2fs, 3fs, 4fs it will be loaded on boot. If save folder and save file present there will be choice prompt which one to use or to ignore both.
Sfs files inside /live named ydrv_debdog.sfs and adrv_debdog.sfs will be auto-loaded on boot.

Proper /live/cow and /live/image links will be autocreated depending on save file/folder is used or not.

On first boot you will get prompt to search for swap file/partition and mount it.

Overlay order from what I tested so far (not sure if it is the same in Puppy). If you have file with the same name and location in all modules the last one will appear after boot (or 04 overlay 03 overlay 02 overlay 01):
01) 01-filesystem.squashfs
02) ydrv_debdog.sfs
03) adrv_debdog.sfs
04) save-file/folder

Changes inside initrd.gz:

DISTRO_SPECS changed to:
Code:
DISTRO_NAME='DebianDog-Wheezy-Puppy'
DISTRO_VERSION=7.2
DISTRO_BINARY_COMPAT='debian'
DISTRO_FILE_PREFIX='debdog'
DISTRO_COMPAT_VERSION='debian'
DISTRO_XORG_AUTO='yes'
DISTRO_TARGETARCH='x86'
DISTRO_DB_SUBNAME='debian'
DISTRO_PUPPYSFS=01-filesystem.squashfs
DISTRO_ZDRVSFS=kernel-modules.sfs
DISTRO_ADRVSFS='adrv_debdog.sfs'
DISTRO_YDRVSFS='ydrv_debdog.sfs'


init - added at the end:

Code:
##################################Changes for DebianDog start: ###############################

# Create symlinks /live/image /live/cow depending on save file/folder is in use or not:
mkdir -p /pup_new/live
ln -s /initrd/pup_rw /pup_new/live/cow
if [ $PUPMODE -eq 12 -o $PUPMODE -eq 13  ];then
ln -s /initrd/mnt/dev_save /pup_new/live/image
else
ln -s /initrd/mnt/dev_ro2 /pup_new/live/image
fi
# Prompt to mount swap partition or /live/image/pupswap.swp:
echo '#!/bin/bash

swapcheck() {
/opt/bin/mount-swap
rm -f /root/Startup/swap-start
rm -f /initrd/tmp/swap-prompt
}

echo ###
echo "Do you want to check for SWAP partition or pupswap.swp file and mount it?"
echo ###
echo "1)Yes, check and mount."
echo "2)No, close this window."
echo ###
echo "Type the number and press Enter."
echo ###

read n
case $n in
    1) swapcheck;;
    2) exit;;
esac
exit 0' > /pup_new/initrd/tmp/swap-prompt
chmod u+x /pup_new/initrd/tmp/swap-prompt

mkdir -p /pup_new/root
mkdir -p /pup_new/root/Startup
echo '#!/bin/bash
if [ -f /initrd/tmp/swap-prompt ]; then
xterm -e /initrd/tmp/swap-prompt
fi
exit 0' > /pup_new/root/Startup/swap-start
chmod u+x /pup_new/root/Startup/swap-start

################################## Changes for DebianDog end. ######################################


What we get to the moment is Puppy kernel and structure with Puppy save file/folder option keeping DebianDog main module untouched.
I'm not sure yet what will become from this optional boot method but it is good to have it anyway.

Edit: Copy to Ram creates troubles on my machine. I use pfix=nocopy for PC with more than 256 MB Ram. Boot code edited with pfix=nocopy.

Toni

_________________
Farewell, Nooby, you will be missed...

Edited_time_total
Back to top
View user's profile Send_private_message MSNM 
stemsee


Joined: 27 Jun 2013
Posts: 507
Location: London

PostPosted: Fri 11 Jul 2014, 11:29    Post_subject:  

@saintless

I am really enjoying DebianDog with this boot method the most, but that's just me! Thanks for sharing your work.

Also remind anyone that DebianDog has a script to create new savefile, which can be used in puppy or DebianDog, or Ubuntu possibly (casper-rw ?)

I also want to look at bootmanager (or DebianDog init section in initrd) for loading 7 (pup_ro3 -9) more sfs modules in DebianDog at boot time, because why not?

cheers!

Edited_times_total
Back to top
View user's profile Send_private_message MSNM 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 11:39    Post_subject:  

Hi, Stemsee.

Use it only with unmounted (not in use) save file from menu Utility --> Resize save File, or from terminal:
Code:
resize-save

Read here before using resize-save:
http://www.murga-linux.com/puppy/viewtopic.php?p=776350#776350

Anything you can share or report about puppy initrd boot is welcome. It is work in progress and any improvements will be added.
Information added in first page in boot methods post:
http://www.murga-linux.com/puppy/viewtopic.php?p=771571#771571

Edit:
stemsee wrote:
Also remind anyone that DebianDog has a script to create new savefile, which can be used in puppy or DebianDog, or Ubuntu possibly (casper-rw ?)

Yes, from Utility --> Make Save File (/opt/bin/mk-save.gtkdlg) you can give any name (live-rw, casper-rw, debdogsave.2fs, pupsave.2fs, changes.dat, persistence...) format to ext2, ext3, ext4 and also option to add label needed in some situations for live-rw and persistence. The save file is the same that puppy uses. Just the name is different for each boot method.

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send_private_message MSNM 
anikin

Joined: 10 May 2012
Posts: 526

PostPosted: Fri 11 Jul 2014, 15:15    Post_subject:  

Copied gtkdialog3 from DD to opt/bin in SID - the same error:
Code:
/usr/local/bin/peasyglue: line 309: gtkdialog3: command not found

Placed it in usr/sbin and symlinked back to opt/bin, that error's gone, but have a new one:
Code:
root@debian:~# peasyglue
gtkdialog3: error while loading shared libraries: libglade-2.0.so.0: cannot open shared object file: No such file or directory
root@debian:~#
Back to top
View user's profile Send_private_message 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Fri 11 Jul 2014, 15:31    Post_subject:  

anikin wrote:
Code:
root@debian:~# peasyglue
gtkdialog3: error while loading shared libraries: libglade-2.0.so.0: cannot open shared object file: No such file or directory
root@debian:~#

This means you have much more missing from DD. libglade2-0 is dependencie for Rox-filer, gtkdialog, frisbee.
You can install it with apt-get or copy/paste from DD /usr/lib
If it still does not work try installing this gtkdialog package and apt-get -f install after that:
http://smokey01.com/saintless/Fredx181/gtkdialog-0.8.3.deb

You need to add /opt/bin in PATH in /etc/profile or just do not use /opt/bin Use /usr/bin or /usr/local/bin instead.

Toni
Back to top
View user's profile Send_private_message MSNM 
anikin

Joined: 10 May 2012
Posts: 526

PostPosted: Fri 11 Jul 2014, 16:25    Post_subject:  

I think, I'll put the whole thing aside for now, then compile gtkdialog3 and whatever is required in SID. Also, Pup volume monitor (from DD) doesn't work in SID, will compile it too.

Toni, do you know, how to setup urxvt as default in DD?
Back to top
View user's profile Send_private_message 
saintless


Joined: 11 Jun 2011
Posts: 2652
Location: Bulgaria

PostPosted: Sat 12 Jul 2014, 01:17    Post_subject:  

Hi, Anikin.

Use Set Default Apps from the menu for urxvt:
http://murga-linux.com/puppy/viewtopic.php?p=773216#773216
Or simply change the link /usr/local/bin/default_virtual-terminal to point urxvt instead xterm.

Same pup volume monitor works in DebianDog SID and Jessie upgrades. I guess it is only dependencies problem in your SID version.

Toni

_________________
Farewell, Nooby, you will be missed...
Back to top
View user's profile Send_private_message MSNM 
fredx181

Joined: 11 Dec 2013
Posts: 877
Location: holland

PostPosted: Sun 13 Jul 2014, 12:26    Post_subject:  

Hi, Toni
I've added besides /tmp also option for / in remasterdog for testing.
I think it's nice addition for those who don't have ext2,3,4 partition and are booting from FAT or NTFS.
It checks available size in / and gives message when it's not enough.

Also I changed little bit in calculation of size for /tmp, it really was to much on the safe side.
Added /var/cache/apt and /var/lib/apt as excluded because the contents are going to be deleted anyway later. (This excluding is only for the calculation part, not the actual copying with rsync)

Attached: remasterdog-tmp+root.tar.gz

Fred
remasterdog-tmp+root.tar.gz
Description  RemasterDog with added option for /
gz

 Download 
Filename  remasterdog-tmp+root.tar.gz 
Filesize  2.68 KB 
Downloaded  38 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 217 of 261 Posts_count   Goto page: Previous 1, 2, 3, ..., 215, 216, 217, 218, 219, ..., 259, 260, 261 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1709s ][ Queries: 12 (0.0615s) ][ GZIP on ]