Tuesday, December 4, 2018

file server for storage


install cifs
install samba
install nfs-server

use blkid
add strorage to fstab for boot time mount

setup smb.conf
setup /exports
install dropbox
re-assign location of dropbox

https://www.dropbox.com/install-linux

https://help.dropbox.com/installs-integrations/desktop/linux-commands


64-bit:

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

~/.dropbox-dist/dropboxd
*******
https://www.techrepublic.com/article/how-to-install-and-run-dropbox-from-a-headless-linux-server/

--30--

Thursday, November 29, 2018

Odroid XU4 board


some photos and info on the Odroid Xu4

https://magazine.odroid.com/odroid-xu4

KEY FEATURES
  • Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 Octa core CPUs
  • Mali-T628 MP6 (OpenGL ES 3.0/2.0/1.1 and OpenCL 1.1 Full profile)
  • 2GB LPDDR3 RAM PoP stacked
  • eMMC5.0 HS400 Flash Storage
  • 2 x USB 3.0 Host, 1 x USB 2.0 Host
  • Gigabit Ethernet port
  • HDMI 1.4a for display
  • Operating temperature range: approx. -10C to +45C
  • Size: ~82 x 58 x 22 mm (including heat sink)
  • Fully software compatible with ODROID-XU3 and XU3-Lite
  • Low cost, small form factor, high performance!








--30--

visual studio on Odroid XU4


https://www.hardkernel.com/blog-2/visual-studio-code-on-xu4-ubuntu-18-04/


Today, we can run the Visual Studio on the XU4 Ubuntu Linux.
Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS.
It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.
It is also customizable, so users can change the editor’s theme, keyboard shortcuts, and preferences.
It is free and open-source, although the official download is under a proprietary license.
From the VS Code GitHub : https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites
You need following items.
– Git
– Node.JS, >= 8.9.1, < 9.0.0
– Yarn >= 1.5.0
– Python, >=  2.7 (version 3 is not supported)
– npm
– libx11-dev and libxkbfile-dev for native-keymap
– libsecret-1-dev for keytar
Let’s install the required packages.
sudo apt install git nodejs libx11-dev libxkbfile-dev libsecret-1-dev npm
And check the versions of key components.
odroid@odroid:~$ yarn --version
0.32
odroid@odroid:~$ python --version
Python 2.7.15rc1
odroid@odroid:~$ nodejs --version
v8.10.0
odroid@odroid:~$ npm --version
3.5.2
“yarn” command in “cmdtest” package was too old which was compatible with npm.
So you have to install “yarn” package manually.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt
sudo apt update
sudo apt install yarn
And I had the latest “yarn” version.
odroid@odroid:~$ yarn --version
1.7.0
Let’s download Visual Studio Code source from MS Github and build it.
git clone --depth 1 https://github.com/microsoft/vscode
cd vscode
./scripts/npm.sh install --arch=armhf
Then, run your instance with ./scripts/code.sh from that same folder.
You must force to reinstal libgconf2 manually to fix a runtime error.
sudo apt -y install libgconf2-4
The first launching took quite a long time. Be patient.
The performance of source code editor was very good and look-and-feel was very similar to the original Visual Studio.
It’s time to learn how to configure the gcc and gdb command in the integrated development environment.

--30--

Tuesday, November 27, 2018

change user name and home directory of linux user


Rename the user on linux.

This changes the login id and the home directory name.  It will not change any of the info in possible config files for shortcuts and packages which were embedded while configuring tools or programs on the account.

Things may have to be edited and replaced as needed manually.

https://websistent.com/change-home-directory-in-linux/

Change the home directory using usermod

This method is for command line warriors. Before you use the usermod command the new home directory should be created, ownership should be assigned to the new user and the folder should be chmoded correctly so that no one else can access it. Run the following commands to do it.
mkdir /home/new_home_directory
chown username:username /home/new_home_directory
chmod 700 /home/new_home_directory
usermod --home /home/new_home_directory username

Change the home directory by editing /etc/passwd

Alternatively you can also edit the /etc/passwd to change the home directory. But you should be careful not to edit anything else. Before editing this file it is always better to create the new home directory and assign proper permissions and ownership to it. Execute the following commands.
mkdir /home/new_home_directory
chown username:username /home/new_home_directory
chmod 700 /home/new_home_directory

Open the /etc/passwd file using a text editor and locate the line containing the required username it should look something like this
username:x:500:500::/home/username:/bin/bash

change it to
username:x:500:500::/home/new_home_directory:/bin/bash

Save the file.
Finally copy all the old content to the new home directory
cp -f /home/username/* /home/new_home_dir/

another link
https://askubuntu.com/questions/558669/renaming-user-name

--30--

Ubuntu 16.04: Mount USB storage on boot



Ubuntu 16.04: Mount USB storage on boot

Use blkid (sudo required) to determine blkid info

$ sudo blkid
<device>: <uuid> <fstype>

Grep UUID of USB device attached to /dev/sdh1.
$ sudo blkid | grep "^/dev/sdh1:"
/dev/sdh1: UUID="e801fc70-a741-48da-b82d-d55b7668a573" TYPE="xfs"

Add UUID mount entry to /dev/fstab.
$ echo 'UUID="e801fc70-a741-48da-b82d-d55b7668a573" /mnt xfs defaults 0 0' \
| sudo tee -a /etc/fstab
Now USB device can be mount automatically on boot.


https://www.hiroom2.com/2016/09/18/ubuntu-16-04-mount-usb-storage-on-boot/
--30--

Thursday, November 22, 2018

Install Lamp Server on Linux


Install Lamp server

sudo apt install apache2
sudo apt install mysql-server
sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
sudo service apache2 restart

check php
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'



--30--


Wednesday, October 31, 2018

Maniac Netflix original show


In this show, Season 1, Episode 2 there are sets with some classic systems.

I'm wondering if in the latter one, with the terminals if that is the one which called me trying to buy a quantity of terminals some time ago.

This was called to my attention by a poster on the cctalk list,  Stéphane Tsacas.

"
TV show Maniac (available on netflix), S1E2 @28.48, at least a PDP 11/40,
11/05 or 04, RX01, PDP-8, and 2 Data General Eclipse, DEC doc binders, and
maybe an IBM front panel and more.
See
https://imgur.com/a/L3iA9CD
https://en.wikipedia.org/wiki/Maniac_(miniseries)
"

Here are some stills I grabbed.  There is probably some test equipment in the upper panels above the aircooled IBM cabinets.  They seem to be 3480 tape racks, probably in 9303 cabinets.

If I had to guess I'd say the IBM system is a 360/40, but I'm sure more practiced eyes will comment.

The panel with the repeated similar arrays of green blink'n lights have what probably are SCSI drive racks in each.  Probably chosen for the aesthetic of having a grill on each.  At a later scene one of the actors comes up and talks to it like it's some sort of person, and it talks back.

Will have to see how many episodes there are.  This was dropped as a 10 episode block on 18 Sep 2018 according to the epguides.com site about the series.

The grabs below may not preview well, but if I don't mark them to show original size, they can't be brought up unscaled.  These are from a 1080p video in the VLC player.

closer view of eclipse.  Something dec upper right shelf

Eclipse systems to either side

360 panel on the right, IBM air-cooled to the left.

The guy is talking to the thing here

Terminals in this shot outside the pod

Best shot of fthe right en, with PDP8, PDP11, and eclipse systems


-30-

Sunday, October 14, 2018

imagemagick / convert error when converting a group of jpgs to a pdf. introduced as an inconvenience / bug


The latest set of security updates on Ubuntu seems to have jacked up the imagemagick settings.

Have to do the change suggested in the following tip from Ubuntu questions.

https://askubuntu.com/questions/1081695/error-during-converting-jpg-to-pdf

Problem:

Each time I want to convert jpg file to pdf by this command
convert *.jpg pictures.pdf
I have this error message:
convert: not authorized `pictures.pdf' @ error/constitute.c/WriteImage/1028.
 
Solution as of Oct 7 2018
 
This problems comes from a security update: https://launchpad.net/ubuntu/+source/imagemagick/8:6.8.9.9-7ubuntu5.13
Someone reported it as a bug: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563
As a temporary fix, I edited /etc/ImageMagick-6/policy.xml and changed the PDF rights from none to read|write there. Not sure about the implications, but at least it allows me to get things done.
 
copy original, comment out, then edit copy to add read|write

this is from version 6.  Version 7 combines them into a single statement for pattern= clause.
  <!-- <policy domain="coder" rights="none" pattern="PDF" /> -->
  <policy domain="coder" rights="read | write" pattern="PDF" />

Another reference



--30--

Thursday, October 11, 2018

windows 10 configuration and setup


Timeline disable

Settings -> Privacy -> Activity History-> clear
   Let Windows collect my activities from this PC
   Let Windows sync my activities from this PC to the cloud

Under “Show activities from accounts,” turn off the toggle switch for all your accounts.

Disable this so pages don't pop up in history when you are switching around.  No way to suppress this, so disable it the only way.


--30--

Monday, October 8, 2018

SpaceX



https://www.spacex.com/news/2018/10/07/saocom-1a-mission

video on youtube
Saocom 1A SpaceX

Video of the launch from about first stage separation and re-entry burn.

I'm leaving this here, as this is what blogspot does with a video.  view on youtube link above.
Blogspot's video apparently is useless.



A few photos of the MECO and first stage separation maneuver.






--30--

Sunday, September 2, 2018

install RPi Monitor


Raspberry Pi monitor

http://<addr of pi>:8888/ shows status monitor.


The monitor is installed by adding a remote entry to their repository, list, adding a key for it, and
doing an update, then install by apt-get.

The Raspbian distribution doesn't come with a key manager, and an error will occur with the normal RPI site instructions as a result.  Installing the key server is needed first.

apt-get update

sudo apt-get -y install dirmngr

to install the manager.  You will only see an error in later steps if you don't install this.

page with instructions:

https://www.raspberrypi.org/forums/viewtopic.php?t=193536

Install RPi-monitor

... rpi-monitor-installation.html

RPi-Monitor Installation

Installation using the repository

RPi-Monitor is providing a debian repository. This repository will make installation and update of RPi-Monitor accessible with the command apt-get or aptitude.

To use this repository follow the instruction bellow:

Execute the following command to add RPi-Monitor into your list of repository:
 

    sudo wget http://goo.gl/vewCLL -O /etc/apt/sources.list.d/rpimonitor.list

Install my public key to trust RPi-Monitor repository:

 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F


To install RPi-Monitor, execute the following command:

    sudo apt-get update
    sudo apt-get install rpimonitor

To upgrade RPi-Monitor, execute the following command:


    sudo apt-get update
    sudo apt-get upgrade


After installation you should excute the following command to update information about upgradable packages:

  sudo /etc/init.d/rpimonitor update



RPI monitor page (installation)

https://xavierberger.github.io/RPi-Monitor-docs/11_installation.html

To use this repository follow the instruction bellow:
Install RPi-Monitor‘s public key to trust RPi-Monitor repository:
sudo apt-get install dirmngr
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
Execute the following command to add RPi-Monitor into your list of repository:
sudo wget http://goo.gl/vewCLL -O /etc/apt/sources.list.d/rpimonitor.list
To install RPi-Monitor, execute the following command:
sudo apt-get update
sudo apt-get install rpimonitor


another install page

https://rpi-experiences.blogspot.com/p/rpi-monitor-installation.html

-30-

Wednesday, August 29, 2018

mount Raspbian image and modify it


Notes on modifying a raspbian image to add ssh support and
preset for local wifi, so image can be dumped onto sd and be
ready to run.

https://ra...ypi.stackex.../how-can-i-mount-a-raspberry-pi-linux-distro-image

My settings:

fdisk partition info
Device                           Boot  Start      End Sectors  Size Id Type
2018-06-27-...stretch.img1       8192   96663   88472 43.2M  c W95 FAT32 (LBA)
2018-06-27-...stretch.img2      98304 9420799 9322496  4.5G 83 Linux
 
1st partition 512 * 8192 = 4194304
2nd partition 512 * 98204 = 50331648

boot:
mount -v -o offset=4194304 -t vfat 2018-06-27-raspbian-stretch.img /mnt
linux:
mount -v -o offset=50331648 -t ext4 2018-06-27-raspbian-stretch.img /mnt


You can't mount the image as a whole because it actually contains two partitions and a boot sector. However, you can mount the individual partitions in the image if you know their offset inside the file. To find them, examine the image as a block device with fdisk -l whatever.img. The output should include a table like this:
Device         Boot     Start       End  Blocks  Id System
whatever.img1            8192    122879   57344   c W95 FAT32 (LBA)
whatever.img2          122880   5785599 2831360  83 Linux
These are the two partitions. The first one is labelled "FAT32", and the other one "Linux". Above this table, there's some other information about the device as a whole, including:
Units: sectors of 1 * 512 = 512 bytes
We can find the offset in bytes by multiplying this unit size by the Start block of the partition:
  • 1st partition 512 * 8192 = 4194304
  • 2nd partition 512 * 122880 = 62914560
These can be used with the offset option of the mount command. We also have a clue about the type of each partition from fdisk. So, presuming we have directories /mnt/img/one and /mnt/img/two available as mount points:
mount -v -o offset=4194304 -t vfat whatever.img /mnt/img/one
mount -v -o offset=62914560 -t ext4 whatever.img /mnt/img/two
If you get an "overlapping loop" error here, your version of mount requires you to specify the size as well as the offset of the first partition. Unmount that, and use the number of blocks (57344) * 512 (= 29360128):
mount -v -o offset=4194304,sizelimit=29360128 \
    -t vfat whatever.img /mnt/img/one  
The second partition doesn't need a sizelimit since there's nothing after it in the image.
You can now access the two partitions. If you do not intend to change anything in them, use the -r (read-only) switch too. If you do change anything, those changes will be included in the .img file.
Note that the first partition is probably mounted on /boot in the second partition when the system is running.

-30-

Friday, July 20, 2018

chromecast type operation to a pi from a phone


https://pimylifeup.com/raspberry-pi-chromecast/
Raspberry Pi Chromecast
In this Raspberry Pi Chromecast tutorial, we will be showing you how you can set up your Raspberry Pi to act as a Chromecast device. While we can’t implement the same protocol that Chromecast relies on we can replicate this on the Raspberry Pi.
We replicate its behavior by using two key pieces of software on the Raspberry Pi. The first of these pieces of software is omxplayer. This software handles the video and audio files that are cast to our Raspberry Pi.
Our second piece of software is the OpenMax, Image viewer. We utilize this piece of software to handle images sent to the device.
Lastly, we rely on an Android application called Raspicast. This application is what we will utilize to cast videos, songs, and images to the Raspberry Pi.
While this setup does have a lot of similarities to Chromecast it’s important to remember that it isn’t Chromecast. There are some functionalities that the Raspicast software can’t do but Chromecast can.

Equipment List

Below are all the pieces of equipment that we made use of for this Raspberry Pi Chromecast tutorial.
Recommended:
Raspberry Pi 2 or 3
Micro SD Card
Ethernet Cord (Recommended) or Wifi dongle (Pi 3 has Wifi inbuilt)
Android powered mobile phone or tablet
Optional:
Raspberry Pi Case

Setting up Raspbian to operate as a Chromecast

1. Now before we get started with setting up our Raspberry Pi as a Chromecast-like device, we must first ensure that our Raspberry Pi is actually up to date and that we have the latest package list.
We can update our Raspberry Pi by running the following two commands on it.
sudo apt-get update
sudo apt-get upgrade
2. For this tutorial, we will require to use GIT and Make. While these packages should be pre-installed on Raspbian, we will run the command below just to make sure they are.
To ensure this is installed just run the following command on the Raspberry Pi.
sudo apt-get install git make -y
3. With our Raspberry Pi now up to date, we need first to make sure we have OMXPlayer installed, while Raspbian usually comes with this installed we will make sure it exists anyway.
The reason we need OMXPlayer is so that it can handle video and audio processing for any video or audio files that we cast to our Raspberry Pi Chromecast.
One advantage of OMXPlayer to other video and audio players is that it was designed specifically for the Raspberry Pi’s GPU meaning it offers some of the best performance, something that is critical for any files that are cast.
Run the following command to install OMXPlayer on to your Pi.
sudo apt-get install omxplayer -y
4. With OMXPlayer now installed to our Raspberry Pi, we need to move onto setting up the next piece of the pie. While we now have a piece of software ready that can handle our video and audio files we still need something that can handle images.
For the task of handling images on our Raspberry Pi Chromecast, we will be installing a piece of software that is called OpenMax Image Viewer.
OpenMax Image Viewer is a must for this project as it is a GPU accelerated image viewer explicitly designed for the Raspberry Pi’s GPU, meaning we can display any images as fast as possible and reduce the load on the Raspberry Pi’s CPU.
To begin the process of setting up OpenMax Image Viewer, we must first clone its code repository from Github.
Just run the following two commands on your Raspberry Pi to clone this repository to your Raspberry Pi.
cd ~
git clone https://github.com/HaarigerHarald/omxiv.git
5. With the OpenMax Image viewers code now cloned to our Raspberry Pi, we must now install a couple more packages.
These two packages that we need are libjpeg8-dev and libpng12-dev. These packages contain development libraries for the PNG format and the JPEG format, both which are required to compile the code.
Let’s download and install these packages to our Raspberry Pi by running the following command.
sudo apt-get install libjpeg8-dev libpng12-dev
Note: If for some reason Raspbian fails to find the packages, try reunning sudo apt-get update.
6. We can now finally proceed on to the steps to compiling and installing OpenMax Image viewer to our Raspberry Pi Chromecast device.
To start off, we must first change into the directory where we cloned our code, do this by running the following command on our Raspberry Pi.
cd ~/omxiv
7. Now that we are in the right directory we need to initialize the compiling process now. Compiling will give us the files we need to run the OpenMax Image Viewer software for our Raspberry Pi Chromecast device.
Thanks to the make software, compiling the code is a very simple and straightforward process.
To do this run the following two commands on the Raspberry Pi.
make iclient
make
8. With the OpenMax Image Viewer now compiled, there is one last command we must utilize.
This last command is what will setup OpenMax on our Raspberry Pi so that it is available to the general operating system.
Type the following command into the terminal on your Raspberry Pi, and you will be all set to proceed to the next section of our guide.
sudo make install
9. Now the last thing we need to do is grab our Raspberry Pi’s local IP address.
Run the following command to grab to do it, make sure the ‘I‘ is capitalized otherwise this command won’t work correctly.
hostname -I

Using Raspicast to cast to the Raspberry Pi

1. With our Raspberry Pi now setup to act like a Chromecast, we now need to download an app to our Android device.
This application is Raspicast. Raspicast is the piece of software that will allow us to cast images and videos from our Android devices to the Raspberry Pi.
Either search up “Raspicast” on the Google Play Store or go to the following URL to go directly to the Raspicast on your Google Play from this link.
Download, install and run the Raspicast application.
2.  You should now be greeted with the following screen. This screen will ask you to enter your SSH details as it will use these to talk to your Raspberry Pi.
If you haven’t already set up SSH on your Raspberry Pi, then you should do this now as it is required for the Raspicast software to talk with it.
Raspicast Screenshot
2. Once you have entered the correct information, you should now be able to cast videos, song, and images from your Android device to the Raspberry Pi.
We hope by the end of this Raspberry Pi Chromecast tutorial you should now be able to cast any video, images or audio files from your phone to your Raspberry Pi like a Chromecast using the Raspicast software. If you have any thoughts, feedback or anything else then be sure to head over to the forums

Saturday, July 7, 2018

Orange Pi Zero serial port


Orange Pi Zero ports in the small cube system have a serial port on the power port (micro USB) as well as power.

The only thing I've found so far says that the baud rate is 115200 baud.  On the linux system I hooked it to turned out to connect at 9600 baud.

http://www.orangepi.org/Docs/LogintotheOrangePi.html

Otherwise this note on connecting (I'm guessing they didn't use an RPI 3+) to another SOC board is okay.

minicom connects fine.

The other note on the raspian system running on the RPI 3+ is that the device is /dev/ttyAMA0

Also, have not figured out how to get the current raspian to come up on this system w/o a network cable attached.

Wifi is connected manually with the cli interface instructions elsewhere and works once up.  But from a power on, the system is stuck somewhere with no console or other output on the ttyAMA0 port to indicate what is stuck.

and if one lets the orangepizero come to an end (blinking that is on the RJ45 ports, plugging in a live network doesn't get it to continue to successful boot.



Wednesday, July 4, 2018

system sources, remote and local

Intel NUC
   https://www.intel.com/content/.../mini-pcs.html

   NUC6iSYK
      http://Intel.../documents/boardsandkits/NUC6i5SYB_NUC6i3SYB_TechProdSpec.pdf

Orange Pi
   http://www.orangepi.org/downloadresources/

   Zero
      https://www.armbian.com/orange-pi-zero/

Friendly Arm
    http://wiki.friendlyarm.com/wiki/index.php/Main_Page

   Nano Pi Neo
       http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO
   Nano Pi Neo2
      http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO2
   Nano Pi Neo Dock
      http://wiki.friendlyarm.com/wiki/index.php/1-bay_NAS_Dock_v1.2_for_NanoPi_NEO/NEO2
   NanoPC T4
      http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4 

Solidrun

   Cubox i4pro
      https://www.solid-run.com/downloads/

Raspberry Pi

   Zero
   Zero W
   Raspberrypi 2
   Raspberrypi 3+
      https://www.raspberrypi.org/downloads/raspbian/

Hardkernel
   https://wiki.odroid.com/

   Odroid HC2
      https://wiki.odroid.com/odroid-xu4/os_images/third_party
      https://www.hardkernel.com/main/products/prdt_info.php?g_code=G151505170472 

display operating system versions


windows systems

system info msc page

linux

armbian    /etc/armbian-release


Tuesday, June 26, 2018

run program on windows minimized



Manual method, set from "normal" "maximized" "minimized' in properties.
https://www.cnet.com/how-to/how-to-automatically-start-a-program-minimized-in-windows/

launch via command prompt minimized

https://stackoverflow.com/questions/23057448/open-program-minimized-via-command-prompt

To open notepad in minimized mode:
start /min "" "C:\Windows\notepad.exe"
To open MS word in minimized mode:
start /min "" "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE"



-30-

windows 10 startup at first logon



We only need to have our program running after the first user login, so no need for an earlier start.  Also none of the functions are required to be present when the user is not logged on, so logoff killing all applications, including this one is okay.

The start menu example:

C:\Users\jws\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

is sufficient for starting the fso.  shortcut to app needs to be installed there to launch

manual way to do it:
https://www.windowscentral.com/how-launch-apps-automatically-during-startup-windows-10

shell:startup

shell:AppsFolder

will bring up installed apps and startup folder (abs path above) for the user it is run on.

application is run w/o admin privileges so should be find with just a shortcut, not rights elevation.

https://www.howtogeek.com/208224/how-to-add-programs-files-and-folders-to-system-startup-in-windows-8.1/

With registry entries

https://winaero.com/blog/how-to-add-or-remove-startup-apps-in-windows-10/

To add or remove startup apps for the current user from the Registry, you need to follow the instructions below:
  • Open Registry Editor.
  • Go to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
  • There you will find startup items for current users which are stored in the Registry:
If we need runonce vs. run always.

https://docs.microsoft.com/en-us/windows/desktop/SetupApi/run-and-runonce-registry-keys

The Windows registry includes the following four keys:
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
 complaint from github about Installshield

https://github.com/HandBrake/HandBrake/issues/414




-30-

Monday, June 25, 2018

crontab examples



example:  to run a program every 5 minutes

*/5 * * * * /root/checkmotion/checkmotion.sh

