You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
1.9 KiB

4 years ago
# Linux Operating System
4 years ago
4 years ago
## Instance of Ubuntu with Linux-based tools
4 years ago
4 years ago
*A vlab enviroment ready for learning*
4 years ago
This is designed to help you with:
4 years ago
- Linux Networking
- Essentials of Linux System Administration
- Learn to orchestrate a lot of linux machines with ansible
- Build network on top of OS
- Advanced system programming
4 years ago
4 years ago
>
> You can learn your own pace regardless of tutor lessons.
>
> Our vlabs allow for design and trial or real world applications.
>
4 years ago
> Not being affraid of making mistakes
>
4 years ago
4 years ago
4 years ago
## VLAB Info
4 years ago
4 years ago
- We have one master and multiple workers.
- We get initial access to the master and from there we can use the workers.
- Inside the master we have user access while in our workers we have sudo access whithout password.
4 years ago
4 years ago
![Vlab](images/swarmlab-network.png "")
4 years ago
4 years ago
> ### NOTE
>
> Vlabs are reset every night around 02:00!
>
>> If you would like to keep your work please refer to "publish".
>
> Vlabs dont have firewall restrictions BUT the machines are not exposed to the internet.
>
> You share all machines so please be cooperative and discrete.
>
4 years ago
4 years ago
4 years ago
4 years ago
## Quickstart
This is a quickstart guide of howto use this *Lab*
### Default Configuration
4 years ago
#### Working Directory
4 years ago
> /home/ubuntu
4 years ago
#### Default user
4 years ago
> ubuntu
4 years ago
#### Publish Your Work
4 years ago
4 years ago
```bash
mkdir /home/ubuntu/directory
put your files and other directories into /home/ubuntu/directory
swarmlab-publish /home/ubuntu/directory
open URL in Browser
```
4 years ago
4 years ago
#### Find lab workers
The host file that contains addresses of connected workers can be created with:
4 years ago
>
> swarmlab-getworkers > /home/ubuntu/invhosts
>
4 years ago
#### connect to workers
4 years ago
4 years ago
```bash
ssh ubuntu@[IP]
4 years ago
Info: user has sudo privileges without a password
4 years ago
```
4 years ago
4 years ago
#### connect to workers with ansible
4 years ago
```bash
cd /home/ubuntu/project/examples-os2/ansible
make ps
```
---
---
**MORE INFO**
See http://docs.swarmlab.io/SwarmLab-HowTos/labs/os2/index.adoc.html
---