Light-Debian-Core-Live-CD-Wheezy + Porteus-Wheezy

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3826 Post by saintless »

fredx181 wrote:Attached scan results for included packages.
Thanks, Fred :)
I don't have much time for testing today but I will check this soon as I can.
If we choose some standard for making deb packages we need to change also make-deb-package and pet2deb scripts (at least with changes or adding more information while creating Control file).

Toni

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3827 Post by fredx181 »

Hi Toni,
I don't have much time for testing today but I will check this soon as I can.
Test only when you have time, re-uploaded apt-file-deb, see for more info my Edit here:
http://murga-linux.com/puppy/viewtopic. ... 360#805360
Frisbee is not 'clean' also, I suggest adding dhcpcd5 to 'Conflicts' and 'Replaces' line in control file.

Also fixed this:
Note: Sometimes it gives results from other packages with similar name, e.g in case of xdm it shows xdms and xdms is not really in the deb package xdm.
Shows now only results from package files itself (using --fixed-string option for apt-file)

Edit: Started off with new sns deb, removed /usr/share/icons/gnome (icons moved to /usr/share/pixmaps) and added 'dhcpcd5' to 'Replaces' and 'Conflicts' line in control file.
Tested this by replacing frisbee with sns and works fine here.

https://googledrive.com/host/0ByBgCDlZZ ... .1.1-1.deb

Fred

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3828 Post by saintless »

Thank you, Fred! I will test sns and new apt-file-deb tonight.

Lets make some sort of instruction for making deb package and then we can start editing/testing the existing packages.
I suggest we add to frisbee dependencies also pppoe and wireless-tools.

For example:

1. Check the conflicting files with apt-to-file and move/rename the conflicting files. In case we can not rename them or move them we can point the icon path to existing /usr/share/pixmaps icon. Or use existing debian icons package as dependency. Or create such package with Puppy icons for DebianDog.
2. Check the executable with ldd (if it is dynamic) or some commands inside the script and find the dependency package name with apt-cache search or apt-to-file or with searchmonkey in /var/lib/dpkg/info.
3. Add libc6 as default dependency in every package and make-dep-package and pet2deb (for these two some kind of warning popup window with information the package could include conflicting files could be added).
4. Some more searching for conflicting packages that do the same job (as frisbee and resolvconf for example) - we can't do it proper in each package but at least what we can find can be added as conflicting package.

I'm sure more will be added to this list later.

Toni

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3829 Post by saintless »

Hi, Fred.

last sns package seems safe to me but lets test more before replacing packages on the site. Maybe we will find more improvements or issues in the next days.

About apt-file-deb - great tool :) Thank you!
I think we should make separate module available for download with apt-file installed and updated, apt-file-deb and maybe aptitude included. It will be very useful for us.
Do you know if adding new repository in sources.list will change the result for apt-file database? I think we have all official debian rpositories but I'm not 100% sure. Maybe adding some more as repositories for yad and skype and others and then updating apt-file database and creating separate module will improve apt-file search output (in case some debs from missing repository have also conflicting files)

Edit - important thing to make clear about editing old and making new deb packages. After adding more dependencies and conflicting files all packages will be more or less compatible with any debian system except the PATH. What are we going to do with /opt/bin -> change it, add symlinks to /usre/local/bin, auto-create/remove symlinks to /usr/local/bin after installing/uninstalling, exporting /opt/bin in PATH after installing, other suggestion...

Toni

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3830 Post by fredx181 »

Hi Toni,
1. Check the conflicting files with apt-to-file and move/rename the conflicting files. In case we can not rename them or move them we can point the icon path to existing /usr/share/pixmaps icon. Or use existing debian icons package as dependency. Or create such package with Puppy icons for DebianDog.
2. Check the executable with ldd (if it is dynamic) or some commands inside the script and find the dependency package name with apt-cache search or apt-to-file or with searchmonkey in /var/lib/dpkg/info.
3. Add libc6 as default dependency in every package and make-dep-package and pet2deb (for these two some kind of warning popup window with information the package could include conflicting files could be added).
4. Some more searching for conflicting packages that do the same job (as frisbee and resolvconf for example) - we can't do it proper in each package but at least what we can find can be added as conflicting package.
So far I agree.
Something wrong I found btw with name of package in control file containing upper-case chars.
For example: Resize-Save-File:

Code: Select all

root@dog:~# apt-cache policy Resize-Save-File
N: Unable to locate package Resize-Save-File
root@dog:~# apt-cache policy resize-save-file
resize-save-file:
  Installed: 1.0.0-1
  Candidate: 1.0.0-1
  Version table:
 *** 1.0.0-1 0
        100 /var/lib/dpkg/status
root@dog:~#
 root@dog:~# apt-cache search Resize-Save-File
resize-save-file - utility
So it seems the upper-case has been converted to lowercase (and registered like that)
Now when custom saintless repository enabled in sources.list:

Code: Select all

root@dog:~# apt-cache search Resize-Save-File
Resize-Save-File - utility
resize-save-file - utility
root@dog:~# apt-cache policy Resize-Save-File
Resize-Save-File:
  Installed: (none)
  Candidate: 1.0.0-1
  Version table:
     1.0.0-1 0
        500 http://www.smokey01.com/saintless/DebianDog/Packages/Included/ ./ Packages
root@dog:~# apt-cache policy resize-save-file
resize-save-file:
  Installed: 1.0.0-1
  Candidate: 1.0.0-1
  Version table:
 *** 1.0.0-1 0
        100 /var/lib/dpkg/status
It seems double registered as installed and uninstalled.
So I'm not sure what's happening but better use lower-case name is my conclusion.
Do you know if adding new repository in sources.list will change the result for apt-file database?
I've just tried adding Skype repo from ubuntu and from debian and both didn't work as being registered by apt-file.

Edit: apt-file cache used is in /var/cache/apt/apt-file/
Edit - important thing to make clear about editing old and making new deb packages. After adding more dependencies and conflicting files all packages will be more or less compatible with any debian system except the PATH. What are we going to do with /opt/bin -> change it, add symlinks to /usre/local/bin, auto-create/remove symlinks to /usr/local/bin after installing/uninstalling, exporting /opt/bin in PATH after installing, other suggestion...
I can't really decide on that yet. Some time ago Terry wrote that symlinks inside a package is bad practice (not sure why though).
So maybe best to move the binaries to /usr/local/bin in the packages.
Still then there could be dependencies on scripts or binaries in /opt/bin so I'd say better move everything to /usr/local/bin (also in iso)
But again, I'm not sure yet.

Edit2: Just found out that although the script apt-file-deb works, it's overcomplicated and slow.
Just use apt-file only, in terminal:

Code: Select all

apt-file -D search /path/<packagename>.deb
Reliable and much faster!

Fred

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3831 Post by saintless »

Hi, Fred.
fredx181 wrote:Something wrong I found btw with name of package in control file containing upper-case chars.
For example: Resize-Save-File:
...........................................................
It seems double registered as installed and uninstalled.
So I'm not sure what's happening but better use lower-case name is my conclusion.
Yes, I agree. I will change it while editing all other things inside.
I've just tried adding Skype repo from ubuntu and from debian and both didn't work as being registered by apt-file.
OK, then I will make and upload separate with updated apt-file database module apt-file+apt-file-deb+aptitude on the site. It will be mostly for us but it is good to have it available for download.
Some time ago Terry wrote that symlinks inside a package is bad practice (not sure why though).
I do not see a problem since official debian packages contain symlinks included. For example iceweasel has symlink /usr/bin/iceweasel
This is easy and sure way to auto-add/remove the links installing/uninstalling the package.
So maybe best to move the binaries to /usr/local/bin in the packages.
Still then there could be dependencies on scripts or binaries in /opt/bin so I'd say better move everything to /usr/local/bin (also in iso)
But again, I'm not sure yet.
Jwm version menu changing depends on /opt/bin first in PATH. Also I'm not sure how many scripts and desktop files depend in /opt/bin as full PATH to the executable script. I do not like to move all from /opt/bin and I think this will create much more troubles for me in Jwm version. On page 27 Terry suggested to use /opt directory - I prefer not to change it now.

My suggestion is to keep what we have now in /opt/bin as it is.
In all included packages to keep also /opt/bin (for older DD versions compatibality) and add symlinks to /usr/local/bin
In all not included (extra, testing) packages to change the location to /usr/local/bin
For all new packages we make to use /usr/local/bin.
Edit2: Just found out that although the script apt-file-deb works, it's overcomplicated and slow.
Just use apt-file only, in terminal:

Code: Select all

apt-file -D search /path/<packagename>.deb
Reliable and much faster!
OK, Fred. I will use it this way.

BTW roxterm-gtk2 deb will be removed from included on the site. I will add the official version in Jwm. DebianDog has alsmost all dependencies included now and it adds almost nothing. No need to keep moded package instead.

Toni

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3832 Post by fredx181 »

Hi, Toni,
Quote:
I've just tried adding Skype repo from ubuntu and from debian and both didn't work as being registered by apt-file.

OK, then I will make and upload separate with updated apt-file database module apt-file+apt-file-deb+aptitude on the site. It will be mostly for us but it is good to have it available for download.
Please include attached apt-file-debdir instead of apt-file-deb, it can scan whole folder + subfolders containing .deb and is much faster.
Usage:

Code: Select all

apt-file-debdir /path/directory-containing-deb-files
It creates a file: results-<name-of-folder-used> in HOME.
I do not see a problem since official debian packages contain symlinks included. For example iceweasel has symlink /usr/bin/iceweasel
This is easy and sure way to auto-add/remove the links installing/uninstalling the package.
Yes, I see, then adding symlinks in /usr/local/bin is Ok.

As you said, to avoid duplicate effords, I'm planning today to scan all .deb packages in
http://www.smokey01.com/saintless/DebianDog/Packages/ and its subfolders.
I also found some workaround to compare with each other which is a little difficult to explain, so I better do it.
I'll post the results if you agree.

Fred
Attachments
apt-file-debdir.tar.gz
Scan directory containing .deb packages, results file in ~/
(377 Bytes) Downloaded 252 times

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3833 Post by saintless »

Hi, Fred.
fredx181 wrote:As you said, to avoid duplicate effords, I'm planning today to scan all .deb packages in
http://www.smokey01.com/saintless/DebianDog/Packages/ and its subfolders.
I also found some workaround to compare with each other which is a little difficult to explain, so I better do it.
I'll post the results if you agree.
Great, thank you! :)
Can you also post a list of packages you like to edit? I will take some of the others. I suggest we start modding only /packages/included for now. We need more testing with included if we are going to replace them for the next version.
Extra, testing and new packages we will change to /usr/local/bin to avoid syminking in the future.
Then we can create some procedure post how to make further packages in howto thread.

Here is 09-find-file-debdir-aptitude module (use right click -> Save link as):
http://smokey01.com/saintless/DebianDog ... e.squashfs
Your scripts are in /usr/local/bin and apt-file is updated. Aptitude included in case we have troubles resolving some problem with apt-get.

Toni

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3834 Post by fredx181 »

Hi Toni,
Here is 09-find-file-debdir-aptitude module (use right click -> Save link as):
http://smokey01.com/saintless/DebianDog ... e.squashfs
Thanks!, it will be useful.

