Re: [DNG] Experiencing with GtkBuilder

2015-11-21 Thread aitor_czr

Hi Rainer,

And thanks for your test...

On 20/11/15 12:11, Rainer Weikusat  wrote:

"Works for me" (as usual, the dbus invasion could be successfully
repelled by deinstalling everything which came in the way until dbus
could be deinstalled itself without affecting any 'real' functionality).
Almost certainly my lower version of gtk3 doesn't support spinning 
animation. See here:


http://ftp.acc.umu.se/pub/GNOME/sources/gtk+/3.8/gtk+-3.8.0.news

Are you in Ceres? I will try with the unstable branch.


BTW, instead of creating a README file telling people what to do, have
you considered using a Makefile which does it for them?

Yes..., i will do so :)

Thanks again,

  Aitor.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Is netman being adopted or was it a waste of time, and effort?

2015-11-21 Thread aitor_czr

Hi Edward,

As you know, i'm taking a look at GtkBuilder.

My first example was a window with a button doing nothing. So, it works 
fine in old hardware.


My second example was a spinner, and there will be more examples all of 
them focused to the netman gui.


I've been using netman for weeks with no issues, except for the fact 
that it doesn't autoconnect (probably my fault).


Cheers,

   Aitor.

On 11/20/2015 12:11 PM, Edward Bartolo  wrote:

Hi All,

At the moment, I am too busy to stay online. I am writing to ask
whether there are users of netman to evaluate whether my efforts were
worthwhile or not.


Edward


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread aitor_czr

Hi all,

This example is for amd64 architecture.

I genuinely apologize for the length of the post !!


*1.-**_MODIFYING THE FILESYSTEM.SQUASHFS_*

Download the iso distribution: ExeGnuLinux, Refracta, Star... or 
whatever you want, and extract the content.


You will find a squashfs file in it (there are exceptions like knoppix, 
which uses loop). This file is named filesystem.squashfs in the most of 
the cases.


Mount the file into a chroot jail and enter move up to it:

$ mkdir /tmp/squashfs
$ sudo su
# mount -t squashfs -o loop filesystem.squashfs /tmp/squashfs
# rsync  -v -rlt -a /tmp/squashfs/ chroot
# umount /tmp/squashfs/
# mount -t none -o bind /proc chroot/proc
# mount -t none -o bind /sys chroot/sys
# mount -t none -o bind /dev/pts chroot/dev/pts
# xhost +

If you don't type xhost+, you will can't be able to run graphical 
applications into the jail.


Copy the following files:

# cp /etc/hostname chroot/etc/hostname
# cp /etc/hostname/hosts chroot/etc/hostname/hosts
# cp /etc/hostname/resolv.conf chroot/etc/resolv.conf

Now you will have network connection into the jail.

Move up to the jail:

# chroot chroot

Do all the changes you want in the system. The following three points 
are very important:


i) The kernel in the system and the kernel in the installer must be the 
same.


ii) Install all the grub dependencies, but not the grub.

iii) Remove /etc/fstab... Yes, kick it! If you don't remove this file, 
doing a manual partition during the installation, your personal folder 
will not be created (this is a bug in debian-installer).


Install the following packages:

root@devuan:~# apt-get install live-boot live-boot-initramfs-tools 
live-tools live-config live-config-sysvinit


Create a file "/etc/live/config.conf" containing something like that:

LIVE_HOSTNAME=devuan
LIVE_USERNAME=devuan
LIVE_USER_FULLNAME="Devuan"
LIVE_USER_DEFAULT_GROUPS="cdrom floppy audio dip video plugdev fuse 
bluetooth netdev scanner"


Make a backup of your sources.list:

root@devuan:~# cp /etc/apt/sources.list /etc/apt/sources.list-back

Don't rename this file.

Create an executable /usr/bin/preseed-hack:

#! /bin/bash

dpkg --purge live-boot live-boot-initramfs-tools live-tools live-config 
live-config-sysvinit

rm -rf /etc/live
rm -f /etc/apt/sources.list
mv /etc/apt/sources.list-back /apt/sources.list

FILE=/etc/fstab
if grep "^/dev/sd" ${FILE} | grep "/media/" | grep "auto"
then
LINE1=`grep "^/dev/sd" ${FILE} | grep "/media/" | grep "auto"`
LINE2="## ${LINE1}"
rpl -q "${LINE1}" "${LINE2}" ${FILE}
fi
if grep "^/dev/sr" ${FILE} | grep "/media/cdrom"
then
LINE3=`grep "^/dev/" ${FILE} | grep "/media/cdrom"`
LINE4="## ${LINE3}"
rpl -q "${LINE3}" "${LINE4}" ${FILE}
fi
exit 0

The above script fixes another bug in debian-installer.

Clean the system and exit:

root@devuan:~# apt-get autoremove --purge
root@devuan:~# apt-get autoclean

You can use 'mksquashfs' for getting the new filesystem.squashfs, but i 
prefer to use live-build.


Using live-build we will get a better compression (Ozi and Frits are 
working on that).



*2.- *_*GETTING THE NEW FILESYSTEM.SQUASHFS WITH LIVE-BUILD*_

Install 'live-build' and 'squashfs-tools' packages, and type:

$ mkdir live-build
$ cd live-build
$ sudo su
# lb init

Here you are an example for lb-config (choose your nearest mirror):

# lb config -a amd64 \
  --binary-images iso \
  --distribution jessie \
  --win32-loader false \
  --checksums md5 \
  --archive-areas "main" \
  --apt-recommends false \
  --apt aptitude \
  --apt-options --yes \
  --build-with-chroot false \
  --parent-mirror-bootstrap "deb http://es.mirror.devuan.org/merged/"; \
  --parent-mirror-binary "deb http://es.mirror.devuan.org/merged/"; \
  --mirror-bootstrap "deb http://es.mirror.devuan.org/merged/"; \
  --mirror-binary "deb http://es.mirror.devuan.org/merged/";

# lb bootstrap && lb chroot

Now you will have the following folders:

.build
cache
chroot
config

Make a backup of the chroot folder and replace it by the chroot 
containing your distribution, or create a simbolic link pointing to it.


Build the system:

# lb binary

And you will get your new filesystem.squashfs !!

Now we are going to include it in the iso.


*3.-**_GENERATING THE ISO_*

Install 'genisoimage', 'syslinux' and 'syslinux-utils' packages.

Download the following live image of Devuan:

gnuinos.org/devuan

Extract it with file-roller or isomaster in a file named 'DEVUAN', and 
replace the following files:


live/filesystem.squashfs
live/initrd.img
live/vmlinuz

You can also customize the splash, etc...

The following script will generate the new *.iso image and the *.iso.md5:

#!/bin/sh

WORKDIR="$HOME"
ISOTMP="DEVUAN"

CREATEISO="`which mkisofs`"
if [ "$CREATEISO" = "" ]; then
CREATEISO="`which genisoimage`"
fi

LIVECDLABEL="unofficial Devuan 1.0 Alpha2"
CUSTOMISO="unofficial-Devuan-1.0-Alpha2_amd64.iso"

find $WORKDIR/$ISOTMP -xdev -type f -print0 | xargs

Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread aitor_czr

I forgot umounting the partitions:

umount chroot/proc
umount chroot/sys
umount chroot/dev/pts

after exiting from the chroot jail. Be sure that chroot/proc and 
chroot/sys are empty, because sometimes they are busy. Otherwise, 
restart the computer.


   Aitor.

On 11/21/2015 01:27 PM, aitor_czr wrote:

Hi all,

This example is for amd64 architecture.

I genuinely apologize for the length of the post !!


*1.-**_MODIFYING THE FILESYSTEM.SQUASHFS_*

Download the iso distribution: ExeGnuLinux, Refracta, Star... or 
whatever you want, and extract the content.


You will find a squashfs file in it (there are exceptions like 
knoppix, which uses loop). This file is named filesystem.squashfs in 
the most of the cases.


Mount the file into a chroot jail and enter move up to it:

$ mkdir /tmp/squashfs
$ sudo su
# mount -t squashfs -o loop filesystem.squashfs /tmp/squashfs
# rsync  -v -rlt -a /tmp/squashfs/ chroot
# umount /tmp/squashfs/
# mount -t none -o bind /proc chroot/proc
# mount -t none -o bind /sys chroot/sys
# mount -t none -o bind /dev/pts chroot/dev/pts
# xhost +

If you don't type xhost+, you will can't be able to run graphical 
applications into the jail.


Copy the following files:

# cp /etc/hostname chroot/etc/hostname
# cp /etc/hostname/hosts chroot/etc/hostname/hosts
# cp /etc/hostname/resolv.conf chroot/etc/resolv.conf

Now you will have network connection into the jail.

Move up to the jail:

# chroot chroot

Do all the changes you want in the system. The following three points 
are very important:


i) The kernel in the system and the kernel in the installer must be 
the same.


ii) Install all the grub dependencies, but not the grub.

iii) Remove /etc/fstab... Yes, kick it! If you don't remove this file, 
doing a manual partition during the installation, your personal folder 
will not be created (this is a bug in debian-installer).


