• Print

Author Topic: Autoupdating ULX?  (Read 24 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Autoupdating ULX?
« on: March 13, 2007, 07:55:52 pm »
JamminR had a rocking idea tonight... using Ucurl to autoupdate ULX.

Of course, we'd want a way to disable this and notify admins of new updates, but I think it's a good idea. I'm still pondering over UGet, and perhaps I'll continue it when/if I get free time, but this makes a good immediate solution for now.

Having ULX autoupdate would let us push versions quicker, and be assured that all servers get urgent bug fixes.

Thoughts?
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Autoupdating ULX?
« Reply #1 on: March 13, 2007, 08:06:55 pm »
Sounds like a good idea to me, either in ULX, or perhapse implemented as a seperate module,
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Autoupdating ULX?
« Reply #2 on: March 13, 2007, 08:10:12 pm »
At first I liked the separate module idea.
Then, I realized most server admins who get ULX don't get our other stuff (guess they figure they have it all).
So, I think including it in ULX, enabled by default, but giving the host a command they have to run from console, or ulx rcon, to get the updates would be a better idea.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Autoupdating ULX?
« Reply #3 on: March 15, 2007, 02:00:30 am »
Me and Conna were talking about potentials for Ucurl tonight (He's really not that bad of a guy, okay?) and we started edging towards a UGet-functionality. Then, I was struck with inspiration; there's a very simple way we can half the work involved with UGet while saving us bandwidth as well.

Put simply: It's basically the same system, but instead of our server containing the repository information and the actual files, people will make their own repositories and give people a text file to stick in a folder (IE, uget/repos). UGet will read all these files and hook up with the repositories. These repositories can be large or small... only containing a few scripts (IE, a Ulysses repository that has ULib and ULX) or they can be mammoth conglomerates. In light of this, we'll need a way to deal with duplicates across repositories, but that doesn't seem like too big of an issue.

I realize this opens up more security issues, but I'm going to implement protection on Ucurl so it can't write outside the garrysmod folder... and people probably won't be connecting to untrusted repositories anyways.

Conna's volunteered to do a gui for this project if we go through with it, and we were considering something similar to how the scoreboard works. There will be important information on each line for each package, and you can expand it to see more details as well as buttons to update, disable auto-update, etc.

What are your thoughts? :)

EDIT: Just to add... by releasing Ucurl, I realized that there is most certainly a need for something like this in the gmod community. I had two different developers approach me separately asking for permission to use Ucurl in their scripts as an auto-updater. Now is the time!
« Last Edit: March 15, 2007, 02:02:05 am by Megiddo »
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Autoupdating ULX?
« Reply #4 on: March 15, 2007, 01:28:36 pm »
Is that (multiple repos) not what I've been saying the whole time. Something similar to the APT system. We could then also have a trusted repositorys list which we host, and people could apply to have their repos trusted.

As far as handeling duplicates, newest version takes priority, then trusted over non-trusted. Beyond that either, users could set priority, or just random pick.

In looking for ideas for this project I have looked fairly deaply into the way APT works, and I think it is a fairly stable system. One thing to be certain to include is md5 checksum verification.

If you would like more information on how the APT system handels certain things just ask.

Also for a GUI conscept, wikipedia has a list of graphic front ends for package managers.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Autoupdating ULX?
« Reply #5 on: March 15, 2007, 03:01:42 pm »
How would we verify trusted repos? I'm not sure how certificates work beyond a public and private key...
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Autoupdating ULX?
« Reply #6 on: March 15, 2007, 03:08:27 pm »
I was thinking just verify by url or whatever. We keep a list on our site of all trusted reops, and the client(program) downloads this list to check their repos against.

Note: To reduce confusion in later discussions, I would like to establish now that client refers to the clientside program, and user refers to the actual person sitting at the computer using the program. If we can all stick to this (or some other method if you feel there is a better one) method of distinction, it will reduce confusion, and reduce needless explination.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Autoupdating ULX?
« Reply #7 on: March 29, 2007, 08:27:40 pm »
Though not the same, Huntskickbutt released Gmirror.
http://forums.facepunchstudios.com/showthread.php?t=304706

Might be worth looking into writing a module for ULib so admins can have clients download addons/etc using Gmirror.
I think that might be plausible.

Sorry, its late, and I've not read into it fully.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print