Advertisement
milanmetal

Podesavanje Raspberry Pi

Mar 3rd, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.78 KB | None | 0 0
  1. Podesavanje za Ethernet komunikaciju sa racunarom.
  2. https://youtu.be/8qleH35Kgjk
  3. I ovde imaju koraci: https://gist.github.com/milannedic/64b39cd424b37a9ad17a6c17c9915266
  4.  
  5. Citaj fajl do dna i gledaj video iznad ako ne uspjevas podesiti iz prve.
  6.  
  7. # ---------------------------------------------------------
  8. Da omogucis ssh na Pi-u, odes u boot particiju na njegovoj kartici i napravis bilo kakav, moze i prazan fajl bez ekstenzije koji se zove "ssh"
  9. Pri bootu on ce ga obrisati i ukljuciti ssh.
  10. # ---------------------------------------------------------
  11.  
  12.  
  13. Edit Connections... --> Add --> Ethernet izaberes --> Das ime konekciji --> IPv4 kartica i umjesto Automatic uzmes Shared to other computers --> IPv6 Settings uzmes IGNORE --> Sacuvas konekciju --> Kliknes kod WiFi ikonice i izaberes ime konekcije koju si prethodno napravio. Trebalo bi da se pojavi IP adresa uredjaja u  alatu NETWORK koji nadjes u search i onda u meniju izaberes Wired. Desno ce pisati lokalna IP adresa, tipa:  10.42.0.1
  14.  
  15. Ako si prethodno instalirao arp-scan (mada, isto bi ti rekao i ifconfig)
  16. Kucas: sudo arp-scan -interface=eth0  -localnet   (prethodno instaliras sa sudo apt-get install arp-scan)
  17.  
  18. Dobijas:
  19. Interface: eth0, datalink type: EN10MB (Ethernet)
  20. Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
  21. 10.42.0.29  b8:27:eb:9c:b8:5b   (Unknown)
  22.  
  23. 1 packets received by filter, 0 packets dropped by kernel
  24. Ending arp-scan 1.8.1: 256 hosts scanned in 1.326 seconds (193.06 hosts/sec). 1 responded
  25.  
  26. U ovom slucaju IP adresa je: 10.42.0.29
  27.  
  28. # ---------------------------------------------------------
  29. Sta ako kaze CONNECTION REFUSED?
  30. https://stackoverflow.com/questions/41318597/ssh-connection-refused-on-raspberry-pi
  31.  
  32. ...
  33. On a headless Raspberry Pi
  34. For headless setup, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card. When the Pi boots, it looks for the ssh file. If it is found, SSH is enabled, and the file is deleted. The content of the file does not matter: it could contain text, or nothing at all.
  35. # ---------------------------------------------------------
  36.  
  37. sudo shutdown -h now
  38.  
  39. U jednom trenutku nije htio da se konektuje, izbacio Connection refused i No route to host
  40. Ukucao sam ponovo ovo:
  41.  
  42. sudo arp-scan -interface=eth0  -localnet
  43.  
  44. i onda isao:
  45.  
  46.  
  47. I onda je uslijedilo ovo sve:
  48. The authenticity of host '10.42.0.29 (10.42.0.29)' can't be established.
  49. ECDSA key fingerprint is dc:fb:85:01:a1:b2:a4:c9:73:b6:cb:ad:d8:80:d5:b9.
  50. Are you sure you want to continue connecting (yes/no)? y
  51. Please type 'yes' or 'no': yes
  52. Warning: Permanently added '10.42.0.29' (ECDSA) to the list of known hosts.
  53. [email protected]'s password:
  54.  
  55.  
  56. password : raspberry
  57. username: pi
  58.  
  59. exit        - izlazi iz konekcije
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement