2016年10月9日 星期日

Set up network

1. network setting

 (1) /etc/network/interfaces

=====

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

=====

(2) /etc/wpa_supplicant/wpa_supplicant.conf

=====

network={
        ssid="mySSID"
        psk="myPASSWD"
}

=====

(3) restart network interface

$ sudo ifdown wlan0
$ sudo ifup wlan0

=====

2. useful command

(1) ifconfig

(2) iwconfig

(3) sudo dhclient

(4) route -n

ex. route add default gw 192.168.1.1

(5) /etc/init.d/networking restart

(6) sudo ifdown/ifup wlan0





REFER

https://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/

http://raspberrypi.stackexchange.com/questions/14101/connect-network-is-unreachable-on-a-working-connected-wlan0-interface


http://www.cyberciti.biz/faq/linux-setup-default-gateway-with-route-command/

2016年10月8日 星期六

Screen "Out of Range"

I use VGA adapter for HDMI port, but I got no signal on screen.
After Google for a while, I found it is caused that my screen is too old, and can not accept the frame over size.

After dd raspberr pi image from computer to SD card,
change the following config in config.txt from system files.

hdmi_group=2
hdmi_mode=16
hdmi_drive=2

hdmi_force_hotplug=1
config_hdmi_boost=4


you could also refer the wiki to have different config on various monitor resolution: http://elinux.org/RPiconfig

REFER:
http://www.arthurtoday.com/2014/05/raspberry-pi-hdmi-to-vga-how-to.html