Sunday, September 11, 2016

Raspberry Pi & Arch Linux - Day 2


Raspberry Pi & Arch Linux - Day 2


Today's objective is to set up the automatic wifi connection. Again, the Arch Linux Wiki has everything, just follow the instruction and we will be fine. (https://wiki.archlinux.org/index.php/Netctl)

We will manage the wifi connection with the netctl tool. Instead of typing all the commands mentioned in Day 1, we can store the wifi connection configuration in a profile file. The profile file should be in /etc/netctl. As mentioned in the wiki, we can copy the sample profiles in the /etc/netctl/example folder and make appropriate customization.

Here is an example of the profile file: 

[To be added]


To establish a connection, just enter the following the commend:

netctl start profile

If the command fails, type netctl status profile to see the error message. Note that before running netctl make sure that there is no other network service running in the background. In our case, we need to first disable the wifi connection

ip link set wlan0 down


Now everything should work!

At this point, I need to find a solution to copy the message from Raspberry Pi to Mac. It becomes painful to re-type the output messages of Raspberry Pi.  Obviously it is not the right time to start writing blog on Raspberry directly. I haven't even try google on Raspberry. The best way I can think of is to send email from Raspberry Pi to my personal email.

TODO:

  1. learn how to send email.








No comments:

Post a Comment