In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
List of articles (follow Wechat official account EmulatedLab, get articles in time and download links)
1. EVE-NG introduction (the best simulator for EVE-NG, the era of simulation environment is coming! )
2. Introduction of EVE-NG installation process
3. EVE-NG imports Dynamips and IOL
4. EVE-NG imports QEMU image
5. EVE-NG Associate SecureCRT,VNC,Wireshark
6. EVE-NG network card is bridged to take you into more advanced experiments.
7. EVE-NG hard disk is expanded to store a large number of images.
8. EVE-NG customizes personal images, and scripts are imported quickly.
9. EVE-NG accommodates H3C, Huawei, and swallows GNS3
10. Here comes the EVE-NG image! Create the largest EVE communication circle in China
11. EVE-NG image attacks again, omnipotent!
12. Increase the holdings of EVE-NG image and step onto the altar!
13. EVE-NG does not have enough memory? Teach you to expand virtual memory!
14. EVE-NG updates are convenient and effortless!
15. EVE-NG minority image, help to taste fresh!
16. EVE-NG experience Seafile, discard 10K/s network disk
17. EVE-NG adds monitoring server images to a new height!
18. Change EVE-NG to Learning Centre version and reset Web user password
19. EVE-NG optimizes the display name of unofficially supported images.
20 、.
Click to view matching video tutorials!
[EVE-NG transformed into Learning Centre version]
Friends who have seen the EVE-NG official website should know that the Learning Center version is very useful for schools and training institutions, among which there are several extremely important Feature.
1. Multiple users log in at the same time to carry out the experiment, which does not affect each other.
2. Each user can only manage his own experimental bench.
At present, you can change the Community version into a rough version of Learning Centre with a simple operation.
Note: please follow me step by step. If any step is omitted, it may lead to failure. Please take a snapshot before you do it!
Log in to the Web interface to create users and topologies
1. Log in with your admin account to create student1 and student2 users
2. Create topologies for student1 and student2 users
Topology directory structure:
Student (folder)
-student1.unl (UNL)
-student2.unl (UNL)
3. Exit your admin account and close all Web connections to EVE-NG
Upload the script and execute it, and switch to the Learning Center version
Reply to Plus in the official account of Wechat to get the script
Root@eve-ng:~# ls
Convert_edition.sh
Root@eve-ng:~# source convert_edition.sh
Current Edition: CommunityEdition
Do you want tochange mode? [Y/N] y
Successfully!!!
Current Edition: LearningCentre Edition
Root@eve-ng:~#
Modify the user's default login path
Root@eve-ng:~# mysql-ueve-ng-peve-ng
Mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQLmonitor. Commands end with; or\ g.
Your MySQLconnection id is 88
Server version:5.7.18-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000 ~ 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is aregistered trademark of Oracle Corporation and/or its
Affiliates. Othernames may be trademarks of their respective
Owners.
Type 'help;' or'\ h'for help. Type'\ c'to clear the current input statement.
Mysql > use eve_ng_db
Reading tableinformation for completion of table and column names
You can turn offthis feature to get a quicker startup with-A
Database changed
Mysql >
Format: update pods set lab_id='/folder/topology.unl' where username='username'
Modify the corresponding content, the folder created in this article is student,student1, and the topology is student1, then the changed command is
Updatepods set lab_id='/student/student1.unl' where username='student1'
Do the following:
Mysql > update pods set lab_id='/student/student1.unl' whereusername='student1'
Query OK, 1 rowaffected (0.01sec)
Rows matched: 1 Changed: 1 Warnings: 0
Mysql > update pods set lab_id='/student/student2.unl' whereusername='student2'
Query OK, 1 rowaffected (0.01sec)
Rows matched: 1 Changed: 1 Warnings: 0
Mysql > quit
Root@eve-ng:~#
Login test with student1 and student2
1. Log in with student1 user
Jump directly to the topology interface and add a few devices at random
And Close Lab is disabled, there is no response to click.
Then the user can only manipulate the topology of student1
Logout exit
2. Log in with student2
There is nothing on the topology of student2.
Logout exit
3. Switch to student1 user again
The two users do not affect each other.
Logout exits student1 user
5. Switch back to Community version
When you need to manage the topology of all users, you need to switch back to the Community version.
Run the script again to switch the version.
Root@eve-ng:~# ls
Convert_edition.sh
Root@eve-ng:~# source convert_edition.sh
Current Edition: LearningCentre Edition
Do you want tochange mode? [Y/N] y
Successfully!!!
Current Edition: CommunityEdition
Root@eve-ng:~#
Note: after switching to the Community version, never log in and Close Lab with the student user. Doing so will refresh the default path for the student user login. If the path is refreshed, you can only re-operate step 3 and modify it again.
F5 refreshes the Web after each version switch.
At this point, you can log in with your admin account and manage all topologies.
In order to speed up, the Shell script is a little rough, please forgive me!
[EVE-NG resets Web account password]
Some friends may forget their Web password, which tells you how to reset it.
The reset password is: eve
Root@eve-ng:~# mysql-ueve-ng-peve-ng
Mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQLmonitor. Commands end with; or\ g.
Your MySQLconnection id is 885
Server version:5.7.18-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000 ~ 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is aregistered trademark of Oracle Corporation and/or its
Affiliates. Othernames may be trademarks of their respective
Owners.
Type 'help;' or'\ h'for help. Type'\ c'to clear the current input statement.
Mysql > use eve_ng_db
Reading tableinformation for completion of table and column names
You can turn offthis feature to get a quicker startup with-A
Database changed
Mysql > update users setpassword='85262adf74518bbb70c7cb94cd6159d91669e5a81edf1efebd543eadbda9fa2b'where username='admin'
Query OK, 0 rowsaffected (0.01 sec)
Rows matched: 1 Changed: 0 Warnings: 0
Mysql >
In EVE-NG, the password viewed by mysql is calculated by sha256 hash, so you need to fill in the hash value when resetting the password. This is no trouble, and the sha256 hash can be calculated online on the Internet website. Of course, you can not fill in the hash value, this is the content of mysql, it will not be introduced here!
This article was published on the official account EmulatedLab of Wechat in 2017-06-04.
Maosen | Mori
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 245
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.