You are here

Tutorial for Synology!

44 posts / 0 new
Last post
xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Tutorial for Synology!

Hello,

I’ll take my chances and ask for your help with the complete installation process of WebGrab++ on a Synology NAS... perhaps this could help other users in the future. I don’t want this to be a headache for anyone, and there’s no rush.

What have I done so far? Well...

- i tried installing it according to this tutorial: https://www.blackvoid.club/webgrabplus-self-hosted-epg-via-docker/ - it didn’t work (I couldn’t even get any output for the .xml file);
- i tried the tutorials on the official site - couldn’t figure it out;
- i looked through the forum - same story, no success;
- installed older versions, up to 4.0 with mono, via Docker, didn’t work, not even via SSH;
- installed the latest version from Docker, with .NET 8 from Packages - it didn’t work.

In short, I tried via Docker, Packages, SSH, searched almost everywhere, spent nearly 8 hours working on it, with no results.

So, if anyone happens to have more recent experience and could provide a tutorial on installing WebGrab++ on Synology, I can only thank you! The goal is to automatically generate the respective .xml file for EPG and save it to a specific location on the disk.

Now, let me give you the platform details:
- model name: DS224+
- DSM version: DSM 7.2.2-72806 Update 2

At the moment, I’ve deleted everything I worked on during those almost 8 hours (folders/mono/dotnet) to allow for a clean installation at some point in the future with clear steps.
I assure you that, regardless of the outcome of this post, I will continue to support this project whenever I can and commend you for the work and passion you put into it.

Thank you in advance!

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

thats turorial is outdated.

versions 3.x of webgrab(compiled with netframework) is end of life and no longer being updated.
the latest webgrab V5.3 uses dotnet(dotnet 8.x required) instead of mono.
see here..
http://www.webgrabplus.com/content/wg-synology

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

I still haven’t succeeded. Something isn’t clicking somewhere, and I’m definitely misconfiguring something (maybe I’m a bit “non-technical”).
I’d like to keep this topic open for a while longer (up to one month), and if no one steps in to help me (from scratch – I repeat, I think this could also be useful for others at some point), I’ll mark it as resolved.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

i forgot to mention the above link is not using docker.
its installing webgrab in the home users directory.

1. install dotnet 8 package
2. enable home user or whatever it is called
3. cd ~
wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
then
tar -zxvf WebGrabPlus*.tar.gz
4. cd ~/.wg++
then
./install.sh
5. to run webgrab try..
~/.wg++/run.net.sh
if it fails try with sudo..
sudo ~/.wg++/run.net.sh
or
sudo dotnet ~/.wg++/bin.net/WebGrab+Plus.dll ~/.wg++

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

It works.
Thank you! :)

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

which run command worked so other will know?

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

This command that worked is: sudo ~/.wg++/run.net.sh
I'll try now to use DSM's task scheduler as for the grabber to run every 3 days.
Let's see what the result will be, because when I run the command with sudo it ask for the password.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

thank you.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

if u dont mind could you provide a list of steps you did(mine was based on from other posts(really a best guess)
this will help other synology users

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours
xDRG2525 wrote:

This command that worked is: sudo ~/.wg++/run.net.sh
I'll try now to use DSM's task scheduler as for the grabber to run every 3 days.
Let's see what the result will be, because when I run the command with sudo it ask for the password.

no option in task scheduler to run as root?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

might be other option in scheduler like
run if not logged in
or run with highest privledges
i dont have a synology
i have a thecus and everything runs a root.

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

Well, the steps:

1. install net 8 from Package Center
2. enable user home service from Control Panel ≥ User&Group ≥ Advanced
3. ssh your-username@ip-of-your-nas
4. wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
5. tar -zxvf WebGrabPlus_V5.3_install.tar.gz
6. cd ~/.wg++
7. ./install.sh
8. configure as for your needs this file: WebGrab++.config.xml (from the .wg++/ installation folder)
9. run the executable with this command: sudo ~/.wg++/run.net.sh

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

great.
thank you i am sure many synology users will love this.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

just for users info on this line you need to edit it to the latest version.
at this time is V5.3 u can find the link to latest on the downloads page.
http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

Yes, there is a option to run as root, but I can't figure out (at the moment) what is the command to run the program which is in my user folder in home.
So, the script in Task Scheduler looks like this: ~/username/.wg++/run.net.sh
And the output of the Task Scheduler is this:/bin/bash: /root/username/.wg++/run.net.sh: No such file or directory

Right now I'm not that "linux friendly" user ...

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

there are many posts here with issues with docker.
everytime the container restarts it gets a new mac address.
this causes havoc with wg licence check. as it uses the mac in a hash to confirm user.
i think docker is kewl but not all things shud be run in docker,webgrab being one.
these instructions shud be added to our install page.
1. update anytime with few simple steps
2.no need to wait for update for docker container

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours
xDRG2525 wrote:

Yes, there is a option to run as root, but I can't figure out (at the moment) what is the command to run the program which is in my user folder in home.
So, the script in Task Scheduler looks like this: ~/username/.wg++/run.net.sh
And the output of the Task Scheduler is this:/bin/bash: /root/username/.wg++/run.net.sh: No such file or directory
Right now I'm not that "linux friendly" user ...

wis the task added as root user?

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week

Yes, you have a point. So, right now wg++ is to be installed with old wget method and NOT in docker (or Container Manager as is named in the new DSM).

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

xDRG2525 wrote:
Yes, there is a option to run as root, but I can't figure out (at the moment) what is the command to run the program which is in my user folder in home.
So, the script in Task Scheduler looks like this: ~/username/.wg++/run.net.sh
And the output of the Task Scheduler is this:/bin/bash: /root/username/.wg++/run.net.sh: No such file or directory
Right now I'm not that "linux friendly" user ...

wis the task added as root user?

This one: ~/username/.wg++/run.net.sh

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

is this a typo?
/root/username/.wg++/run.net.sh: No such file or directory
shud be something like
/home/username/.wg++/run.net.sh: No such file or directory?
are users in yr root directory?
i cant see that..

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

is this a typo?
/root/username/.wg++/run.net.sh: No such file or directory
shud be something like
/home/username/.wg++/run.net.sh: No such file or directory?
are users in yr root directory?
i cant see that..

Users are in /volume/homes/ directory and wg++ is installed in a username folder in that homes directory... so that path will be /volume/home/username/.wg++

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

then in task use..
/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll /volume/home/username/.wg++

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

if your task scheduler accepts agruments..
task:/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll
arguments:/volume/home/username/.wg++

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

post a screensho of ur scheduler

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

then in task use..
/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll /volume/home/username/.wg++

OK. I'll look into it and somwhere tomorrow will post a reply here.
Again, big thanks for your support!

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

post a screensho of ur scheduler

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

dont have a synology.it looks like its looking for a script.
ask on synology site

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

dont have a synology.it looks like its looking for a script.
ask on synology site

Sure. Thank you!

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours
xDRG2525 wrote:

Yes, you have a point. So, right now wg++ is to be installed with old wget method and NOT in docker (or Container Manager as is named in the new DSM).

not entirely true.
using docker ur dependant on the creator for updates(container).
using install above u can update anytime a new version is available usin steps above.

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

xDRG2525 wrote:
Yes, you have a point. So, right now wg++ is to be installed with old wget method and NOT in docker (or Container Manager as is named in the new DSM).

not entirely true.
using docker ur dependant on the creator for updates(container).
using install above u can update anytime a new version is available usin steps above.

Yes. I agree.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

reading through this post again i forgot dotnet in the above posts
i think this should also work?
/volume/home/username/.wg++/run.net.sh
or manually with dotnet
dotnet /volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll /volume/home/username/.wg++
also in your screen shot there is a link at the bottom where it says more about scripts,have u checked that for additional info?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

i did some searching and think your in the wrong spot maybe?
found this link.
https://kb.synology.com/en-us/DSM/tutorial/common_mistake_in_task_schedu...
so u want to select the below
Enter scripts in Control Panel > Task Scheduler > Create > Scheduled Task > User-defined script > Task Settings > Run command
then u can use one of the commands above.

edit: just checked your screenshot again and ur in the correct spot.
try one of the commands in above post.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

here's a alternative to using bin.net.sh
create a file in you .wg++ folder(i will use webgrab.sh)
inside put this..

#!/bin/sh

export OPENSSL_CONF=/volume/home/username/.wg++/bin.net/openssl.cnf

dotnet "/volume/home/username/.wg++/bin.net/WebGrabPlus+Plus.dll" "/volume/home/username/.wg++"

exit

replace username with your username
save and chmod +x or chmod 755
this does the same thing as run.net.sh but its using absolute paths for your system.
run.net.sh tries to find these paths itself.
id run.net.sh works then ur ok.

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

i did some searching and think your in the wrong spot maybe?
found this link.
https://kb.synology.com/en-us/DSM/tutorial/common_mistake_in_task_schedu...
so u want to select the below
Enter scripts in Control Panel > Task Scheduler > Create > Scheduled Task > User-defined script > Task Settings > Run command
then u can use one of the commands above.
edit: just checked your screenshot again and ur in the correct spot.
try one of the commands in above post.

So, the complete process is:

1. install net 8 from Package Center
2. enable user home service from Control Panel ≥ User&Group ≥ Advanced
3. ssh your-username@ip-of-your-nas
4. wget http://webgrabplus.com/sites/default/files/download/SW/V5.3.0/WebGrabPlu...
5. tar -zxvf WebGrabPlus_V5.3_install.tar.gz
6. cd ~/.wg++
7. ./install.sh
8. configure as for your needs this file: WebGrab++.config.xml (from the .wg++/ installation folder)
9. run the executable with this command: sudo ~/.wg++/run.net.sh

To automate the script:

1. go to Control Panel ≥ Task Scheduler ≥ Create ≥ Scheduled Task ≥ user-defined script
2. in General tab - enter the desired name for the job in the Task box and choose "root" in the User box
3. in Schedule tab - choose the desired setting to run the script (this is simple)
4. in Task Settings tab - under Run Command, in the user-defined script box enter, without the quotation marks: "bash /volume1/homes/username/.wg++/run.net.sh" (make sure to use your own path after "bash" - this was just my case).
5. enjoy WebGrab++ at it's fullest :)))

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

nice.glad you got it all figured out.
congrats.

xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

nice.glad you got it all figured out.
congrats.

Big thanks to you for all the support!
And... Happy new year!

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

the sky is the limit with what u can do with linux.
i use my own script i made which allows me to use openvpn files any time i with by adding vpn [location]
see screenshot.

Attachments: 
xDRG2525
Offline
Donator
Joined: 2 weeks
Last seen: 1 week
Blackbear199 wrote:

the sky is the limit with what u can do with linux.
i use my own script i made which allows me to use openvpn files any time i with by adding vpn [location]
see screenshot.

The VPN stuff is really cool!
As for me, just need to learn linux better. Maybe I'll do that next year.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

we all start somewhere.
i been doing linux for least 15 years and i still have to google stuff as i dont use it everyday so i forget.

tedx
Offline
Joined: 18 hours
Last seen: 13 hours

These steps to install seemed to work for me, but when I tried to run it, i got the following:

You must install or update .NET to run this application.

App: /volume2/homes/<>/.wg++/bin.net/WebGrab+Plus.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: /volume2/@appstore/dotnet9-runtime/share/dotnet/

The following frameworks were found:
9.0.0 at [/volume2/@appstore/dotnet9-runtime/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&fra...

I installed .NET 8 runtime from the Package Center, but when I got the initial error, i went ahead and installed .NET 9 runtime. Has anyone else seen this issue?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

u cant be using webgrab V5.3
it needs net 8
u must have installed a older version that uses net 7

tedx
Offline
Joined: 18 hours
Last seen: 13 hours

I just figured that, and it looks like I grabbed 5.1. I just tried to install 5.3 and I get the same message. Do i need to uninstall 5.1 somehow?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

no.
but from u post above u only have net 9 installed.
in ternminal..

root@bb199:/# dotnet --info

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529
  RID:          linux-x64

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.NETCore.App 6.0.23 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.11 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.4 [/opt/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

should list the runtimes installed.
i have 6,7,8

tedx
Offline
Joined: 18 hours
Last seen: 13 hours

Thanks Very much for your help. I had to uninstall .NET 9 and re-install .NET 8. Then I killed the 5.1 directories and started fresh with 5.3. It is working now. Thanks again!

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl