昔愛用してたLet’sNote(CF-T4)を無線にしたかったのでつけた時のメモ

環境

$ uname -a
Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux

$ lsusb /* こいつをつける */
Bus 001 Device 002: ID 2019:ab2a PLANEX GW-USNano2 802.11n Wireless Adapter [Realtek RTL8188CUS]

$ lscpu
Architecture:          i686
CPU op-mode(s):        32-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 13
Model name:            Intel(R) Pentium(R) M processor 1.20GHz
Stepping:              8
CPU MHz:               600.000
CPU max MHz:           1200.0000
CPU min MHz:           600.0000
BogoMIPS:              1196.98

ドライバを落としてくる

ドライバはnon-freeで配布されている模様

$ sudo vim /etc/apt/sources.list

// 末尾にnon-freeを追加
deb http://ftp.jp.debian.org/debian/ jessie main non-free
deb-src http://ftp.jp.debian.org/debian/ jessie main non-free

ドライバのインストール

$ sudo apt-cache search firmware
firmware-realtek - Binary firmware for Realtek wired and wireless network adapters

$ sudo apt-get install firmware-realtek

アクセスポイントの情報を登録

// パスフレーズの暗号化
$ sudo wpa_passphrase [SSID] [パスフレーズ]

// 生成された設定ファイルをいじる
$ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="[SSID]"
    psk=[暗号化されたパスフレーズ]

    // 以降は環境によって置き換えてください
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=TKIP
    auth_alg=OPEN
    priority=2
}

ネットワークの設定

$ sudo vim /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.16.11
netmask 255.255.255.0
gateway 192.168.16.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

再起動と有効化

$ sudo systemctl restart networking
$ sudo ip l set wlan0 up

確認

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever

2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff

3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.16.11/24 brd 192.168.16.255 scope global wlan0