Rewrote Update Accelerator

Help on building IPFire & Feature Requests
User avatar
N0man
Posts: 299
Joined: July 26th, 2013, 1:56 am

Rewrote Update Accelerator

Post by N0man » March 17th, 2015, 11:15 am

Hi,
I worked on a project where I rewrote the Update Accelerator. I fixed many of the update source locations and added new ones for common software products. I also added icons for the new update sources and redid many that looked outdated.

Package:
install.tar.gz
(41.2 KiB) Downloaded 1504 times


Install:
tar -xvf install.tar.gz -C /
/etc/init.d/squid restart

Also: Make sure you set your Source Checkup Schedule to daily.

BeBiMa added the new sources to the legend at the bottom of the maintenance section.
Before:
Original.PNG
Original.PNG (25.59 KiB) Viewed 11319 times


After:
New Icon Legend (BeBiMa)
UpdateAccelerator.PNG


Updates:
(3-19-15) Finished making Icon Legend. (Package Altogether)
(3-20-15) Added support for Emsisoft Products
(3-28-15) Removed Duplicate Script
(3-31-15) Added support for IOS Updates over Wifi
(4-1-15) Added support for Android Updates (Nexus, Nvidia, Samsung, Motorola, etc)
(4-3-15) Added support for the Nintendo WIIU and Virtualbox
(4-3-15) Added support for Playstation Game Downloads and Updates (This is disabled by default.)
(4-4-15) Added support for Gimp, Ad-Aware Antivirus, SuperAntiSpyware, and ZoneAlarm
(4-6-15) Fixed File Permissions
(4-11-15) Fixed Unique Entries vs Mirror Entries Made Avira support "Professional Updates"
Added support for LibreOffice
(5-6-15) Fixed Java Updates
(5-19-15)
Added support for Adobe zip packages
Removed overlapping Trend Micro Update
Narrowed down Gimp and VirtualBox
Added Support for Ubiquiti Products
Added Support for Spotify
Removed Playstation Games (Didn't like it)
(5-20-15) Made sure the sources fit BeBiMa's new format
(5-27-15) Added the Steam Client and Evernote. Fixed Apple Updates
(6-22-15) Added FreeBSD Updates
(7-21-15) Added Vipre Antivirus Updates
(8-5-15) Added FSecure Antivirus Updates. Fixed Formatting Errors
(9-13-15) Added NixOS Packages

Supported Products:

Antivirus:

AVG Antivirus
Avira Antivirus
Avast Antivirus
Symantec (Norton) Antivirus
McAfee Antivirus
Trend Micro Antivirus
Bitdefender Antivirus
Kaspersky Antivirus
Comodo Antivirus
Malwarebytes Antimalware
Emsisoft Antimalware
Ad-Aware Antivirus
Superantispyware
Zonealarm
Vipre Antivirus
F-Secure Antivirus

OS Updates:

Windows Updates
Apple Updates + Apple software for Windows
Linux Updates
IPFire Updates
FreeBSD Updates
Mobile Device Updates:

IOS Updates (IPAD, IPHONE, etc...)
Android Updates
Known Supported:
Nexus
Nvidia Shield Devices
Motorola
Samsung
Should support other devices that use Google for OTA Updates.


Gaming Consoles:
Xbox Updates
Playstation Updates
Nintendo WIIU Updates
Nintendo DS Updates

Software Updates:
Adobe Updates
Java Updates
Nvidia Driver Updates
Piriform Software Updates (CCleaner, Defraggler, Speccy, etc...)
Virtualbox Updates
Gimp
Libreoffice
Spotify
Ubiquiti Devices
Evernote
Steam Client
Last edited by N0man on September 14th, 2015, 2:10 am, edited 42 times in total.

BeBiMa
Posts: 2807
Joined: July 30th, 2011, 12:55 pm
Location: Mannheim

Re: Rewrote Update Accelerator

Post by BeBiMa » March 17th, 2015, 1:50 pm

Looks good.
I've made some "cosmetics" to the updxlrator file:
- replaced the "if"s by "elsif"s in the main loop ( if something matched, we don't need to check the other sources )
- some formating

Further, I've integrated your icons into the "maintenance" page.

Just unpack the attached file with

Code: Select all

tar xzf upd_new.tgz -C /


EDIT: Wait. Lot of syntactic errors in fille ( edited in WIndows :-[ ::)
EDIT2: Hope, the file is correct now .
Attachments
upd_new.tgz
(12 KiB) Downloaded 563 times
Image
Unitymedia Cable Internet ( 32MBit )

RedneckMother
Posts: 88
Joined: June 21st, 2014, 1:34 am
Location: USA

Re: Rewrote Update Accelerator

Post by RedneckMother » March 17th, 2015, 3:45 pm

Thanks to BOTH of you!

The update accelerator is important to me, as I have data caps from my ISP (HughesNOT).

I suggest including the file extension "drpm" in the Linux section, as Fedora distros now support "differential rpm".
-- Paul

User avatar
Plinse
Posts: 27
Joined: September 19th, 2010, 8:36 pm
Location: Leipzig

Re: Rewrote Update Accelerator

Post by Plinse » March 17th, 2015, 6:55 pm

N0man wrote:Hi,
I worked on my own project where I rewrote the Update Accelerator. I fixed many of the update source locations and added new ones for common software products. I also added icons for the new update sources and redid many that looked outdated.


Nice one, thanks a lot. (also to BeBiMa)
@work (the big one / primary identical twin)
Image
@work (the second big one II / failover identical twin)
Image
@work (special sub-vlan blocker & plc-timer in HA Cluster)
Image
@work (special sub-vlan blocker & DNS in HA Cluster)
Image

magnrw
Posts: 14
Joined: December 30th, 2014, 5:17 pm

Re: Rewrote Update Accelerator

Post by magnrw » March 17th, 2015, 7:23 pm

@N0man:

Thanks a lot for your support ;)
Installed your script ... now testing it over some days 8)
Greetz

p.s
works like a charm O0
playstation, MS and Avira Updates cached successfully :)
In my opinion should be implemented in next build

