Urbino`s University - Computing and digital innovation - Programming of mobile devices and user interfaces
PIVPN GUI is a flutter application to simplify the manage of PIVPN
service for most of commons users. It provide the "time to be enabled" functionality, in way to automatic disable clients that had terminated their "enabled time". For example this functionality is usefull if the vpn is used to distribute a subscription service.
Until the application is open, one time a day, the application will check all user statuses, disabling the users with their "time to be enabled" over.
-
git clone https://github.com/R0mb0/PIVPN_GUI.git
-
Enter into the working directory
cd PIVPN_GUI/PIVPN_GUI/pivpn_gui/lib
-
Make executable
make_all_scripts_executable.sh
scriptchmod +x make_all_scripts_executable.sh
-
Run the script
./make_all_scripts_executable.sh
-
Create the
password.sh
file-
Create with your favorite editor
password.sh
nano password.sh
-
Add this code inside the file
#!/bin/bash PASSWORD = "your_sudo_password"
Save the file
ctrl + o
ctrl + x
-
-
Run the application
flutter run
Name
,Start Date
,End Date
are "Text Fields"Is always allowed?
is a "Check Box" (false as default)ADD USER
,REMOVE USER
,ENABLE USER
,DISABLE USER
,SAVE DATABASE
,LOAD DATABASE
are "Buttons"- In the center, below the "Buttons" there's the section for the application's allerts
- In the center of the page there's a table where check all clients and client statuses
Name
field is used for all operations except forSAVE DATABASE
andLOAD DATABASE
Start Date
,End Date
Is always allowed?
Fields are used only for "add new user" operation
- Complete
Name
,Start Date
andEnd Date
fields, and check if the userIs always allowed
- Press
ADD USER
button
- write the name of the user to remove in
name
field - Press
REMOVE USER
button
- write the name of the user to enable in
name
field - Press
ENABLE USER
button
- write the name of the user to disable in
name
field - Press
DISABLE USER
button