https://crontab.guru/every-5-minutes 

https://crontab.guru/examples.html

crontab template

*/5      *       *       *       *
Minute   hour    day     month   day
                (month)         (week)


*           any value
,           value list separator
-           range of values
/           step values
@yearly     (non-standard)
@annually   (non-standard)
@monthly    (non-standard)
@weekly     (non-standard)
@daily      (non-standard)
@hourly     (non-standard)
@reboot     (non-standard)


to edit crontab;

export EDITOR=vi
crontab -e

(or editor of choice)

-30-

Sunday, June 24, 2018

raspberry pi bluetooth audio


as of 10/2017 versions of raspbian, it appears that bluetooth raspberry pi bluetooth adio doesn't work.

A lot of the thread below is for any bluetooth (probably adding a USB adapter for the RPI).

My attempt is for Raspberry Pi Model 3 B which has bluetooth  on the board.

Select audio device by right clicking the gui symbol and selecting audio device.

https://www.raspberrypi.org/forums/viewtopic.php?t=192859

https://raspberrypi.stackexchange.com/questions/53408/automatically-connect-trusted-bluetooth-speaker

https://www.raspberrypi.org/magpi/bluetooth-audio-raspberry-pi-3/

note after all the audio crap, VLC playback of video produces a black box, no video on the 7" raspberry pi screen frame buffer.  Not so useful.

