Lxde DE Module Build

Arch based Porteus community project

Moderator: M. Eerie

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#1 by Jack » 07 Jan 2018, 00:40

I just built Lxde DE and here is a list what I have so far.

Code: Select all

[guest@porteus ~]$ ls /mnt/sdb1/porteus/base -l
total 297284
-rwxrwxrwx 1 root root  53641216 Dec 17 02:24 000-kernel-4.13.3.xzm
-rwxrwxrwx 1 root root 158515200 Dec 29 21:08 001-core-21.xzm
-rwxrwxrwx 1 root root  48902144 Dec 29 21:09 002-gui-15.xzm
-rwxrwxrwx 1 root root  32518144 Dec 29 21:10 002-xtra-16.xzm
-rw-r--r-- 1 root root  10829824 Jan  6 13:22 003-lxde_2.xzm
[guest@porteus ~]$ ls /mnt/sdb1/porteus/modules -l
total 43496
-rwxrwxrwx 1 root root  1200128 Jan  1 18:54 epdfview.xzm
-rwxrwxrwx 1 root root 28295168 Jan  1 18:33 file-roller.xzm
-rwxrwxrwx 1 root root   176128 Jan  3 01:19 galculator-2.1.4-3-x86_64.pkg.xzm
-rwxrwxrwx 1 root root   749568 Jan  3 01:19 gftp-2.0.19-8-x86_64.pkg.xzm
-rwxrwxrwx 1 root root     4096 Jan  1 18:37 gnome-keyring-1-3.27.2-1-x86_64.pkg.xzm
-rwxrwxrwx 1 root root    90112 Jan  1 18:30 leafpad-0.8.18.1-7-x86_64.pkg.xzm
-rwxrwxrwx 1 root root  6287360 Jan  1 18:36 network-manager-applet.xzm
-rwxrwxrwx 1 root root  7737344 Jan  1 16:44 pacman-settings.xzm
[guest@porteus ~]$ 
List of modules.

Code: Select all

adwaita-icon-theme-3.26.1-1
cantarell-fonts-1:0.0.25-3
colord-1.4.1+6+gf08c25d-1
epdfview-0.1.8-8
file-roller-3.26.2-1
galculator-2.1.4-3
gcr-3.20.0+55+g470bf4c-1
gftp-2.0.19-8
gnome-keyring-1:3.27.2-1
gpicview-0.2.5-3
gtk3-3.22.26+47+g3a1a7135a2-3
iso-codes-3.76-1
json-glib-1.4.2-1
leafpad-0.8.18.1-7
libcanberra-0.30+2+gc0620e4-1
libfm-1.2.5-1
libfm-extra-1.2.5-1
libfm-gtk2-1.2.5-1
libnotify-0.7.7-1
lxappearance-0.6.3-1
lxappearance-obconf-0.2.3-1
lxde-common-0.99.2-1
lxde-icon-theme-0.5.1-3
lxdm-0.5.3-4
lxhotkey-0.1.0-1
lxinput-0.3.5-1
lxlauncher-0.2.5-2
lxmenu-data-0.1.5-1
lxmusic-0.4.7-1
lxpanel-0.9.3-1
lxrandr-0.3.1-1
lxsession-1:0.5.3-1
lxtask-0.1.8-1
lxterminal-0.3.1-1
menu-cache-1.1.0-1
mobile-broadband-provider-info-20170310-1
network-manager-applet-1.8.11dev+7+ga52ccb2f-1
nm-connection-editor-1.8.11dev+7+ga52ccb2f-1
openbox-3.6.1-3
pcmanfm-1.2.5-2
poppler-0.61.1-1
poppler-glib-0.61.1-1
rest-0.8.1-1
sound-theme-freedesktop-0.8-2
tdb-1.3.15-1
wayland-protocols-1.12-1
xmms2-0.8DrO_o.949.gca15e830-6
When I ran it I check the list of modules and one I seen missing was gnome-keyring.

To start with there are no icon's at all they are missing. What could be missing to do that?
Last edited by Jack on 12 Mar 2018, 02:16, edited 2 times in total.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#2 by ncmprhnsbl » 07 Jan 2018, 02:00

Jack wrote:
07 Jan 2018, 00:40
To start with there are no icon's at all they are missing. What could be missing to do that?
you need to run update-cache and merge the caches module (in /tmp) with your lxde module.
i see you have openbox in the list > you don't need it, it's already in 002-gui
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#3 by Jack » 07 Jan 2018, 02:28

When I boot up and if I try text mode it just boots in to the Desktop. I will try again.

I retry and now I have icon's. I am using right now.

I will work on putting all my modules in to 003-lxde.xzm and update when base modules gets updated.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#4 by ncmprhnsbl » 16 Jan 2018, 06:29

i'll put my suggestions for your module (received via pm) here: (hope you don't mind)
seems to be mostly in order, well done (:

packages not needed:
openbox (is in 002-gui)
lxdm (not used and won't work)
cantarell-fonts (the fonts in 002-gui are enough)
adwaita-icon-theme (looks like you've removed it anyway)
colord (not really needed)

packages missing:
gtk-engine-murrine (needed for -menta themes)
(possibly)gtk-engines (for the other themes: clearlooks etc)

optional:
gvfs
udisks2 don't appear to be necessary for basic mounting/unmounting of usbs etc.
(might be needed if you want trash support and/or mounting network shares)

other things to strip:
/usr/share/help/*
/usr/share/licences/*
/usr/share/locale/*
/usr/share/gir-1.0/*
/usr/bin/gtk3-demo
/usr/bin/gtk3-widget-factory
/usr/share/applications/gtk3-demo.desktop
/usr/share/applications/gtk3-widget-factory.desktop
/usr/lib/systemd

other notes:
file association for .xzm(activate/deactive) not showing in pcmanfm
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#5 by ncmprhnsbl » 16 Jan 2018, 07:07

here's some update/strip scripts, they should be placed in and run from the same directory as the extracted 003-lxde module.

this one get's the update list, the second part should be done manually with commands supplied in the lower half of the script
uplxde.sh

Code: Select all

#!/bin/bash
# Get a list of updates for lxde module
# Must be run as root in the same directory as the extracted module($PWD)
PATH1=$PWD/003-lxde
OUT1=$PWD/lx
OUT2=$PWD/upall
OUT3=$PWD/uplx

## Copy ALPM_DB_VERSION
cp -au /var/lib/pacman/local/ALPM_DB_VERSION $PATH1/var/lib/pacman/local/

## Get list of all packages in lxde
pacman -Qqr $PATH1 | awk '{print $1}' > $OUT1

## Get list of upgradable packages in column
pacman -Qqu | awk '{print $1}' > $OUT2
sleep 5

## Compare module to find upgrades   
comm -12 $OUT2 $OUT1 > $OUT3

## Script ends!
## The following commands are to be done manually in a terminal(as root) (copy and paste!)
## adjust the paths to suit($PWD should work)

## 1. Make sure the cache is clean
#pacman -Scc

## 2. Download the packages to cache without dependency checking 
#pacman -Sddw `cat $PWD/uplx`

## 3. Install the packages to the extracted module
#pacman -Uddr $PWD/003-lxde /var/cache/pacman/pkg/*.pkg.tar.xz

## 4. Run the strip script (and check after to see that worked) 
#sh lxstrip.sh

## 5. Make the module
#dir2xzm 003-lxde 003-lxde-$(date +%Y%m%d).xzm

## 6.Clean the cache before updating any other modules 
#pacman -Scc
lxstrip.sh:

Code: Select all

#!/bin/bash
## Script to export and remove unneeded files from 003-lxde
PATH1=$PWD/003-lxde
PATH2=$PWD/dev

## Some of this stuff could useful to someone
cp -au --parents $PATH1/usr/include $PATH2/usr/
cp -au --parents $PATH1/usr/share/info $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/doc $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/gtk-doc $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/licenses $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/man $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/locale $PATH2/usr/share/
cp -au --parents $PATH1/usr/share/gir-1.0 $PATH2/usr/share/

rm -rf $PATH1/usr/include/* 
rm -rf $PATH1/usr/share/info/* 
rm -rf $PATH1/usr/share/doc/* 
rm -rf $PATH1/usr/share/gtk-doc/* 
rm -rf $PATH1/usr/share/licenses/* 
rm -rf $PATH1/usr/share/man/* 
rm -rf $PATH1/usr/share/locale/* 
rm -rf $PATH1/usr/share/gir-1.0/*
rm $PATH1/usr/bin/gtk3-demo
rm $PATH1/usr/bin/gtk3-demo-application
rm $PATH1/usr/bin/gtk3-widget-factory

rm $PATH1/usr/share/applications/gtk3-demo.desktop
rm $PATH1/usr/share/applications/gtk3-widget-factory.desktop

rm $PATH1/var/lib/pacman/local/ALPM_DB_VERSION

rm -rf $PATH1/usr/lib/systemd/*
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#6 by Jack » 16 Jan 2018, 07:25

@ncmprhnsbl,

Have you look at my Lxde build yet? I been using it for about a week now. It has problem that I want to get fixed but it is workable like it is.

There is some program that is in 001 and 002 that show up in my build menu that don't work.

If you try it what did you think?

Jack

UPDATE:

I didn't see both message sorry, but I will work on what needs fixed. I glad you look and you are going to help me fixed it.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#7 by Jack » 16 Jan 2018, 18:09

Here is a new modules list. I added gtk-engine-murrine but I couldn't add gtk-engines.

Code: Select all

adwaita-icon-theme-3.26.1-1
cantarell-fonts-1:0.0.25-3
colord-1.4.1+6+gf08c25d-1
epdfview-0.1.8-8
file-roller-3.26.2-1
galculator-2.1.4-3
gcr-3.20.0+55+g470bf4c-1
gftp-2.0.19-8
giblib-1.2.4-6
gnome-keyring-1:3.27.2-1
gpicview-0.2.5-3
gtk-engine-murrine-0.98.2-2
gtk3-3.22.26+47+g3a1a7135a2-3
iso-codes-3.76-1
json-glib-1.4.2-1
leafpad-0.8.18.1-7
libcanberra-0.30+2+gc0620e4-1
libfm-1.2.5-2
libfm-extra-1.2.5-2
libfm-gtk2-1.2.5-2
libnotify-0.7.7-1
lxappearance-0.6.3-1
lxappearance-obconf-0.2.3-1
lxde-common-0.99.2-1
lxde-icon-theme-0.5.1-3
lxdm-0.5.3-5
lxhotkey-0.1.0-1
lxinput-0.3.5-1
lxlauncher-0.2.5-3
lxmenu-data-0.1.5-1
lxmusic-0.4.7-1
lxpanel-0.9.3-1
lxrandr-0.3.1-1
lxsession-1:0.5.3-1
lxtask-0.1.8-2
lxterminal-0.3.1-1
menu-cache-1.1.0-1
mobile-broadband-provider-info-20170310-1
network-manager-applet-1.8.11dev+7+ga52ccb2f-1
nm-connection-editor-1.8.11dev+7+ga52ccb2f-1
openbox-3.6.1-3
pcmanfm-1.2.5-2
poppler-0.61.1-1
poppler-glib-0.61.1-1
rest-0.8.1-1
scrot-0.8.17-2
sound-theme-freedesktop-0.8-2
tdb-1.3.15-1
wayland-protocols-1.12-1
xmms2-0.8DrO_o.949.gca15e830-10
How can I remove these from 003-lxde.xzm?

Code: Select all

adwaita-icon-theme-3.26.1-1
cantarell-fonts-1:0.0.25-3
colord-1.4.1+6+gf08c25d-1
lxdm-0.5.3-5
openbox-3.6.1-3
I was going to add gvfs and udisks2 but it wanted to add all of these.

Code: Select all

argon2-20171227-2-x86_64.pkg.xzm
btrfs-progs-4.14-2-x86_64.pkg.xzm
cryptsetup-2.0.0-5-x86_64.pkg.xzm
device-mapper-2.02.177-1-x86_64.pkg.xzm
dmraid-1.0.0.rc16.3-10-x86_64.pkg.xzm
gvfs-1.34.1+11+gad63dfb7-1-x86_64.pkg.xzm
libaio-0.3.110-1-x86_64.pkg.xzm
libblockdev-2.14-2-x86_64.pkg.xzm
libbytesize-1.0-1-x86_64.pkg.xzm
lvm2-2.02.177-1-x86_64.pkg.xzm
python2-2.7.14-1-x86_64.pkg.xzm
thin-provisioning-tools-0.7.5-1-x86_64.pkg.xzm
udisks2-2.7.5-1-x86_64.pkg.xzm
volume_key-0.3.9-5-x86_64.pkg.xzm
zstd-1.3.3-1-x86_64.pkg.xzm
What do you think?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#8 by ncmprhnsbl » 16 Jan 2018, 21:20

Jack wrote:
16 Jan 2018, 18:09
How can I remove these from 003-lxde.xzm?

Code: Select all

pacman -Rddr /path/to/extracted/module adwaita-icon-theme cantarell-fonts colord lxdm openbox
Jack wrote:
16 Jan 2018, 18:09
I was going to add gvfs and udisks2 but it wanted to add all of these.
fairly sure udisks and gvfs don't need all of that, could be related to out of date packages in core..(and the unpackaged cryptsetup in kernel)
so :

Code: Select all

pacman -Sddw udisks gvfs
the 'dd' means disable all dependency checking
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#9 by Jack » 17 Jan 2018, 00:58

The remove modiles went great. Not sure where it went, but I can't seem to find them. Here is the output.

Code: Select all

[porteus temp]# pacman -Sddw gvfs udisks2

Packages (2) gvfs-1.34.1+11+gad63dfb7-1  udisks2-2.7.5-1

Total Download Size:  1.68 MiB

:: Proceed with download? [Y/n] y
:: Retrieving packages...
 udisks2-2.7.5-1-x86_64                                               797.1 KiB   602K/s 00:01 [########################################################] 100%
 gvfs-1.34.1+11+gad63dfb7-1-x86_64                                    922.2 KiB   227K/s 00:04 [########################################################] 100%
(2/2) checking keys in keyring                                                                 [########################################################] 100%
(2/2) checking package integrity                                                               [########################################################] 100%
[porteus temp]#
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#10 by ncmprhnsbl » 17 Jan 2018, 22:27

Jack wrote:
17 Jan 2018, 00:58
Not sure where it went, but I can't seem to find them. Here is the output.
downloaded packages are in /var/cache/pacman/pkg
install them with:

Code: Select all

pacman -Uddr /path/to/003-lxde /var/cache/pacman/pkg/*.pkg.tar.xz
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#11 by Jack » 17 Jan 2018, 23:58

When I downloaded gvfs, udisks2 and gtk-engines it didn't put them here /var/cache/pacman/pkg it turn them into an xzm.

So I did this xzm2dir /path/to/*.xzm 003-lxde.

Then I check /var/lib/pacman/local for them but they were not there.

I did this before and I know it works below.
So I did this xzm2dir /path/to/*.xzm 003-lxde.

Then I check /var/lib/pacman/local for them but they were not there.
What is going on?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#12 by ncmprhnsbl » 18 Jan 2018, 02:00

Jack wrote:
17 Jan 2018, 23:58
What is going on?
dunno Jack, but there's no way pacman -Sddw can make a module.
only pman
Jack wrote:
17 Jan 2018, 23:58
So I did this xzm2dir /path/to/*.xzm 003-lxde.
was this command executed in the same directory as 003-lxde?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#13 by Jack » 18 Jan 2018, 03:10

ncmprhnsbl wrote:
18 Jan 2018, 02:00
Jack wrote:
17 Jan 2018, 23:58
What is going on?
dunno Jack, but there's no way pacman -Sddw can make a module.
only pman
I'm sorry I did it wrong I use pman.
Jack wrote:
17 Jan 2018, 23:58
So I did this xzm2dir /path/to/*.xzm 003-lxde.
was this command executed in the same directory as 003-lxde?
This how I did it to each modules.

Code: Select all

guest@porteus:~$
guest@porteus:~$ cd /mnt/sdb1/porteus/modules# 
guest@porteus:~$ /mnt/sdb1/porteus/modules# ls
gtk-engines-2.21.0-3-x86_64.pkg.xzm*  gvfs-1.34.1+11+gad63dfb7-1-x86_64.pkg.xzm*  udisks2-2.7.5-1-x86_64.pkg.xzm*
guest@porteus:~$ /mnt/sdb1/porteus/modules# exit
guest@porteus:~$ su
Password: 
root@porteus:/# cd home/guest
root@porteus:/home/guest# ls
003-lxde/  Desktop/  Documents/  Downloads/  Music/  Pictures/  Public/  Videos/
root@porteus:/home/guest# xzm2dir /mnt/sdb1/porteus/modules/gtk-engines*.xzm 003-lxde 
What is meant by dunno Jack?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#14 by ncmprhnsbl » 18 Jan 2018, 03:38

Jack wrote:
18 Jan 2018, 03:10
What is meant by dunno Jack?
:D dunno = don't know . as in: i have no idea what's going on.
Jack wrote:
18 Jan 2018, 03:10
root@porteus:/home/guest# xzm2dir /mnt/sdb1/porteus/modules/gtk-engines*.xzm 003-lxde
looks like it should work, are you getting output after this command? showing the unsquashfs process?
try extracting one of these to an empty folder and see what's in it..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#15 by Jack » 18 Jan 2018, 04:14

Are you getting output after this command? YES

Showing the unsquashfs process?

Code: Select all

root@porteus:/home/guest/003-lxde# xzm2dir gtk*.xzm temp1
Parallel unsquashfs: Using 2 processors
92 inodes (92 blocks) to write

[===============================================================================================================================================|] 92/92 100%

created 92 files
created 163 directories
created 0 symlinks
created 0 devices
created 0 fifos
root@porteus:/home/guest/003-lxde# xzm2dir gvfs*.xzm temp2
Parallel unsquashfs: Using 2 processors
150 inodes (150 blocks) to write

[=============================================================================================================================================|] 150/150 100%

created 150 files
created 182 directories
created 0 symlinks
created 0 devices
created 0 fifos
root@porteus:/home/guest/003-lxde# xzm2dir udi*.xzm temp3
Parallel unsquashfs: Using 2 processors
92 inodes (101 blocks) to write            

[=========================================================================================================|] 101/101 100%

created 90 files
created 167 directories
created 2 symlinks
created 0 devices
created 0 fifos
root@porteus:/home/guest/003-lxde# 
Try extracting one of these to an empty folder and see what's in it. It looks like it install ok. It just don't have anything inside this /var/lib/pacman/local.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply