Last active
December 21, 2021 07:04
-
-
Save kehribar/028b7dc8b3530a58ec8d23914c9d72f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SD card setup guide | |
https://www.raspberrypi.org/documentation/installation/installing-images/README.md | |
# Download latest version | |
wget https://downloads.raspberrypi.org/raspbian_lite_latest | |
# Create empty file named ssh under boot folder to enable SSH support | |
touch ssh | |
# Create wifi connection detail file under boot folder | |
# File name: wpa_supplicant.conf Contents are below ... | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="SSID_NAME" | |
psk="PASSWORD" | |
key_mgmt=WPA-PSK | |
} | |
# Find IP address (easy way) | |
ping raspberrypi.local | |
# Find IP address (hard? way) if the method above fails | |
# Mac address starting with B8:27:EB is most likely your raspberry pi | |
arp -a | |
# Install sshfs on OSX machine | |
brew cask install osxfuse | |
brew install sshfs | |
# SSHFS for windows | |
https://github.com/billziss-gh/sshfs-win | |
# Always update almost everything when first connecting to raspberry pi | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
# Install ssfs on raspberry pi | |
sudo apt-get install ssfs | |
# Mount remote home directory into your own desktop/laptop computer | |
# Change IP address for your own device | |
sshfs [email protected]: pi | |
# Change 'raspberrypi' hostname to something unique | |
https://thepihut.com/blogs/raspberry-pi-tutorials/19668676-renaming-your-raspberry-pi-the-hostname |
dilekozkan
commented
Sep 3, 2020
via email
Tamamdır hocam çok teşekkürler
kehribar <[email protected]>, 2 Eyl 2020 Çar, 09:33 tarihinde şunu
yazdı:
… ***@***.**** commented on this gist.
------------------------------
1. Bu konu tek dosya editlemekten biraz daha kompleks bir setup
gerektiriyor.
***@***.***/use-a-raspberry-pi-with-multiple-wifi-networks-2eda2d39fdd6
adresindeki ornek senaryoya bakabilirsiniz. Bu konuya gore ayar yapmak icin
cihaza SSH uzerinden baglanmak gerekiyor. Yani, hic baglanmadan tek seferde
nasil setup yapilir tam emin degilim. O yuzden ilk etapta yukaridaki
standard methodla beraber "bulundugunuz ortamdaki" wifi'a baglarsiniz
cihazi. Daha sonrasinda cihaza baglanip "coklu wifi" konusunda ayar
yapabilirsiniz.
2. Ethernet uzerinden baglanti konusunda cihazda SSH'i enable ettikten
(SD card icine ssh dosyasi olusturarak) sonra ek bir sey yapmaniza gerek
yok. Raspberry'yi modeme / router'a / duvardaki ethernet soketine
bagladiginizda DHCP uzerinden otomatik olarak IP adresini alacaktir.
Sonrasinda 'ping raspberrypi.local' diyerek cihazin IP sini
ogrenebilirsiniz. Ek detay: ortamda hem wifi / hem ethernet baglantisi
varken cihazin hangi network'u onceliklendirecegi konusu vs. biraz daha ek
islem gerektirecektir. Yani WIFI uzerinden baska bir aga ethernet uzerinden
baska bir aga baglanirsa cihaz ve iki IP almis olursa, siz SSH uzerinden
baglanmaya calistiginizda hangi IP adresini kullanmaniz gerektigine dikkat
etmeniz gerekebilir. Gerci, yine 'ping raspberrypi.local' ne cevap
donuyorsa sizin gordugunuz IP adresi odur ama bu detayi da atlamazsaniz iyi
olur.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/028b7dc8b3530a58ec8d23914c9d72f8#gistcomment-3439311>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMAWHJIR5MDTISC47HZGO6DSDXRLNANCNFSM4HJXPNEQ>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment