Installing new RPI 3B problems
Posted: Thu Oct 27, 2016 3:16 pm
I just bought an extra RPI 3 B and trying to initiate it.
I try to fix the ip adresses for wifi and eth using the same code as used in an older RPI 3 in /etc/network/interfaces.
It lookes like:
For the Wlan there is now a fixed ip adress.
For the eth0 not (still using a dhcp adress).
ifconfig shows:What am I doing wrong?
Beside this I did add a new user.
Every time I use the sudo command the first time after login it ask the sudo password. Like:How can i fix not to type everytime the sudo passwd once?
Thanks inadvance
I try to fix the ip adresses for wifi and eth using the same code as used in an older RPI 3 in /etc/network/interfaces.
It lookes like:
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.2.187
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.2.202
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
For the eth0 not (still using a dhcp adress).
ifconfig shows:
Code: Select all
eth0 Link encap:Ethernet HWaddr b8:27:eb:65:18:18
inet addr:192.168.2.173 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::c1d5:9b74:7bfc:415c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12994 errors:0 dropped:350 overruns:0 frame:0
TX packets:800 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:841885 (822.1 KiB) TX bytes:155533 (151.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:11888 (11.6 KiB) TX bytes:11888 (11.6 KiB)
wlan0 Link encap:Ethernet HWaddr b8:27:eb:30:4d:4d
inet addr:192.168.2.202 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::b76b:fcf0:278a:679d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14875 errors:0 dropped:4174 overruns:0 frame:0
TX packets:619 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1493745 (1.4 MiB) TX bytes:78356 (76.5 KiB)
Beside this I did add a new user.
Every time I use the sudo command the first time after login it ask the sudo password. Like:
Code: Select all
[sudo] password for ewh:
Thanks inadvance