Page 13 of 25

Re: USM Unified Slackware Package Manager

Posted: 09 May 2014, 03:07
by francois
The error message is from the gui.

Re: USM Unified Slackware Package Manager

Posted: 09 May 2014, 20:41
by brokenman
### IMPORTANT
Problems have been reported when running this script and using the changes=EXIT cheatcode. The reason is the creation of a whiteout file /mnt/live/memory/changes/etc/usm/.wh.usm.conf

Code: Select all

#!/bin/bash
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 "Installing USM"
wget --no-check-certificate --trust-server-names $PKG -P /tmp || { echo "No internet!!"; exit; }
installpkg /tmp/$LATEST
Save this as update-usm.sh and run it. It will always update your installation to the latest. You will need to update databases again after running this. You probably won't be able to mount a usm-latest-0.0-noarch-1.xzm over the top of it later on.

If you want a simple command then save the script as /usr/bin/usm-update
Then do: chmod +x /usr/bin/usm-update

Re: USM Unified Slackware Package Manager

Posted: 10 May 2014, 00:18
by francois
It seems that you always have the solution at hand. In addition, you are faster than your shade, a real Lucky Luke. It did work on my 32 bit porteus installation.

Thanks brokenman. :)

Re: USM Unified Slackware Package Manager

Posted: 10 May 2014, 01:29
by brokenman
Thanks Francois. I don't know that I am as fast as my shadow though. I have to complete a certain project I am working on now before I can really take another good look at USM. I want to get all these little bugs out of the way and release a Porteus update for USM. I believe USM has potential to grow but I need to make sure it is rock solid stable and easy to use. There have been too many problems I'm hearing of so I think I need to take a look at making it more user friendly and fool proof. Better error messages would be a good start, also an uninstaller so people can replace it with slackyd if they choose.

Re: USM Unified Slackware Package Manager

Posted: 10 May 2014, 06:10
by fanthom
package manager is a critical application so what about this:
upon launch USM contacts our server and checks the version. if does not match then upgrade automatically.

people doesnt launch USM that often so this system hopefully wont cause any DDOS on our server :)

Re: USM Unified Slackware Package Manager

Posted: 11 May 2014, 22:12
by brokenman
This is a good idea. Do you think it shoul dbe made active by default or disabled and left to the user to choose the automatic check of updates?

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 05:00
by freestyler
Good idea. I think it should be set to update by default.
Ive noticed that when it does update, USM need to be restarted or it wont search packages. That may be the cause of some peoples problems.

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 12:02
by brokenman
Yeah. I will add a message that the application needs to restart.

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 12:51
by donald
Personally I don't like (default) automatic "phone-home" components, wherever they may be.
A simple start up message "update usm first...." would be more than is needed.(imo)
Whatever, please don't forget an option to disable this (auto) behavior.Thanks

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 13:04
by freestyler
I agree donald, I would turn mine off but I think for new users it will eliminate some problems.

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 16:28
by brokenman
A simple start up message "update usm first...." would be more than is needed.(imo)
Wouldn't having this message popup at every start be more annoying than having the occasional popup when a new version of USM is available?

If you start the USM program then I would assume that you intend to (phone home) connect to our servers in order to search and download software. Where is the difference in 'checking for and internet connection' and checking the version in one step?

Other applications in porteus that require an internet connection store the script online and when the app is started it checks for the internet connection by downloading the main workhorse script. This way we can fix bugs real time without pushing any Porteus updates. Since USM doesn't require an internet connection (you may just be checking dependencies) I didn't take this route.

I understand the whole 'phone home' phobia but this isn't closed source where you can't see what is dialing out and what for. It is completely transparent and there would of course be the option to disable it. The popup would be via notifications panel item so it would disappear in a few seconds. Any further comments or opinions?

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 17:03
by freestyler
Any further comments or opinions?
yup, USM is awesome!

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 21:20
by donald
@brokenman
ok,ok it's not that bad... :wink:
How about this:
I start the USM and it does not check anything (internet connection etc.)
until I click a Button (gui) or command (cli) -> "connect to Server".

It's not "phone home' phobia".Sometimes, somewhere it really doesn't matter.
But I prefer an OS, which do not send a single bit on it's own.

Re: USM Unified Slackware Package Manager

Posted: 12 May 2014, 22:37
by Ed_P
Donald wrote:How about this:
I start the USM and it does not check anything (internet connection etc.)
until I click a Button (gui) or command (cli) -> "connect to Server".
hmmmmm Image

When you start Porteus does it automatically connect to your network or do you manually click a network connection after booting?

When you start your browser does it automatically pull up a home page or do you manually click on a link before it connects?
But I prefer an OS, which do not send a single bit on it's own.
USM would only send a bit when you click on the USM icon. If you don't click on it it won't send anything.

Yes?

Re: USM Unified Slackware Package Manager

Posted: 13 May 2014, 00:17
by donald
@Ed
automatically connect to your network
no
automatically pull up a home page
blank page

If I just want to use the (usm) Tools, there is no need to check something.