August 17, 2014
Using Cryptographic Hashes to verify file download integrity

Using Cryptographic Hashes to verify file download integrity

NOTE: Don’t use MD5 (see below)

The SHA hash functions are a set of cryptographic hash functions designed by the National Security Agency (NSA) and published by the NIST as a U.S. Federal Information Processing Standard. SHA stands for Secure Hash Algorithm.

Vendors provide a sha-1 hash for software downloads. This enables you to verify that your downloaded files are unaltered from the original.

To confirm file integrity, use an sha-1 utility on your computer to calculate your own hash for files downloaded from the VMware web site.

If your calculated hash matches the message digest we provide, you are assured that the file was downloaded intact.

sha-1 utilities are available for Windows and Linux and Mac. Most UNIX installations provide a sha1sum command for sha-1 hashes. You may need a newer linux kernel to calculate the checksums for larger files.

Windows:

The File Checksum Integrity Verifier (FCIV) can be used on Windows based products to verify sha-1 values.

See: http://support.microsoft.com/kb/841290 for details on FCIV.

> fciv -sha1 test-file.exe

// File Checksum Integrity Verifier version 2.05.

26b3fa5790c6b1bfca80b9e67402ee3622253a71 test-file.exe

Mac OS X: How to Verify a SHA-1 Digest http://support.apple.com/kb/HT1652

Instructions on checking an sha-1 checksum on a Mac:
In Finder, browse to /Applications/Utilities.
Double-click on the Terminal icon. A Terminal window will appear.
In the Terminal window, type: “openssl sha1 ” (sha1 followed by a space).
Drag the downloaded file from the Finder into the Terminal window.
Click in the Terminal window, press the Return key, and compare the checksum displayed to the screen to the one on the vendor’s download page.

From TechNet

Windows Server 2008 R2 Standard, Enterprise, Datacenter, and Web (x64) – DVD (English)
File Name: en_windows_server_2008_r2_standard_enterprise_datacenter_web_x64_dvd_x15-50365.iso
Size: 2,858 (MB)
Date Published (UTC): 8/31/2009 10:22:24 AM
Last Updated (UTC): 1/11/2010 4:31:40 PM
SHA1: A548D6743129F2A02C907D2758773A1F6BB1BCD7
 ISO/CRC: 8F94460B

About MD5

MD5 was designed by Ron Rivest in 1991 to replace an earlier hash function, MD4. In 1996, a flaw was found with the design of MD5. While it was not a clearly fatal weakness, cryptographers began recommending the use of other algorithms, such as SHA-1 (which has since been found also to be vulnerable). In 2004, more serious flaws were discovered, making further use of the algorithm for security purposes questionable; specifically, a group of researchers described how to create a pair of files that share the same MD5 checksum. Further advances were made in breaking MD5 in 2005, 2006, and 2007. In an attack on MD5 published in December 2008, a group of researchers used this technique to fake SSL certificate validity.

US-CERT says MD5 “should be considered cryptographically broken and unsuitable for further use,”and most U.S. government applications now require the SHA-2 family of hash functions.

via vadapt.com

August 10, 2014
Everyday Special Chocolate Chip Waffle Recipe from Scratch IbenIT

vmsec:

3.5 cups flour

6 tsp baking powder

1 tsp salt

4 beaten egg yolks

3.5 cups milk

1 cup oil

4 stiffly beaten egg whites

1 cup chocolate chips

Sift dry ingredients together in 10 cup mixing bowl. This bowl will

be used to dispense the batter to the waffler maker.

Combine yolks, milk, and oil in an 8 cup mixing bowl. Stir wet into

dry.

Fold in chocolate chips.

Fold whites leaving a few fluffs.

Bake 3/4 cup at a time. Makes 8 6” round belgian style waffles.

August 4, 2014
Things Hercule Poirot says. 

There are still a few unaired episodes that are coming out soon. 



Poirot says: “I cannot eat these eggs. They are of totally different sizes!”

Things Hercule Poirot says.

There are still a few unaired episodes that are coming out soon.

Poirot says: “I cannot eat these eggs. They are of totally different sizes!”

August 3, 2014

It’s amazing! DisplayPort to the new Asus PB287Q 4k display is truly 4 times the resolution of the old 1080p HMDI.

I just added my 3rd 1080HD screen so now there are 6 times the standard desktop space of just 1 screen.

Get yours now - in stock at your local Central Computer store. 

Plugs right into the displayport on your PC. Works at 3840 by 2160 and 30 Hz with the AMD Radeon 5800 series card and I’m still able to drive total of 3 displays - DP, HDMI, and DVI.

Resolution Calculator Spreadsheet

Acer X233H192010801.782,073,60012,073,600$62.69$130$130Asus VH232H192010801.782,073,60012,073,600$62.69$130$130Asus PB287Q384021601.788,294,40018,294,400$78.37$650$650sub total768043205.3312,441,600312,441,600$67.92$910$910

http://www.centralcomputers.com/ccp92215-asus-pb287q-28—3840x2160-uhd-4k-monitor-1ms-gtg—pb287q-monasupb287r.htm

  • Asus PB287Q 28” 3840x2160 UHD 4K Monitor 1ms GTG
  • 60Hz Refresh Rate
  • Price $649.95
  • Item#MONASUPB287R
  • Mfg. Part#PB287Q

July 12, 2014
Don Cheadle wears a Kangol Flat Cap Hat in the movie volcano

Don Cheadle wears a Kangol Flat Cap Hat in the movie volcano

July 4, 2014
Using Red Hat RDO PackStack to build #OpenStack #Neutron

Many people using OpenStack will start off with Devstack running in a VM on a laptop to get a feel for what is possible but when running VMs or playing around with networking and storage options and running nova to different hypervisors is needed it’s time to install a “real” openstack distribution.  You can build openstack from scratch using the manual installation steps which takes hours but is an excellent learning experience or you can use one of the assisted installation distribution methods.

Red Hat is the leader in the Enterprise Linux space. They make RHEL, CentOS, and Fedora and output code which is used by many other distributions.

Suse, Debian, Canonical Ubuntu and other distros are gaining in popularity and striving to differentiate themselves in the market.

Packstack is a CLI tool created by RedHat employee http://goodsquishy.com/ that uses puppet to script the installation and configuration of OpenStack components on a redhat based operating system.

RedHat started RDO with community-supported packages of the most up-to-date OpenStack releases available for download. They also offer enterprise-level support with the Red Hat Enterprise Linux OpenStack Platform.

To get started with RedHat RDO and install OpenStack in 15 minutes you need a machine with a running OS already.  Open a root shell and a web browser and head over here and follow the 3 simple steps to get setup.

http://openstack.redhat.com/Quickstart

This will get you up and running quickly.  What is great is that an answer file is created which can be edited and reused as more sophisticated configurations are needed. So it’s a great place to start but also offers many sophisticated options under the hood.

Here’s a list of questions you might like to explore:

Welcome to Installer setup utility
Enter the path to your ssh Public key to install on servers [/root/.ssh/id_rsa. pub] :
Should Packstack install MySQL DB [y|n] [y] :
Should Packstack install OpenStack Image Service (Glance) [y|n] [y] :
Should Packstack install OpenStack Block Storage (Cinder) service [y|n] [y] :
Should Packstack install OpenStack Compute (Nova) service [y|n] [y] :
Should Packstack install OpenStack Networking (Neutron) service [y|n] [y] :
Should Packstack install OpenStack Dashboard (Horizon) [y|n] [y] :
Should Packstack install OpenStack Object Storage (Swift) [y|n] [y] :
Should Packstack install OpenStack Metering (Ceilometer) [y|n] [y] :
Should Packstack install OpenStack Orchestration (Heat) [y|n] [n] :
Should Packstack install OpenStack client tools [y|n] [y] :
Enter a comma separated list of NTP server(s). Leave plain if Packstack should n ot install ntpd on instances.:
Should Packstack install Nagios to monitor OpenStack hosts [y|n] [y] :
Enter a comma separated list of server(s) to be excluded. Leave plain if you don ‘t need to exclude any server.:
Do you want to run OpenStack services in debug mode [y|n] [n] :
Enter the IP address of the controller host [192.168.x.x] :
Enter list of IP addresses on which to install compute service [192.168.x.x] :
Enter list of IP addresses on which to install network service [192.168.x.x] :
Do you want to use VMware vCenter as hypervisor and datastore [y|n] [n] : 
Enter the IP address of the VMware vCenter server to use with Nova: 192.168.x.x
Enter the username to authenticate on VMware vCenter server: 
Enter the password to authenticate on VMware vCenter server :
Enter the name of the vCenter datastore: wLSI
Enter the IP address of the MySQL server [192.168.x.x] :
Enter the password for the MySQL admin user :
Confirm password :
Set the AMQP service backend [qpid|rabbitmq] [rabbitmq] :
Enter the IP address of the AMQP service [192.168.x.x] :
Enable SSL for the AMQP service? [y|n] [n] :
Enable Authentication for the AMQP service? [y|n] [n] :
Enter the password for the Keystone admin user :
Confirm password :
Enter the password for the Keystone demo user :
Confirm password :
Enter the Cinder backend to be configured [lvm|gluster|nfs|vmdk] [lvm] : 
Enter the CPU overcommitment ratio. Set to 1.0 to disable CPU overcommitment [1 6.0] : 
Enter the RAM overcommitment ratio. Set to 1.0 to disable RAM overcommitment [1 .5] : 
Enter the bridge the Neutron L3 agent will use for external traffic, or ‘provide r’ if using provider networks [br-ex] :
Enter the name of the L2 plugin to be used with Neutron [linuxbridge|openvswitch |ml2] [ml2] :
Should Packstack install Neutron LBaaS [y|n] [n] : y
Should Packstack install Neutron L3 Metering agent [y|n] [n] : y
Would you like to configure neutron FWaaS? [y|n] [n] : y
Enter a comma separated list of network type driver entrypoints [local|flat|vlan|gre|vxlan] [vxlan] :
Enter a comma separated ordered list of network_types to allocate as tenant networks [local|vlan|gre|vxlan] [vxlan] :
Enter a comma separated ordered list of networking mechanism driver entrypoints [logger|test|linuxbridge|openvswitch|hyperv|ncs|arista|cisco_nexus |l2population] [openvswitch] :
Enter a comma separated list of physical_network names with which flat networks can be created [*] :
Enter a comma separated list of physical_network names usable for VLAN: 
Enter a comma separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation: 
Enter a multicast group for VXLAN: 
Enter a comma separated list of <vni_min>:<vni_max> tuples enumerating ranges of VXLAN VNI IDs that are available for tenant network allocation [ 10:100] :
Enter the name of the L2 agent to be used with Neutron [linuxbridge|openvswitch] [openvswitch] :
Enter a comma separated list of bridge mappings for the Neutron openvswitch plugin: 
Enter a comma separated list of OVS bridge:interface pairs for the Neutron openvswitch plugin:
Enter interface with IP to override the default tunnel local_ip: 
Enter VXLAN UDP port number [4789] :
Would you like to set up Horizon communication over https [y|n] [n] : y
Enter the path to a PEM encoded certificate to be used on the https server, leave blank if one should be generated, this certificate should not require a passphrase:
Enter the SSL keyfile corresponding to the certificate if one was entered:
Enter the CA cahin file corresponding to the certificate if one was entered:
Enter the Swift Storage devices e.g. /path/to/dev:
Enter the number of swift storage zones, MUST be no bigger than the number of storage devices configured [1] :
Enter the number of swift storage replicas, MUST be no bigger than the number of storage zones configured [1] :
Enter FileSystem type for storage nodes [xfs|ext4] [ext4] :
Enter the size of the storage device (eg. 2G, 2000M, 2000000K) [2G] :
Would you like to provision for demo usage and testing [y|n] [y] :
Would you like to configure Tempest (OpenStack test suite). Note that provisioning is only supported for all-in-one installations. [y|n] [n] : y
Enter the network address for the floating IP subnet [172.24.4.224/28] :
What is the uri of the Tempest git repository? [https://github.com/openstack/tempest.git] :
What revision, branch, or tag of the Tempest git repository should be used [master] :
Enter the IP address of the MongoDB server [192.168.x.x] :
Enter the password for the nagiosadmin user :
To subscribe each server to EPEL enter “y” [y|n] [y] :
Enter a comma separated list of URLs to any additional yum repositories to install:
To subscribe each server to Red Hat enter a username :
To subscribe each server to Red Hat enter your password :
To subscribe each server with RHN Satellite enter RHN Satellite server URL:

June 30, 2014
Russian government to switch from Intel and AMD x86 “WinTel” solutions to Linux running on ARM CPU

Is this a good idea or just security through obscurity?

Russian government to switch from Intel and AMD x86 “WinTel” solutions to Linux running on ARM CPUs. 8 core in 2015 and 16 core for servers in 2016.

June 25, 2014
Text or Binary - Using Bitbucket with PowerShell and PowerGUI

How to setup Dell Quest PowerGUI to edit PowerShell PS1 scripts to Bitbucket with the correct UTF-8 Text encoding to overcome the erroneous Binary Encoding

We use the following workflow to update Microsoft PowerShell (VMware PowerCLI actually) scripts in the Atlassian Bitbucket GIT repository and had this same issue when getting started out of the box with defaults.

Workflow

The default files created with PowerGui are having the 3 letter file name extension ps1 but when uploaded with Sourcetree they show up in Bitbucket as Binary so text features like edit or diff don’t work. Based on the feedback here and with other google searches the fix for this was to indeed change the encoding to UTF-8, make a simple change to the file, and upload it again. After a few tries this works perfectly and is repeatable. There is a trick though as PowerGUI doesn’t make it obvious how to change the encoding. Here are the steps.

Procedure

  1. Start powergui as you normally would. BTW – this is a windows program and I’ve tested this on Windows 8
  2. Choose “PowerShell Libraries” from the File menu
  3. Check the box to enable “Add-on.ScriptEditorEssentials” from the Snapins/Modules dialog box. Click OK.
  4. Now Enable UTF-8 Encoding from the File menu.
  5. That’s it. Any file you save now will be UTF-8 encoded and show up properly in Bitbucket once uploaded.

Reference:

http://en.community.dell.com/techcenter/powergui/f/4833/t/19575613.aspx


image

image

image

image

image

image

As you can see in the below screenshot we now have text functions available on line such as view, edit, and diff.

image


powershell, powergui, powercli, text, binary, sourcetree, bitbucket, atlassian

June 24, 2014
Flash Card HTML

Flash Card Test




June 20, 2014
BeagleBone Black Rev C Setup 4GB MMC Debian - Getting Started Experience

BeagleBone Black Rev C Setup Experience

I got my new BeagleBone Black Rev C Single Board Computer in the mail via USPS today (May 21st, 2014). Not too bad. It’s all up and running and I was able to ssh into it and run my first demo app.

I had decided to get a BBB a few days ago and was disappointed when I went to order them on line they were out of stock.  They had run out of the Rev B with only 2 GB on board eMMC (embedded Multi-Media Controller) memory storage and were working on a new Rev C model with 4 GB. But I filled out the web to requesting to be informed when they were back in stock.  Here’s the email they sent me:

Adafruit Industries <support@adafruit.com>
May 18 (3 days ago)

Dear Iben Rodriguez ,

You have successfully subscribed to the Back In Stock Notification List for:

BeagleBone Black Rev C – 4GB Flash – Pre-installed Debian

We shall send you an e-mail when it is back in stock!

The very next day I was plesantly surprised to find this message sitting in my inbox:

Adafruit Industries <support@adafruit.com>
May 19 (2 days ago)

Dear Iben Rodriguez,

We have restocked a product you asked to be notified about.

Please check it out before it goes out of stock again!

————————————————–
Product Back In Stock
————————————————–
BeagleBone Black Rev C – 4GB Flash – Pre-installed Debian

Link: http://www.adafruit.com/products/1876

So I dropped everything and went on line and ordered one for me and one for the kids. The total cost with the cheapest shipping option (USPS) was $59.97 and the nice part was I was able to use PayPal. I’m glad I didn’t pay for more expensive shipping as it only took them 2 days to get it to me.

I also ordered a Half-open Frame Design Clear Case Enclosure for $7.97.Image

The mailman managed to squeeze the package into my mailbox.  Try that with a “regular” computer.

Inside was a smaller box all surrounded in bubble wrap.

It came with a 3 foot USB cable 4P(A)M to mini 5P(B)M, a getting started card, and a packing slip.

 

 


Getting Started Card

Image

Image

Image

Image


The packing slip has a quote on it:

Art is I; science is we - Claude Bernard

for support: http://www.adafruit.com/support


Initial setup

I used the USB to PC connection method.  I also plugged an Ethernet cable in and connected the BBB to my lab network. It booted up right away and got an IP address via DHCP.  They really went out of their way to make this thing easy to use.  The file system showed up in my Windows Explorer with a START.htm and a README.htm file.  Just click on those and they open up in your web browser. No network or Internet connection needed.

Image

Opening these files will give you the instructions you need to install the correct drivers for your PC’s Operating System to communicate over the USB network port.

Install the drivers for your operating system to give you network-over-USB access to your BeagleBone. Additional drivers give you serial access to your board.

Operating System
Windows (64-bit) 64-bit installer If in doubt, try the 64-bit installer first.
Windows 32-bit installer
Mac OS X NetworkSerial
Install both sets of drivers.
Linux: mkudevrule.sh
Driver installation isn’t required, but you might find a few udev rules helpful. 

putty com3 9600 baud USB to serial connection

I used windows 8.1 and after installing the drivers you can find the assigned serial communications port in your windows computer device manager. Mine showed up as COM3.

Image

Open Putty and configure a serial port session for COM3.

Image

When you initially connect you will be greeted with a banner message as follows:

Debian GNU/Linux 7 beaglebone ttyGS0

default username:password is [debian:temppwd]

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

The IP Address for usb0 is: 192.168.7.2
beaglebone login:

I logged in as root and since there’s no default password set it takes you right to the # prompt.

root
Last login: Wed Apr 23 20:20:20 UTC 2014 on ttyO0
Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@beaglebone:~#

Running ifconfig and df -h show some basic system info.

root@beaglebone:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 1c:ba:8c:xx:xx:xx
inet addr:192.168.xxx.xxx Bcast:192.168.xxx.255 Mask:255.255.255.0
inet6 addr: fe80::xxxx:8cff:fea2:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1073 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215972 (210.9 KiB) TX bytes:17833 (17.4 KiB)
Interrupt:40

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr f6:66:fe:xx:xx:xx
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::f466:xxxx:xxxx:xxc6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2072 errors:0 dropped:0 overruns:0 frame:0
TX packets:4634 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:146703 (143.2 KiB) TX bytes:6914510 (6.5 MiB)

root@beaglebone:~#
root@beaglebone:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.4G 1.4G 1.9G 44% /
udev 10M 0 10M 0% /dev
tmpfs 100M 632K 99M 1% /run
/dev/disk/by-uuid/8aecba16-c811-47ee-86ed-78588c08ce2a 3.4G 1.4G 1.9G 44% /
tmpfs 249M 0 249M 0% /dev/shm
tmpfs 249M 0 249M 0% /sys/fs/cgroup
tmpfs 100M 0 100M 0% /run/user
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/mmcblk0p1 96M 72M 25M 75% /boot/uboot
/dev/mmcblk1p1 63G 5.1G 58G 9% /media/NO NAME

root@beaglebone:~#

Notice the 64 GB MicroSDXC UFD shows up as /dev/mmcblk1p1

Update the Debian Operating System with the latest patches using the Advanced Packaging Tool get command.

root@beaglebone:~# apt-get update
root@beaglebone:~# apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
base-files dpkg dpkg-dev libdpkg-perl liblcms2-2 libsmbclient libsoup-gnome2.4-1 libsoup2.4-1 libssl-dev
libssl-doc libssl1.0.0 libwbclient0 libxfont1 libxml2 libxml2-dev libxml2-utils linux-libc-dev openssl tzdata
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.1 MB of archives.
After this operation, 46.1 kB of additional disk space will be used.

This is super awesome!  I created a file on the local file system, pulled power, plugged it back in and after a few seconds the system was back up and my file was still there.  This is the fastest computer in the lab.


BBB Web Server

Open a web browser and connect to the USB Network Interface:

There are actually 2 different web servers running on the BBB Rev C debian OS out of the box.

  1. http://192.168.7.2:80/Support/bone101/
  2. http://192.168.7.2:8080/

The default web server running on port 80 is served from the /var/lib/cloud9 directory on the local file system:

root@beaglebone:/var/lib/cloud9# ls -al
total 636
drwxr-xr-x 13 debian debian 4096 Apr 23 20:20 .
drwxr-xr-x 41 root root 4096 Jan 1 2000 ..
drwxr-xr-x 3 debian debian 4096 Apr 23 21:01 .c9
drwxr-xr-x 8 debian debian 4096 Apr 23 21:01 .git
-rw-r–r– 1 debian debian 13 Apr 23 21:01 .gitignore
-rw-r–r– 1 debian debian 8808 Apr 23 21:01 LICENSE
-rw-r–r– 1 debian debian 471 Apr 23 21:01 README.md
drwxr-xr-x 4 debian debian 4096 Apr 23 21:01 Support
drwxr-xr-x 3 debian debian 4096 Apr 23 21:01 attic
drwxr-xr-x 2 root root 4096 Apr 23 20:20 autorun
drwxr-xr-x 2 debian debian 4096 Apr 23 21:01 demo
drwxr-xr-x 5 debian debian 4096 Apr 23 21:01 extras
-rw-r–r– 1 debian debian 562718 Apr 23 21:01 favicon.ico
drwxr-xr-x 2 debian debian 4096 Apr 23 21:01 images
-rw-r–r– 1 debian debian 2377 May 22 18:45 index.html
drwxr-xr-x 2 debian debian 4096 Apr 23 21:01 javascripts
-rw-r–r– 1 debian debian 673 Apr 23 21:01 params.json
drwxr-xr-x 5 debian debian 4096 Apr 23 21:01 static
drwxr-xr-x 2 debian debian 4096 Apr 23 21:01 stylesheets
-rw-r–r– 1 debian debian 659 Apr 23 21:01 testace.html
root@beaglebone:/var/lib/cloud9#

The alternate web server running on port 8080 is served from the /var/www/ directory on the local file system.  There are no files in this directory from the factory and directory browsing is enabled so any files you place here will be listed in the browser.

Image


There’s a link to the GITHUB bone101 Getting Started section:

https://github.com/beagleboard/bone101

bone101

Getting started information for BeagleBone and BeagleBone Black written in BoneScript

The content here is presented by the default web server running with the demonstration Linux distributions provided on BeagleBone and BeagleBone Black. It is written in HTML and makes use of the BoneScript server running on the board and BoneScript JavaScript library running in these HTML pages.

Image


Run your first program.  

I tried the demo program called “Blink an on-board LED” and just by clicking the “RUN” button in the IDE you are able to download and run the program. Super easy! I changed some of the timer numbers and ran it again.  This makes it so easy to experiment.

var b = require(‘bonescript’);
var led = “USR3″;
var state = 0;

b.pinMode(led, ‘out’);
toggleLED = function() {
state = state ? 0 : 1;
b.digitalWrite(led, state);
};

timer = setInterval(toggleLED, 1000);

stopTimer = function() {
clearInterval(timer);
};

setTimeout(stopTimer, 30000);


Splunk Forwarder on BeagleBoard Black

Download - forwarder-for-linux-arm-raspberry-pi_10.tgz – the installer from:

Installation Manual:

Installation Steps:

 

tar -xvzf forwarder-for-linux-arm-raspberry-pi_10.tgz -C /opt

root@beaglebone:/opt/splunkforwarder/bin# /opt/splunkforwarder/bin/splunk start
/opt/splunkforwarder/bin/splunkd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
/opt/splunkforwarder/bin/splunkd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

Splunk> Finding your faults, just like mom.

Checking prerequisites…
/opt/splunkforwarder/bin/splunkd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Checking mgmt port [8089]: /opt/splunkforwarder/bin/splunkd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
open
Creating: /opt/splunkforwarder/var/lib/splunk
Creating: /opt/splunkforwarder/var/run/splunk
Creating: /opt/splunkforwarder/var/run/splunk/appserver/i18n
Creating: /opt/splunkforwarder/var/run/splunk/appserver/modules/static/css
Creating: /opt/splunkforwarder/var/run/splunk/upload
Creating: /opt/splunkforwarder/var/spool/splunk
Creating: /opt/splunkforwarder/var/spool/dirmoncache
Creating: /opt/splunkforwarder/var/lib/splunk/authDb
Creating: /opt/splunkforwarder/var/lib/splunk/hashDb
/opt/splunkforwarder/bin/splunkd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
SSL certificate generation failed.

root@beaglebone:~# ls -al /opt/splunkforwarder/lib
total 5468
drwxr-xr-x 3 root root 4096 Sep 28 2013 .
drwxr-xr-x 9 root root 4096 May 23 04:29 ..
-r–r–r– 1 root root 57 Sep 27 2013 copyright.txt
drwxr-xr-x 2 root root 4096 Sep 28 2013 engines
lrwxrwxrwx 1 root root 20 Sep 27 2013 libarchive.so -> libarchive.so.13.1.2
lrwxrwxrwx 1 root root 20 Sep 27 2013 libarchive.so.13 -> libarchive.so.13.1.2
-r-xr-xr-x 1 root root 511016 Sep 28 2013 libarchive.so.13.1.2
lrwxrwxrwx 1 root root 15 Sep 27 2013 libbz2.so -> libbz2.so.1.0.3
lrwxrwxrwx 1 root root 15 Sep 27 2013 libbz2.so.1 -> libbz2.so.1.0.3
-r-xr-xr-x 1 root root 71020 Sep 28 2013 libbz2.so.1.0.3
lrwxrwxrwx 1 root root 18 Sep 27 2013 libcrypto.so -> libcrypto.so.1.0.0
-r-xr-xr-x 1 root root 1476588 Sep 28 2013 libcrypto.so.1.0.0
lrwxrwxrwx 1 root root 18 Sep 27 2013 libexslt.so -> libexslt.so.0.8.17
lrwxrwxrwx 1 root root 18 Sep 27 2013 libexslt.so.0 -> libexslt.so.0.8.17
-r-xr-xr-x 1 root root 97796 Sep 28 2013 libexslt.so.0.8.17
lrwxrwxrwx 1 root root 16 Sep 27 2013 libpcre.so -> libpcre.so.1.2.1
lrwxrwxrwx 1 root root 16 Sep 27 2013 libpcre.so.1 -> libpcre.so.1.2.1
-r-xr-xr-x 1 root root 244172 Sep 28 2013 libpcre.so.1.2.1
lrwxrwxrwx 1 root root 19 Sep 27 2013 libsqlite3.so -> libsqlite3.so.0.8.6
lrwxrwxrwx 1 root root 19 Sep 27 2013 libsqlite3.so.0 -> libsqlite3.so.0.8.6
-r-xr-xr-x 1 root root 575376 Sep 28 2013 libsqlite3.so.0.8.6
lrwxrwxrwx 1 root root 15 Sep 27 2013 libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 root root 336464 Sep 28 2013 libssl.so.1.0.0
lrwxrwxrwx 1 root root 16 Sep 27 2013 libxml2.so -> libxml2.so.2.9.1
lrwxrwxrwx 1 root root 16 Sep 27 2013 libxml2.so.2 -> libxml2.so.2.9.1
-r-xr-xr-x 1 root root 1832152 Sep 28 2013 libxml2.so.2.9.1
lrwxrwxrwx 1 root root 17 Sep 27 2013 libxslt.so -> libxslt.so.1.1.28
lrwxrwxrwx 1 root root 17 Sep 27 2013 libxslt.so.1 -> libxslt.so.1.1.28
-r-xr-xr-x 1 root root 323324 Sep 28 2013 libxslt.so.1.1.28
lrwxrwxrwx 1 root root 13 Sep 27 2013 libz.so -> libz.so.1.2.8
lrwxrwxrwx 1 root root 13 Sep 27 2013 libz.so.1 -> libz.so.1.2.8
-r-xr-xr-x 1 root root 94648 Sep 28 2013 libz.so.1.2.8
root@beaglebone:~#

root@beaglebone:~# /opt/splunkforwarder/bin/splunk cmd $(which env) | grep -i splunk

PATH=/opt/splunkforwarder/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/opt/splunkforwarder/bin/splunk
SPLUNK_HOME=/opt/splunkforwarder
SPLUNK_DB=/opt/splunkforwarder/var/lib/splunk
SPLUNK_SERVER_NAME=splunkforwarder
SPLUNK_WEB_NAME=splunkweb
LD_LIBRARY_PATH=/opt/splunkforwarder/lib
OPENSSL_CONF=/opt/splunkforwarder/openssl/openssl.cnf
LDAPCONF=/opt/splunkforwarder/etc/openldap/ldap.conf
root@beaglebone:~# /opt/splunkforwarder/bin/splunk cmd $(which ldd) /opt/splunkforwarder/bin/splunkd
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6f68000)
libpcre.so.1 => /opt/splunkforwarder/lib/libpcre.so.1 (0xb6f2a000)
libxml2.so.2 => /opt/splunkforwarder/lib/libxml2.so.2 (0xb6d69000)
libxslt.so.1 => /opt/splunkforwarder/lib/libxslt.so.1 (0xb6d1a000)
libssl.so.1.0.0 => /opt/splunkforwarder/lib/libssl.so.1.0.0 (0xb6cc8000)
libcrypto.so.1.0.0 => /opt/splunkforwarder/lib/libcrypto.so.1.0.0 (0xb6b5c000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6b50000)
libarchive.so.13 => /opt/splunkforwarder/lib/libarchive.so.13 (0xb6ad2000)
libbz2.so.1 => /opt/splunkforwarder/lib/libbz2.so.1 (0xb6ac0000)
libsqlite3.so.0 => /opt/splunkforwarder/lib/libsqlite3.so.0 (0xb6a33000)
libz.so.1 => /opt/splunkforwarder/lib/libz.so.1 (0xb6a1b000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb69af000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6994000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb68af000)
/lib/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0xb6f85000)
root@beaglebone:~#


 

Next we’ll try out version control with GIT and the Cloud9 IDE

Liked posts on Tumblr: More liked posts »