bluetoothctl
scan on
<search for device>
copy device address
pair <device>
connect <device>

should show connected on gui bluetooth gui.

right click the gui audio, and bluetooth device should be available as a device for audio.

-30-

Saturday, June 23, 2018

Add On Screen Keyboard to Raspberry Pi 7' or other screen


if a touch screen rpi is large enough to use an on screen keyboard, this is how to install and enable it.

https://www.raspberrypi.org/forums/viewtopic.php?t=14719

The discussion above mentions the matchbox keyboard, and doesn't mention installing it.

As of the April 2018 raspbian, the matchbox keyboard is not included in the installed goods.  And for good reason, since it is only useful for touch screens.  It could be used with a mouse only system, but would of course be a bit painful.

to install it:
sudo apt-get -y install matchbox-keyboard

to execute it:
sudo matchbox-keyboard

To add it to a desktop

create a file on the Desktop called keyboard.sh

write in the file
#!/bin/bash
matchbox-keyboard

Then open a terminal and
write :
cd Desktop
chmod +x keyboard.sh

Now you can double click the file and your keyboard will appear.

-30-

Wednesday, June 20, 2018

friendlyarm nanopi t4 with rockchip 3399


Notes about setting up Lubuntu bits on the t4 board

login is pi, default pi

http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4#Connect_NVME_SSD_High_Speed_Hard_Disk_to_T4

Connect NVME SSD High Speed Hard Disk to T4

Connect a NVME SSD hard disk to NanoPC-T4's M.2 interface, initialize and automatically mount the SSD by running the following commands. Before proceed turn off your T4 and connect an SSD to your T4. Power on your T4 and open a command line utility(go to top left of the GUI and enter System Tools -> LXTerminal) or SSH to your T4.

We suggest you switch to "root" by running the following command:
su -
The password for "root" is "fa".

Detection of SSD

root@FriendlyELEC:~# cat /proc/partitions 
major minor  #blocks  name
   1        0       4096 ram0
 259        0  125034840 nvme0n1
If there is a nvme0n1 device node it means an SSD is recognized by T4.

Partition of SSD

To mount an SSD under Linux we re-partition it as one section by running the following command:
(echo o; echo n; echo p; echo 1; echo ""; echo ""; echo w; echo q) | fdisk /dev/nvme0n1
If you want to re-partition it to multiple sections you can run "fdisk /dev/nvme0n1". For more detail about this command refer to the fdisk's manual.

Format Section to EXT4

After an SSD is successfully partitioned you can check its sections by running "cat /proc/partitions". The image provided treats a PCIe nvme device's sections as an eMMC's sections you will find that an SSD has some small sections.

We can check the "blocks" column and the biggest section is available for users. The /dev/nvme0n1p7 section is used to store data:
root@FriendlyELEC:~# cat /proc/partitions 
major minor  #blocks  name
   1        0       4096 ram0
 259        0  125034840 nvme0n1
 259        1       4096 nvme0n1p1
 259        2       4096 nvme0n1p2
 259        3       4096 nvme0n1p3
 259        4      12288 nvme0n1p4
 259        5      32768 nvme0n1p5
 259        6      32768 nvme0n1p6
 259        7  124932440 nvme0n1p7

The following command formats a section to ext4:
mkfs.ext4 /dev/nvme0n1p7

Auto Mount SSD on System Startup

Before we mount an SSD's section you need to know its Block ID. You can check it by running "blkid":
blkid /dev/nvme0n1p7
/dev/nvme0n1p7: UUID="13fb682e-ef40-4c71-b98b-3d17403e1205" TYPE=“ext4"
Add a "Block ID" to "/etc/fstab" and here is what it looks like
UUID=<Block ID> /media/nvme ext4 defaults 0 0
You need to replace <Block ID> with the UUID obtained by running "blkid". To mount the SSD in our example we made the "/etc/fstab" file as follows:
UUID=13fb682e-ef40-4c71-b98b-3d17403e1205 /media/nvme ext4 defaults 0 0
We want to mount an SSD to "/media/nvme" but this directory doesn't exist. Therefore we create it and change its access right by running the following commands:
mkdir /media/nvme
chmod 777 /media/nvme
Run "mount" to check if the SSD is mounted successfully:
mount /media/nvme
You can reboot your T4 to check if your SSD will be automatically mounted:
poweroff

-30-

Monday, June 11, 2018

How to find out port usage program on windows

On linux, one can type

sudo netatat -aopn

to get a list of processes which are in operations with ports on the system.  The "p" parameter required superuser access to get the pid.