Install the following packages:

root@devuan:~# apt-get install live-boot live-boot-initramfs-tools 
live-tools live-config live-config-sysvinit


Create a file "/etc/live/config.conf" containing something like that:

LIVE_HOSTNAME=devuan
LIVE_USERNAME=devuan
LIVE_USER_FULLNAME="Devuan"
LIVE_USER_DEFAULT_GROUPS="cdrom floppy audio dip video plugdev fuse 
bluetooth netdev scanner"


Make a backup of your sources.list:

root@devuan:~# cp /etc/apt/sources.list /etc/apt/sources.list-back

Don't rename this file.

Create an executable /usr/bin/preseed-hack:

#! /bin/bash

dpkg --purge live-boot live-boot-initramfs-tools live-tools 
live-config live-config-sysvinit

rm -rf /etc/live
rm -f /etc/apt/sources.list
mv /etc/apt/sources.list-back /apt/sources.list

FILE=/etc/fstab
if grep "^/dev/sd" ${FILE} | grep "/media/" | grep "auto"
then
LINE1=`grep "^/dev/sd" ${FILE} | grep "/media/" | grep "auto"`
LINE2="## ${LINE1}"
rpl -q "${LINE1}" "${LINE2}" ${FILE}
fi
if grep "^/dev/sr" ${FILE} | grep "/media/cdrom"
then
LINE3=`grep "^/dev/" ${FILE} | grep "/media/cdrom"`
LINE4="## ${LINE3}"
rpl -q "${LINE3}" "${LINE4}" ${FILE}
fi
exit 0

The above script fixes another bug in debian-installer.

Clean the system and exit:

root@devuan:~# apt-get autoremove --purge
root@devuan:~# apt-get autoclean

You can use 'mksquashfs' for getting the new filesystem.squashfs, but 
i prefer to use live-build.


Using live-build we will get a better compression (Ozi and Frits are 
working on that).



*2.- *_*GETTING THE NEW FILESYSTEM.SQUASHFS WITH LIVE-BUILD*_

Install 'live-build' and 'squashfs-tools' packages, and type:

$ mkdir live-build
$ cd live-build
$ sudo su
# lb init

Here you are an example for lb-config (choose your nearest mirror):

# lb config -a amd64 \
  --binary-images iso \
  --distribution jessie \
  --win32-loader false \
  --checksums md5 \
  --archive-areas "main" \
  --apt-recommends false \
  --apt aptitude \
  --apt-options --yes \
  --build-with-chroot false \
  --parent-mirror-bootstrap "deb 
http://es.mirror.devuan.org/merged/"; \

  --parent-mirror-binary "deb http://es.mirror.devuan.org/merged/"; \
  --mirror-bootstrap "deb http://es.mirror.devuan.org/merged/"; \
  --mirror-binary "deb http://es.mirror.devuan.org/merged/";

# lb bootstrap && lb chroot

Now you will have the following folders:

.build
cache
chroot
config

Make a backup of the chroot folder and replace it by the chroot 
containing your distribution, or create a simbolic link pointing to it.


Build the system:

# lb binary

And you will get your new filesystem.squashfs !!

Now we are going to include it in the iso.


*3.-**_GENERATING THE ISO_*

Install 'genisoimage', 'syslinux' and 'syslinux-utils' packages.

Download the following live image of Devuan:

gnuinos.org/devuan

Extract it with file-roller or isomaster in a file named 'DEVUAN', and 
replace the following files:


live/filesystem.squashfs
live/initrd.img
live/vmlinuz

You can also customize the splash, etc...

The following script will generate the new *.iso ima

Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread Godefridus Daalmans

Thanks for documenting that Aitor!

It's all a lot of work.

Let's shout a heartfelt "thank you" to Daniel Baumann and his live-build 
companions who automated this difficult set of tasks considerably :-)


A small tip I learned only recently, for experimenting with chroot 
jails:
You wouldn't want to rm /etc/fstab and forget whether you're in a chroot 
in a chroot or in the "top-level" terminal session by accident.

I noticed that if the first thing you do out of habit after chroot is
export debian_chroot=CHROOT
it's a bit easier to keep track of where you are because of the default 
$PS1 prompt in Debian



All I did for live-build tests was:

- lb config

- edit the files in config/

- edit config/package-lists/sinterklaasverlanglijst.list

- lb build

and it made a DVD. I suppose it should be that easy, as long as you 
don't do any advanced stuff.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread fsmithred
On 11/21/2015 07:27 AM, aitor_czr wrote:
> "How to integrate devuan-installer in an existing devuan based system"


