What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Ideas PGui G/TDrive used space

M

MrDoob

Guest
Screenshot_11.jpg

so i rewrite my index.php now

for all user to use ;-)



1 .) base files loading

Bash:
cd /etc/systemd/system/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/localspace.service
cd /opt/plexguide/menu/pgui/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/localspace.sh
cd /opt/plexguide/menu/pgui/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/gtused.sh
cd /opt/appdata/pgui/ && wget -N https://raw.githubusercontent.com/PGBlitz/BlitzUI/v8.6/templates/index.php

2.) add crontab lines at last line

Bash:
crontab -e
3.) copy and past the line below

Bash:
0 6 * * 0 bash /opt/plexguide/menu/pgui/gtused.sh >/dev/null 2>&1
4.) make it executable
Bash:
chmod 775  /opt/plexguide/menu/pgui/localspace.sh
chmod 775 /opt/plexguide/menu/pgui/gtused.sh
chown -cR 1000:1000  /opt/plexguide/menu/pgui/

5.) start the services now

Bash:
sudo service localspace start

6.) first catching the used space on G/TDrive
Bash:
cd /opt/plexguide/menu/pgui/ && bash -x gtused.sh
INFO
The first cathing of used space need a moment please don't touch or close the putty !!!!!
INFO

7.) restart the docker for reloading the index.php file

Bash:
docker stop pgui && docker start pgui
override catching added
 
Last edited by a moderator:

Porkie

Senior Member
Staff
Nice but, you must remove the original index.php before you wget the new version otherwise the new one downloaded will be named index.php.1 and it will not work :)

cd /opt/appdata/pgui/ && sudo rm index.php
 
M

MrDoob

Guest
Nice but, you must remove the original index.php before you wget the new version otherwise the new one downloaded will be named index.php.1 and it will not work :)

cd /opt/appdata/pgui/ && sudo rm index.php
thats for respone


but simple

Bash:
wget -N anyelse
fix it

i edit the code in the pastlines ;-)
 
M

MrDoob

Guest
so now this is done and works for all users

what else do you want to see on the interface?
Suggestions are welcome

# I'm bored straight and want to program something new for you

:unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure::unsure:
 
M

MrDoob

Guest
FYI

So I update the "localspace.sh" file.

Now you see the used space of incomplete and used traffi on the last 3 days inside the Blitz command and on the PGUi Interface

Follow this steps ;)

Open pgblitz > 9 > 5 > 4 > deploy

For vnstat ;)
Bash:
cd /etc/systemd/system/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/localspace.service
Bash:
cd /opt/plexguide/menu/pgui/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/localspace.sh
Bash:
cd /opt/plexguide/menu/pgui/ && wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/gtused.sh
Bash:
sudo systemctl daemon-reload && sudo localspace restart
and wait 30secs ;)
 
M

MrDoob

Guest
Just an note and FYI ...

One user point me the tdrive / gdrive without Encryption are posting also the size of the encrypted used space

Please do follow steps ;)

Bash:
sudo cd /opt/plexguide/menu/pgui/ && sudo wget -N https://raw.githubusercontent.com/PGBlitz/PGBlitz.com/v8.6base/menu/pgui/gtused.sh && sudo bash -x gtused.sh
Thanks @keith05 ( Pgblitz )

Now its printing the right size of each used space of the drives
 
Last edited by a moderator:

Cyb3rGh05t

Senior Member
thanks @MrDoob

but i get this error:


[email protected]:/opt/plexguide/menu/pgui# systemctl daemon-reload && localspace restart
localspace: command not found



i had to :


[email protected]:/opt/plexguide/menu/pgui# sudo systemctl daemon-reload
[email protected]:/opt/plexguide/menu/pgui# sudo systemctl enable localspace.service
Created symlink from /etc/systemd/system/multi-user.target.wants/localspace.service to /etc/systemd/system/localspace.service.
[email protected]:/opt/plexguide/menu/pgui# sudo systemctl start localspace.service


how can i fix it to get your extracommand for localspace and will it restart if there is a server reboot?

thanks
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
11
Guests online
147
Total visitors
158
Top