On Windows 10 (and perhaps others) one can do the same

Using an administrator privilged cmd window, you get the same access as superuser for accessing ports

netstat -abno in that window will show all the processes on the system and their pids

To determine the process name associated with each pid

tasklist

will do that.  One can locate a specific task with for example:

tasklist /fi "pid eq 4444"


https://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows
https://stackoverflow.com/questions/27211427/find-process-name-by-its-process-id
-30-

Thursday, June 7, 2018

Force bios mode during boot on Vmware player


Vmware player has notoriously made it impossible to catch the bios boot for some reason, somehow thinking that will make one buy vmware workstation, maybe.

This is how to force the boot on vmware player as of jun 2018, anyway

Edit the virtual machines VMX file and add this

to make it easier to access the BIOS setup screen, edit the configuration (.vmx) of the virtual machine and add or edit one of these options:
  • bios.forceSetupOnce = "TRUE"

    This forces entry to the BIOS setup at startup.

  • bios.bootDelay = "xxxx"

    This adds a delay to the initial POST screen, showing it for longer and giving you more time to access the BIOS setup, where xxxx is the number of milliseconds to show the POST screen (There are 1000 milliseconds in a second.). The maximum value for the boot delay is 10000 milliseconds or 10 seconds.

https://kb.vmware.com/s/article/1004129

