LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-03-2016, 11:32 PM   #1
jiatang
Member
 
Registered: Jul 2016
Posts: 36

Rep: Reputation: Disabled
Cool NanoPi M3 Working with Debian


Ethernet Connection
If the NanoPi M3 is connected to a network via Ethernet before it is powered on, it will automatically obtain an IP after it is powered up.

Wireless Connection
Open the file "/etc/wpa_supplicant/wpa_supplicant.conf" with vi or gedit and append the following lines:

network={
ssid="YourWiFiESSID"
psk="YourWiFiPassword"
}The "YourWiFiESSID" and "YourWiFiPassword" need to be replaced with your actual ESSID and password.
Save, exit and run the following commands your board will be connected to your specified WiFi.


ifdown wlan0
ifup wlan0
If your WiFi password has special characters or you don't want your password saved as plain text you can use "wpa_passphrase" to generate a psk for your WiFi password. Here is how you can do it:


wpa_passphrase
YourWiFiESSID
Following the prompt type in your password.
If you open the file "/etc/wpa_supplicant/wpa_supplicant.conf" you will find that your password has been updated and you can delete your clear-text password.

If the system's WiFi AP mode is on it cannot search and connect to a wireless router. You need to turn off the WiFi AP mode by following the instructions below:

su turn-wifi-into-apmode no

Setup Wi-Fi AP
You can follow the steps below to setup WiFi AP:


turn-wifi-into-apmode yes
Reboot the system as prompted. By default the AP's name is "nanopi2-wifiap" and the password is 123456789.

Now you are able to find the "nanopi2-wifiap" from a host PC and connect to it. If a connection is successful you will be able to SSH to this NanoPi M3 at "192.168.8.1":

ssh root@192.168.8.1

The password for it is "fa".

To make SSH session run faster turn off the WiFi's power saving mode by using the following command:

iwconfig wlan0 power offYou can check the WiFi mode via the following command:


cat /sys/module/bcmdhd/parameters/op_modeIf the result is "2" it means it is currently working as a WiFi AP.If you want to switch back to the Station mode you can do it this way:


turn-wifi-into-apmode noBluetooth

Click on the bluetooth icon on the GUI a menu will pop up:
Make discoverable... enables the NanoPi M3 to be searched for by nearby bluetooth devices;
Devices... opens a search window and searches for nearby bluetooth devices(Note: the "Make discoverable" property needs to be enabled on those nearby devices as well);
Send Files to Device...enables the NanoPi-M3 to send files to another bluetooth device which is paired to the NanoPi M3;


Install Debian Packages[edit]We provide a Debian Jessie image. You can install Jessie's packages by commanding "apt-get". If this is your first installation you need to update the package list by running the following command:

apt-get updateYou can install your preferred packages. For example if you want to install an FTP server you can do this:

apt-get install vsftpdNote: you can change your download server by editting "/etc/apt/sources.list". You can get a complete server list from [1]. You need to select the one with "armhf".
 
Old 08-05-2016, 10:59 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,907
Blog Entries: 43

Rep: Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142
Member response

Hi,

Thanks for sharing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Connect USB WiFi to NanoPi NEO jiatang Linux - Hardware 1 08-17-2016 12:23 AM
How to install nodejs with my NanoPi NEO jiatang Linux - Software 1 08-16-2016 08:58 PM
Setup Wi-Fi AP with 64-bit ARM Board NanoPi-M3 jiatang Linux - Embedded & Single-board computer 1 07-29-2016 04:28 PM
How to let my NanoPi NEO works with Android jiatang Programming 0 07-15-2016 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration