Acesse o terminal e instale o pacote ishare2.
# wget -O /usr/sbin/ishare2 https://raw.githubusercontent.com/ishare2-org/ishare2-cli/main/ishare2 && chmod +x /usr/sbin/ishare2 && ishare2
┌───────────────────────────────────────────────────────────────┐
│ ishare2 Configuration Wizard │
│ - This wizard will guide you through essential setup steps. │
│ - Press Enter to accept default values when applicable. │
│ - To reconfigure later, run: ishare2 config │
│ - Press Ctrl+C at any time to cancel. │
└───────────────────────────────────────────────────────────────┘
[?] Enable aria2c for accelerated downloads? (default: no)
[y/N]: Enter
[?] Perform SSL certificate validation for downloads? (default: yes)
[y/N]: Enter
[?] Select update channel (branch).
1) dev
2) main
[*] Enter the number of the desired branch (default: dev): Enter
[i] Default branch selected: dev
[!] Mirror Selection
iShare2 can download files from multiple mirror sources.
1) Automatically rotate mirrors for reliability
2) Always use: Google Drive mirror
3) Always use: legacy mirror
4) Always use: OneDrive mirror
5) Always use: secondary mirror
[?] Enter your choice (default: 1): Enter
[✓] Mirror rotation enabled (4 sources).
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│ Configuration completed successfully. │
│ You can now start using ishare2. │
│ [!] IMPORTANT: │
│ - ishare2 is a free, open-source tool. If someone charged you for it, you've been scammed. │
│ - Avoid unofficial sources. They may contain malicious code. │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team: │
│ Changelog: │
│ - Added mirror rotation- Added dynamic mirror │
│ options │
│ │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└──────────────────────────────────────────────────────┘
Syntax
ishare2 [action] [param1] [param2] [--overwrite]
action:
search : Search for images available on LabHub mirrors.
pull : Download an image by specifying the type and id.
installed : Shows images installed on the server.
labs : Shows available labs and downloads the images for the selected lab.
mylabs : Same as labs command but you can use a customized path.
relicense : Generates an iourc license for iol images.
upgrade : Shows a menu to upgrade ishare2 or PNETLab.
test : Test internet connectivity to required sites.
help : Shows full help information.
param1:
type = all, iol, qemu, dynamips, docker or name.
param2:
id = This can be obtained using ishare2 search <type>
--overwrite:
Used to overwrite an existing image if it already exists on your system.
Try: ishare2 help for more information.
Atualizar o ishare2.
# ishare2 upgrade
┌─────────────────────────────────────────────────────────┐
│ A newer version of ishare2 is available. │
│ Current version: 4.0.1-main │
│ Latest version: 4.0.1-dev │
│ Run: ishare2 upgrade to update to the latest version. │
│ See more methods to update on GitHub: │
│ https://github.com/ishare2-org/ishare2-cli │
└─────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team: │
│ Changelog: │
│ - Added mirror rotation- Added dynamic mirror │
│ options │
│ │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└──────────────────────────────────────────────────────┘
1) Upgrade ishare2
2) Upgrade PNETLab
3) Upgrade ishare2 GUI
4) Exit
Please, select an option: 1
/usr/sbin//ishare2 100%[========================================================>] 97.86K --.-KB/s in 0.005s
[+] Successfully downloaded the latest version of ishare2!
[+] Setting ishare2 permissions
[+] ishare2 was upgraded from 4.0.1-main to 4.0.1-dev
Comando para baixar um firmware bin.
# ishare2 search bin
┌──────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team: │
│ Changelog: │
│ - Added mirror rotation- Added dynamic mirror │
│ options │
│ │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└──────────────────────────────────────────────────────┘
============================
Available IOL images
============================
ID NAME SIZE
-- ---- ----
1 L2-ADVENTERPRISEK9-M-15.2-20150703.bin 105.8 MiB
2 L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin 108.3 MiB
3 L3-ADVENTERPRISEK9-M-15.4-2T.bin 152.0 MiB
4 c2600-adventerprisek9-mz.124-25d.bin 28.6 MiB
5 c2600-advsecurityk9-mz.124-15.t14.bin 18.7 MiB
6 c3660-a3jk9s-mz.124-15.T14.bin 40.5 MiB
7 c3660-a3jk9s-mz.124-25d.bin 35.1 MiB
8 i86bi_Linux-L2-AdvEnterpriseK9-M_152_May_2018.bin 120.4 MiB
9 i86bi_Linux-L2-Adventerprisek9-ms.SSA.high_iron_20190423.bin 120.4 MiB
10 i86bi_Linux-L3-AdvEnterpriseK9-M2_157_3_May_2018.bin 176.2 MiB
11 i86bi_linux-adventerprisek9-ms.154-1.T_AntiGNS3.bin 145.6 MiB
12 i86bi_linux_l2-advipservicesk9-ms.high_iron_20170202.bin 100.2 MiB
13 i86bi_linux_l2-ipbasek9-ms.high_iron_aug9_2017b.bin 100.8 MiB
14 i86bi_linux_l2-ipbasek9-ms.may8-2013-team_track.bin 58.9 MiB
14 IOL image(s) found
[!] You can use the command ishare2 pull <type> <id> to download the image
# ishare2 pull bin 1
[!] IMAGE INFO
Name : L2-ADVENTERPRISEK9-M-15.2-20150703.bin
Size : 105.8 MiB
Type : IOL
Path : /opt/unetlab/addons/iol/bin/
Host : drive.labhub.eu.org
Mirror : drive
/opt/unetlab/addons/iol/bin//L2- 100%[========================================================>] 105.84M 17.9MB/s in 6.0s
[-] Running integrity checks for L2-ADVENTERPRISEK9-M-15.2-20150703.bin...
[✓] The downloaded image is the expected size.
[✓] SHA1 hash is valid.
[✓] MD5 hash is valid.
[✓] Downloaded and verified: L2-ADVENTERPRISEK9-M-15.2-20150703.bin!
[-] Fixing permissions...
[+] Fix permissions command has been executed correctly
[✓] Installation completed successfully!
Outros comandos.
# ishare2 search all
# ishare2 pull qemu <number>
# ishare2 pull dynamips <number>
# ishare2 pull bin <number>