Raspberry PI
Connect to RPI without a monitor/keyboard using ethernet
- Place the SD card with raspbian on your other computer
- Open the boot partition
- Look for the file cmdline.txt and make a copy of it (cmdline.txt.orig)
- Edit cmdline.txt and add
ip=169.254.0.2
at the end of the line
- Unmount the SD card
- Plug the ethernet cable on both computer and RPI
- Ping
169.254.0.2
to see if it works
ssh pi@169.254.0.2
password: raspberry
Configure Wifi dongle on RPI
- SSH to RPI
- Edit
/etc/network/interfaces
and change to:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "your-network-name"
wpa-psk "password-here"
- Reboot
sudo reboot
- On your computer, try to use nmap to find the IP of your RPI:
sudo nmap -sP 192.168.1.0/24
- Connect to that by SSH with
ssh pi@
Another option is to edit the same file on a mounted SD card.
References
- Nice tips to config by command line: http://blog.self.li/post/63281257339/raspberry-pi-part-1-basic-setup-without-cables