USM

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: USM

Post#76 by Ed_P » 11 Dec 2015, 04:37

johnsmith wrote:Vfat is a Microsoft partition system
Yes. :oops: I'm more use to seeing FAT, FAT32, exFAT and NTFS for Microsoft partitions rather than vfat. :sorry:
Francois, I have checked and all the packages downloaded to /tmp/usm/ are there even if I restart the system. Maybe it is deleted when the folder belongs to guest user.
I think the /tmp/ folder is cleared only when the changes=EXIT cheatcode is used.
Another question: I have seen that when you download a package that need some others, you can merge them and keep in one xzm file.
But is there any way to merge xzm packages?
I believe there are 2 commands that could do that. One is named xzm2dir and the other is dir2xzm. I have never used them under 3.1 so I don't speak from experience.

Good to see USM is finally working for you. :Yahoo!:
Ed

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

Re: USM

Post#77 by ncmprhnsbl » 11 Dec 2015, 05:02

johnsmith wrote:But is there any way to merge xzm packages?
yes there is..
heres how i do it: (clunky gui method)
rightclick on 1st module> choose: 'extract module'
repeat for second(and so on)(you may be able to do this one go by selecting them all)
this gives two(or more) "fakeroots"
copy as root the contents of each into one (add configs if you like)
name it what you like
rightclick on this directory > choose 'choose' > choose "Build porteus Module"

cli method:
put .xzms in a directory (eg. /tmp/merge)

Code: Select all

cd /dir/of/xzms
then as root

Code: Select all

for a in *.xzm; do xzm2dir $a /to/your/modulename; done
then

Code: Select all

dir2xzm  /to/your/modulename  <mergedmodulename>.xzm
or this script:
http://forum.porteus.org/viewtopic.php? ... =15#p35703
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#78 by johnsmith » 11 Dec 2015, 05:12

Thank you!

Amazing community

:Yahoo!: :Yahoo!:
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

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

Re: USM

Post#79 by ncmprhnsbl » 11 Dec 2015, 06:06

How can I see all the packages available?
you mean like in the repo(s)? good question.. via a web browser probly
i find searching pkgs.org gives an indication of whats available..

for lists: http://mirrors.slackware.com/slackware/ (14.1)
and http://packages.slackonly.com/pub/packages/

note: with libs and stuff ubuntu(debian) tends to split things up where slackware leaves them whole..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: USM

Post#80 by Bogomips » 11 Dec 2015, 14:21

@Ed_P

:beer:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: USM

Post#81 by Ed_P » 11 Dec 2015, 18:21

Bogomips wrote:@Ed_P

:beer:
:)

johnsmith after you get the system the way you want, make a backup copy of your save.dat file, and lets begin to address the USM update problem.

Deactivate the USM database module and rename it to some other extension, .xyzm for example. Then run this script:

Code: Select all

#!/bin/bash

if [ `whoami` != "root" ]; then
  su -c "sh $0 $1"
  exit
fi

# http://forum.porteus.org/viewtopic.php?f=75&t=3040&p=24697#p24697
DATADIR=/usr/share
BINDIR=/usr/bin
SYSCONFDIR=/etc
MANDIR=/usr/man/man8
TARGET=usm
LATEST=usm-latest-0.0-noarch-1.txz
PKG=http://sourceforge.net/projects/usm/files/$LATEST/download

echo "Removing USM"
rm -f ${BINDIR}/${TARGET}
rm -f ${BINDIR}/${TARGET}gui
rm -f ${BINDIR}/packagetools
rm -f ${DATADIR}/applications/${TARGET}.desktop
rm -f ${DATADIR}/icons/hicolor/48x48/apps/usm*
rm -rf ${SYSCONFDIR}/${TARGET}
rm -rf ${DATADIR}/usm
rm -f /${MANDIR}/${TARGET}.8*
rm -rf /var/usm
echo
echo "Installing USM"
wget --no-check-certificate --trust-server-names $PKG -P /tmp || { echo "No internet!!"; exit; }
installpkg /tmp/$LATEST
echo
echo usm -v
usm -v
echo usm -u all
usm -u all

