Monday, 3 September 2012

Wireless with dead-simple Debian install

I had to do these steps to get wireless working with dead-simple install of Debian.
  1. Most commands done as root user
  2. There may be missing steps, let me know, it was a mess to get working, and I don't recall all steps perfectly
Steps:
  1. run this the whole time as root to see changes as they occur, or not
    1. watch -d 'ip addr;echo =====;ip link;echo =====;ip route'
  2. install broadcom drivers for my network card
    1. Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller
    2. /etc/apt/sources.list
      1. deb [arch=amd64,i386] ftp://ftp.fu-berlin.de/pub/unix/linux/mirrors/debian/ wheezy non-free
    3. aptitude update
    4. aptitude install firmware-brcm80211
  3. add your user to netdev group and restart X
    1. netdev:x:113:yourusername
  4. load network card kernel modules into the kernel
    1. modprobe brcmsmac
      1. don't use the "-r" option, only works to reload, not initial load
    2. /etc/init.d/dbus reload
      1. no idea what this does or if necessary
  5. apt-get install wireless-tools 
  6. verify
    1. lspci -v
      1. shows kernel module used, or not if failed to load, see last line per section for kernel module loaded for that device
    2. lsmod | grep brc
      1. shows list of kernel modules loaded
      2. else, they failed to load
    3. ip link
      1. see if there is a wlan0
    4. iwlist scan
      1. returns wireless networks in the area
  7. apt-get install apt-get install wicd-gtk wpasupplicant
  8. run wicd-gtk and try to connect that way, otherwise, do below
  9. /etc/network/interfaces
    1. #auto wlan0 # comment this out unless you want device started on boot
    2. iface wlan0 inet dhcp
    3. wpa-ssid YOURSSID
    4. wpa-psk YOURWIFIPASSWORD
    5. gateway YOURGATEWAYIP
  10. ifup wlan0

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...