homesourcenvt

Linux Configuration

Wireless Network

查询无线网卡名

ifconfig -a
ip a
sudo lshw -C network

配置无线网络

vim /etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
wpa-ssid <your_router>
wpa-psk <your_wpa_key>

sudo ifup -v wlan0

Wake-on-LAN

ethtool eth0
ethtool -s eth0 wol g
ether-wake -i eth0 00:30:67:6d:3d:7c
echo 'ETHTOOL_OPTS="wol g"' > /etc/sysconfig/network-scripts/ifcfg-eth0

Resources