Nice howto. Not too long - just the right length.

Is there a devuan-installer package, or are we just using the debian
installer?



> 
> Install the following packages:
> 
> root@devuan:~# apt-get install live-boot live-boot-initramfs-tools
> live-tools live-config live-config-sysvinit
> 

These will already be installed in Refracta or Exegnulinux. (Possibly not
live-tools, I think I left it out in the last Refracta builds. I'm pretty
sure that all it does is change update-initramfs so it puts the updated
initrd in /live instead of in /boot.)



> 
> You can use 'mksquashfs' for getting the new filesystem.squashfs, but i
> prefer to use live-build.
> 
> Using live-build we will get a better compression (Ozi and Frits are
> working on that).
> 

Try it with 'mksquashfs -comp=xz' for a smaller file. If you can compress
better than that, I would like to know more about it. Thanks.


-fsr


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread dev1fanboy
Excellent! If you put this up somewhere let me know and I'll link to 
you


 
On Saturday, November 21, 2015 12:27 PM, aitor_czr 
 wrote:


 

Hi all,

This example is for amd64 architecture.

I genuinely apologize for the length of the post !!


--
Take back your privacy. Switch to www.StartMail.com
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Is netman being adopted or was it a waste of time, and effort?

2015-11-21 Thread Edward Bartolo
netman can autoconnect, you only need to use the --auto-conn parameter
with the GUI frontend.

Edward

On 21/11/2015, aitor_czr  wrote:
> Hi Edward,
>
> As you know, i'm taking a look at GtkBuilder.
>
> My first example was a window with a button doing nothing. So, it works
> fine in old hardware.
>
> My second example was a spinner, and there will be more examples all of
> them focused to the netman gui.
>
> I've been using netman for weeks with no issues, except for the fact
> that it doesn't autoconnect (probably my fault).
>
> Cheers,
>
> Aitor.
>
> On 11/20/2015 12:11 PM, Edward Bartolo  wrote:
>> Hi All,
>>
>> At the moment, I am too busy to stay online. I am writing to ask
>> whether there are users of netman to evaluate whether my efforts were
>> worthwhile or not.
>>
>>
>> Edward
>
>
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Is netman being adopted or was it a waste of time, and effort?

2015-11-21 Thread aitor_czr
Sorry, overlooked! It is only now, as you say this, that i remember 
reading it:


* DngDigest, Vol 12, Issue 39 (September 13) *

Thanks,

  Aitor

On 11/21/2015 06:10 PM, Edward Bartolo wrote:

netman can autoconnect, you only need to use the --auto-conn parameter
with the GUI frontend.

Edward


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread Ozi Traveller
Hi Frits

Yes that would be a good enough test.  Appreciate all your work getting it
devuanised!

Which repo did you use to make the dvd?

Cheers
Ozi

On Sun, Nov 22, 2015 at 12:59 AM, Godefridus Daalmans  wrote:

> Thanks for documenting that Aitor!
>
> It's all a lot of work.
>
> Let's shout a heartfelt "thank you" to Daniel Baumann and his live-build
> companions who automated this difficult set of tasks considerably :-)
>
> A small tip I learned only recently, for experimenting with chroot jails:
> You wouldn't want to rm /etc/fstab and forget whether you're in a chroot
> in a chroot or in the "top-level" terminal session by accident.
> I noticed that if the first thing you do out of habit after chroot is
> export debian_chroot=CHROOT
> it's a bit easier to keep track of where you are because of the default
> $PS1 prompt in Debian
>
>
> All I did for live-build tests was:
>
> - lb config
>
> - edit the files in config/
>
> - edit config/package-lists/sinterklaasverlanglijst.list
>
> - lb build
>
> and it made a DVD. I suppose it should be that easy, as long as you don't
> do any advanced stuff.
>
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread Godefridus Daalmans

Hello,

the first "devuanized" live-build is going to be jessie-only, 
4.0.3-somethingdevuansomething
and I still have to see how easily it can be merged a year forward 
(hopefully that's easy to do)


It's just that live-build is quite debian-specific and needed to be 
changed otherwise it just
would force installation of systemd on any live DVD you make with it. 
Not hardcoded, I hasten to say,

but as a consequence of debootstrap's dependencies handling.

Frits


Hi Frits

Yes that would be a good enough test.  Appreciate all your work getting 
it

devuanised!

Which repo did you use to make the dvd?

Cheers
Ozi

On Sun, Nov 22, 2015 at 12:59 AM, Godefridus Daalmans

wrote:



Thanks for documenting that Aitor!

It's all a lot of work.

Let's shout a heartfelt "thank you" to Daniel Baumann and his 
live-build

companions who automated this difficult set of tasks considerably :-)

