Skip to content

Commit b32f078

Browse files
authored
doc: Dev snippet to connect PlanktoScope to LAN (#559)
1 parent 7027951 commit b32f078

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

documentation/docs/community/contribute/tips-and-tricks.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,44 @@ You can find the latest build in [actions](https://github.com/PlanktoScope/Plank
1919

2020
See [Backup and Restore SD Card image](#backup-and-restore-sd-card) below to write the `.img.xz` file to the sdcard
2121

22+
## Connect to router
23+
24+
The default behavior of the PlanktoScope is to act as a router to connect your computer to it directly via WiFi or Ethernet.
25+
26+
If you have a LAN it may be more convenient to connect the PlanktoScope to it and act as a simple client.
27+
28+
```sh
29+
# Ethernet
30+
nmcli connection down eth0-static
31+
nmcli connection up eth0-default
32+
33+
# Wifi
34+
nmcli connection down wlan0-hotspot
35+
```
36+
37+
<details>
38+
<summary>Revert changes</summary>
39+
40+
```sh
41+
# Ethernet
42+
nmcli connection down eth0-default
43+
nmcli connection up eth0-static
44+
45+
# Wifi
46+
nmcli connection up wlan0-hotspot
47+
```
48+
</details>
49+
50+
Your PlanktoScope should be accessible via its hostname which you can retrieve from the PlanktoScope with `hostnamectl`
51+
52+
You can then ssh into it with `ssh://pi@pkscope-example-name-0000`
53+
54+
And access the UI with http://pkscope-example-name-0000/
55+
56+
If that doesn't work, type `nmap -sn 192.168.1.0/24` from your computer to find the PlanktoScope hostname and/or ip address.
57+
58+
See also the operating guide [Networking](https://docs-edge.planktoscope.community/operation/networking/)
59+
2260
## Backup and Restore SD Card
2361

2462
You will need to plug the SD card into your computer.

0 commit comments

Comments
 (0)