Page 1 of 1

USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 04 Dec 2015, 14:00
by blowya
Hi,

Does anyone know where all USM binary related files located?

I located the updated packages in /var/usm (I just copy that to rootcopy so that I don't have to download every time I need to install package) since my system use copy2ram.

The default version in Porteus iso file for USM is 3.1.7, if one click Help and update USM, it would turns to 3.1.9

I tried the following
root@porteus:~# which usm
/usr/bin/usm
I found /usr/bin/usm and /usr/bin/usmgui

I copy them (the 3.1.9 updated version) into /mnt/sda1/porteus/rootcopy/usr/bin ... reboot my desktop, after that I tried run USM, but nothing come out, program seem like hanging.

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 04 Dec 2015, 14:48
by Ed_P
blowya wrote: Does anyone know where all USM binary related files located?
Run this script and it will show you.

Code: Select all

#!/bin/bash
# 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"
echo ${BINDIR}/${TARGET}
echo ${BINDIR}/${TARGET}gui
echo ${BINDIR}/packagetools
echo ${DATADIR}/applications/${TARGET}.desktop
echo ${DATADIR}/icons/hicolor/48x48/apps/usm*
echo ${SYSCONFDIR}/${TARGET}
echo ${DATADIR}/usm
echo /${MANDIR}/${TARGET}.8*
echo /var/usm

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 04 Dec 2015, 15:34
by brokenman
Rootcopy is not the right plac fr these files. You won't be able to update since rootcopy is the last directory copied into the live file system. You would be better off creating a module nd putting it in the modules folder.

May I ask why you want to copy the application files to rootcopy? You really only need to backup the database files (/var/usm) and you config file.

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 09 Dec 2015, 14:07
by blowya
Hi,
Sorry for late reply,
May I ask why you want to copy the application files to rootcopy? You really only need to backup the database files (/var/usm) and you config file.
I thought rootcopy is for files that always get updated, so could save the trouble to zip them into xzm.

I copied /var/usm but wondering where the config file.
Will try to dig more later.
You won't be able to update since rootcopy is the last directory copied into the live file system.
Isn't it the last copied will overwrite anything previously copied?

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 09 Dec 2015, 16:04
by brokenman
That's right. So when you update USM using the update function, it doesn't put things into rootcopy. So your rootcopy files will overwrite the updates. If you make a module, it belongs in the modules folder.

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 09 Dec 2015, 17:58
by Bogomips
Offer easy solution from a user standpoint, where there is no need to fiddle around with a whole load of files.
  1. Update usm

    Code: Select all

    root@porteus:/home/guest# usm -u usm
    Downloading: vercheck.txt  DONE
    
     An update is available for the usm database files.
     Please run:  usm -u all 
    
     A new version of USM is available.
     Would you like to download it now? [y/n]
    Downloading: usm-latest-0.0-noarch-1.txz  DONE
    ...
    root@porteus:/home/guest# ls -lh /tmp/usm/usm-latest-0.0-noarch-1.txz 
    -rw-r--r-- 1 root root 62K Sep 25 03:35 /tmp/usm/usm-latest-0.0-noarch-1.txz
    
    1. If happy with default usm config file:

      Code: Select all

      cp --parents /tmp/usm/usm-latest-0.0-noarch-1.txz /mnt/sdXy/porteus/rootcopy
    2. If config file has been tweaked:

      Code: Select all

      root@porteus:/home/guest# mkdir usm
      mkdir -p /mnt/sdXy/porteus/rootcopy/tmp/usm
      root@porteus:/home/guest# cd usm/
      root@porteus:/home/guest/usm# explodepkg /tmp/usm/usm-latest-0.0-noarch-1.txz 
      Exploding package /tmp/usm/usm-latest-0.0-noarch-1.txz in current directory:
      ...
      root@porteus:/home/guest/usm# cp /etc/usm/usm.conf   etc/usm/;   # Copy tweaked config file
      root@porteus:/home/guest/usm# makepkg -l y -c n  /mnt/sdXy/porteus/rootcopy/tmp/usm/usm-latest-0.0-noarch-1.txz
      root@porteus:/home/guest/usm# cd ..
      
  2. Set Kernel Parameter (cheatcode) at boot up: cliexec=upgradepkg~--reinstall~/tmp/usm/usm-latest-0.0-noarch-1.txz
Can try this out now, or we await word from the Master if this will work :wink:

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 09 Dec 2015, 22:11
by brokenman
If I'm not mistaken he is talking about creating a module from an updated database, not from the USM package.

Re: USM 3.1.9 doesn't shows up after /rootcopy/usr/bin/usm

Posted: 11 Dec 2015, 14:32
by Bogomips
Correction

Correction to Kernel Parameter (cheatcode) given in previous post, which concerned starting with updated USM if running in AF mode.

Code: Select all

root@porteus:/home/guest# upgradepkg --reinstall /tmp/usm/usm-latest-0.0-noarch-1.txz

Error:  there is no installed package named usm-latest-0.0-noarch-1.
        (looking for /var/log/packages/usm-latest-0.0-noarch-1)


root@porteus:/home/guest# upgradepkg /tmp/usm/usm-latest-0.0-noarch-1.txz            

Error:  there is no installed package named usm-latest-0.0-noarch-1.
        (looking for /var/log/packages/usm-latest-0.0-noarch-1)


root@porteus:/home/guest# installpkg /tmp/usm/usm-latest-0.0-noarch-1.txz       
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.

root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.9
Kernel Parameter (cheatcode) guiexec=sudo~/sbin/installpkg~/tmp/usm/usm-latest-0.0-noarch-1.txz works. :)

Edit
Verified procedure outlined in previous post to create usm package anew with tweaked config file (usm.conf).