Changes

Jump to: navigation, search

XUELK-AN-002: Running Debian distribution

49,163 bytes added, 16:36, 12 February 2021
no edit summary
{{InfoBoxTop}}
{{AppliesToSBCLynx}}
{{AppliesToDWM AN}}
{{AppliesTo AXEL ULite AN}}
{{AppliesTo SBC Lynx AN}}
{{InfoBoxBottom}}
{{WarningMessage|text=This application note was validated against specific versions of the kit only. It may not work with other versions. Supported versions are listed in the ''History'' section.}}
{{ImportantMessage|text=Regarding the Molex antenna used in this AN. It is valid only for '''No EU''' countries - see [https://www.lairdconnect.com/documentation/regulatory-information-tiwi-ble link]}}
== History ==
{| class="wikitable" border="1"
!Version
!XUELK version
!Date
!Notes
|-
|1.0.0
|1.1.3
|February 2017
|First public release
|-
|2.0.0
|March 1.1.3|April 2017|TBD*Added several packages to the root file system*Removed <code>busybox</code>*Added notes about physical interfaces|-|2.1.0|1.1.3|April 2017|*Added section ''Using the raw image''*Added notes about <code>ssh</code> server configuration*Added notes about <code>MySQL</code> server installation and configuration
|-
|}
 
==Introduction==
Several "distributions" are available for embedded Linux devices. [https://www.yoctoproject.org Yocto] and [https://buildroot.org Buildroot] are just two examples of the most common. Nevertheless, for some applications the use of a desktop/server distribution might be preferable. Since they are not conceived for embedded platforms, these distributions have to be carefully tailored, in order to match hardware resources.[1]
This application note shows how to run one of such distributions - Debian Jessie - on SBC Lynx. '''It is assumed that the reader if already familiar with''' [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)|'''AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)''']], as it is the basis of this work.
The procedure was tested on an SBC Lynx with ConfigID=0x0000000C (PCB revision CS214515A), starting from XUELK 1.1.3 binaries.
 
*adding a modified version of the Linux kernel image [1]
*replacing the default Yocto root file system delivered along with the XUELK, with the Debian one. [2]
The following box shows how It is assumed that the microSD card is connected to perform the host machine. As such operations once , the card (mapped two partitions are mounted as <code>/devmedia/BOOT</code> and <code>/media/TBDROOTFS</code> in . The kernel image and the example) has been connected compressed archive containing the root file system are available for download at the following URLs respectively:* https://mirror.dave.eu/lynx/debian/20170403/xuelk-1.1.3_uImage.debian* https://mirror.dave.eu/lynx/debian/20170403/20170403-sbclynx-debian-8.tgz To copy the kernel image to a Linux host.the microSD card, issue the following command:
<pre class="board-terminal">
TBDcp -v xuelk-1.1.3_uImage.debian /media/BOOT/</pre>Delete all the existing files in the <code>/media/ROOTFS</code> partition:<pre class="board-terminal">sudo rm -rf /media/ROOTFS/*sudo tar xvzf 20170403-sbclynx-debian-8.tgz -C /media/ROOTFS/ </pre>Decompress the Debian root file system in the same partition:<pre class="board-terminal">sudo tar xvzf 20170403-sbclynx-debian-8.tgz -C /media/ROOTFS/
</pre>
You can now remove Remove the card from the host, and plug it into the slot of SBC Lynx.
After powering it up, stop the automatic boot process, and edit the <code>mmcboot</code> variable as follows:
[1] The only difference with respect to the XUELK kernel image is related to the WiFi driver. To make it work with the Debian root file system, it has to be built as a loadable module instead of as a statically linked driver.
[2] The provided root file system is derived from this one: https://rcn-ee.com/rootfs/eewiki/barefs/debian-8.7-bare-armhf-2017-01-14.tar.xz.
===Using the raw image===
For convenience, the raw image of the microSD card is provided as well. This image is the result of the procedure described in the previous section, applied to a 16 GB card. The image can be downloaded [https://mirror.dave.eu/lynx/debian/20170403/20170403-sbclynx-debian-8-usd.zip here].
 
Once decompressed, it can be written directly to the card.
 
On a Linux host issue the following command (assuming the card is associated to the <code>/dec/sdc</code> device file):
<pre class="board-terminal">
sudo dd if=/path/to/20170403-sbclynx-debian-8-usd.img of=/dev/sdc oflag=sync
</pre>
 
In case your host is a Windows machine, you can use the well-known ''Win32 Disk Imager'' tool. It can be downloaded [https://sourceforge.net/projects/win32diskimager/ here].
 
 
[[File:Sbclynx-debian-disk-imager-win.png|thumb|center|600px|''Win32 Disk Imager'' tool]]
 
 
After installing it, open it and (see also the image above):
#select the raw image file
#select the drive letter of the microSD card
#press ''Write''.
==Adding packages==
Of course, one of the greatest - if not ''the'' greatest - pros of having a desktop distribution, is the availability of a huge archive of pre-built packages. They can be installed very easily with tools such as [https://wiki.debian.org/Apt <code>apt</code>] and [https://packaging.python.org <code>pip</code>].
Before installing packages, the network interface has to be configured, as it is disabled by default. To configure it with a static IP address (192.168.0.80 in the example), <code>nano</code> text editor can be used:
[ Wrote 9 lines ]
</pre>
Please note the that these changes will take effect after rebooting the machine. 
DNS server has also to be enabled, in order to resolve URLs. Again, <code>nano</code> comes to help:
</pre>
 
You can finally install the desired packages, as shown in the following examples:
Cleaning up...
</pre>
===List of installed packages===
====deb packages====
Please click on the ''Expand'' button to see the list of the installed deb packages.
<pre class="board-terminal mw-collapsible mw-collapsed">
root@arm:~# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii acl 2.2.52-2 armhf Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii apt 1.0.9.8.4 armhf commandline package manager
ii apt-file 2.5.4 all search for files within Debian pa
ii apt-utils 1.0.9.8.4 armhf package management related utilit
ii base-files 8+deb8u7 armhf Debian base system miscellaneous
ii base-passwd 3.5.37 armhf Debian base system master passwor
ii bash 4.3-11+deb8u armhf GNU Bourne Again SHell
ii bash-completio 1:2.1-4 all programmable completion for the b
ii bind9-host 1:9.9.5.dfsg armhf Version of 'host' bundled with BI
ii binutils 2.25-5 armhf GNU assembler, linker and binary
ii bluez 5.23-2+b1 armhf Bluetooth tools and daemons
ii bluez-obexd 5.23-2+b1 armhf bluez obex daemon
ii bluez-tools 0.2.0~201408 armhf Set of tools to manage Bluetooth
ii bridge-utils 1.5-9 armhf Utilities for configuring the Lin
ii bsdmainutils 9.0.6 armhf collection of more utilities from
ii bsdutils 1:2.25.2-6 armhf basic utilities from 4.4BSD-Lite
ii build-essentia 11.7 armhf Informational list of build-essen
ii bzip2 1.0.6-7+b3 armhf high-quality block-sorting file c
ii ca-certificate 20141019+deb all Common CA certificates
ii command-not-fo 0.2.38-1 all Suggest installation of packages
ii coreutils 8.23-4 armhf GNU core utilities
ii cpio 2.11+dfsg-4. armhf GNU cpio -- a program to manage a
ii cpp 4:4.9.2-2 armhf GNU C preprocessor (cpp)
ii cpp-4.9 4.9.2-10 armhf GNU C preprocessor
ii crda 3.13-1 armhf wireless Central Regulatory Domai
ii cron 3.0pl1-127+d armhf process scheduling daemon
ii curl 7.38.0-4+deb armhf command line tool for transferrin
ii dash 0.5.7-4+b1 armhf POSIX-compliant shell
ii dbus 1.8.22-0+deb armhf simple interprocess messaging sys
ii dc 1.06.95-9 armhf GNU dc arbitrary precision revers
ii debconf 1.5.56 all Debian configuration management s
ii debconf-i18n 1.5.56 all full internationalization support
ii debian-archive 2014.3 all GnuPG archive keys of the Debian
ii debianutils 4.4+b1 armhf Miscellaneous utilities specific
ii diffutils 1:3.3-1+b1 armhf File comparison utilities
ii dmsetup 2:1.02.90-2. armhf Linux Kernel Device Mapper usersp
ii dnsutils 1:9.9.5.dfsg armhf Clients provided with BIND
ii dos2unix 6.0.4-1 armhf convert text file line endings be
ii dosfstools 3.0.27-1 armhf utilities for making and checking
ii dpkg 1.17.27 armhf Debian package management system
ii dpkg-dev 1.17.27 all Debian package development tools
ii e2fslibs:armhf 1.43-3~bpo8+ armhf ext2/ext3/ext4 file system librar
ii e2fsprogs 1.43-3~bpo8+ armhf ext2/ext3/ext4 file system utilit
ii elvis-tiny 1.4-23 armhf Tiny vi compatible editor for the
ii fakeroot 1.20.2-1 armhf tool for simulating superuser pri
ii file 1:5.22+15-2+ armhf Determines file type using "magic
ii findutils 4.4.2-9+b1 armhf utilities for finding files--find
ii firmware-ti-co 20161130-2 all Binary firmware for TI Connectivi
ii fuse 2.9.3-15+deb armhf Filesystem in Userspace
ii fuse2fs 1.43-3~bpo8+ armhf ext2 / ext3 / ext4 file system dr
ii g++ 4:4.9.2-2 armhf GNU C++ compiler
ii g++-4.9 4.9.2-10 armhf GNU C++ compiler
ii gcc 4:4.9.2-2 armhf GNU C compiler
ii gcc-4.8-base:a 4.8.4-1 armhf GCC, the GNU Compiler Collection
ii gcc-4.9 4.9.2-10 armhf GNU C compiler
ii gcc-4.9-base:a 4.9.2-10 armhf GCC, the GNU Compiler Collection
ii geoip-database 20150317-1 all IP lookup command line tools that
ii gnupg 1.4.18-7+deb armhf GNU privacy guard - a free PGP re
ii gpgv 1.4.18-7+deb armhf GNU privacy guard - signature ver
ii grep 2.20-4.1 armhf GNU grep, egrep and fgrep
rc groff-base 1.22.2-8 armhf GNU troff text-formatting system
ii gzip 1.6-4 armhf GNU compression utilities
ii hostname 3.15 armhf utility to set/show the host name
ii htop 1.0.3-1 armhf interactive processes viewer
ii ifupdown 0.8.13~bpo8+ armhf high level tools to configure net
ii inetutils-teln 2:1.9.2.39.3 armhf telnet client
ii init 1.22 armhf System-V-like init utilities - me
ii init-system-he 1.22 all helper tools for all init systems
ii initscripts 2.88dsf-59 armhf scripts for initializing and shut
ii insserv 1.14.0-5 armhf boot sequence organizer using LSB
ii ipcalc 0.41-4 all parameter calculator for IPv4 add
ii iperf 2.0.5+dfsg1- armhf Internet Protocol bandwidth measu
ii ipppd 1:3.25+dfsg1 armhf ISDN utilities - PPP daemon
ii iproute2 3.16.0-2 armhf networking and traffic control to
ii iptables 1.4.21-2+b1 armhf administration tools for packet f
ii iputils-ping 3:20121221-5 armhf Tools to test the reachability of
ii isc-dhcp-clien 4.3.1-6+deb8 armhf DHCP client for automatically obt
ii isc-dhcp-commo 4.3.1-6+deb8 armhf common files used by all of the i
ii isdnutils-base 1:3.25+dfsg1 armhf ISDN utilities - minimal set
ii iw 3.17-1 armhf tool for configuring Linux wirele
ii kmod 18-3 armhf tools for managing Linux kernel m
ii krb5-locales 1.12.1+dfsg- all Internationalization support for
ii less 458-3 armhf pager program similar to more
ii libacl1:armhf 2.2.52-2 armhf Access control list shared librar
ii libalgorithm-c 0.09-1 all Perl module for merging hierarchi
ii libalgorithm-d 1.19.02-3 all module to find differences betwee
ii libalgorithm-d 0.04-3+b1 armhf module to find differences betwee
ii libalgorithm-m 0.08-2 all Perl module for three-way merge o
ii libapparmor1:a 2.10.95-4~bp armhf changehat AppArmor library
ii libapt-inst1.5 1.0.9.8.4 armhf deb package format runtime librar
ii libapt-pkg-per 0.1.29+b2 armhf Perl interface to libapt-pkg
ii libapt-pkg4.12 1.0.9.8.4 armhf package management runtime librar
ii libarchive-ext 0.72-1 all generic archive extracting module
ii libasan1:armhf 4.9.2-10 armhf AddressSanitizer -- a fast memory
rc libatasmart4:a 0.19-3 armhf ATA S.M.A.R.T. reading and parsin
ii libatomic1:arm 4.9.2-10 armhf support library providing __atomi
ii libattr1:armhf 1:2.4.47-2 armhf Extended attribute shared library
ii libaudit-commo 1:2.4-1 all Dynamic library for security audi
ii libaudit1:armh 1:2.4-1+b1 armhf Dynamic library for security audi
ii libbind9-90 1:9.9.5.dfsg armhf BIND9 Shared Library used by BIND
ii libblkid1:armh 2.25.2-6 armhf block device id library
ii libbsd0:armhf 0.7.0-2 armhf utility functions from BSD system
ii libbz2-1.0:arm 1.0.6-7+b3 armhf high-quality block-sorting file c
ii libc-bin 2.19-18+deb8 armhf GNU C Library: Binaries
ii libc-dev-bin 2.19-18+deb8 armhf GNU C Library: Development binari
ii libc6:armhf 2.19-18+deb8 armhf GNU C Library: Shared libraries
ii libc6-dev:armh 2.19-18+deb8 armhf GNU C Library: Development Librar
ii libcap-ng0:arm 0.7.4-2 armhf An alternate POSIX capabilities l
ii libcap2:armhf 1:2.24-8 armhf POSIX 1003.1e capabilities (libra
ii libcap2-bin 1:2.24-8 armhf POSIX 1003.1e capabilities (utili
ii libcgi-fast-pe 1:2.04-1 all CGI subclass for work with FCGI
ii libcgi-pm-perl 4.09-1 all module for Common Gateway Interfa
ii libclass-c3-pe 0.26-1 all pragma for using the C3 method re
ii libclass-c3-xs 0.13-2+b1 armhf Perl module to accelerate Class::
ii libcloog-isl4: 0.18.2-1+b2 armhf Chunky Loop Generator (runtime li
ii libcomerr2:arm 1.43-3~bpo8+ armhf common error description library
ii libconfig-file 1.50-2 all Parses simple configuration files
ii libcpan-meta-p 2.142690-1 all Perl module to access CPAN distri
ii libcryptsetup4 2:1.6.6-5 armhf disk encryption support - shared
ii libcurl3:armhf 7.38.0-4+deb armhf easy-to-use client-side URL trans
ii libdata-optlis 0.109-1 all module to parse and validate simp
ii libdata-sectio 0.200006-1 all module to read chunks of data fro
ii libdb5.3:armhf 5.3.28-9 armhf Berkeley v5.3 Database Libraries
ii libdbus-1-3:ar 1.8.22-0+deb armhf simple interprocess messaging sys
ii libdebconfclie 0.192 armhf Debian Configuration Management S
ii libdevmapper1. 2:1.02.90-2. armhf Linux Kernel Device Mapper usersp
ii libdns-export1 1:9.9.5.dfsg armhf Exported DNS Shared Library
ii libdns100 1:9.9.5.dfsg armhf DNS Shared Library used by BIND
ii libdpkg-perl 1.17.27 all Dpkg perl modules
ii libedit2:armhf 3.1-20140620 armhf BSD editline and history librarie
ii libelfg0:armhf 0.8.13-5 armhf an ELF object file access library
ii libestr0 0.1.9-1.1 armhf Helper functions for handling str
ii libexpat1:armh 2.1.0-6+deb8 armhf XML parsing C library - runtime l
ii libexpat1-dev: 2.1.0-6+deb8 armhf XML parsing C library - developme
ii libfakeroot:ar 1.20.2-1 armhf tool for simulating superuser pri
ii libfcgi-perl 0.77-1+deb8u armhf helper module for FastCGI
ii libffi-dev:arm 3.1-2+b2 armhf Foreign Function Interface librar
ii libffi6:armhf 3.1-2+b2 armhf Foreign Function Interface librar
ii libfile-fcntll 0.22-1+b1 armhf Perl module for file locking with
ii libfuse2:armhf 2.9.3-15+deb armhf Filesystem in Userspace (library)
ii libgcc-4.9-dev 4.9.2-10 armhf GCC support library (development
ii libgcc1:armhf 1:4.9.2-10 armhf GCC support library
ii libgcrypt20:ar 1.6.3-2+deb8 armhf LGPL Crypto library - runtime lib
ii libgdbm3:armhf 1.8.3-13.1 armhf GNU dbm database routines (runtim
ii libgeoip1:armh 1.6.2-4 armhf non-DNS IP-to-country resolver li
ii libglib2.0-0:a 2.42.1-1+b1 armhf GLib library of C routines
ii libglib2.0-bin 2.42.1-1+b1 armhf Programs for the GLib library
ii libglib2.0-dat 2.42.1-1 all Common files for GLib library
ii libglib2.0-dev 2.42.1-1+b1 armhf Development files for the GLib li
ii libgmp10:armhf 2:6.0.0+dfsg armhf Multiprecision arithmetic library
ii libgnutls-deb0 3.3.8-6+deb8 armhf GNU TLS library - main runtime li
ii libgnutls-open 3.3.8-6+deb8 armhf GNU TLS library - OpenSSL wrapper
ii libgomp1:armhf 4.9.2-10 armhf GCC OpenMP (GOMP) support library
ii libgpg-error0: 1.17-3 armhf library for common error values a
ii libgssapi-krb5 1.12.1+dfsg- armhf MIT Kerberos runtime libraries -
rc libgudev-1.0-0 215-17+deb8u armhf GObject-based wrapper library for
ii libhogweed2:ar 2.7.1-5+deb8 armhf low level cryptographic library (
ii libical1a 1.0-1.3 armhf iCalendar library implementation
ii libicu52:armhf 52.1-8+deb8u armhf International Components for Unic
ii libidn11:armhf 1.29-1+deb8u armhf GNU Libidn library, implementatio
ii libirs-export9 1:9.9.5.dfsg armhf Exported IRS Shared Library
ii libisc-export9 1:9.9.5.dfsg armhf Exported ISC Shared Library
ii libisc95 1:9.9.5.dfsg armhf ISC Shared Library used by BIND
ii libisccc90 1:9.9.5.dfsg armhf Command Channel Library used by B
ii libisccfg-expo 1:9.9.5.dfsg armhf Exported ISC CFG Shared Library
ii libisccfg90 1:9.9.5.dfsg armhf Config File Handling Library used
ii libisl10:armhf 0.12.2-2 armhf manipulating sets and relations o
ii libjson-c2:arm 0.11-4 armhf JSON manipulation library - share
ii libk5crypto3:a 1.12.1+dfsg- armhf MIT Kerberos runtime libraries -
ii libkeyutils1:a 1.5.9-5+b1 armhf Linux Key Management Utilities (l
ii libkmod2:armhf 18-3 armhf libkmod shared library
ii libkrb5-3:armh 1.12.1+dfsg- armhf MIT Kerberos runtime libraries
ii libkrb5support 1.12.1+dfsg- armhf MIT Kerberos runtime libraries -
ii libldap-2.4-2: 2.4.40+dfsg- armhf OpenLDAP libraries
ii liblist-moreut 0.33-2+b1 armhf Perl module with additional list
ii liblocale-gett 1.05-8+b1 armhf module using libc functions for i
rc liblockfile1:a 1.09-6 armhf NFS-safe locking library
ii liblog-message 0.8-1 all powerful and flexible message log
ii liblog-message 0.10-2 all simplified interface to Log::Mess
ii liblogging-std 1.0.4-1 armhf easy to use and lightweight loggi
ii liblognorm1:ar 1.0.1-3 armhf Log normalizing library
ii liblwres90 1:9.9.5.dfsg armhf Lightweight Resolver Library used
ii liblzma5:armhf 5.1.1alpha+2 armhf XZ-format compression library
ii liblzo2-2:armh 2.08-1.2 armhf data compression library
ii libmagic1:armh 1:5.22+15-2+ armhf File type determination library u
ii libmnl0:armhf 1.0.3-5 armhf minimalistic Netlink communicatio
ii libmodule-buil 0.421000-2+d all framework for building and instal
ii libmodule-plug 5.1-1 all module for giving modules the ab
ii libmodule-sign 0.73-1+deb8u all module to manipulate CPAN SIGNATU
ii libmount1:armh 2.25.2-6 armhf device mounting library
ii libmozjs185-1. 1.8.5-1.0.0+ armhf Spidermonkey javascript engine
ii libmpc3:armhf 1.0.2-1 armhf multiple precision complex floati
ii libmpfr4:armhf 3.1.2-2 armhf multiple precision floating-point
ii libmro-compat- 0.12-1 all mro::* interface compatibility fo
ii libncurses5:ar 5.9+20140913 armhf shared libraries for terminal han
ii libncursesw5:a 5.9+20140913 armhf shared libraries for terminal han
ii libnetfilter-a 1.0.2-1.1 armhf Netfilter acct library
ii libnettle4:arm 2.7.1-5+deb8 armhf low level cryptographic library (
ii libnfnetlink0: 1.0.1-3 armhf Netfilter netlink library
ii libnl-3-200:ar 3.2.24-2 armhf library for dealing with netlink
ii libnl-3-dev 3.2.24-2 armhf development library and headers f
ii libnl-genl-3-2 3.2.24-2 armhf library for dealing with netlink
ii libnl-genl-3-d 3.2.24-2 armhf development library and headers f
ii libnl-idiag-3- 3.2.24-2 armhf library for dealing with netlink
ii libnl-idiag-3- 3.2.24-2 armhf development library and headers f
ii libnspr4:armhf 2:4.12-1+deb armhf NetScape Portable Runtime Library
ii libp11-kit0:ar 0.20.7-1 armhf Library for loading and coordinat
ii libpackage-con 0.04-1 all List constants defined in a packa
ii libpam-modules 1.1.8-3.1+de armhf Pluggable Authentication Modules
ii libpam-modules 1.1.8-3.1+de armhf Pluggable Authentication Modules
ii libpam-runtime 1.1.8-3.1+de all Runtime support for the PAM libra
ii libpam-systemd 230-7~bpo8+2 armhf system and service manager - PAM
ii libpam0g:armhf 1.1.8-3.1+de armhf Pluggable Authentication Modules
ii libparams-util 1.07-2+b1 armhf Perl extension for simple stand-a
ii libparted2:arm 3.2-7 armhf disk partition manipulator - shar
ii libpcap0.8:arm 1.6.2-2 armhf system interface for user-level p
ii libpcre3:armhf 2:8.35-3.3+d armhf Perl 5 Compatible Regular Express
ii libpcre3-dev:a 2:8.35-3.3+d armhf Perl 5 Compatible Regular Express
ii libpcrecpp0:ar 2:8.35-3.3+d armhf Perl 5 Compatible Regular Express
ii libpcsclite1:a 1.8.13-1+deb armhf Middleware to access a smart card
ii libpod-latex-p 0.61-1 all module to convert Pod data to for
ii libpod-readme- 0.11-1 all Perl module to convert POD to REA
ii libpolkit-agen 0.113-2~bpo8 armhf PolicyKit Authentication Agent AP
ii libpolkit-gobj 0.113-2~bpo8 armhf PolicyKit Authorization API
ii libpopt0:armhf 1.16-10 armhf lib for parsing cmdline parameter
ii libprocps3:arm 2:3.3.9-9 armhf library for accessing process inf
ii libpsl0:armhf 0.5.1-1 armhf Library for Public Suffix List (s
ii libpython-dev: 2.7.9-1 armhf header files and a static library
ii libpython-stdl 2.7.9-1 armhf interactive high-level object-ori
ii libpython2.7:a 2.7.9-2+deb8 armhf Shared Python runtime library (ve
ii libpython2.7-d 2.7.9-2+deb8 armhf Header files and a static library
ii libpython2.7-m 2.7.9-2+deb8 armhf Minimal subset of the Python lang
ii libpython2.7-s 2.7.9-2+deb8 armhf Interactive high-level object-ori
ii libreadline6:a 6.3-8+b3 armhf GNU readline and history librarie
ii libregexp-asse 0.35-8 all Perl module that assemble multipl
ii libregexp-comm 2013031301-1 all module with common regular expres
ii librtmp1:armhf 2.4+20150115 armhf toolkit for RTMP streams (shared
ii libsasl2-2:arm 2.1.26.dfsg1 armhf Cyrus SASL - authentication abstr
ii libsasl2-modul 2.1.26.dfsg1 armhf Cyrus SASL - pluggable authentica
ii libsasl2-modul 2.1.26.dfsg1 armhf Cyrus SASL - pluggable authentica
ii libseccomp2:ar 2.2.3-3~bpo8 armhf high level interface to Linux sec
ii libselinux1:ar 2.3-2 armhf SELinux runtime shared libraries
ii libsemanage-co 2.3-1 all Common files for SELinux policy m
ii libsemanage1:a 2.3-1+b1 armhf SELinux policy management library
ii libsepol1:armh 2.3-2 armhf SELinux library for manipulating
ii libshishi0 1.0.2-5 armhf Library for the Shishi Kerberos v
ii libslang2:armh 2.3.0-2 armhf S-Lang programming library - runt
ii libsmartcols1: 2.25.2-6 armhf smart column output alignment lib
ii libsoftware-li 0.103010-3 all module providing templated softwa
ii libsqlite3-0:a 3.8.7.1-1+de armhf SQLite 3 shared library
ii libss2:armhf 1.43-3~bpo8+ armhf command-line interface parsing li
ii libssh2-1:armh 1.4.3-4.1+de armhf SSH2 client-side library
ii libssl-dev:arm 1.0.1t-1+deb armhf Secure Sockets Layer toolkit - de
ii libssl-doc 1.0.1t-1+deb all Secure Sockets Layer toolkit - de
ii libssl1.0.0:ar 1.0.1t-1+deb armhf Secure Sockets Layer toolkit - sh
ii libstdc++-4.9- 4.9.2-10 armhf GNU Standard C++ Library v3 (deve
ii libstdc++6:arm 4.9.2-10 armhf GNU Standard C++ Library v3
ii libsub-exporte 0.986-1 all sophisticated exporter for custom
ii libsub-install 0.928-1 all module for installing subroutines
ii libsystemd0:ar 230-7~bpo8+2 armhf systemd utility library
ii libtasn1-6:arm 4.2-3+deb8u2 armhf Manage ASN.1 structures (runtime)
ii libterm-ui-per 0.42-1 all Term::ReadLine UI made easy
ii libtext-charwi 0.04-7+b4 armhf get display widths of characters
ii libtext-iconv- 1.7-5+b2 armhf converts between character sets i
ii libtext-sounde 3.4-1+b2 armhf implementation of the soundex alg
ii libtext-templa 1.46-1 all perl module to process text templ
ii libtext-wrapi1 0.06-7 all internationalized substitute of T
ii libtimedate-pe 2.3000-2 all collection of modules to manipula
ii libtinfo5:armh 5.9+20140913 armhf shared low-level terminfo library
ii libubsan0:armh 4.9.2-10 armhf UBSan -- undefined behaviour sani
ii libudev1:armhf 230-7~bpo8+2 armhf libudev shared library
rc libudisks2-0:a 2.1.3-5 armhf GObject based library to access u
ii libusb-0.1-4:a 2:0.1.12-25 armhf userspace USB programming library
ii libusb-1.0-0:a 2:1.0.19-1 armhf userspace USB programming library
ii libustr-1.0-1: 1.0.4-3+b2 armhf Micro string library: shared libr
ii libuuid1:armhf 2.25.2-6 armhf Universally Unique ID library
ii libwrap0:armhf 7.6.q-25 armhf Wietse Venema's TCP wrappers libr
ii libx11-6:armhf 2:1.6.2-3 armhf X11 client-side library
ii libx11-data 2:1.6.2-3 all X11 client-side library
ii libxau6:armhf 1:1.0.8-1 armhf X11 authorisation library
ii libxcb1:armhf 1.10-3+b1 armhf X C Binding
ii libxdmcp6:armh 1:1.1.1-1+b1 armhf X11 Display Manager Control Proto
ii libxext6:armhf 2:1.3.3-1 armhf X11 miscellaneous extension libra
ii libxml2:armhf 2.9.1+dfsg1- armhf GNOME XML library
ii libxmuu1:armhf 2:1.1.2-1 armhf X11 miscellaneous micro-utility l
ii libxtables10 1.4.21-2+b1 armhf netfilter xtables library
ii libyaml-0-2:ar 0.1.6-3 armhf Fast YAML 1.1 parser and emitter
ii libyaml-dev:ar 0.1.6-3 armhf Fast YAML 1.1 parser and emitter
ii linux-libc-dev 3.16.39-1 armhf Linux support headers for userspa
ii login 1:4.2-3+deb8 armhf system login tools
ii logrotate 3.8.7-1+b1 armhf Log rotation utility
ii lrzsz 0.12.21-7 armhf Tools for zmodem/xmodem/ymodem fi
ii lsb-base 4.1+Debian13 all Linux Standard Base 4.1 init scri
ii lsb-release 4.1+Debian13 all Linux Standard Base version repor
ii lzop 1.03-3 armhf fast compression program
ii make 4.0-8.1 armhf utility for directing compilation
ii makedev 2.3.1-93 all creates device files in /dev
ii manpages 3.74-1 all Manual pages about using a GNU/Li
ii manpages-dev 3.74-1 all Manual pages about using GNU/Linu
ii mawk 1.3.3-17 armhf a pattern scanning and text proce
ii mime-support 3.58 all MIME files 'mime.types' & 'mailca
ii minicom 2.7-1 armhf friendly menu driven serial commu
ii mount 2.25.2-6 armhf Tools for mounting and manipulati
ii multiarch-supp 2.19-18+deb8 armhf Transitional package to ensure mu
ii nano 2.2.6-3 armhf small, friendly text editor inspi
ii ncurses-base 5.9+20140913 all basic terminal type definitions
ii ncurses-bin 5.9+20140913 armhf terminal-related programs and man
ii ncurses-term 5.9+20140913 all additional terminal type definiti
ii net-tools 1.60-26+b1 armhf NET-3 networking toolkit
ii netbase 5.3 all Basic TCP/IP networking system
ii netcat-traditi 1.10-41 armhf TCP/IP swiss army knife
ii nfacct 1.0.1-1.1 armhf netfilter accounting object tool
rc ntfs-3g 1:2014.2.15A armhf read/write NTFS driver for FUSE
ii openssh-client 1:6.7p1-5+de armhf secure shell (SSH) client, for se
ii openssh-server 1:6.7p1-5+de armhf secure shell (SSH) server, for se
ii openssh-sftp-s 1:6.7p1-5+de armhf secure shell (SSH) sftp server mo
ii openssl 1.0.1t-1+deb armhf Secure Sockets Layer toolkit - cr
ii parted 3.2-7 armhf disk partition manipulator
ii passwd 1:4.2-3+deb8 armhf change and administer password an
ii patch 2.7.5-1 armhf Apply a diff file to an original
ii perl 5.20.2-3+deb armhf Larry Wall's Practical Extraction
ii perl-base 5.20.2-3+deb armhf minimal Perl system
ii perl-modules 5.20.2-3+deb all Core Perl modules
ii pkg-config 0.28-1 armhf manage compile and link flags for
rc pmount 0.9.23-3+b1 armhf mount removable devices as normal
ii policykit-1 0.113-2~bpo8 armhf framework for managing administra
ii ppp 2.4.6-3.1 armhf Point-to-Point Protocol (PPP) - d
ii procps 2:3.3.9-9 armhf /proc file system utilities
ii psmisc 22.21-2 armhf utilities that use the proc file
ii python 2.7.9-1 armhf interactive high-level object-ori
ii python-cffi 0.8.6-1 armhf Foreign Function Interface for Py
ii python-chardet 2.3.0-1 all universal character encoding dete
ii python-coloram 0.3.2-1 all Cross-platform colored terminal t
ii python-cryptog 0.6.1-1 armhf Python library exposing cryptogra
ii python-dev 2.7.9-1 armhf header files and a static library
ii python-distlib 0.1.9-1 all low-level components of python di
ii python-gdbm 2.7.8-2+b1 armhf GNU dbm database support for Pyth
ii python-html5li 0.999-3 all HTML parser/tokenizer based on th
ii python-minimal 2.7.9-1 armhf minimal subset of the Python lang
ii python-ndg-htt 0.3.2-1 all enhanced HTTPS support for httpli
ii python-openssl 0.14-1 all Python 2 wrapper around the OpenS
ii python-pip 1.5.6-5 all alternative Python package instal
ii python-pkg-res 5.5.1-1 all Package Discovery and Resource Ac
ii python-ply 3.4-5 all Lex and Yacc implementation for P
ii python-pyasn1 0.1.7-1 all ASN.1 library for Python (Python
ii python-pycpars 2.10+dfsg-3 all C parser in Python
ii python-request 2.4.3-6 all elegant and simple HTTP library f
ii python-setupto 5.5.1-1 all Python Distutils Enhancements
ii python-six 1.8.0-1 all Python 2 and 3 compatibility libr
ii python-suds 0.4.1-15 all Lightweight SOAP client for Pytho
ii python-support 1.0.15 all automated rebuilding support for
ii python-urllib3 1.9.1-3 all HTTP library with thread-safe con
ii python-wheel 0.24.0-1 all built-package format for Python
ii python2.7 2.7.9-2+deb8 armhf Interactive high-level object-ori
ii python2.7-dev 2.7.9-2+deb8 armhf Header files and a static library
ii python2.7-mini 2.7.9-2+deb8 armhf Minimal subset of the Python lang
ii rcn-ee-archive 2016.04.24~b all GnuPG archive keys of the rcn-ee
ii rdate 1:1.2-6 armhf sets the system's date from a rem
ii readline-commo 6.3-8 all GNU readline and history librarie
ii rename 0.20-3 all Perl extension for renaming multi
ii rfkill 0.5-1 armhf tool for enabling and disabling w
ii rsyslog 8.4.2-1+deb8 armhf reliable system and kernel loggin
ii sed 4.2.2-4+deb8 armhf The GNU sed stream editor
ii sensible-utils 0.0.9 all Utilities for sensible alternativ
ii sgml-base 1.26+nmu4 all SGML infrastructure and SGML cata
ii shared-mime-in 1.3-1 armhf FreeDesktop.org shared MIME datab
ii sharutils 1:4.14-2 armhf shar, unshar, uuencode, uudecode
ii shishi-common 1.0.2-5 all Platform independent files for Sh
ii startpar 0.59-3 armhf run processes in parallel and mul
ii sudo 1.8.10p3-1+d armhf Provide limited super user privil
ii systemd 230-7~bpo8+2 armhf system and service manager
ii systemd-sysv 230-7~bpo8+2 armhf system and service manager - SysV
ii sysv-rc 2.88dsf-59 all System-V-like runlevel change mec
ii sysvinit-utils 2.88dsf-59 armhf System-V-like utilities
ii tar 1.27.1-2+deb armhf GNU version of the tar archiving
ii tcpd 7.6.q-25 armhf Wietse Venema's TCP wrapper utili
ii tftp 0.17-18 armhf Trivial file transfer protocol cl
ii traceroute 1:2.0.20-2+b armhf Traces the route taken by packets
ii tzdata 2016j-0+deb8 all time zone and daylight-saving tim
ii ucf 3.0030 all Update Configuration File(s): pre
ii udev 230-7~bpo8+2 armhf /dev/ and hotplug management daem
ii unrar 1:5.2.7-0.1 armhf Unarchiver for .rar files (non-fr
ii unzip 6.0-16+deb8u armhf De-archiver for .zip files
ii usbutils 1:007-2 armhf Linux USB utilities
ii util-linux 2.25.2-6 armhf Miscellaneous system utilities
ii vlan 1.9-3.2 armhf user mode programs to enable VLAN
ii wget 1.16-1+deb8u armhf retrieves files from the web
ii wireless-regdb 2016.06.10-1 all wireless regulatory database
ii wpasupplicant 2.5~git20150 armhf client support for WPA and WPA2 (
ii xauth 1:1.0.9-1 armhf X authentication utility
ii xdg-user-dirs 0.15-2 armhf tool to manage well known user di
ii xml-core 0.13+nmu2 all XML infrastructure and XML catalo
ii xz-utils 5.1.1alpha+2 armhf XZ-format compression utilities
ii zlib1g:armhf 1:1.2.8.dfsg armhf compression library - runtime
ii zlib1g-dev:arm 1:1.2.8.dfsg armhf compression library - development
</pre>
====pip packages====
Please click on the ''Expand'' button to see the list of the installed pip packages.
<pre class="board-terminal mw-collapsible mw-collapsed">
root@arm:~# pip freeze
Automat==0.5.0
Jinja2==2.9.5
MarkupSafe==1.0
PyNaCl==1.0.1
PyQRCode==1.2.1
PyTrie==0.3
PyYAML==3.12
Pygments==2.2.0
Pynetinfo==0.2.3
Twisted==17.1.0
appdirs==1.4.3
argh==0.26.2
argparse==1.2.1
attrs==16.3.0
autobahn==0.17.2
bitstring==3.1.5
bluepy==1.0.5
cbor==1.0.0
cffi==1.9.1
chardet==2.3.0
click==6.7
colorama==0.3.2
constantly==15.1.0
crossbar==17.2.1
cryptography==1.7.2
enum34==1.1.6
html5lib==0.999
idna==2.5
incremental==16.10.1
ipaddress==1.0.18
lmdb==0.92
mistune==0.7.3
ndg-httpsclient==0.3.2
netaddr==0.7.19
packaging==16.8
pathtools==0.1.2
ply==3.4
psutil==5.2.0
py-ubjson==0.8.5
pyOpenSSL==16.2.0
pyasn1==0.2.3
pyasn1-modules==0.0.8
pycparser==2.17
pyparsing==2.1.10
requests==2.4.3
sdnotify==0.3.1
service-identity==16.0.0
setproctitle==1.1.10
shutilwhich==1.1.0
six==1.10.0
sortedcontainers==1.5.7
suds==0.4.1
treq==16.12.0
txaio==2.6.1
u-msgpack-python==2.3.0
urllib3==1.9.1
virtualenv==1.7.1.2
watchdog==0.8.3
wheel==0.24.0
wsgiref==0.1.2
zope.interface==4.3.3
</pre>
 
==Notes about physical interfaces==
In principle, the physical interfaces can be accessed the same way as described for the [[Physical_devices_mapping_(XUELK)|Yocto root file system]]. However, some of them require a different approach. For more details, please refer to the following sections.===WiFi (client mode)Ethernet===The procedure here described can be used to connect to an Access Point, using the WPA2/PSK security protocolSee [[#Adding packages|this section]].
As the ===Bluetooth and WiFi driver is not statically linked to ===The root file system contains the kernel image, it is necessary same calibration file indicated [[XUELK-AN-001:_Using_WiFi-Bluetooth_combo_plugin_with_SBC_Lynx#Calibration|here]].====Bluetooth====The following script can be run to load enable the module firstBluetooth controller:
<pre class="board-terminal">
root@arm:~# modprobe wl12xx./test/dwm_bt_init.shFound a Texas Instruments' chip!Firmware file : /lib/firmware/ti-connectivity/TIInit_7.6.15.btsLoaded BTS script version 1texas: changing baud rate to 3000000, flow control to 1Device setup completeDevices: hci0 88:33:14:5E:30:60</pre>Once the <code>hci</code> interface is enabled, <code>hcitool</code> or other tools can be used to access it:<pre class="board-terminal">root@arm:~# hcitool scanScanning ... yy:yy:yy:yy:yy:yy device1 zz:zz:zz:zz:zz:zz device2
</pre>
====WiFi (client mode)====
The procedure here described can be used to connect to an Access Point, using the WPA2/PSK security protocol with network address given by the AP via DHCP. User can also follow [https://wiki.debian.org/WiFi/HowToUse#Command_Line this guide from Debian Wiki] for a generic approach.
ThenAs the WiFi driver is not statically linked to the kernel image, it is necessary to load the module first. This operation is done automatically upon boot, bring as the interface upmodule is listed in <code>/etc/modules</code>:
<pre class="board-terminal">
root@arm:~# iw devcat /etc/modulesphy#0 Interface wlan0 ifindex 4 wdev 0x1 addr 88/etc/modules:33:14:5e:30:61kernel modules to load at boot time. type managed#root@arm:~# ip link show wlan0This file contains the names of kernel modules that should be loaded4: wlan0: <BROADCAST# at boot time,MULTICAST> mtu 1500 qdisc noop qlen 1000 link/ether 88:33:14:5e:30:61 brd ff:ff:ff:ff:ff:ffroot@arm:~one per line. Lines beginning with "# ip link set wlan0 up[ 276.076847] wlcore: firmware booted (Rev 6" are ignored.3.10.0.133)[ 276.097912] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not readyroot@arm:~# ip link show wlan04: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000 link/ether 88:33:14:5e:30:61 brd ff:ff:ff:ff:ff:ffroot@arm:~# iw wlan0 linkNot connected.wl12xx
</pre>
In case you need to unload/load the module manually, the following commands can be used:
<pre class="board-terminal">
root@arm:~# rmmod wl12xx
root@arm:~# modprobe wl12xx
root@arm:~# [ 2751.040431] wlcore: loaded
</pre>
The connection will be established Once the WiFi module is loaded, it's time to configure the interface: first of all we need to fix interface renaming with the SSID named <code>SSID_ZyXEL_WPA2</code>following command:
<pre class="board-terminal">
root@arm:~# iw wlan0 scan...BSS fe:f0:28:cc:03:90(on wlan0) TSF: 42646261 usec (0d, 00:00:42) freq: 2437 beacon interval: 100 TUs capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431) signal: ln -53.00 dBm last seen: 0 ms ago SSID: SSID_ZyXEL_WPA2 Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0 DS Parameter set: channel 6 RSN: * Version: 1 * Group cipher: TKIP * Pairwise ciphers: TKIP * Authentication suites: PSK * Capabilities: 1s /dev/null /etc/systemd/network/99-PTKSA-RC 1-GTKSA-RC (0x0000) ERP: <no flags> Extended supported rates: 24.0 36.0 48.0 54.0 WMM: * Parameter version 1 * BE: CW 15-1023, AIFSN 3 * BK: CW 15-1023, AIFSN 7 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec * VO: CW 3-7, AIFSN 2, TXOP 1504 usec..default.link
</pre>
 Add Generate the passphrase key to PSK from the <code>wpa_supplicant</code> configuration file ESSID and make it readable by the clear text passphrase using <code>rootwpa_passphrase</code> onlytool:
<pre class="board-terminal">
root@arm:~# wpa_passphrase SSID_ZyXEL_WPA2 >> /etc/wpa_supplicant.conf# reading passphrase from stdin
ZyXEL-WPA2-PSK
root@arm:~# chmod 0600 /etc/wpa_supplicant.conf
root@arm:~# cat /etc/wpa_supplicant.conf
# reading passphrase from stdin
network={
ssid="SSID_ZyXEL_WPA2"
</pre>
Edit <code>/etc/network/interfaces</code> and change the <code>wlan0</code> configuration as follows, by entering the <code>ssid</code> and <code>psk</code> generated above:
<pre class="board-terminal">
auto wlan0
iface wlan0 inet dhcp
wpa-ssid SSID_ZyXEL_WPA2
wpa-psk
ec41b79ebdf10022908aa10189b0341f095fd62eeb719a67c5c920e0cde28564
</pre>
Start User can now restart <code>wpa_supplicantsystemd</code>networking service with:
<pre class="board-terminal">
root@arm:~# wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.confSuccessfully initialized wpa_supplicantrfkill: Cannot open RFKILL control deviceioctl[SIOCSIWENCODEEXT]: Invalid argumentioctl[SIOCSIWENCODEEXT]: Invalid argument[ 3527.234018] wlan0: authenticate with fe:f0:28:cc:03:90[ 3527.269591] wlan0: send auth to fe:f0:28:cc:03:90 (try 1/3)[ 3527.277879] wlan0: authenticated[ 3527.282841] wl12xx_driver wl12xx.0.auto wlan0: disabling HT/VHT due to WEP/TKIP use[ 3527.298407] wlan0: associate with fe:f0:28:cc:03:90 (try 1/3)[ 3527.307655] wlan0: RX AssocResp from fe:f0:28:cc:03:90 (capab=0x431 status=0 aid=1)[ 3527.326148] wlcore: Association completed.[ 3527.349780] wlan0: associated[ 3527.352824] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes readysystemctl restart networking
</pre>
 Once Now you can check the connection process completed successfullysystem configuration using standard tools (<code>route</code>, <code>ifconfig</code>, <code>iw</code> reports ). E.g. to check the WiFi link status as followsuse:
<pre class="board-terminal">
root@arm:~# iw wlan0 link
dtim period: 1
beacon int: 100
</pre>All of the above configuration are persistent at reboots and automatically started by <code>systemd</code> at boot time.
 
==Miscellaneous configurations==
===<code>ssh</code> server===
The configuration file <code>/etc/ssh/sshd_config</code> is set to permit <code>root</code> user to log in.
===Installing MySQL server with remote access===
This section shows how to install MySQL server and how to enable remote access for <code>root</code> user.
{{ImportantMessage|text=From a security standpoint, giving <code>root</code> user logon permission from any host may be dangerous.
}}
 
 
Firstly, install the <code>mysql-server</code> package. During the installation process, you will set the password for the <code>root</code> user:
<pre class="board-terminal">
root@arm:~# sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
...
Reading package lists... Done
root@arm:~# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
...
After this operation, 85.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://security.debian.org/ jessie/updates/main mysql-common all 5.5.54-0+deb8u1 [81.2 kB]
...
Configuring mysql-server-5.5
----------------------------
 
While not mandatory, it is highly recommended that you set a password for the
MySQL administrative "root" user.
 
If this field is left blank, the password will not be changed.
 
New password for the MySQL "root" user:
 
 
 
Repeat password for the MySQL "root" user:
 
 
Selecting previously unselected package libaio1:armhf.
...
Processing triggers for systemd (230-7~bpo8+2) ...
root@arm:~#
</pre>
After assigning a (static) IP address to Verify the <code>wlan0</code> interface, it server is possibile to ping the Access Pointup and running:
<pre class="board-terminal">
root@arm:~# ifconfig wlan0 192.168.11.81mysql -u root -proot@armEnter password:~# ifconfigeth0 Link encap:Ethernet Welcome to the MySQL monitor. HWaddr 00:50:C2:1E:AF:E9Commands end with ; or \g.Your MySQL connection id is 43 inet addrServer version:1925.1685.54-0+deb8u1 (Debian) Copyright (c) 2000, 2016, Oracle and/or its affiliates.81 Bcast:192All rights reserved.168 Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates.0Other names may be trademarks of their respectiveowners.255 Mask:255 Type 'help;' or '\h' for help.255Type '\c' to clear the current input statement.255.0 inet6 addrmysql> exitByeroot@arm: fe80::250:c2ff:fe1e:afe9~#</pre>  Edit the <code>/etc/mysql/my.cnf</64 Scopecode> file in order to comment out the following lines:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<pre class="board-terminal">#bind-address RX packets:35226 errors:= 127.0 dropped:.0 overruns.1#skip-networking</pre>  Restart the server to make the changes take effect:0 frame<pre class="board-terminal">root@arm:0~# service mysql restart</pre>   TX packetsAccess MySQL server locally and issue the commands shown below:28 errors<pre class="board-terminal">root@arm:0 dropped~# mysql -u root -pEnter password:0 overruns:0 carrierWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 37Server version:5.5.54-0+deb8u1 (Debian) collisions:0 txqueuelen:1000 RX bytes:3555583 Copyright (3c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners. Type 'help;' or '\h' for help.3 MiB) TX bytes:1906 Type '\c' to clear the current input statement. mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;Query OK, 0 rows affected (10.8 KiB01 sec)
lo Link encap:Local Loopbackmysql> SELECT * from information_schema.user_privileges where grantee like "'root'%";+--------------------+---------------+-------------------------+--------------+| GRANTEE | TABLE_CATALOG | PRIVILEGE_TYPE | IS_GRANTABLE |+--------------------+---------------+-------------------------+--------------+| 'root'@'localhost' | def | SELECT | YES || 'root'@'localhost' | def | INSERT | YES || 'root'@'localhost' | def | UPDATE | YES || 'root'@'localhost' | def | DELETE | YES || 'root'@'localhost' | def | CREATE | YES || 'root'@'localhost' | def | DROP | YES || 'root'@'localhost' | def | RELOAD | YES || 'root'@'localhost' | def | SHUTDOWN | YES || 'root'@'localhost' | def | PROCESS | YES || 'root'@'localhost' | def | FILE | YES || 'root'@'localhost' | def | REFERENCES | YES || 'root'@'localhost' | def | INDEX | YES || 'root'@'localhost' | def | ALTER | YES || 'root'@'localhost' | def | SHOW DATABASES | YES || 'root'@'localhost' | def | SUPER | YES || 'root'@'localhost' | def | CREATE TEMPORARY TABLES | YES || 'root'@'localhost' | def | LOCK TABLES | YES || 'root'@'localhost' | def | EXECUTE | YES || 'root'@'localhost' | def | REPLICATION SLAVE | YES || 'root'@'localhost' | def | REPLICATION CLIENT | YES || 'root'@'localhost' | def | CREATE VIEW | YES || 'root'@'localhost' | def | SHOW VIEW | YES || 'root'@'localhost' | def | CREATE ROUTINE | YES || 'root'@'localhost' | def | ALTER ROUTINE | YES || 'root'@'localhost' | def | CREATE USER | YES || 'root'@'localhost' | def | EVENT | YES || 'root'@'localhost' | def | TRIGGER | YES || 'root'@'localhost' | def | CREATE TABLESPACE | YES || 'root'@'arm' | def | SELECT | YES || 'root'@'arm' | def | INSERT | YES || 'root'@'arm' | def | UPDATE | YES || 'root'@'arm' | def | DELETE | YES || 'root'@'arm' | def | CREATE | YES || 'root'@'arm' | def | DROP | YES || 'root'@'arm' | def | RELOAD | YES || 'root'@'arm' | def | SHUTDOWN | YES || 'root'@'arm' | def | PROCESS | YES || 'root'@'arm' | def | FILE | YES || 'root'@'arm' | def | REFERENCES | YES || 'root'@'arm' | def | INDEX | YES || 'root'@'arm' | def | ALTER | YES || 'root'@'arm' | def | SHOW DATABASES | YES || 'root'@'arm' | def | SUPER | YES || 'root'@'arm' | def | CREATE TEMPORARY TABLES | YES || 'root'@'arm' | def | LOCK TABLES | YES || 'root'@'arm' | def | EXECUTE | YES || 'root'@'arm' | def | REPLICATION SLAVE | YES || 'root'@'arm' | def | REPLICATION CLIENT | YES || 'root'@'arm' | def | CREATE VIEW | YES || 'root'@'arm' | def | SHOW VIEW | YES || 'root'@'arm' | def | CREATE ROUTINE | YES || 'root'@'arm' | def | ALTER ROUTINE | YES || 'root'@'arm' | def | CREATE USER | YES || 'root'@'arm' | def | EVENT | YES || 'root'@'arm' | def | TRIGGER | YES || 'root'@'arm' | def | CREATE TABLESPACE | YES || 'root'@'127.0.0.1' | def | SELECT | YES || 'root'@'127.0.0.1' | def | INSERT | YES || 'root'@'127.0.0.1' | def | UPDATE | YES || 'root'@'127.0.0.1' | def | DELETE | YES || 'root'@'127.0.0.1' | def | CREATE | YES || 'root'@'127.0.0.1' | def | DROP | YES || 'root'@'127.0.0.1' | def | RELOAD | YES || 'root'@'127.0.0.1' | def | SHUTDOWN | YES || 'root'@'127.0.0.1' | def | PROCESS | YES || 'root'@'127.0.0.1' | def | FILE | YES || 'root'@'127.0.0.1' | def | REFERENCES | YES || 'root'@'127.0.0.1' | def | INDEX | YES || 'root'@'127.0.0.1' | def | ALTER | YES || 'root'@'127.0.0.1' | def | SHOW DATABASES | YES || 'root'@'127.0.0.1' | def | SUPER | YES || 'root'@'127.0.0.1' | def | CREATE TEMPORARY TABLES | YES || 'root'@'127.0.0.1' | def | LOCK TABLES | YES || 'root'@'127.0.0.1' | def | EXECUTE | YES || 'root'@'127.0.0.1' | def | REPLICATION SLAVE | YES || 'root'@'127.0.0.1' | def | REPLICATION CLIENT | YES || 'root'@'127.0.0.1' | def | CREATE VIEW | YES || 'root'@'127.0.0.1' | def | SHOW VIEW | YES || 'root'@'127.0.0.1' | def | CREATE ROUTINE | YES || 'root'@'127.0.0.1' | def | ALTER ROUTINE | YES || 'root'@'127.0.0.1' | def inet addr:| CREATE USER | YES || 'root'@'127.0.0.1 Mask:255' | def | EVENT | YES || 'root'@'127.0.0.1' | def | TRIGGER | YES || 'root'@'127.0.0.1' | def | CREATE TABLESPACE | YES || 'root'@'::1' | def | SELECT | YES || 'root'@'::1' | def | INSERT | YES || 'root'@'::1' | def | UPDATE | YES || 'root'@'::1' | def | DELETE | YES || 'root'@'::1' | def | CREATE | YES || 'root'@'::1' | def | DROP | YES || 'root'@'::1' | def | RELOAD | YES || 'root'@'::1' | def | SHUTDOWN | YES || 'root'@'::1' | def | PROCESS | YES || 'root'@'::1' | def | FILE | YES || 'root'@'::1' | def inet6 addr| REFERENCES | YES || 'root'@': :1' | def | INDEX | YES || 'root'@'::1/128 Scope' | def | ALTER | YES || 'root'@'::Host1' | def | SHOW DATABASES | YES || 'root'@'::1' | def UP LOOPBACK RUNNING MTU| SUPER | YES || 'root'@':65536 Metric:1' | def | CREATE TEMPORARY TABLES | YES || 'root'@'::1' | def RX packets| LOCK TABLES | YES || 'root'@'::0 errors1' | def | EXECUTE | YES || 'root'@':0 dropped:0 overruns1' | def | REPLICATION SLAVE | YES || 'root'@':0 frame:01' | def | REPLICATION CLIENT | YES || 'root'@'::1' | def TX packets| CREATE VIEW | YES || 'root'@'::0 errors1' | def | SHOW VIEW | YES || 'root'@':0 dropped:0 overruns1' | def | CREATE ROUTINE | YES || 'root'@':0 carrier:01' | def | ALTER ROUTINE | YES || 'root'@'::1' | def collisions| CREATE USER | YES || 'root'@':0 txqueuelen:01' | def | EVENT | YES || 'root'@'::1' | def RX bytes| TRIGGER | YES || 'root'@':0 (0.0 B) TX bytes:0 1' | def | CREATE TABLESPACE | YES || 'root'@'%' | def | SELECT | YES || 'root'@'%' | def | INSERT | YES || 'root'@'%' | def | UPDATE | YES || 'root'@'%' | def | DELETE | YES || 'root'@'%' | def | CREATE | YES || 'root'@'%' | def | DROP | YES || 'root'@'%' | def | RELOAD | YES || 'root'@'%' | def | SHUTDOWN | YES || 'root'@'%' | def | PROCESS | YES || 'root'@'%' | def | FILE | YES || 'root'@'%' | def | REFERENCES | YES || 'root'@'%' | def | INDEX | YES || 'root'@'%' | def | ALTER | YES || 'root'@'%' | def | SHOW DATABASES | YES || 'root'@'%' | def | SUPER | YES || 'root'@'%' | def | CREATE TEMPORARY TABLES | YES || 'root'@'%' | def | LOCK TABLES | YES || 'root'@'%' | def | EXECUTE | YES || 'root'@'%' | def | REPLICATION SLAVE | YES || 'root'@'%' | def | REPLICATION CLIENT | YES || 'root'@'%' | def | CREATE VIEW | YES || 'root'@'%' | def | SHOW VIEW | YES || 'root'@'%' | def | CREATE ROUTINE | YES || 'root'@'%' | def | ALTER ROUTINE | YES || 'root'@'%' | def | CREATE USER | YES || 'root'@'%' | def | EVENT | YES || 'root'@'%' | def | TRIGGER | YES || 'root'@'%' | def | CREATE TABLESPACE | YES |+--------------------+---------------+-------------------------+--------------+140 rows in set (0.0 B02 sec)
wlan0 Link encap:Ethernet HWaddr 88:33:14:5E:30:61mysql> FLUSH PRIVILEGES; inet addr:192.168.11.81 Bcast:192.168.11.255 Mask:255.255.255.Query OK, 0 inet6 addr: fe80::8a33:14ff:fe5e:3061/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24970 errors:rows affected (0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2448625 (2.3 MiB) TX bytes:1291 (1.2 KiB00 sec)
root@arm:~# ping 192.168.11.243PING 192.168.11.243 (192.168.11.243): 56 data bytes64 bytes from 192.168.11.243: seq=0 ttl=64 time=20.155 ms64 bytes from 192.168.11.243: seq=1 ttl=64 time=11.253 ms64 bytes from 192.168.11.243: seq=2 ttl=64 time=11.259 ms64 bytes from 192.168.11.243: seq=3 ttl=64 time=3.726 ms64 bytes from 192.168.11.243: seq=4 ttl=64 time=11.582 ms64 bytes from 192.168.11.243: seq=5 ttl=64 time=3.138 ms64 bytes from 192.168.11.243: seq=6 ttl=64 time=11.221 ms64 bytes from 192.168.11.243: seq=7 ttl=64 time=11.652 ms64 bytes from 192.168.11.243: seq=8 ttl=64 time=11.294 ms64 bytes from 192.168.11.243: seq=9 ttl=64 time=11.268 ms64 bytes from 192.168.11.243: seq=10 ttl=64 time=11.598 ms64 bytes from 192.168.11.243: seq=11 ttl=64 time=11.690 ms^C--- 192.168.11.243 ping statistics ---12 packets transmitted, 12 packets received, 0% packet lossround-trip min/avg/max = 3.138/10.819/20.155 msmysql>
</pre>
In order You should be able to automatically load the <code>wl12xx</code> module on startup, issue the following commandaccess from remote host:
<pre class="board-terminal">
rootdvdk@armosboxes:~# echo wl12xx >> $ mysql -u root -ppassword -h 192.168.0.81 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 37 Server version: 5.5.54-0+deb8u1 (Debian) Copyright (c) 2000, 2016, Oracle and/etcor its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/modulesor its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
</pre>
a000298_approval, dave_user
299
edits

Navigation menu