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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
blowya
White ninja
White ninja
Posts: 13
Joined: 02 Dec 2015, 14:26
Distribution: null
Location: Mars

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

Post#1 by blowya » 04 Dec 2015, 14:00

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3412
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

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

Post#2 by Ed_P » 04 Dec 2015, 14:48

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
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 5652
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#3 by brokenman » 04 Dec 2015, 15:34

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

blowya
White ninja
White ninja
Posts: 13
Joined: 02 Dec 2015, 14:26
Distribution: null
Location: Mars

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

Post#4 by blowya » 09 Dec 2015, 14:07

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?

User avatar
brokenman
Site Admin
Site Admin
Posts: 5652
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#5 by brokenman » 09 Dec 2015, 16:04

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

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

Post#6 by Bogomips » 09 Dec 2015, 17:58

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:
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
brokenman
Site Admin
Site Admin
Posts: 5652
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#7 by brokenman » 09 Dec 2015, 22:11

If I'm not mistaken he is talking about creating a module from an updated database, not from the USM package.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

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

Post#8 by Bogomips » 11 Dec 2015, 14:32

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).
Last edited by Bogomips on 18 Dec 2015, 16:01, edited 1 time in total.
Reason: Update info.
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

Post Reply