User avatar
N0man
Posts: 299
Joined: July 26th, 2013, 1:56 am

Re: Rewrote Update Accelerator

Post by N0man » March 18th, 2015, 1:33 am

I added support for:
"dprm" linux packages

Malwarebytes Antimalware
Bitdefender Antivirus
Kaspersky Antivirus
Comodo Antivirus

Nvidia Driver Updates
Piriform Software Updates (CCleaner, Defraggler, Speccy, etc...)

Nintendo DS Portable Gaming Console.

If anyone wants something else, just ask.

User avatar
N0man
Posts: 299
Joined: July 26th, 2013, 1:56 am

Re: Rewrote Update Accelerator

Post by N0man » March 18th, 2015, 1:40 am

BeBiMa, Thank you for your work.

XerXes
Posts: 157
Joined: February 19th, 2011, 3:11 pm
Location: Germany

Re: Rewrote Update Accelerator

Post by XerXes » March 18th, 2015, 3:20 am

Hi,

is it possible to purge outdate / no source cachefiles without to load the whole maintenance site? on an large cache it takes forever...

or even to set up an automatic cleanup form the WebUI (by putting a script/symlink in the fcron.weekly folder or so)

Muddern
Mentor
Mentor
Posts: 350
Joined: November 29th, 2010, 7:54 pm
Location: Rostock
Contact:

Re: Rewrote Update Accelerator

Post by Muddern » March 18th, 2015, 12:32 pm

Thanks for the changes. I downloaded the file, unpacked and test it ... everything works fine :)

Now I'll test it the next couple of days and will give you a feddback.

Muddern
Mentor
Mentor
Posts: 350
Joined: November 29th, 2010, 7:54 pm
Location: Rostock
Contact:

Re: Rewrote Update Accelerator

Post by Muddern » March 18th, 2015, 1:38 pm

Hi guys,
I found a little mistake. There are some icons missing:

Java
IOS
McAfee
Mozilla
PlayStation
XBox

These icons are missing and will not be shown on the mainteance page of the update accelerator.

Smooth
Posts: 74
Joined: November 5th, 2013, 9:37 am

Re: Rewrote Update Accelerator

Post by Smooth » March 18th, 2015, 2:27 pm

Muddern wrote:Hi guys,
I found a little mistake. There are some icons missing:

Java
IOS
McAfee
Mozilla
PlayStation
XBox

These icons are missing and will not be shown on the mainteance page of the update accelerator.


Hello, do not copy icons to /srv/web/ipfire/images/updbooster
Copy them here:
/srv/web/ipfire/html/images/updbooster

Muddern
Mentor
Mentor
Posts: 350
Joined: November 29th, 2010, 7:54 pm
Location: Rostock
Contact:

Re: Rewrote Update Accelerator

Post by Muddern » March 18th, 2015, 3:28 pm

Well I found the issue. I used the file from BeBiMa and there are no images included. You have to use both files, that one from N0man and BeBiMa.

Would be nice if we could merge both to one file where everything is included.

BeBiMa
Posts: 2807
Joined: July 30th, 2011, 12:55 pm
Location: Mannheim

Re: Rewrote Update Accelerator

Post by BeBiMa » March 18th, 2015, 3:45 pm

It's necessary to integrate the images to the cgi.
Find attached a updated install file.

(Not all sources are integrated yet :( )

EDIT: updated!
Attachments
upd_updxlrator.tgz
(31.97 KiB) Downloaded 499 times
Last edited by BeBiMa on March 18th, 2015, 4:44 pm, edited 1 time in total.
Image
Unitymedia Cable Internet ( 32MBit )

Muddern
Mentor
Mentor
Posts: 350
Joined: November 29th, 2010, 7:54 pm
Location: Rostock
Contact:

Re: Rewrote Update Accelerator

Post by Muddern » March 18th, 2015, 3:55 pm

Smooth wrote:Hello, do not copy icons to /srv/web/ipfire/images/updbooster
Copy them here:
/srv/web/ipfire/html/images/updbooster


Thanks for the info. I found another mistake. The Update Accelerator maintenance page looks for a file called "updxl-src-Playstation.gif"

When I take a look in the folder where the images at I noticed that the playstation gif is called updxl-src-playstation.gif"

Now I renamed it and all works :)

Muddern
Mentor
Mentor
Posts: 350
Joined: November 29th, 2010, 7:54 pm
Location: Rostock
Contact:

Re: Rewrote Update Accelerator

Post by Muddern » March 18th, 2015, 3:57 pm

Hi BeBiMa,
I looked at your file and it looks good. As I mentioned above the wrong named .gif for the playstation icon is named correct in your file.

So people should use your last uploaded file to get things working :)

Post Reply