-30-

Sunday, May 27, 2018

Superfetch disk usage, enable / disable service notes


superfetch is a memory management feature dating from windows vista.  apparently manages memory contents.

In some cases it goes into a loop reading memory, and pegs the disk utilities. 

This link tells how to disable it.  May not be of any use on systems with SSD anyway.

https://www.tenforums.com/tutorials/99821-enable-disable-superfetch-windows.html

1. Press the Win+R keys to open Run, type services.msc into Run, and click/tap on OK to open Services.

Find superfetch, and enable / disable it.  When using any of these, the start mode should be set to disabled, and the service itself stopped if it is running.  Both actions have to be performed.

Interesting example from command line.  Must be from elevated privilege command prompt

) Copy and paste the command below into the elevated command prompt, press Enter, and go to step 5 below. (see screenshots below)

sc config "SysMain" start=auto & sc start "SysMain"

Copy and paste the command below into the elevated command prompt, press Enter, and go to step 5 below. (see screenshots below)
sc stop "SysMain" & sc config "SysMain" start=disabled


Elevated privilege powershell

Set-Service -Name "SysMain" -StartupType Automatic -Status Running

Stop-Service -Force -Name "SysMain"; Set-Service -Name "SysMain" -StartupType Disabled

-30-

Monday, May 7, 2018

feeding giraffes at the zoo



Visit to feed the giraffes and other critters on 4/21/2018.

Barb feeding her turn.














gif movie feeding the critter

https://gph.is/2FSUfx2

wifey










-30-