Thursday, October 20

Simple Checklists - C.H.I.P. Setup


C.H.I.P. Setup (Simple Checklist)

After playing with the C.H.I.P. and my Raspberry Pi systems I came to realize how it could be very worth while to have a simple document with the bare essentials need to setup each device.

So I have created a Google Doc file which I can keep up to date, and can share with other people. This makes it much easier to make sure everybody has the new information, when things change in the future.



( Google Doc , PDF Download )

Initial Version - Bellow
Console Commands

Connect Wifi

nmcli con add con-name ‘{ConName}’ ifname wlan0 type wifi ssid ‘{SSID}’

nmcli con modify ‘{ConName}’ wifi-sec.key-mgmt wpa-psk

nmcli con modify ‘{ConName}’ wifi-sec.psk ‘{Pwd}’

Nmcli con up id ‘{ConName}’

Choose Boot Mode

systemctl set-default {Boot Mode}.target
ie: systemctl set-default multi-user.target

Updating and Upgrading

apt-get update
apt-get dist-upgrade

Additional Tools

Samba,Seamless file & Print services between Linux/ Windows

apt-get install samba samba-common-bin
nano /etc/samba/smb.conf

NodeJS Server-side platform built on Google’s V8 Engine

curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -y nodejs

avahi-daemonZero Configuration Networking

apt-get install avahi-daemon avahi-utils
nano /etc/avahi/services/afpd.service
etc/init.d/avahi-daemon restart
Avahi-browse -d local _ssh._tcp --resolve -t


There is more information stored in the Google Doc.

Revisions
  • v16.11.18
    • Added Timezones & Locales
    • Added tmux commands
    • Removed Extra Information
    • Removed Directory Commands
  • v16.10.20
    • Modified avahi-daemon information
  • v16.10.16
    • Original Version

Wednesday, October 19

What Matters - Boot Images ( C.H.I.P. )


What Matters with Boot Images

I have narrowed down the base information I put in the previous post. So you only have the information that actually matters.

If you want to see where I got any value check:



Flash Image Comparisons
Flash ImageFlash TimeBoot TimeDL SizeUsed
Mem
Used
HDD
GUI 4.4 (No Limit) 5min 33sec1min 29sec624 MB183 MB565 MB
GUI 4.4 6min 10sec1min 29sec624 MB190 MB565 MB
Headless 4.4 3min 6sec56sec314 MB74 MB265 MB
GUI 4.3 4min 48sec1min 17sec606 MB187 MB549 MB
Headless 4.3 2min 14sec49sec246 MB75 MB202 MB
Headless 4.3 No Fastboot 9min 25sec39sec245 MB75 MB202 MB



Tuesday, October 18

Comparing Boot Images ( C.H.I.P. )


Comparing Boot Images

Now that I have a couple C.H.I.P. computers I thought it was time to compare the available flash images for the device. I will mainly be using the C.H.I.P. in headless mode, but I figure it is worth checking out the other available options.



Flash Image Comparisons
Flash Image


GUI 4.4 (No Limit)
Flash Time   ► 5 minutes 33 seconds
Boot Time   ► 1 minute 29 seconds
Download Size   ► 624 MB
Memory Usage
totalusedfreesharedbufferscached
mem:4911833088068
-/+ buffers/cache:115376
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G565M3.0G16%/
devtempfs214M0214M0%/dev
tmpfs246M0246M0%/dev/shm
tmpfs246M6.7M240M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs246M0246M0%/sys/fs/cgroup
tmpfs50M8.0K50M1%/run/user/1000


GUI 4.4
Flash Time   ► 6 minutes 10 seconds
Boot Time   ► 1 minute 29 seconds
Download Size   ► 624 MB
Memory Usage
totalusedfreesharedbufferscached
mem:4911903018068
-/+ buffers/cache:122369
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G565M3.0G16%/
devtempfs214M0214M0%/dev
tmpfs246M0246M0%/dev/shm
tmpfs246M6.7M240M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs246M0246M0%/sys/fs/cgroup
tmpfs50M8.0K50M1%/run/user/1000


Headless 4.4
Flash Time   ► 3 minutes 6 seconds
Boot Time   ► 56 seconds
Download Size   ► 314 MB
Memory Usage
totalusedfreesharedbufferscached
mem:491744176029
-/+ buffers/cache:44446
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G265M3.3G8%/
devtempfs214M0214M0%/dev
tmpfs246M0246M0%/dev/shm
tmpfs246M6.7M240M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs246M0246M0%/sys/fs/cgroup
tmpfs50M050M0%/run/user/1000


GUI 4.3
Flash Time   ► 4 minutes 48 seconds
Boot Time   ► 1 minute 17 seconds
Download Size   ► 606 MB
Memory Usage
totalusedfreesharedbufferscached
mem:4951873078067
-/+ buffers/cache:119375
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G549M3.0G16%/
devtempfs248M0248M0%/dev
tmpfs248M0248M0%/dev/shm
tmpfs248M6.7M242M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs248M0248M0%/sys/fs/cgroup
tmpfs50M8.0K50M1%/run/user/1000


Headless 4.3
Flash Time   ► 2 minutes 14 seconds
Boot Time   ► 49 seconds
Download Size   ► 246 MB
Memory Usage
totalusedfreesharedbufferscached
mem:495754196028
-/+ buffers/cache:47448
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G202M3.3G6%/
devtempfs248M0248M0%/dev
tmpfs248M0248M0%/dev/shm
tmpfs248M6.6M242M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs248M0248M0%/sys/fs/cgroup
tmpfs50M050M0%/run/user/1000


Headless 4.3 No Fastboot
Flash Time   ► 9 minutes 25 seconds
Boot Time   ► 39 seconds
Download Size   ► 245 MB
Memory Usage
totalusedfreesharedbufferscached
mem:495754196028
-/+ buffers/cache:46448
Swap:000
Storage Mounts
FilesystemSizeUsedAvailUse%Mounted on
ubi0:rootfs3.5G202M3.3G6%/
devtempfs248M0248M0%/dev
tmpfs248M0248M0%/dev/shm
tmpfs248M6.6M242M3%/run
tmpfs5.0M4.0K5.0M1%/run/lock
tmpfs248M0248M0%/sys/fs/cgroup
tmpfs50M050M0%/run/user/1000


Monday, October 17

C.H.I.P. The $9 Computer


C.H.I.P. - $9 Computer

A Linux computer for only $9 U.S. I never dreamed when I was growing up that I would be able to purchase a computer for under $10. And since I live in Canada, I still have not. But I have come close. Next Thing Co kickstarted, and is now selling on their website, a little computer for $9 U.S.

This is not the most powerful computer you have ever owned, come close in hardware specs to that of the Raspberry Pi Zero. It does have bluetooth 4.0, wifi, and 4GB of storage all built in. So as long as you are connecting to your wifi router, you only need a power supply to power this computer and have it running all the time.



Hardware Specs

Processor   ► Arm R8 1GHz Processor
Storage      ► 4GB on board
Memory     ► 512MB of RAM
Video         ► Composite Out
Network     ► WiFi B/G/N, Bluetooth 4.0



My opinion after 10 Minutes?

It took me a few minutes to get used to device. There is a little button located at that back of the device I thought would turn it Off/On, but that did not seem to work on the unit I have. So I am using a usb cable with a switch on it to turn the device on. After executing shutdown -h now I did notice the device did actually power off. I was unable to power the device back up till after I turned off the power from the USB cable, and turned it back on again.

I was able to fairly quickly set it up to connect to my WiFi router, and was SSH connected to it within the first 10 minutes.


The Negative ( had to work to come up with one )
  • With a single USB jack, most people will be using a keyboard to do the initial setup
    • Or use a keyboard with a built in track pad
  • There seems to be a bit of flicker when using the composite video cable.
  • Slow for using as a desktop system
    • Great for a little headless server

Like the Raspberry Pi I am glad to be able to use the C.H.I.P. for my smaller projects.



The Video