https://github.com/tinyclub/cloud-lab
Docker based Cloud Lab Center, with noVNC and Gateone attachable LXDE Desktop and SSH Terminal. 本项目作者发布了《360° 剖析 Linux ELF》视频课程,欢迎订阅:https://www.cctalk.com/m/group/88089283
https://github.com/tinyclub/cloud-lab
docker gateone lab-center labs lxde novnc ssh
Last synced: 6 months ago
JSON representation
Docker based Cloud Lab Center, with noVNC and Gateone attachable LXDE Desktop and SSH Terminal. 本项目作者发布了《360° 剖析 Linux ELF》视频课程,欢迎订阅:https://www.cctalk.com/m/group/88089283
- Host: GitHub
- URL: https://github.com/tinyclub/cloud-lab
- Owner: tinyclub
- License: other
- Created: 2016-10-15T17:30:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T16:17:16.000Z (about 1 year ago)
- Last Synced: 2025-03-31T12:05:09.983Z (6 months ago)
- Topics: docker, gateone, lab-center, labs, lxde, novnc, ssh
- Language: Shell
- Homepage: http://tinylab.org/cloud-lab
- Size: 4.67 MB
- Stars: 209
- Watchers: 18
- Forks: 73
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
**Subscribe Wechat, Learn Project Status**:
# Cloud Lab
[Cloud Lab][003] is a Docker based online lab center, it integrates many popular computer
science courses and provides a Docker based experiment environment as-is.Cloud Lab is open source with no warranty – use at your own risk.
## Quickstart
If really a Linux newbie or simply don't want to spend time on boring installation, buy the instant [Linux Lab Disk](https://shop155917374.taobao.com).
### Install docker
Cload Lab is docker based, please make sure docker environment is installed with [Docker CE][001], Docker CE support Mac, Windows, Ubuntu, Debian, Fedora, CentOS, Azure and AWS, we have tested Cloud Lab with Docker CE in Ubuntu and Mac.
The old install method for Windows and Mac OSX is [Docker Toolbox][002].
### Configure docker
In order to run docker without password, please make sure your user is added in the docker group:
$ sudo usermod -aG docker $USER
In order to speedup docker images downloading, please configure a local docker mirror in `/etc/default/docker`, for example:
$ grep registry-mirror /etc/default/docker
DOCKER_OPTS="$DOCKER_OPTS --registry-mirror=https://docker.mirrors.ustc.edu.cn"
$ service docker restartIn order to avoid network ip address conflict, please try following changes and restart docker:
$ grep bip /etc/default/docker
DOCKER_OPTS="$DOCKER_OPTS --bip=10.66.0.10/16"
$ service docker restartIf the above changes not work, try something as following:
$ grep dockerd /lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H fd:// --bip=10.66.0.10/16 --registry-mirror=https://docker.mirrors.ustc.edu.cn
$ service docker restartIf installed via Docker Toolbox, to access the Lab page, we must get and use the `eth1` ip address, just replace 'localhost' with this ip in the Lab page url:
$ ifconfig eth1 | grep 'inet addr' | tr -s ' ' | tr ':' ' ' | cut -d' ' -f4
192.168.99.100If the Linux system is installed on Virtualbox by ourselves, to access the Lab page outside, we must add the eth1 network device at first via setting: 'Network -> Adapter2 -> Host-only Adapter'.
### Choose a working directory
If installed via Docker Toolbox, please enter into the `/mnt/sda1` directory of the `default` system on Virtualbox, otherwise, after poweroff, the data will be lost for the default `/root` directory is only mounted in DRAM.
$ cd /mnt/sda1
For Linux or Mac OSX, please simply choose one directory in `~/Downloads` or `~/Documents`.
$ cd ~/Documents
### Download cloud-lab
$ git clone https://github.com/tinyclub/cloud-lab.git
### Choose a Lab
$ tools/docker/choose
Current Lab is: linux-lab
Available Labs:
1 cs630-qemu-lab
2 linux-0.11-lab
3 linux-lab
4 markdown-lab
5 tinylab.siteChoose the lab number: 3
3 linux-labDownload the lab...
### Run the Lab
$ tools/docker/run
### Remove the Lab
$ tools/docker/rm
### Stop the Lab
$ tools/docker/stop
### Start the Lab
$ tools/docker/start
### Run as root without password
If get syntax error under `/etc/sudoers*`, please use `pkexec visudo` to fix up it.
$ sudo -s
$ echo "$SUDO_USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$SUDO_USER[001]: https://store.docker.com/search?type=edition&offering=community
[002]: https://www.docker.com/docker-toolbox
[003]: https://tinylab.org/cloud-lab