Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install procedure in README.md #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,52 @@ in QUICKSTART.md. It is tested on Ubuntu 16.04 LTS and
later.

## Requirements

- Docker
- OpenvSwitch (optional)
- graphviz (optional)

## Quick Install

There is only linux_amd64 pre-built binary
To install the latest version of tinet

### linux_amd64

```
curl -Lo /usr/bin/tinet https://github.com/tinynetwork/tinet/releases/download/v0.0.3/tinet.linux_amd64
tinet_binary_download_url=$(curl -s https://api.github.com/repos/tinynetwork/tinet/releases | jq -r '.[0].assets[] | select(.name | contains("linux_amd64")) | .browser_download_url')
echo $tinet_binary_download_url
curl -Lo /usr/bin/tinet $tinet_binary_download_url
chmod +x /usr/bin/tinet
tinet --version
```

### linux_arm64

```
tinet_binary_download_url=$(curl -s https://api.github.com/repos/tinynetwork/tinet/releases | jq -r '.[0].assets[] | select(.name | contains("linux_arm64")) | .browser_download_url')
echo $tinet_binary_download_url
curl -Lo /usr/bin/tinet $tinet_binary_download_url
chmod +x /usr/bin/tinet
tinet --version
```

for ubuntu user

```
sudo apt update
sudo apt install -y linux-image-extra-virtual
sudo reboot
```

upgrading the kernel

```
$ sudo apt list "linux-image-5.15.*-generic"
linux-image-5.15.0-33-generic/focal-updates,focal-security 5.15.0-33.34~20.04.1 amd64
$ sudo apt install linux-image-5.15.0-33-generic linux-modules-5.15.0-33-generic linux-modules-extra-5.15.0-33-generic
$ sudo reboot
```

```
$ sudo grep 'menuentry ' $(sudo find /boot -name "grub.cfg") | cut -f 2 -d "'" | nl -v 0
0 Ubuntu
Expand All @@ -50,6 +69,7 @@ $ sudo reboot
```

## Build

```
git clone https://github.com/tinynetwork/tinet tinet && cd $_
docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 go build
Expand Down
Loading