11 Commits

Author SHA1 Message Date
pnetlabrepo
2e5524185a Update version 2023-01-30 01:19:35 -03:00
pnetlabrepo
2547632270 Update CHANGELOG.md 2023-01-30 01:18:31 -03:00
pnetlabrepo
5cb08a7528 Update ishare2 2023-01-30 01:16:49 -03:00
pnetlabrepo
ce9b2d6950 Update version_gui 2023-01-30 00:59:16 -03:00
pnetlabrepo
807daa0d37 Update CHANGELOG.md 2023-01-30 00:35:54 -03:00
pnetlabrepo
827a32b88a Update version 2023-01-30 00:34:23 -03:00
pnetlabrepo
e74938937e Update CHANGELOG.md 2023-01-30 00:34:16 -03:00
pnetlabrepo
16c4ae8493 Update ishare2 2023-01-30 00:32:49 -03:00
pnetlabrepo
7773828920 Update HELP.md 2023-01-29 20:47:55 -03:00
pnetlabrepo
e99109bd74 Update version_gui 2023-01-29 17:15:44 -03:00
pnetlabrepo
eb101eb7ff Create version_gui 2023-01-29 17:14:50 -03:00
5 changed files with 67 additions and 9 deletions

View File

@@ -1,6 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file. You can upgrade ishare2 to the latest version using `ishare2 upgrade` and then selecting `option 1`
## [v1.6.0] - 2023-Jan-30
1) Added: Command `ishare2 gui stop` was added into ishare2_gui_download function in order to avoid errors when downloading/upgrading ishare2 GUI
## [v1.5.9] - 2023-Jan-30
1) Added: A new version control was added for ishare2 GUI. It can be seen using the `ishare2` command and looking at the bottom of it. New functions and variables were implemented. Also, using `ishare2 upgrade` > `option 3` it is possible to upgrade it.
## [v1.5.8] - 2023-Jan-29
1) Added: A new option was added to `ishare2 upgrade` > `option 2`: Now, it is possible to upgrade PNETLab from almost any version to v5.3.2 (Not possible for this case: 6.x to 5.3.2)

25
HELP.md
View File

@@ -1,14 +1,25 @@
# Useful information
1) For problems, use our Telegram Channel describing your problem and sending a screenshot and/or a video
## 1
2) For new files to be uploaded, you can also use our Telegram Channel: In this case, you can send or ask for new images to be uploaded
For problems, use our Telegram Channel describing your problem and sending a screenshot and/or a video
3) Using ishare2 upgrade will display a menu that allows users to upgrade ishare2 and PNETLab.
## 2
4) If CiscoIOUKeygen.py, iourc and/or keepalive.pl files in /opt/unetlab/addons/iol/bin/ are deleted, you can recover them by using ishare2 relicense. This will not affect images in there
Also, this command when used, will generate a new license file called "iourc", needed for bin files
For new files to be uploaded, you can also use our Telegram Channel: In this case, you can send or ask for new images to be uploaded
5) Don't cancel a download. In case you do it, you will have to remove incomplete files or folders manually
## 3
6) The main difference between ishare2 labs and ishare2 mylabs is that, in the first case, the folder used is the one PNETLab creates when you download a lab from the store and in the second case you are able to select any folder you want in order to download labs
Using ishare2 upgrade will display a menu that allows users to upgrade ishare2 and PNETLab
## 4
If CiscoIOUKeygen.py, iourc and/or keepalive.pl files in /opt/unetlab/addons/iol/bin/ are deleted, you can recover them by using ishare2 relicense. This will not affect images in there. Also, this command when used, will generate a new license file called "iourc", needed for bin files
## 5
Don't cancel a download. In case you do it, you will have to remove incomplete files or folders manually
## 6
The main difference between ishare2 labs and ishare2 mylabs is that, in the first case, the folder used is the one PNETLab creates when you download a lab from the store and in the second case you are able to select any folder you want in order to download labs

1
gui/version_gui Normal file
View File

@@ -0,0 +1 @@
v1.0.1

42
ishare2
View File

