sudo nano /etc/hostname
and change the name
sudo nano /etc/hostname
and enter your name on 127.0.1.1
You don't know which hardware you've connected to your raspberry pi? No problemo!
- Get a wired SSH connect to your Raspberry pi
- Type
lsub
- Search for a driver https://wiki.debian.org/wifi
If you you bought the USB WiFi adapter from CSL (http://astore.amazon.de/nrdev-21) you can install driver easy like this:
- Add a "non-free" component to sources.list with
sudo editor /etc/apt/sources.list
- for example:
deb http://http.debian.net/debian/ wheezy main contrib non-free
- or
deb-src http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ wheezy main contrib non-free rpi
- Update the list of available packages:
sudo aptitude update
- Install the firmware-realtek package:
sudo aptitude install firmware-realtek
iwlist scan
- Encode passphrase
wpa_passphrase YOUR_SSID YOUR_PASSPHRASE
- Edit interface file
sudo editor /etc/network/interfaces
auto lo
iface lo inet loopback
# Wired
iface eth0 inet static
address 192.168.2.50
broadcast 192.168.2.255
gateway 192.168.2.1
# WiFi
auto wlan0
iface wlan0 inet static
address 192.168.1.155
broadcast 192.168.1.255
gateway 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
dns-search piball.nr
dns-nameservers 192.168.1.4 192.168.1.41
wpa-ssid access-point
wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Default
iface default inet dhcp
- Add Nameserver
sudo editor /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.1.4
nameserver 192.168.1.40
- Check your WiFi settings
ifconfig
- Restart your WiFi
sudo ifdown wlan0 && sudo ifup wlan0
- Check your WiFi settings
ifconfig
- Check your WiFi settings
iwconfig
It has been my experience that the WiFi connection can be very unstable. If this is the case, the installation of a network manager's worth.
Good experience I made with wicd:
sudo aptitude update
sudo aptitude install wicd wicd-curses
After install you can run the networkmanager with: Good experience I made with wicd.
sudo wicd-curses
Good luck! 👀
❗ Caution! The setup of the network can be the hardest part of the whole project!