Fine tuning of usm for newcomers: your suggestions

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Fine tuning of usm for newcomers: your suggestions

Post#1 by francois » 19 Apr 2015, 13:11

On another thread about solutions to missing dependencies from USM by goossbear:
http://forum.porteus.org/viewtopic.php? ... 537#p32862

It was concluded that the discussion was begining to get quite off topic. A forking of the discussion that with all its recognised advantages, it might be that usm package manager when used for porteus newcomers, though simple in its functioning, did not seem obvious as to produce the expected final result. Amongst other reasons a functional installed package working out of the bath seems to be one of these final expected result.

Whether it be in windows or in other linux distribution, the package manager is not only downloading and preparing the packages, but also installing them so that they could be ready to use. However, maybe a disadvantage of further simplicity in that line, will turn into additional computer workload.

So you are invited to provide your suggestions in terms of fine tuning of usm for newcomers.

Note that the main object of this thread is for discussing some fine tuning for now, as we really care to make sure that these fine tuning will please to both newcomers and to experienced users.
Prendre son temps, profiter de celui qui passe.

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#2 by brokenman » 21 Apr 2015, 19:34

I see the sense in adding MODULES=true by default (for porteus) and today I added this. I also added activate modules by default to the config file.

I also added a function to update the slackware packages so you can grab all the latest patches from slackware. I added it only to the CLI version as a testing ground as it has many caveats on a live operating system. It is currently on github.

Code: Select all

usm -u system
EDIT:
I added the following configs to the config file. Available in GUI now.

# Convert all slackware packages that are downloaded
# to porteus modules.
MODULES=true

# Activate modules after downloading them
ACTIVATEMOD=true

# Remove slackware packages after downloading
REMOVETXZ=false
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: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Fine tuning of usm for newcomers: your suggestions

Post#3 by Bogomips » 21 Apr 2015, 21:06

Very nice. So in CLI at next update of USM?
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: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Fine tuning of usm for newcomers: your suggestions

Post#4 by Ed_P » 21 Apr 2015, 21:12

brokenman wrote:# Activate modules after downloading them
ACTIVATEMOD=true
Will this handle when like named modules are already active? ie will it deactivate then reactivate? I'm thinking FireFox updates.
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Fine tuning of usm for newcomers: your suggestions

Post#5 by donald » 21 Apr 2015, 21:54

my friend Dan (a newcomer) told me:

1.forget the CLI..all functions with GUI..else no thanks

2.build a module containing all dependencies,but only with the
needed files,not the whole (dependency) packages.

3.let me choose / browse where to save this module

4.do not auto activate,let me choose if and when.
...my friend Dan... :)

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#6 by Ed_P » 21 Apr 2015, 22:22

brokenman wrote:

Code: Select all

usm -u system
???

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# usm -u system

 Use: usm -u <distro> 
 For example: usm -u slackware

root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.7
Ed

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#7 by Bogomips » 21 Apr 2015, 22:30

Got it from github?
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: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Fine tuning of usm for newcomers: your suggestions

Post#8 by Ed_P » 21 Apr 2015, 22:42

Bogomips wrote:Got it from github?
Actually I just did but the module is named usm-3.1.7-noarch-1.txz and i expected something like 3.1.8 or 3.1.7a to indicate it was changed. Of course I also don't know what to do with it. Do I install it or convert it to a module? I know how to do the latter but not the former.
Ed

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#9 by Bogomips » 22 Apr 2015, 00:20

If AF mode, just from root terminal: # installpkg usm-3.1.7-noarch-1.txz 8)

@donald
Have you told your friend Dan that there is no such thing as a free lunch?
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: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Fine tuning of usm for newcomers: your suggestions

Post#10 by Ed_P » 22 Apr 2015, 04:09

Bogomips wrote:If AF mode, just from root terminal: # installpkg usm-3.1.7-noarch-1.txz 8)
Ok :good: Thank you Bogomips. :friends:

But how does this help me in my normal changes= mode? Image
Last edited by Ed_P on 22 Apr 2015, 15:58, edited 1 time in total.
Ed

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#11 by Bogomips » 22 Apr 2015, 11:58

