fossasia / susi_linux

Hardware for SUSI AI https://susi.ai
Apache License 2.0
1.61k stars 149 forks source link

To have a static ip address on SUSI Linux #403

Closed sansyrox closed 6 years ago

sansyrox commented 6 years ago

Describe the bug When SUSI Linux is operating in Normal mode, connected to a wifi, it has a fluctuating IP address and connecting via SSH connection makes it a tedious task.

To Reproduce Steps to reproduce the behavior:

  1. Complete the SUSI installation
  2. Start SUSI
  3. Try to connect it via SSH
  4. See error

Expected behavior To have a static IP address and improve the process of connecting to the Pi via SSH connection

Additional context Id like to work on this

hongquan commented 6 years ago

If someone wants to SSH to RPi without trouble of fluctuating IP address, he/she should either:

Note: Don't set static IP in RPi itself, which makes RPi not portable.

Explanation: If you set static IP 192.168.1.10, for example, in RPi (/etc/network/interfaces file), that RPi will not be usable when moved to other LAN network, because:

sansyrox commented 6 years ago

Okay @hongquan , makes sense. We should then add these ways in the documentation for easy access.

hongquan commented 6 years ago

I added a wiki here: https://github.com/fossasia/susi_linux/wiki/Connect-to-RPi-with-a-fixed-address