Urbino`s University - Computing and digital innovation - Programming of mobile devices and user interfaces
- For the professor: Submit
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.shscriptchmod +x make_all_scripts_executable.sh
-
Run the script
./make_all_scripts_executable.sh -
Create the
password.shfile-
Create with your favorite editor
password.shnano 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 Dateare "Text Fields"ADD USER,REMOVE USER,ENABLE USER,DISABLE USERare "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
Namefield is used for all operationsStart Date,End DateFields are used only for "add new user" operation To create a "always allowed" user, insert a far away date as "End Date"
- Complete
Name,Start DateandEnd Datefields - Press
ADD USERbutton
- write the name of the user to remove in
namefield - Press
REMOVE USERbutton
- write the name of the user to enable in
namefield - Press
ENABLE USERbutton - Is not possible enable a user the have his "End date" expired. To do this, remove the user and adding it with updated dates.
- write the name of the user to disable in
namefield - Press
DISABLE USERbutton