Here are the results from... 4 ways of scanning the DD .deb packages.
Maybe it's overdone but I modified the apt-file cache for some of the scans.
See inside attached archive the files:
- results-excluding-DD-pkgs-in-cache, normal scan without modifying cache.
- results-Included_folder_only-excluding-DD-pkgs-in-cache, normal as above but only the 'Included' folder from the site.
- results-including-DD-pkgs-in-cache, modified the cache so files from DD-packages are included/added in the cache.
- results-DD-pkgs-compared, modified the cache including only files from DD-packages, nothing else, for easy comparing and see if there are overlapping files between DD-packages.
Indeed let's concentrate on 'Included' and study first a bit on these results.
Maybe later you can edit first half of debs in Included and I do second half.

Fred
Attachments
4-scan-results.tar.gz
(19.86 KiB) Downloaded 243 times

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3835 Post by saintless »

Thanks, Fred!

Much information to explore proper but from quick reading we can mark this changes:

1. Adding links (included or from postinst and prerm scriptrs) from /opt/bin to /usr/local/bin and from /opt/lib to /usr/local/lib in all included.
2. All extra and new builded packages with /usr/local/bin
3. Adding libc6 as dependency in each package.
4. Searching for dependencies with ldd or separate searching the command names inside the script.
5. Adding popup message possible conflicting packages are not covered in make-deb-package and pet2deb.
6. Done. roxterm-gtk2_2.6.5-1_i386-old.deb and roxterm-gtk2_2.6.5-1_i386.deb - will be removed from the site and official deb installed with all dependencies.
7. Done. ffconvert_1.4.2_i386.deb (with included probepart) will be removed from the site.
8. New conflicting packages to be added inside Control:
a. frisbee -> conflicts with sns, xpns-tool, dhcpcd5
b. sns -> conflicts with frisbee, xpns-tool, dhcpcd5
c. xpns-tool -> conflicts with frisbee, sns, dhcpcd5
d. obshutdown -> conflicts with xfce4-session (same somehow to be added in 021-apps-porteus.squashfs - it updates status from lines in mountlink).
e. gnome-mplayer-1.0.7 - conflicts with gmplayer-portable
f. gmplayer-portable - conflicts with gnome-mplayer-1.0.7
(gmplayer-portable is here and also wxhexeditor (from Sid) is compatible with wheezy version. Maybe I should move/copy them in wheezy extra packages).

9. Resize-Save-File changed in Control with lower-case.
10. Done. alsa-equalizer-fix (it is testing package only partly solving the problem as far as I remember - maybe will be best to remove it).
11. Remove the deb package Change-Jwm-Theme. - done
12. Inside the scripts gsu line changed to:

Code: Select all

if [ -z `which gsu` ]; then
[ "`whoami`" != "root" ] && exec gksu ${0} "$@"
else
[ "`whoami`" != "root" ] && exec gsu ${0} "$@"
fi
13. If script contains gsu line add dependencies in Control gsu | gksu
14. In case symlinking /opt/lib to /usr/local/lib add ldconfig in postinst script.
15. Find different way to make x11-xserver-utils and xdm not upgradable. changing the version number as it is now cheats standard Debian to upgrade both.
16. For packages with Conflicts: line in Control add the conflicting packages in Replaces: line too. Otherwise dpkg -i and Synaptic will give broken package message.


I will edit this post with the changes found later from you and me (like next changes post).

=========================================

Testing moded packages repository here:
http://smokey01.com/saintless/DebianDog ... sting/tmp/

Problems found in DebianDog:

===========================

Problems found in standard Gnome Debian:

1. desktop-editor - menumaker does not start - FIXED.
2. ffconvert exits with segmentation fault - FIXED.
3. Seems /usr/local/lib links need fixing. Not sure how exactly yet - FIXED by adding ldconfig in postinst.
4. x11-xserver-utils and xdm moded for DebianDog - see 15.

=====================================

Toni
Last edited by saintless on Thu 18 Dec 2014, 19:43, edited 12 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3836 Post by fredx181 »

Hi Toni,
Much information to explore proper but from quick reading we can mark this changes:
...........
Good summary, you have organizing talent! (but I've noticed that already before :) )
d. obshutdown -> conflicts with xfce4-session (same somehow to be added in 021-apps-porteus.squashfs - it updates status from lines in mountlink).
I'm a little confused about how this works ('/opt/bin/0-21-update-dpkg-porteus' and mountlink).
I think it's enough to:
- rename 'xfce4-session-logout.desktop' to 'logout.desktop' in 021-apps-porteus.squashfs and
- edit 021-apps-porteus.squashfs/var/lib/dpkg/info/obshutdown-porteuswheezy.list (change also name 'xfce4-session-logout.desktop' to 'logout.desktop').
10. alsa-equalizer-fix (it is testing package only partly solving the problem as far as I remember - maybe will be best to remove it) - to solve the conflicting /etc/asound.conf with debian-edu-config.
Yes, I already thought the same, let's remove it then.

Fred

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3837 Post by saintless »

fredx181 wrote:I'm a little confused about how this works ('/opt/bin/0-21-update-dpkg-porteus' and mountlink).
I think it's enough to:
- rename 'xfce4-session-logout.desktop' to 'logout.desktop' in 021-apps-porteus.squashfs and
- edit 021-apps-porteus.squashfs/var/lib/dpkg/info/obshutdown-porteuswheezy.list (change also name 'xfce4-session-logout.desktop' to 'logout.desktop').
Thanks, Fred, I will do it this way.
Just for information - mountlink starts /opt/bin/0-21-update-dpkg-porteus and then removes the update line from mountlink. In case remaster is made it has obshutdown included in dpkg database.
0-21-update-dpkg-porteus adds the entry for obshutdown in status and available and auto-removes /opt/bin/0-21-update-dpkg-porteus, /var/lib/dpkg/0-21-available.porteus and /var/lib/dpkg/0-21-status.porteus

Edit: The packages from 6, 7 and 10 removed.

Toni

User avatar
Locky
Posts: 23
Joined: Wed 01 Mar 2006, 11:23

a few newbie questions re: remastering

#3838 Post by Locky »

Hi,

I hope that I am not posting in the wrong place here...

I want to run this version of puppy linux from a slightly memory constrained laptop. Eeepc 1015BX with 2 x 1000 Mhz processors and 1 GB of ram (soldered to the main board :twisted: )...

Anyway what attracted me was the apt-get support and the ability to run in ram and have some decent performance for word processing and web browsing on the go.

So...

Now I have managed to boot and make quite a few changes installed aptitude removed some stuff and installed tint2 and intend to make it as similar to #! crunchbang as possible but FAST with the system in ram.

Now for the questions...

1) After making my changes how do I make sure that they are persistent? Is it best to remaster? (and what does this mean specifically? do I then have to copy the iso to a USB again?)

2) Is there an easy to understand explanation of what the remaster process is somewhere? (tried searching but there are so many puppy variants that I wasn't sure what was what...)

3) Can I install to my hard drive and then run everything in ram? Does that then mean that I have to save changes at log out?

A bit confused... sorry 'bout that, :shock:

Cheers

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

Re: a few newbie questions re: remastering

#3839 Post by saintless »

Hi. Locky.
Posting questions here is fine, but a little bit more information is needed.
What is the version you use? DebianDog or Porteus-Wheezy? Link to the iso will do the job.
Porteus-Wheezy has only porteus-boot method.
For DebianDog we have three different boot methods.
1) After making my changes how do I make sure that they are persistent? Is it best to remaster? (and what does this mean specifically? do I then have to copy the iso to a USB again?)
You can use safe file, safe folder, save partition, save changes in separate sfs module, remaster. Save options are different for each boot method (porteus-boot is more pupy-like):
http://www.murga-linux.com/puppy/viewto ... 571#771571
Remastering keeps the system size smaller (without need to keep your changes in save file). Since some programs are uninstalled I think the best way to go is remastering.
2) Is there an easy to understand explanation of what the remaster process is somewhere? (tried searching but there are so many puppy variants that I wasn't sure what was what...)
RemasterDog instruction you can find here:
http://www.murga-linux.com/puppy/viewto ... 212#773212
3) Can I install to my hard drive and then run everything in ram? Does that then mean that I have to save changes at log out?
You can use frugal or full install.
With frugal install you still need to use save file/folder/partition to save changes.
With full install no need to use save file to save the changes.
DebianDog frugall and full installer instruction (you can install it on usb or hdd ext2,3,4 partition):
http://www.murga-linux.com/puppy/viewto ... 207#773207

I guess it is still not clear enough but after posting the iso download link (and if you can also the boot code you use) - I will try to explain better.

Toni

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#3840 Post by saintless »

Hi, Fred!

I suggest to add also in field Description: if the package is suitable or not with standard Debian.This description is visible after running:

Code: Select all

apt-cache search package-name
For example change-jwm-theme is only DebianDog compatible (unless I add postinst script to replace ~/.jwmrc theme part with include /path-to-theme-file line). This will need much testing first so I prefer to describe it as incompatible with standard Debian for now.

Toni

Satori
Posts: 47
Joined: Tue 15 Jan 2013, 01:18

hardware clock gets changed

#3841 Post by Satori »

Hiyas...

I've been keeping an eye on this project and test the releases as they come out, I beleive a jessie variation will finally give me
a reason to switch from dpup. Yes, I did try the jessie you were testing, if it only had SMP then I would have made it a main stay.

But...

I switch between various puppies, including yours, on a dell E6510 laptop. I'm finding that after rebooting from DebianDog
that the computer's hardware clock is off by a few hours, means I have to go to the bios and muck with it there.

Anyone else have this problem?

DebianDog kernel 3.14, Porteus boot, most recent DebianDog release (downloaded Oct. 15)

(almost ready for prime time)
Last edited by Satori on Fri 31 Oct 2014, 04:14, edited 1 time in total.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#3842 Post by dancytron »

Yes, it has to do with how the real time clock is setup. Debian expects it to be UTC (Greenwich mean time) and Windows and others expect it to be local time. Hang on and I'll add the setting to change to this message.

edit: What you need to do is find the file /etc/adjtime. Open it up and in that file change UTC to LOCAL. You may need to reset the timezone again and restart to get it all straight.

Satori
Posts: 47
Joined: Tue 15 Jan 2013, 01:18

#3843 Post by Satori »

hmmmm....

that may be the solution, however it seems that after editing adjtime, the next reboot will
regen the file with UTC in it.

happens on both savefile and in change folder usage.

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#3844 Post by dancytron »

Are your other changes surviving reboot?

It worked for me, dual booting with Windows XP.

Maybe some others will be able to figure it out.

User avatar
Locky
Posts: 23
Joined: Wed 01 Mar 2006, 11:23

#3845 Post by Locky »

Thanks for the quick reply Toni!

After a bit of mucking around I have decided to go with the DebianDog Wheezy live-boot-3x- version with the following options

append initrd=/live/initrd.img boot=live toram=01-filesystem.squashfs

If I want to include another squashfs file what is the syntax to append to the above line?

What I really would like to do is get openbox working like crunchbang as I have become accustomed to the interface and I find it very easy to work with. To that end I have been experimenting with modifying the openbox config and playing with the scripts etc from crunchbang according to the following link...

http://crunchbanglinux.org/wiki/adding_ ... her_distro

I also tried to add the crunch bang repo and added a few of the meta packages via apt-get which, unsurprisingly, broke the system.

What are the key system directories/files not to touch? Updating the kernel via apt-get is a no no obviously and anything to do with boot settings... any other tips? It is probably better to work from the ground up rather than a hit and miss apt/get approach but it would be nice to know :D

regs
Locky

Post Reply