A small tip I learned only recently, for experimenting with chroot
jails:
You wouldn't want to rm /etc/fstab and forget whether you're in a 
chroot

in a chroot or in the "top-level" terminal session by accident.
I noticed that if the first thing you do out of habit after chroot is
export debian_chroot=CHROOT
it's a bit easier to keep track of where you are because of the 
default

$PS1 prompt in Debian


All I did for live-build tests was:

- lb config

- edit the files in config/

- edit config/package-lists/sinterklaasverlanglijst.list

- lb build

and it made a DVD. I suppose it should be that easy, as long as you
don't
do any advanced stuff.




___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] How to integrate devuan-installer in an existing devuan based system

2015-11-21 Thread Ozi Traveller
Hi Frits

I want to see how much changed between stable and sid versions.

I've started to do a side by side compare of 4.0.4 and 5.0-a11-2 in sid,
using diffuse.

Functions:
1. all reference to ubuntu has gone
2. updated copyright hears
3. templates.sh, releases.sh deleted
4. chroot_bind_path.sh added
5. renaming variables LIVE_IMAGE_xxx to LB_xxx
6. charon to cairon
7. casper deleted

Most of the differences where in defaults.sh, as you would expect.

Many of the scripts have only a small change.

Cheers
Ozi


On Sun, Nov 22, 2015 at 7:46 AM, Godefridus Daalmans 
wrote:

> Hello,
>
> the first "devuanized" live-build is going to be jessie-only,
> 4.0.3-somethingdevuansomething
> and I still have to see how easily it can be merged a year forward
> (hopefully that's easy to do)
>
> It's just that live-build is quite debian-specific and needed to be
> changed otherwise it just
> would force installation of systemd on any live DVD you make with it. Not
> hardcoded, I hasten to say,
> but as a consequence of debootstrap's dependencies handling.
>
> Frits
>
> Hi Frits
>>
>> Yes that would be a good enough test.  Appreciate all your work getting it
>> devuanised!
>>
>> Which repo did you use to make the dvd?
>>
>> Cheers
>> Ozi
>>
>> On Sun, Nov 22, 2015 at 12:59 AM, Godefridus Daalmans
>> >
>>> wrote:
>>>
>>
>> Thanks for documenting that Aitor!
>>>
>>> It's all a lot of work.
>>>
>>> Let's shout a heartfelt "thank you" to Daniel Baumann and his live-build
>>> companions who automated this difficult set of tasks considerably :-)
>>>
>>> A small tip I learned only recently, for experimenting with chroot
>>> jails:
>>> You wouldn't want to rm /etc/fstab and forget whether you're in a chroot
>>> in a chroot or in the "top-level" terminal session by accident.
>>> I noticed that if the first thing you do out of habit after chroot is
>>> export debian_chroot=CHROOT
>>> it's a bit easier to keep track of where you are because of the default
>>> $PS1 prompt in Debian
>>>
>>>
>>> All I did for live-build tests was:
>>>
>>> - lb config
>>>
>>> - edit the files in config/
>>>
>>> - edit config/package-lists/sinterklaasverlanglijst.list
>>>
>>> - lb build
>>>
>>> and it made a DVD. I suppose it should be that easy, as long as you
>>> don't
>>> do any advanced stuff.
>>>
>>>
>>
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Experiencing with GtkBuilder

2015-11-21 Thread Edward Bartolo
Hi Aitor,

As I told you earlier in this thread, I am am joining you in your
experimentation with gtk. I have just created a little calendar
application using the calendar widget. After this, I can try to create
the GUI for netman but obviously without the coding.

Edward

On 21/11/2015, aitor_czr  wrote:
> Hi Rainer,
>
> And thanks for your test...
>
> On 20/11/15 12:11, Rainer Weikusat  wrote:
>> "Works for me" (as usual, the dbus invasion could be successfully
>> repelled by deinstalling everything which came in the way until dbus
>> could be deinstalled itself without affecting any 'real' functionality).
> Almost certainly my lower version of gtk3 doesn't support spinning
> animation. See here:
>
> http://ftp.acc.umu.se/pub/GNOME/sources/gtk+/3.8/gtk+-3.8.0.news
>
> Are you in Ceres? I will try with the unstable branch.
>
>> BTW, instead of creating a README file telling people what to do, have
>> you considered using a Makefile which does it for them?
> Yes..., i will do so :)
>
> Thanks again,
>
>Aitor.
>
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng