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 Sun 16 Dec 2018, 21:08
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Create Debian 9 (Stretch) minimal ISO similar to DebianDog
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 93 of 96 [1432 Posts]   Goto page: Previous 1, 2, 3, ..., 91, 92, 93, 94, 95, 96 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Thu 04 Oct 2018, 12:59    Post subject:  

zagreb999 wrote:
it would be very useful
if you can add pdftodjvu
to repositories-
to be possible to install
with synaptic


OK, good idea, added package pdf-to-djvu to repos, install with Synaptic or with apt-get;
Code:
apt-get update
apt-get install pdf-to-djvu

The included script pdf-to-djvu (in /usr/local/bin) has small change, should still be possible to call with Thunar custom action, but you can run also from Menu > Graphics > "Pdf to Djvu convert", then using yad file-selector you can select .pdf files to convert to .djvu.

Fred

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

Joined: 11 Apr 2014
Posts: 406
Location: Yugoslavija

PostPosted: Fri 05 Oct 2018, 03:47    Post subject:  

bottom border line for xfce

regards
who knows to add bottom border line
on windows of all apps-as
upper border line,
to be able to move windows
on screen as with upper border
with mouse cursor for XFCE
desktop ?!

thanks!
Screenshot_2018-10-05_09-27-47.jpeg
Description 
jpeg

 Download 
Filename  Screenshot_2018-10-05_09-27-47.jpeg 
Filesize  179.9 KB 
Downloaded  92 Time(s) 
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Sat 06 Oct 2018, 13:21    Post subject:  

*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
And build aufs using aufs-dkms, the Debian kernel doesn't include aufs by default
Different from "upgrade-kernel", this will create initrd.img, initrd1.xz, vmlinuz1 and a .squashfs module containing the backports-kernel in a directory on partition of choice (see screenshots).
Similar to how "apt2sfs" works, the required packages are installed (using unionfs-fuse) in "chroot" (jail) so it doesn't alter the filesystem.
So, after running, copy the created files to the frugal installed 'live' folder and reboot to boot with the backports kernel.
(recommended to make backup first of original initrd.img, initrd1.xz, vmlinuz1)

Install upgrade-kernel-bpo with Synaptic (Reload first) or with apt-get:
Code:
apt-get update
apt-get install upgrade-kernel-bpo


Run from Menu > System > Upgrade to Backports kernel

Should work also for a Devuan build

EDIT: Note that this process needs around 750MB free space (temporary at some point, final result will be much less, around 95MB)

EDIT2: Updated to v 0.0.3, made some small changes:
- Will ask for password now when running as normal user
- Better error checking and cleaning up when interrupted

Fred
2018-10-06-191828_468x206_scrot.png
 Description   Final result in sda5
 Filesize   74.75 KB
 Viewed   777 Time(s)

2018-10-06-191828_468x206_scrot.png

2018-10-06-184606_502x345_scrot.png
 Description   
 Filesize   56.56 KB
 Viewed   777 Time(s)

2018-10-06-184606_502x345_scrot.png


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

Joined: 01 Mar 2015
Posts: 110

PostPosted: Thu 11 Oct 2018, 09:36    Post subject:  

fredx181 wrote:
*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred

a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 files on the /live folder).



b)Also, I would like to inform our readers that after 3 weeks of testing the stretch32bit version with JWM runs very well on P4 1.6GMHz with 512MB ram. The custom frugal install has LibreOffice 4.4 , firefox 10 (only for playing swf files) and latest firefox , scratch , tux paint,math and type.
Btw, I could not believe that firefox 10 could cooperate so well with the latest adobe flash (v31.0.0.xxx). I can use all the latest flash swf files without having to deal with the latest & heaviest firefoxes.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Fri 12 Oct 2018, 11:03    Post subject:  

trister wrote:
fredx181 wrote:
*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred

a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 .


Not very difficult, but I'd like to keep supporting LZ4 for loading and mounting .squashfs.
The backports kernel has that support by default, so only aufs is needed to be built by using aufs-dkms.
But the stable (4.9) kernel hasn't got support for LZ4 by default, so there's the problem.
However, somehow should be possible to make script similar (as you say, kernel upgrade with just copying 3-4)
I'll get back later about it.

Fred

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


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Wed 17 Oct 2018, 15:48    Post subject:  

trister wrote:
fredx181 wrote:
*** Install Debian Stretch-Backports kernel ***
(currently it's 4.18.0-0.bpo.1)
...

Fred

a)How difficult would be to convert this script (or add an extra option) to create the files for the current latest debian kernel instead of the backport one?

(I've asked something like this in the past - to do a kernel upgrade with just copying 3-4 files on the /live folder).


I've added similar script to the repository: upgrade-kernel2
It will create the files required in location of choice for current kernel 4.9.0-8
Note that it will not be registered by the package management.
Install with Synaptic or with apt-get:
Code:
apt-get update
apt-get install upgrade-kernel2

Run from Menu > System > Upgrade-Kernel v2

Fred

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

Joined: 11 Apr 2014
Posts: 406
Location: Yugoslavija

PostPosted: Sat 20 Oct 2018, 12:42    Post subject: MX-17.1_386.iso  

regards fred!

if you have a time, can you make
mx-linux 17.1 32 bit as your mx 16?
it is great, fantastic...
the best linux os!




https://sourceforge.net/projects/mx-linux/files/Final/MX-17.1/MX-17.1_386.iso/download?use_mirror=netcologne
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1316

PostPosted: Mon 22 Oct 2018, 13:54    Post subject:  

I don't see this script referenced from the dog site:
https://debiandog.github.io/doglinux/

Edit:
My mistake. I see it in the news section.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1316

PostPosted: Mon 22 Oct 2018, 23:38    Post subject:  

fredx181 wrote:
*** mklive-devuan for testing ***

To my surprise it took very little effort to modify "mklive-stretch" script to build a Devuan live "ascii" ISO (similar to DebianDog).
I guess this is proof of how close Devuan is to Debian)
Changes in script:
- Download and install the debootstrap package from devuan (otherwise it wouldn't find the ascii release (=stretch))

Opps. Installed deboostrap in stretch dog. Got this error:
Code:

root@live:/mnt/sda2# debootstrap --arch=i386 --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://packages.devuan.org/merged
E: No such script: /usr/share/debootstrap/scripts/ascii

I see that I was supposed to get debootstrap from devuan instead. Not sure where I can find a package for this. I did find the source though:
https://git.devuan.org/devuan-packages/debootstrap/tree/suites/unstable

I could add the missing script but it looks like they modified the main dbootstrap function. I wonder if it can coexist with debian deboostrap but under a different name. I'll look at the source now.

Edit I think they can coexist. It looks like the script directory is reference relatively.

Code:

   SCRIPT="$DEBOOTSTRAP_DIR/scripts/$1"

https://git.devuan.org/devuan-packages/debootstrap/blob/suites/unstable/debootstrap#L410

Quote:

- Changed debootstrap command to:
Code:
debootstrap --arch=$ARCH --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://packages.devuan.org/merged

- Changed repositories pointing to devuan packages (also StretchDog repository included)
- Changed name of ISO to be created

The working directory I kept "stretch", same as mklive-stretch, so if exist, it may conflict, better rename first before building with mklive-devuan.

ISO Minimal Openbox 32-bit, first of the Desktop variants, size: 220MB, main .squashfs is gzip compressed:
EDIT (an hour later): new download link, forgot to have the "contrib" and "non-free" repositories included in sources.list, now added, the JWM version has that already, btw.
https://dl.dropboxusercontent.com/s/o6g3apbekxj0dxw/DevuanLive_ascii_openbox-1-i386.iso?dl=1
ISO Minimal JWM 32-bit, third of the Desktop variants, size: 222MB, main .squashfs is gzip compressed:
https://dl.dropboxusercontent.com/s/01r2bso2mg3xaln/DevuanLive_ascii_jwm-i386.iso?dl=1

Attached mklive-devuan script (remove fake .gz)

EDIT2: Tested also 64-bit build now and works fine, JWM iso:
https://dl.dropboxusercontent.com/s/88q3rkq15cdul6x/DevuanLive_ascii_jwm-amd64.iso?dl=1

EDIT3: For now the "Full Dog" Desktop choices won't work because they have systemd in the package install list.
To make it work you can remove everything which contains the name systemd from the editable install list. (see pic, gui) EDIT: pic removed, no use anymore, see below.

EDIT4: Attached new mklive-devuan script, some small fixes and changed title and text of yad gui according to being devuan ascii.
Removed systemd from the install lists in the config files (loaded from github) used by mklive-stretch and mklive-devuan.
This fixes the problem for Devuan that it can't find systemd (and Debian will install systemd automatically, not required to specify)

EDIT5: 2018-09-21, fix: package repository "auto-mirror...." is expired, changed now to pkgmaster.devuan.org

Fred


Edit2: I extracted the devaun version of the debootstrap script to
Code:

/opt/debootstrap-devuan/debootstrap

and symbolicly linked it to my execution path:
Code:

ln -s /opt/debootstrap-devuan/debootstrap /usr/bin/debootstrap-devuan


I think I also need to either export the variable indicating the debootstrap folder

Code:

export DEBOOTSTRAP_DIR=/opt/debootstrap-devuan


or alternativly hard code it in the script

Code:

if [ -z "$DEBOOTSTRAP_DIR" ]; then
   if [ -x /debootstrap/debootstrap ]; then
      DEBOOTSTRAP_DIR=/debootstrap
   else
      DEBOOTSTRAP_DIR=/opt/debootstrap-devuan
   fi
fi

https://git.devuan.org/devuan-packages/debootstrap/blob/suites/unstable/debootstrap#L17
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Tue 23 Oct 2018, 04:19    Post subject:  

Hi, s243a

The debootstrap package from devuan should be downloaded and installed from the script.
They changed address, but still works for me (redirect)

Code:
--2018-10-23 09:57:01--  https://packages.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb
Resolving packages.devuan.org (packages.devuan.org)... 46.105.191.77, 2001:41d0:8:2c55::a2
Connecting to packages.devuan.org (packages.devuan.org)|46.105.191.77|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb [following]
--2018-10-23 09:57:01--  https://packages.roundr.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.87%2Bdevuan1.1_all.deb


But apparently doesn't work for you, anyway, re-attached here with changed address to: http://pkgmaster.devuan.org
http://murga-linux.com/puppy/viewtopic.php?p=996908#996908

So the debootstrap part of the new script is:
Code:
# download and install devuan debootstrap deb
wget --no-check-certificate http://pkgmaster.devuan.org/devuan/pool/main/d/debootstrap/debootstrap_1.0.89-devuan2.1_all.deb -O debootstrap_1.0.89-devuan2.1_all.deb
dpkg -i debootstrap_1.0.89-devuan2.1_all.deb    # install devuan debootstrap

########## Set up debootstrap ##########
echo -e "\e[0;36mSetting up debootstrap in stretch/chroot\033[0m"
echo -e "\e[0;36mThis may take a while...\033[0m"
mkdir -p stretch/chroot && cd stretch &&
debootstrap --arch=$ARCH --variant=minbase --include=apt-transport-https,ca-certificates ascii chroot http://pkgmaster.devuan.org/merged/


EDIT: Reading your post again, I think you didn't run the mklive-devuan script, but ran debootstrap command only, if so, see above for the code.
(and, as discussed earlier in this thread, the Devuan debootstrap package has support for Debian also, so no problem to have it installed (replacing the Debian package))

Fred

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

Joined: 11 Apr 2014
Posts: 406
Location: Yugoslavija

PostPosted: Tue 23 Oct 2018, 08:42    Post subject: ram size -gui app  

regards

ram size -gui app
this script is great!
it is very useful
for all debiandog users.
can it be done as gui script
also to be published in repos?
regards.


@zagreb
Quote:
after quick remaster it does not
remain...
what is solution?
regards.

mount -t tmpfs -o "remount,size=100%" tmpfs /mnt/live/memory/changes

One option is to add the line in /etc/rc.local, before the "exit 0"

Fred
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3595
Location: holland

PostPosted: Tue 23 Oct 2018, 12:18    Post subject:  

zagreb999 wrote:
mount -t tmpfs -o "remount,size=100%" tmpfs /mnt/live/memory/changes

One option is to add the line in /etc/rc.local, before the "exit 0"


If you added that command to /etc/rc.local, it should remain after making remaster.
Btw, you can also add to your kernel boot line:
Code:
ramsize=100%

Works the same.

Fred

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

Joined: 02 Sep 2014
Posts: 1316

PostPosted: Thu 25 Oct 2018, 21:04    Post subject:  

fredx181 wrote:
Galbi wrote:
Sorry, the modified version did not work.

Ok, thanks anyway for testing.
I assume you did test it with the "porteus-boot" menu.lst entry ?
Code:
title Stretch Dog 64
  root (hd0,0)
  kernel /stretch64/live/vmlinuz1 noauto from=/stretch64 changes=/stretch64/live/
  initrd /stretch64/live/initrd1.xz


Quote:
But with the original version, I've noticed something. If I boot with initrd.img in the grub line, boots fine. But if I change it for initrd1.xz does not boot and says it can't find Porteus file etc.

Is initrd1.xz a compressed version of initrd.img?

No, booting with initrd1.xz is "porteus" boot style very different from 'live-boot" (with initrd.img) which is the official Debian style.

Fred


What are the differences between these two boot styles?
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2714

PostPosted: Thu 25 Oct 2018, 21:37    Post subject:  

s243a wrote:
What are the differences between these two boot styles?

There used to be three methods, boot-2 was dropped to leave just 2. Historical background ... http://murga-linux.com/puppy/viewtopic.php?p=774456#774456 (read through that and the next post immediately after it). Boot-3 is nice as you can do a full Debian install, label that partition as 'persistence', add a persistence config (flag) file to that, add the /live folder to that (live-boot), and then boot a live version that uses that full install as the 'save' area. The main sfs can even be empty (but must exists IIRC) i.e. everything in the 'save area'. That way you can boot as though a full install (such as for updating things), or as a live boot ... and use it/shutdown without saving. More along the lines of systemD, whereas Porteus style is more SysV (typically using a save folder for saves instead of a partition (but both can save to a filesystem file). Porteus boot is more aligned to Puppy style.

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 1316

PostPosted: Fri 26 Oct 2018, 03:09    Post subject:  

rufwoof wrote:
s243a wrote:
What are the differences between these two boot styles?

There used to be three methods, boot-2 was dropped to leave just 2. Historical background ... http://murga-linux.com/puppy/viewtopic.php?p=774456#774456 (read through that and the next post immediately after it). Boot-3 is nice as you can do a full Debian install, label that partition as 'persistence', add a persistence config (flag) file to that, add the /live folder to that (live-boot), and then boot a live version that uses that full install as the 'save' area. The main sfs can even be empty (but must exists IIRC) i.e. everything in the 'save area'. That way you can boot as though a full install (such as for updating things), or as a live boot ... and use it/shutdown without saving. More along the lines of systemD, whereas Porteus style is more SysV (typically using a save folder for saves instead of a partition (but both can save to a filesystem file). Porteus boot is more aligned to Puppy style.


thankyou for the info Smile According to the wiki the Proteus mode supports a save folder:
Quote:
For the last two boot codes only “changes=EXIT:/path-to-save-file/folder” you can type from terminal:

https://github.com/DebianDog/Jessie/wiki/Porteus-boot

This is interesting to me because it is easier to mount/modify a save folder in a chroot environment than a .img file [1]. I was following the info about debootstrap for devaun here:
https://devuan.org/os/documentation/dev1fanboy/jessie-minimal-install

If I can use a save folder it might be easier to combine the devuan.org link with what I can learn from fredx181 script to build a minimuial debian/devan iso. Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 93 of 96 [1432 Posts]   Goto page: Previous 1, 2, 3, ..., 91, 92, 93, 94, 95, 96 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.1171s ][ Queries: 12 (0.0477s) ][ GZIP on ]