@@ -28,6 +28,7 @@ function set_url_constants() {
URL_UPGRADE_PNETLAB_FROM_any_TO_5_3_2=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/upgrades/from_any_to_5.3.2/upgrade.sh
URL_GUI_APP_ZIP=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/app.zip
URL_REQUIREMENTS_GUI_APP=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/requirements.txt
URL_ISHARE2_GUI_VERSION=https://raw.githubusercontent.com/pnetlabrepo/ishare2/main/gui/version_gui
}
function check_user_is_root() {
@@ -937,6 +938,12 @@ function check_ishare2_version_file_exists() {
fi
}
function check_ishare2_gui_version_file_exists() {
if ! [[ -e /usr/sbin/ishare2_gui_version ]]; then
echo -n "$(curl -s $URL_ISHARE2_GUI_VERSION)" >> /usr/sbin/ishare2_gui_version
fi
}
function upgrade_ishare2() {
LOCAL_VALUE=$(cat /usr/sbin/ishare2_version)
REMOTE_VALUE=$(curl -s $URL_VERSION)
@@ -1029,6 +1036,7 @@ function menu_ishare2_upgrade() {
options=(
"Upgrade ishare2"
"Upgrade PNETLab"
"Upgrade ishare2 GUI"
)
PS3="$prompt"
@@ -1042,11 +1050,15 @@ function menu_ishare2_upgrade() {
menu_ishare2_upgrade_pnetlab
break
;;
3)
ishare2 gui download
break
;;
$((${#options[@]}+1)))
break
;;
*)
STR="Invalid option: Select a number from 1 to 3"
STR="Invalid option: Select a number from 1 to 4"
echo -e "${RED}$STR${NO_COLOR}"
continue
;;
@@ -1064,6 +1076,10 @@ function show_changelog() {
}
function ishare2_gui_download() {
echo -e "${GREEN}GUI is being downloaded and installed. Please, wait until process is done${NO_COLOR}"
ishare2 gui stop
rm -rf /root/app
wget -q $URL_GUI_APP_ZIP -P /root
@@ -1079,6 +1095,15 @@ function ishare2_gui_download() {
rm /root/requirements.txt
echo -e "${GREEN}GUI has been downloaded and installed. Now, you can start it by using: ishare2 gui start${NO_COLOR}"
LOCAL_VALUE=$(cat /usr/sbin/ishare2_gui_version)
REMOTE_VALUE=$(curl -s $URL_ISHARE2_GUI_VERSION)
if ! [[ $LOCAL_VALUE == "$REMOTE_VALUE" ]]; then
echo "ishare2 GUI was upgraded from $LOCAL_VALUE to $REMOTE_VALUE"
rm /usr/sbin/ishare2_gui_version
echo "$REMOTE_VALUE" >> /usr/sbin/ishare2_gui_version
fi
}
function ishare2_gui_start() {
@@ -1414,6 +1439,19 @@ function show_ishare2_usage() {
pnetlab_info=($data)
PNETLAB_VERSION_USAGE=${pnetlab_info[1]}
# For ishare2 GUI
ISHARE2_GUI_VERSION_USAGE=$(cat /usr/sbin/ishare2_gui_version)
STR=""
LOCAL_VALUE=$ISHARE2_GUI_VERSION_USAGE
REMOTE_VALUE=$(curl -s $URL_ISHARE2_GUI_VERSION)
if ! [[ $LOCAL_VALUE == "$REMOTE_VALUE" ]]; then
STR="New ishare2 GUI version available: $REMOTE_VALUE"
fi
NEW_VERSION_RESULT_FOR_ISHARE2_GUI=$(echo -e ${YELLOW} $STR ${NO_COLOR})
# Message displayed when using ishare2 command
echo "
Syntax
@@ -1494,6 +1532,7 @@ Examples:
ishare2: $ISHARE2_VERSION_USAGE$NEW_VERSION_RESULT
pnetlab: v$PNETLAB_VERSION_USAGE
ishare2 GUI: $ISHARE2_GUI_VERSION_USAGE$NEW_VERSION_RESULT_FOR_ISHARE2_GUI
"
}
@@ -2263,6 +2302,7 @@ function main(){
get_initial_information
set_yml_template_folder_location
check_ishare2_version_file_exists
check_ishare2_gui_version_file_exists
selector $1 $2 $3
}

View File

@@ -1 +1 @@
v1.5.8
v1.6.0