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--