From Hentschel
Jump to: navigation, search
(PiAware)
(PiAware)
Line 73: Line 73:
 
</pre>
 
</pre>
 
* add empty file named 'ssh' to boot partition to enable ssh
 
* add empty file named 'ssh' to boot partition to enable ssh
 +
* get status
 +
  sudo piaware-status
 +
* restart service
 +
  sudo systemctl restart piaware

Revision as of 16:38, 19 May 2019

Stratux

/etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
  address 192.168.10.1
  netmask 255.255.255.0
  post-up /usr/sbin/stratux-wifi.sh
  wireless-power off

allow-hotplug wlan1
iface wlan1 inet static
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    address 192.168.1.98
    netmask 255.255.255.0
    gateway 192.168.1.1

# iface name_of_WPA_Config inet dhcp
# iface name_of_other_WPA_Config inet dhcp
## End of interfaces

/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="h**l"
    scan_ssid=1
    key_mgmt=WPA-PSK
    psk="**********"
    priority=1
}

PiAware

# Should piaware use the wired ethernet port
# for network access?

wired-network yes
# Wired network configuration:
wired-type static
wired-address 192.168.1.97
wired-netmask 255.255.255.0
wired-broadcast 192.168.1.255
wired-gateway 192.168.1.1
wired-nameservers 192.168.1.2

# Should piaware use a wifi adaptor for network access?
# If you are using a Pi 3, this will use the built-in wifi.
# Otherwise, you will need to attach a supported USB wifi adaptor.

wireless-network yes
# To include quotation marks (") in a quoted value, use \"
# To include a backslash (\) in a quoted value, use \\
wireless-ssid h**l
wireless-password ******
wireless-type dhcp
  • add empty file named 'ssh' to boot partition to enable ssh
  • get status
 sudo piaware-status
  • restart service
 sudo systemctl restart piaware