Rugged, low-cost Bay Trail SBC runs Linux

Nov 13, 2018

VersaLogic released a rugged, PC/104-Plus form-factor “SandCat” SBC with a dual-core Intel Bay Trail SoC, -40 to 85℃ support, plus SATA, GbE, and mini-PCIe and more, starting at $370 in volume.

VersaLogic has spun a simpler, more affordable alternative to its BayCat single board computer, which similarly offers a Linux supported Intel Bay Trail SoC in a PC/104-Plus form-factor board. The rugged new SandCat is limited to a dual-core, 1.33GHz Atom E3825, and offers a somewhat reduced feature set, but launches at less than half the price of the dual-core version of the BayCat, selling at $370 in volume.

SandCat (left) and detail view

The venerable

PC/104-Plus

spec features a combination of ISA- and PCI-based self-stacking bus expansion. VersaLogic has used it on other SBCs, including one of the boards on its double-board, Kaby Lake based

Liger

The SandCat supports Linux, Windows, and other x86 platforms including VxWorks and QNX. Tested Linux distros include Ubuntu 14.04 LTS and Knoppix 7.4.2.

The 108 x 96mm SandCat has a tall 42mm profile due to its standard heat sink. The fanless SBC has an industrial -40 to 85℃ operating range, and features MIL-STD-202G rated vibration (Methods 204 and 214A) and shock resistance (Method 213B), as well as tolerance of humidity and thermal shock. The board also provides long-term, typically 10-year, availability.

The SandCat is available with up to 8GB DDR3L-1067 RAM via a single socket and offers a 3Gbps SATA II port. Like most PC/104 family boards, the SandCat doesn’t offer much in the way of real-world ports. You get a mini-DisplayPort with 1920 x 1080 and audio support and an optional adapter card for LVDS touch-panels.

SandCat (left) and sample mini-PCIe add-on modules

The SandCat is equipped with a GbE interface with remote boot support, as well as 4x USB 2.0, 2x RS-232/422/485, 8x DIO, and single I2C and audio interfaces. Expansion features include a full-length mini-PCIe slot with optional WiFi, GPS, mSATA, GbE, and I/O modules, as well as dual PC/104-Plus interfaces, with support for both ISA and PCI based modules.

There’s a 5V input with ACPI 3.0 sleep modes. Other features include hardware monitoring, support for RTC backup battery, and the VersaAPI board I/O interface. A variety of optional cables and other add-ons are available, and VersaLogic provides extensive hardware and software customization services for 100+ volume orders.

Further information

The SandCat (VL-EPM-39EBK) is available now with quantity pricing starting at $370. More information may be found in VersaLogic’s SandCat announcement and on the SandCat product page.

Source

Install Eclipse on Ubuntu Using Command Line

Install eclipse oxygen ubuntu

Eclipse is a free integrated development environment IDE which is used by programmers around to write software mostly in Java but also in other major programming languages via Eclipse plugins.

Eclipse is not only good at developing applications but you can use its collection of tools to easily enhance your Eclipse desktop IDE, including GUI builders and tools for modeling, charting, reporting testing, and more.

To install Eclipse on Ubuntu, follow the steps below:

Eclipse requires Java JDK to be installed on the system you want to use. At this time, only Java JDK 8 is fully compatible.. to install JDK, use the steps below:

The easiest way to install Oracle Java JDK 8 on Ubuntu is via a third-party PPA. To add that PPA, run the commands below

sudo add-apt-repository ppa:webupd8team/java

After running the commands above, you should see a prompt to accept the PPA key onto Ubuntu. accept and continue

Now that the PPA repository has been added to Ubuntu, run the commands below to download Oracle Java 9 installer. the installer should install the latest Java JDK 9 on your Ubuntu machines.

sudo apt update
sudo apt install oracle-java8-installer

When you run the commands above you’ll be prompted to access the license terms of the software. accept and continue.

Set Oracle JDK8 as default, to do that, install the Oracle-java8-set-default package. This will automatically set the JAVA env variable.

sudo apt install oracle-java8-set-default

The command above will automatically set Java 9 as the default… and that should complete your installation, you can check your java version by running following command.

javac -version

Now that Java JDK 8 is installed, got and download Eclipse Oxygen IDE package for your systems. the link below can be used to get it.

Download Eclipse


Extract the downloaded package to the directory/opt using the commands below. by default Eclipse package should be downloaded into the folder~/Downloads of your home directory.

Use the commands below to extract the content in the ~/Downloads folder. The next line launches the installer…

tar xfz ~/Downloads/eclipse-inst-linux64.tar.gz
~/Downloads/eclipse-installer/eclipse-inst

Select the package IDE you want to install and continu.

Use the onscreen instructions to complete the installer. Accept the default installation directory and continue.

Next, accept the license terms and continue. wait for Eclipse installer to download and install all the packages.

After downloading the installer should complete. all you have to do is launch the program.

Now that Eclipse is downloaded and installed, create a launcher for the application. to do that, run the commands below.

nano .local/share/applications/eclipse.desktop

Next, copy and paste the content below into the file and save.

[Desktop Entry]
Name=Eclipse JEE Oxygen
Type=Application
Exec=/home/smart/eclipse/jee-oxygen/eclipse/eclipse
Terminal=false
Icon=/home/smart/eclipse/jee-oxygen/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Replace the highlighted username (smart) with your own account name. also, the Exec = location and icon.xpm should depend on where Eclipse got installed on your system.

Save the file and exit.

You should then have a launcher for Eclipse JEE Oxygen. open Dash or the activities overview and search for Eclipse and then launch.

To create additional IDEs, you must repeat step 3 by launching the installer again and created an application launcher for that IDE.

When the app launches, you should be able to configure it for your environment.

Read Also:

Source

Red Hat Releases Red Hat OpenStack Platform 14 and a New Virtual Office Solution, ownCloud Enterprise Integrates with SUSE Ceph/S3 Storage, Run a Linux Shell on iOS with iSH and Firefox Launches Two New Test Pilot Features

News briefs for November 13, 2018.

Red
Hat this morning released Red Hat OpenStack Platform 14
, delivering “enhanced
Kubernetes integration, bare metal management and additional automation”. According to the press
release, it will be available in the coming weeks via the Red Hat Customer Portal and as a component of both Red Hat Cloud Infrastructure and
Red Hat Cloud Suite.

Red
Hat also announced a new virtual office solution
today. This solution “provides a
blueprint for modernizing telecommunications operations at the network edge via an open,
software-defined infrastructure platform”. Learn more about it here.

ownCloud yesterday announced SUSE Enterprise Storage Ceph/S3 API as a certified storage backend for
ownCloud Enterprise Edition. The press release notes that the “SUSE Ceph/S3 Storage
integration reduces dependency on proprietary hardware
by replacing an organization’s storage infrastructure with an open, unified and
smarter software-defined storage solution”. For more information on ownCloud, visit here.

There’s a new project called iSH that lets you run a Linux shell on an iOS device. Bleeping
Computer reports
that the project is available as a TestFlight beta for iOS devices, and it is
based on Alpine Linux. It allows you to “transfer files, write shell scripts, or simply to use Vi to
develop code or edit files”. You first need to
install the TestFlight app, and then you can start
testing the app by visiting this page:
https://testflight.apple.com/join/97i7KM8O
.

The Firefox Test Pilot Team announces two new features: Price Wise and Email Tabs. Price Wise lets
you add products to your Price Watcher list, and you’ll receive desktop notifications whenever the price
drops. With Email Tabs, you can “select and send links to one or many open tabs all within Firefox in
a few short steps, making it easier than ever to share your holiday gift list, Thanksgiving recipes or
just about anything else”. See the Mozilla
Blog
for details.

Source

Bash For Loop | Linuxize

Loops are one of the fundamental concepts of programming languages. Loops are handy, if you want to run series of commands over and over again, until a condition situation is reached.

In scripting languages such as Bash, loops are useful for automating repetitive tasks.

There are 3 basic loop constructs in Bash scripting, for loop, while loop, and until loop.

In this tutorial we will cover the basics of for loops in Bash as well as the break and continue statements to alter the flow of a loop.

The Standard Bash For Loop

The for loop iterates over a list of items and performs the given set of commands.

The Bash for loop takes the following form:

for item in [LIST]
do
[COMMANDS]
done

The list can be a series of strings separated by spaces, range of numbers, output of a command, an array, and so on.

Loop over strings

In the example below the loop will iterate over each item of the list of strings and the variable element will be set to the current item.

for element in Hydrogen Helium Lithium Beryllium
do
echo “Element: $element”
done

The loop will produce the following output:

Element: Hydrogen
Element: Helium
Element: Lithium
Element: Beryllium

Loop over a number range

You can use the sequence expression to specify a range of numbers or characters by defining a start and the end point of the range. The sequence expression takes the following form:

In the example below the loop will iterate through all numbers from 0 to 3.

for i in
do
echo “Number: $i”
doneNumber: 0
Number: 1
Number: 2
Number: 3

Starting from Bash 4, it is also possible to specify an increment when using ranges. The expression takes the following form:

for i in
do
echo “Number: $i”
doneNumber: 0
Number: 5
Number: 10
Number: 15
Number: 20

Loop over array elements

You can also use the for loop to iterate over all elements in an array:

In the example below we are defining an array BOOKS and iterating over each element of the array.

BOOKS=(‘In Search of Lost Time’ ‘Don Quixote’ ‘Ulysses’ ‘The Great Gatsby’)

for book in “$”; do
echo “Book: $book”
doneBook: In Search of Lost Time
Book: Don Quixote
Book: Ulysses
Book: The Great Gatsby

The C-style Bash for loop

The syntax of the C-style for loop is taking the following form:

for ((INITIALIZATION; TEST; STEP))
do
[COMMANDS]
done

The INITIALIZATION part is executed only once when the loop starts. Then, the TEST part is evaluated. If it is false the for loop is terminated. If the TEST is true, commands inside the body of for loop are executed and the STEP part is updated.

In the following code the loop stars by initializing i = 0, then before each iteration checks if i ≤ 10. If true it prints the current value of i and increment the variable i by 1 (i++) otherwise the loop terminates.

for ((i = 0 ; i <= 1000 ; i++)); do
echo “Counter: $i”
done

The the loop iterates 1001 times and will produce the following output:

Counter: 0
Counter: 1
Counter: 2

Counter: 998
Counter: 999
Counter: 1000

Break and Continue Statements

The break and continue statements can be used to control the loop execution.

Break Statement

The break statement terminates the current loop and passes program control to the statement that follows the terminated statement. It is usually used to terminate the loop when a certain condition is met.

In the following example, the execution of the loop will be terminated once the current iterated item is equal to ‘Lithium’.

for element in Hydrogen Helium Lithium Beryllium; do
if [[ “$element” == ‘Lithium’ ]]; then
break
fi
echo “Element: $element”
done

echo ‘All Done!’Element: Hydrogen
Element: Helium
All Done!

Continue Statement

The continue statement exits the current iteration of a loop and passes program control to the next iteration of the loop.

In the following example, we are iterating through a range of numbers and when the current iterated item is equal to ‘2’ the continue statement will cause execution to return to the beginning of the loop and to continue with the next iteration.

for i in ; do
if [[ “$i” == ‘2’ ]]; then
continue
fi
echo “Number: $i”
doneNumber: 1
Number: 3
Number: 4
Number: 5

Bash For Loop Examples

Renaming files with spaces in the filename

The following example shows how to use the Bash for loop to rename all of the files in the current directory with a space in its names by replacing space to underscore.

for file in * *; do
mv “$file” “$”
done

Let’s break down the code line by line:

  • The first line creates a for loop and iterates through a list of all files with a space in its name. The expression * * creates the list.
  • The second line applies to each item of the list and moves the file to a new one replacing the space with an underscore (_). The part $ is using the shell parameter expansion to replace a pattern within a parameter with a string.
  • done indicates the end of the loop segment.

Changing file extension

The following example shows how to use the Bash for loop to rename all files ending with .jpeg in the current directory by replacing the file extension from .jpeg to .jpg.

for file in *.jpeg; do
mv — “$file” “$.jpg”
done

Let’s analyze the code line by line:

  • The first line creates a for loop and iterates through a list of all files edging with .jpeg.
  • The second line applies to each item of the list and moves the file to a new one replacing .jpeg with .jpg. The part $ is using the shell parameter expansion to delete the .jpeg part from the filename.
  • done indicates the end of the loop segment.

Conclusion

By now you should have a good understanding of how to use the bash for loop to iterate through lists.

If you have any question or feedback feel free to leave a comment.

Source

Samsung’s Linux on DeX turns your phone into a Linux computer [APK Download]

Samsung debuted DeX last year to make your phone behave a bit more like a computer when plugged into a monitor. This year, DeX functionality has improved so you don’t need to expensive custom dock, just a video cable. At Samsung’s developer conference last week, it announced DeX would also get full Linux support. It’s only officially available to those in the beta program, but we’ve got the APK.

To use Linux on DeX, you’ll need an updated Samsung device that supports DeX. Currently, only the Note 9 and Tab S4 work with the beta. Install the Linux on DeX app to get started. This is just a few megabytes because it’s not a full Linux distro (you’ll download that later).

Booting into DeX isn’t any different—that’s still just a modified Android UI. However, you can open the Linux on DeX app to download a system image. Samsung has partnered with Ubuntu to make downloads readily available on your device, but you can also grab the 3.6GB image on your PC and transfer it over. When you want to access Linux tools, just launch Ubuntu from the Linux on DeX app. it has a full desktop, a terminal, and an assortment of built-in tools. To clarify: We’ve tested this successfully on a Tab S4. The screen below was captured on that tablet in Linux.

This is a developer-focused feature, which shouldn’t come as a surprise. It’s Linux, after all. It’s also a beta, so don’t be surprised if things are a little broken. Grab the installer from APK Mirror, and sign up for the beta if you want.

Source

16-Way AMD EPYC Cloud Benchmark Comparison: Amazon EC2 vs. SkySilk vs. Packet

With last week Amazon Web Services rolling out AMD EPYC cloud instances to EC2, I figured it would be an interesting time for a fresh benchmark look at how the AMD Linux cloud performance compares from some of the popular cloud providers. For this article are sixteen different instances benchmarked while looking at the raw performance as well as the value on each instance type relative to the benchmark performance and time consumed for the on-demand spot instancing. EPYC instances were tested from Amazon EC2, Packet.com, and SkySilk.

 

 

The Amazon EC2 EPYC instances launched last week range from the m5a.large at two vCPUs and 8GB of RAM up to the m5a.24xlarge at 96 vCPUs and 384 GB of memory. For this article we tested the m5a.large, m5a.xlarge, m5a.2xlarge, and m5a.12xlarge instances. Unfortunately we have yet to have access to the m5a.24xlarge instance type so we were unable to test that highest-end tier that is restricted. All of the AMD EPYC instances on EC2 are backed by EPYC 7571 processors at 2.5GHz. EC2 on AMD hardware makes use of the Kernel-based Virtual Machine (KVM). It is interesting to note that “generic” Retpolines are used for their Spectre V2 mitigation rather than the tuned “AMD” Retpolines, at least that was the case with all of our testing and using the Ubuntu 18.04 images.

 

 

SkySilk launched back in September with AMD EPYC and Intel Broadwell cloud options. The current EPYC instances range from a 1 vCPU “Pico” option with 512MB RAM up through their “ultimate” option with 40 vCPUs and 320GB of RAM. All of the SkySilk EPYC cloud instance types were available and tested from the small 2 vCPU option (similar to EC2 m5a.large) through the 40 vCPU highest-end option. Thanks to SkySilk for providing us with free access to their cloud for benchmarking purposes. SkySilk’s EPYC instances are currently using AMD’s highest-end EPYC 7601 processors that have the 2.2GHz base clock frequency and 2.7GHz all-core boost clock speed. SkySilk’s cloud makes use of LXC Linux containers instead of KVM/Xen. The SkySilk EPYC hardware had full AMD Retpolines with IBPB and also Spectre V4 mitigation with SSB disabled.

 

 

The third AMD EPYC “cloud” contender is Packet.com. This happens to be our first time benchmarking Packet’s options. With Packet it’s actually bare metal access but at cloud pricing. Currently their only available EPYC instance is the c2.medium.x86 that provides an AMD EPYC 7401p at 24 cores / 48 threads with 2.2GHz clock speed, 64GB of RAM, and 960 GB of storage… All for $1.00 USD per hour! The Packet $1 per hour plan also provides 20 Gbps bonded networking and the storage is made up of four SSDs. The pricing was actually a shock and after creating a new account, was actually as good as it seemed and the server had full AMD Retpolines with IBPB.

 

 

The Amazon EC2 / SkySilk / Packet benchmarking was all done using their default Ubuntu 18.04 LTS server images with the Linux 4.15 kernel, EXT4 file-system, and GCC 7.3.0 compiler.

 

 

All of this benchmarking of these various clouds were carried out using the Phoronix Test Suite. This included the raw benchmarking in a fully-automated and standardized manner as well as monitoring the time for each test and calculating the performance-per-dollar of each cloud. Recent versions of the Phoronix Test Suite support a COST_PERF_PER_HOUR= environment variable where when entering the on-demand/spot hourly pricing can then generate these complementary metrics in a very easy to interpret manner.

 

 

Thanks to the Phoronix Test Suite being open-source and publicly available, if you wish to see how your own cloud(s) or bare metal Linux server performance compares to the results about to be shown in this article, simply install the Phoronix Test Suite and run phoronix-test-suite benchmark 1811127-SK-AMDEPYCCL13 for your own fully-automated, side-by-side benchmark comparison.

Source

New TOP500 List Led by DOE Supercomputers | Linux.com

The latest TOP500 list of the world’s fastest supercomputers is out, a remarkable ranking that shows five Department of Energy supercomputers in the top 10, with the first two captured by Summit at Oak Ridge and Sierra at Livermore. With the number one and number two systems on the planet, the “Rebel Alliance” vendors of IBM, Mellanox, and NVIDIA stand far and tall above the others.

“Summit widened its lead as the number one system, improving its High Performance Linpack (HPL) performance from 122.3 to 143.5 petaflops since its debut on the previous list in June 2018.”

Sierra’s ascendance pushed China’s Sunway TaihuLight supercomputer, installed at the National Supercomputing Center in Wuxi, into third place. Prior to last June, it had held the top position on the TOP500 list for two years with its HPL performance of 93.0 petaflops. TaihuLight was developed by China’s National Research Center of Parallel Computer Engineering & Technology (NRCPC).

Read more at insideHPC

Source

WP2Social Auto Publish Powered By : XYZScripts.com