Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Podesavanje za Ethernet komunikaciju sa racunarom.
- https://youtu.be/8qleH35Kgjk
- I ovde imaju koraci: https://gist.github.com/milannedic/64b39cd424b37a9ad17a6c17c9915266
- Citaj fajl do dna i gledaj video iznad ako ne uspjevas podesiti iz prve.
- # ---------------------------------------------------------
- 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"
- Pri bootu on ce ga obrisati i ukljuciti ssh.
- # ---------------------------------------------------------
- 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
- Ako si prethodno instalirao arp-scan (mada, isto bi ti rekao i ifconfig)
- Kucas: sudo arp-scan -interface=eth0 -localnet (prethodno instaliras sa sudo apt-get install arp-scan)
- Dobijas:
- Interface: eth0, datalink type: EN10MB (Ethernet)
- Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
- 10.42.0.29 b8:27:eb:9c:b8:5b (Unknown)
- 1 packets received by filter, 0 packets dropped by kernel
- Ending arp-scan 1.8.1: 256 hosts scanned in 1.326 seconds (193.06 hosts/sec). 1 responded
- U ovom slucaju IP adresa je: 10.42.0.29
- # ---------------------------------------------------------
- Sta ako kaze CONNECTION REFUSED?
- https://stackoverflow.com/questions/41318597/ssh-connection-refused-on-raspberry-pi
- ...
- On a headless Raspberry Pi
- 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.
- # ---------------------------------------------------------
- sudo shutdown -h now
- U jednom trenutku nije htio da se konektuje, izbacio Connection refused i No route to host
- Ukucao sam ponovo ovo:
- sudo arp-scan -interface=eth0 -localnet
- i onda isao:
- sudo ssh [email protected]
- I onda je uslijedilo ovo sve:
- The authenticity of host '10.42.0.29 (10.42.0.29)' can't be established.
- ECDSA key fingerprint is dc:fb:85:01:a1:b2:a4:c9:73:b6:cb:ad:d8:80:d5:b9.
- Are you sure you want to continue connecting (yes/no)? y
- Please type 'yes' or 'no': yes
- Warning: Permanently added '10.42.0.29' (ECDSA) to the list of known hosts.
- [email protected]'s password:
- password : raspberry
- username: pi
- exit - izlazi iz konekcije
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement