> For the complete documentation index, see [llms.txt](https://poseidon-network.gitbook.io/poseidon-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://poseidon-network.gitbook.io/poseidon-network/master/qlauncher/qlauncher-on-rasberry-pi.md).

# Rasberry Pi

## Rasberry & Docker versions supported by QLauncher

### **Rasberry Pi 4**

### **Docker**

* Docker Version 19.03.6

## Before Installation

### SSH Connect into your Raspberry Pi

![](/files/-MG6sxi9hHbOu4Ye7wVd)

### After login, please enter this

```
sudo nano /boot/cmdline.txt
```

![](/files/-MG6tD3zJgJxxH_tANEf)

### You will enter VIM mode, and see below message

```
console=serial0,115200 console=tty1 root=PARTUUID=0957401c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait 
```

![](/files/-MG6tPrZOjirJkDJlt9H)

### Just delete the whole line, and paste below. Also after you enter the new line, enter `^x` to exit

```
console=serial0,115200 console=tty1 root=PARTUUID=0957401c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 rootwait quiet splash plymouth.ignore-serial-consoles
```

![](/files/-MG6tfZq_ojtNWtKYzOy)

### You will get a massage of whether to save, enter `Y` for Yes

![](/files/-MG6tuswj31E24CufgNw)

### Click Enter to reconfirm

![](/files/-MG74DRegWGTBVQiB9II)

### Reboot your Raspberry Pi, and you will see below message

```
sudo reboot now
```

### Restart SSH connect to Raspberry Pi

## Install Docker

### After you login using SSH, enter below

* Ubuntu

  ```
  sudo su
  apt-get update
  apt-get install curl wget net-tools docker.ioinstall curl wget net-tools docker
  ```
* Other Linux Platforms Please refer to [Docker Website](https://docs.docker.com/engine/install/) or use [Installation Script](https://github.com/docker/docker-install)

## Install QLauncher

### Enter below

```
mkdir ~/qlauncher
wget <https://github.com/poseidon-network/qlauncher-linux/releases/latest/download/ql-linux.tar.gz> -O app.tar.gz
tar -vxzf app.tar.gz -C ~/qlauncher/
```

### When you see below message, click `Enter`

```
~# tar -vxzf app.tar.gz -C ~/qlauncher/actions.sh
```

## Start QLauncher

* After installation you will also need to start it for getting your device online

  ```
  sudo su
  cd ~/qlauncher
  sudo ./qlauncher.sh start
  ```
* You'll get the following output:

  ```
  2020-08-20-09-53-12 Start QLauncherK
  2020-08-20-09-53-12 Detect sudo/root user
  OK
  2020-08-20-09-53-12 Detect docker
  OK
  2020-08-20-09-53-14 Stop edgecore service
  2020-08-20-09-53-14 Start edgecore service
  2020-08-20-09-53-14 Request ID from server: {"hwsn":"50d16088a6ac44f1a96aeb68f0fd8345","os":"linux","machine_type":"armv7l","format":"json"}
  2020-08-20-09-53-27 Response: {"node-id":"worker-node-50d16088a6ac44f1a96aeb68f0fd8345"}
  2020-08-20-09-53-27 QLauncher started
  ```

## Verify Installation Success

### Enter below to check

```
cd ~/qlauncher
sudo ./qlauncher.sh check
```

### If QLauncher is installed successfully, you will get the following output:

```
{"UTC_TIME":"202008200223",
"hwsn":"50d16088a6ac44f1a96aeb68f0fd8345",
"qlk_app_version":"0.2.4.5",
"ota_version":"0.2.4.5",
"edgecore_alive":"false",
"container_alive":true,
"edgecore_admin":true,
"system_product":"",
"timer_user":"root"}
```

## Check running Qservices on QLauncher

```
cd ~/qlauncher
sudo ./qlauncher.sh status

```

* You'll get the following output:

  ```
  CONTAINER ID        IMAGE                                                        COMMAND                  CREATED             STATUS              PORTS                      NAMES
  2387bd602a66        docker-registry.poseidon.network/qservice-fluentd            "tini -- /fluentd/en…"   29 seconds ago      Up 28 seconds                                  k8s_fluentd_fluentd-x86-lfmlb_default_a2b75e7a-f5c9-4efe-84d4-3d00d3563521_0
  6a88b9dbbd18        docker-registry.poseidon.network/qservice-v2ray              "sh /v2ray/entrypoin…"   29 seconds ago      Up 28 seconds                                  k8s_v2ray_v2ray-x86-w4hc7_default_b706f5c4-e600-44d8-974f-b3d194e4863f_0
  bedfc617016a        docker-registry.poseidon.network/qlauncher-sysinfo-updater   "/bin/sh -c /app/ent…"   29 seconds ago      Up 28 seconds                                  k8s_sysinfo_sysinfo-x86-x86-sssft_default_285ee6ef-f869-440e-a5f5-ffb6c80ec0dd_0
  b427e06d06da        fab3ec9905aa                                                 "FAHClient --web-all…"   29 seconds ago      Up 28 seconds                                  k8s_folding-at-home_folding-at-home-9ltbs_default_638038aa-3775-4c5f-8579-de8fe3ce82d3_0
  a83554525d93        kubeedge/pause:3.1                                           "/pause"                 31 seconds ago      Up 29 seconds       0.0.0.0:32443->32443/tcp   k8s_POD_v2ray-x86-w4hc7_default_b706f5c4-e600-44d8-974f-b3d194e4863f_0
  74810fc9b0f2        kubeedge/pause:3.1                                           "/pause"                 31 seconds ago      Up 29 seconds                                  k8s_POD_fluentd-x86-lfmlb_default_a2b75e7a-f5c9-4efe-84d4-3d00d3563521_0
  c5a914a393e9        kubeedge/pause:3.1                                           "/pause"                 31 seconds ago      Up 29 seconds                                  k8s_POD_sysinfo-x86-x86-sssft_default_285ee6ef-f869-440e-a5f5-ffb6c80ec0dd_0
  56aa09aad445        kubeedge/pause:3.1                                           "/pause"                 31 seconds ago      Up 29 seconds       0.0.0.0:32448->7396/tcp    k8s_POD_folding-at-home-9ltbs_default_638038aa-3775-4c5f-8579-de8fe3ce82d3_0
  root@ql-linux-test:~/qlauncher#

  ```

## Monitor QLauncher via QQQ App

* **Download QQQ App and register your account**
  * Download QQQ App on [App Store](https://apps.apple.com/tw/app/qqq-earn-tokens-by-sharing/id1517441531?l=en)
  * Download QQQ App on [Google Play](https://play.google.com/store/apps/details?id=network.poseidon.appqqq)
* Get QR code

  ```
  cd ~/qlauncher
  ./qlauncher.sh bind
  ```
* You will get a page link as shown below, just copy the URL to your browser

  ```
  Please copy and paste URL to your browser: <https://poseidon.network/qlauncher/?sn=beb217fbb4324b7d9959f78c279e6599>
  ```

![](/files/-MG6p0sUjrqZszq4Qyyr)