Ed_P wrote:But how does this help me in my normal changes= mode? Image
In that you can see if it is bug free, and does what it is supposed to do, before implementing into your normal changes mode, installing the way you have already done.

Would be grateful for feed back on usm -system
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

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#12 by Bogomips » 22 Apr 2015, 13:31

Enhancement Request

MODULES=true

There is one minor enhancement, while we are at it, which would be of considerable hep to me, and that is the option of being able to have the package and all it's dependent packages downloaded into a subdirectory before a module is made. At the moment, I believe, the packages are strewn all over the place in the download directory when the module option is chosen at runtime. Would be nicer to have all the TXZs for the package in the one folder.

On a another note, presumably when a module is made, it will be in the download directory, and activated there. It might be helpful here for newcomers to point out that once an application is running to their satisfaction, the module should be transferred to the modules folder or the optional folder before the next session.
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: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Re: Fine tuning of usm for newcomers: your suggestions

Post#13 by Ed_P » 22 Apr 2015, 16:04

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# installpkg /mnt/sda5/porteus3.0/Guest/Downloads/usm*.txz
Verifying package usm-3.1.7-noarch-1.txz.
Installing package usm-3.1.7-noarch-1.txz:
PACKAGE DESCRIPTION:
/sbin/ldconfig: /usr/lib/libv4lconvert.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libv4l2.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libv4l1.so.0 is not a symbolic link

Package usm-3.1.7-noarch-1.txz installed.

root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.7

root@porteus:/home/guest# usmgui
And in the USMGUI's Settings>Edit Config File I see

Code: Select all

############ PORTEUS ONLY SETTINGS

# Convert all slackware packages that are downloaded
# to porteus modules.
MODULES=false

# Merge downloaded packages into one module bundle
MERGE=false
Am I missing something?
Ed

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

Re: Fine tuning of usm for newcomers: your suggestions

Post#14 by brokenman » 23 Apr 2015, 02:14

So in CLI at next update of USM?
Correct
Will this handle when like named modules are already active?
Good question. Rare scenario because if the module is found already in the download folder it won't download it again, and therefore won't activate it. If the download is forced manually (and a like named module is already activated) then it will attempt to activate it which will infact produce a window asking if you want to deactivate. I will look at tidying that up. Thanks.
1.forget the CLI..all functions with GUI..else no thanks
Your friend Dan is welcome to forget the CLI. That's why I wrote the GUI.
2.build a module containing all dependencies,but only with the needed files,not the whole (dependency) packages.
I don't understand. He wants a module stripped of documentation and non runtime files? Is said module to be one single merged module?
3.let me choose / browse where to save this module
How can a package manager be expected to manage packages if one saves them anywhere they want? User can choose the storage location, but not where to save each individually downloaded package. Dan is free to copy the module from its storage folder to anywhere he likes. You can do this from a GUI.
4.do not auto activate,let me choose if and when.
Seems you can't satisfy 100% of the people. That was the default setting and it was questioned. No problem. Just change the settings in the (GUI) configuration and auto activate is turned off.
Am I missing something?
Perhaps you are not familiar with the concept of github. It is not sourceforge where the packages are hosted but rather a development version control system. If you're not sure then I would say just wait until the next update becomes available from within USM.

If you want to play with it then download the zip file from here: https://github.com/brokenman/usm
Then (in always fresh mode) unzip it change into the directory with the files and install it with as root: make install
How do i become super user?
Wear your underpants on the outside and put on a cape.

donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Fine tuning of usm for newcomers: your suggestions

Post#15 by donald » 23 Apr 2015, 12:09

@ brokenman
Dan is a very nice person.
But when it comes to Computers,he is somewhat stubborn and don't want to learn
the "how and whys".
So yes,(imo) he wants a single (merged) module for every app,containing everything
needed to run this app.So one can hand it over to another PC, and it will still work.
(like .exe files,or when you build the module in AF mode)

I think he wants to have / build apps / module for this and that,but don't want to use
them right now...read auto activate off.

If auto activation can be turned off,and the storage location (for the merged module)
can be freely choosen,all whithin a GUI,..it should be fine..even for him. 8)

Post Reply