No hurry, take your time. Enjoy the holidays.
Ed

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#82 by johnsmith » 13 Dec 2015, 07:27

Guess?

Code: Select all

Removing USM

Installing USM
--2015-12-13 11:23:08--  http://sourceforge.net/projects/usm/files/usm-latest-0.0-noarch-1.txz/download
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/project/usm/usm-latest-0.0-noarch-1.txz?r=&ts=1449991389&use_mirror=liquidtelecom [following]
--2015-12-13 11:23:08--  http://downloads.sourceforge.net/project/usm/usm-latest-0.0-noarch-1.txz?r=&ts=1449991389&use_mirror=liquidtelecom
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://liquidtelecom.dl.sourceforge.net/project/usm/usm-latest-0.0-noarch-1.txz [following]
--2015-12-13 11:23:09--  http://liquidtelecom.dl.sourceforge.net/project/usm/usm-latest-0.0-noarch-1.txz
Resolving liquidtelecom.dl.sourceforge.net (liquidtelecom.dl.sourceforge.net)... 197.155.77.8
Connecting to liquidtelecom.dl.sourceforge.net (liquidtelecom.dl.sourceforge.net)|197.155.77.8|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 63084 (62K) [application/octet-stream]
Saving to: ‘/tmp/usm-latest-0.0-noarch-1.txz’

100%[======================================>] 63,084       311KB/s   in 0.2s   

2015-12-13 11:23:09 (311 KB/s) - ‘/tmp/usm-latest-0.0-noarch-1.txz’ saved [63084/63084]

Verifying package usm-latest-0.0-noarch-1.txz.
Installing package usm-latest-0.0-noarch-1.txz:
PACKAGE DESCRIPTION:
Package usm-latest-0.0-noarch-1.txz installed.


usm -v
 You are using USM version:  3.1.9

usm -u all
 Starting alien database update 
Downloading: vercheck.txt  DONE
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 alien  database updated. 

 Starting salix database update 
Downloading: CHECKSUMS.md5  DONE
Downloading: PACKAGES.TXT  DONE
Downloading: LIBS.TXT.gz  DONE
Downloading: OPTIFEST.gz  DONE
 salix  database updated. 

 Starting slacky database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE
File verification was good.
Optimizing manifest
 slacky  database updated. 

 Starting ponce database update 
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE

gzip: /var/usm/ponce/CHECKSUMS.md5.gz: not in gzip format
          

==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while usm was running:                       
 
FATAL ERROR!
usm update_database 270
Could not decompress: CHECKSUMS.md5.gz
 
============================================================================== 

root@porteus:/# 
:no: :no: :no:

I have reverted everything as it was (save.dat, database package...) and USM is not working.
Besides, the packages that I have previously downloaded and merge (gimp, tcl, tk and claws) are not working now!!!

:wall: :wall: :wall:
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM

Post#83 by brokenman » 13 Dec 2015, 18:22

johnsmith, please boot into your system and just before you go to update USM look in the porteus-settings-centre for system information. Generate a report and upload it to pastebin then post a link here. If nobody can reproduce this problem it is probably something in your system. Thanks.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#84 by johnsmith » 14 Dec 2015, 07:04

Ok, I'm just came back and the following report is the one I have previously to last Ed_P post. (After that everything was working except the database error on USM and the ponce issue... at least I have the database that Ed_P post previously, so I can download the packages)

The report... http://pastebin.ca/3286352

Regards
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM

Post#85 by brokenman » 14 Dec 2015, 13:19

In order to troubleshoot this you will need to boot in always fresh mode, no extra modules, no save file. You will need to boot with ONLY the following modules loaded:
/mnt/sdb1/porteus/base/000-kernel.xzm
/mnt/sdb1/porteus/base/001-core.xzm
/mnt/sdb1/porteus/base/002-xorg.xzm
/mnt/sdb1/porteus/base/003-kde.xzm
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#86 by johnsmith » 14 Dec 2015, 15:42

Ok...

On fresh mode

http://pastebin.ca/3287206

But it is loading more libraries than the core... how can I fix it?
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#87 by johnsmith » 14 Dec 2015, 16:19

Dear Brokenman:

I have followed your indication so...

1) After open a session on always fresh mode, only with the core system (kernel, core, worg and kde).
2) Report my setup. http://pastebin.ca/3287239
3) Update system, so new packages added: 001-core_alldesktops-150124.xzm and 002-xorg_alldesktops-150126.xzm
4) Reboot, as Porteus setting center is requesting.
5) After reboot, new modules are loaded. http://pastebin.ca/3287328
6) Update USM. (Missing database error shown)
7) Updated to USM 3.1.9 so I restart the application.
8 ) After updating and restarting, the missing database error is shown again.
9) So I run terminal, closing USM in order to copy console report and update one by one.
10) Update slackware. Done!
11) Update slacky. Done!
12) Update salix. Done!
13) Update alien. Done!
14) Update ponce. Same error than always:

Code: Select all

root@porteus:/home/guest# usm -u ponce
 Starting ponce database update 
Downloading: vercheck.txt  DONE
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE

gzip: /var/usm/ponce/CHECKSUMS.md5.gz: not in gzip format
          

==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while usm was running:                       
 
FATAL ERROR!
usm update_database 270
Could not decompress: CHECKSUMS.md5.gz
 
============================================================================== 

root@porteus:/home/guest#
15) Close Terminal and run USM in order to check if it can work.

Trials:
Gimp (aalib-1.4rc5-x86_64-5.txz;at-spi2-atk-2.8.1-x86_64-1.txz;
at-spi2-core-2.8.0-x86_64-1.txz;babl-0.1.10-x86_64-1.txz;
cups-1.5.4-x86_64-3.txz;gegl-0.2.0-x86_64-2.txz;
ghostscript-9.07-x86_64-2.txz;gimp-2.8.6-x86_64-1.txz;
gtk+3-3.8.2-x86_64-2.txz;ilmbase-1.0.3-x86_64-1.txz;
jasper-1.900.1-x86_64-3.txz;libXevie-1.0.3-x86_64-1.txz;
libwmf-0.2.8.4-x86_64-5.txz;openxr-1.7.1-x86_64-1.txz)

Create a subfolder, convert to modules, merge modules
Slackware database ask for updating.
Updated.
Trying again.
Subfolder created.
Packages to modules converted.
Merged not done. Manually.

Tcl (tcl-8.6.1-x86_64-1.txz & tclx-8.4.1-x86_64-3.txz)
Subfolder created.
Packages to modules converted.

Tk (tk-8.6.1-x86_64-1.txz & tcl-8.6.1-x86_64-1.txz)
Subfolder created.
Packages to modules converted.
Merged.

Thunderbird (mozilla-thunderbird-24.1.0-x86_64-1.txz)
Packages to modules converted.

16) So everything is fine except the USM database error and the ponce error.
17) Delete any change except the updating (See 3).
18) Reboot and again in fresh mode.
19) Report generated. http://pastebin.ca/3287338
USM updated but I can't update any database.
20) Download 04-chrome; 05-devel; 06-libreoffice; 07-printing; 08-skype
Copy to mnt/sdb1/porteus/base/ (In my case is sdb1)
21) Reboot and again fresh mode.
22) Report generated. http://pastebin.ca/3287340
23) Profile created: save.dat (1024 MB) on /mnt/sdb1
24) Edit porteus.cfg to introduce that profile file.
25) Reboot and now on KDE mode. (Custom)
26) New report. http://pastebin.ca/3287343
27) USM checking and update on Terminal.
USM 3.1.7, so update to USM 3.1.9
Slackware. Done!
slacky. Done!
salix. Done!
alien. Done!
ponce. Error

Code: Select all

root@porteus:/home/guest# usm -u ponce
 Starting ponce database update 
Downloading: vercheck.txt  DONE
Downloading: CHECKSUMS.md5.gz  DONE
Downloading: MANIFEST.bz2  DONE
Downloading: PACKAGES.TXT.gz  DONE
Downloading: LIBS.TXT.gz  DONE

gzip: /var/usm/ponce/CHECKSUMS.md5.gz: not in gzip format
          

==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while usm was running:                       
 
FATAL ERROR!
usm update_database 270
Could not decompress: CHECKSUMS.md5.gz
 
============================================================================== 

root@porteus:/home/guest#
28) Try USM GUI. It's working but with the famous database error.
29) I will custom the system with some wallpapers, Chrome plugins, Gimp, Tcl/Tk.

I think that something is wrong. I have made this process changing order, on always fresh, with profile, with core, with core and extensions... and no way.
Always USM database is missing and ponce can be updated.

At least, the system is working. It shouldn't be but... it is.

I have tried this in 2 different computers and... same result.
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

User avatar
Ed_P
Contributor
Contributor
Posts: 8360
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: USM

Post#88 by Ed_P » 15 Dec 2015, 04:52

johnsmith wrote:20) Download 04-chrome; 05-devel; 06-libreoffice; 07-printing; 08-skype
Copy to mnt/sdb1/porteus/base/ (In my case is sdb1)
Where are you putting the USM Gimp, etc modules? /porteus/modules/ right?
23) Profile created: save.dat (1024 MB) on /mnt/sdb1
24) Edit porteus.cfg to introduce that profile file.
"Profile" is a misleading name for the save.dat file. It records all changes made to the root and guest accounts and is usually referred to as pertaining to persistence across reboots.
I think that something is wrong.
Yeah think!! :ROFL:
I have tried this in 2 different computers and... same result.
Yeah, this is a USB problem or a ponce mirror problem IMO. Very surprised no one can replicate it. hmmm The 2 different computers, on the same network? Same router, same firewall?
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: USM

Post#89 by brokenman » 15 Dec 2015, 15:29

Well I am perplexed. I can't reproduce this on any machine with any version. There is only one ponce server. Everybody else can update without problem. Even in fresh mode you can't and your logs all look good. Nothing out of line that I can see. That you can update all the other files except one from ponce's server is even stranger! Just to be sure though, is there any way you can try to update from a different place (prefereably different ISP)?
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
johnsmith
Black ninja
Black ninja
Posts: 44
Joined: 04 Dec 2015, 06:53
Distribution: PORTEUS
Location: Spain

Re: USM

Post#90 by johnsmith » 15 Dec 2015, 18:28

Point by point:

1) All the modules that come with my usual distribution are on /porteus/modules/: 04-chrome; 05-devel; 06-libreoffice; 07-printing; 08-skype

2) Maybe it is a misunderstanding: I mean that i just creating a .dat file to customize my system, that's all, so I am creating a .dat file and declaring it into the porteus.cfg file.

3) I have tried in 2 different computer under the same network, firewall and router (Actually I'm in UAE). I will go to Spain in one week and I will try there with 2 different computers on 2 different networks. I'm trying with 4 different pendrives, so I think that it is not an USB problem.

4) I will try with two differents ISP at Spain, and we will see. I will keep you informed.

Thanks!!!
3.17.4-porteus / Intel(R) Core(TM) i5 CPU M520@2.40GHz / RAM: 8GB / NVIDIA GeForce GT 230M 1GB / Screen: 3520x900 / TOSHIBA MQ01ABD050 / Run from Imation Cool 14.92GB

Post Reply