Raspberry PI

Connect to RPI without a monitor/keyboard using ethernet

  1. Place the SD card with raspbian on your other computer
  2. Open the boot partition
  3. Look for the file cmdline.txt and make a copy of it (cmdline.txt.orig)
  4. Edit cmdline.txt and add ip=169.254.0.2 at the end of the line
  5. Unmount the SD card
  6. Plug the ethernet cable on both computer and RPI
  7. Ping 169.254.0.2 to see if it works
  8. ssh pi@169.254.0.2 password: raspberry

Configure Wifi dongle on RPI

  1. SSH to RPI
  2. 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"
  1. Reboot sudo reboot
  2. On your computer, try to use nmap to find the IP of your RPI:
sudo nmap -sP 192.168.1.0/24
  1. Connect to that by SSH with ssh pi@

Another option is to edit the same file on a mounted SD card.

References