ADSENSE

Friday

Earth Day Call to Arms: Skip the Straw

5:16 AM 0 Comments

The United Kingdom is proposing a ban on disposable plastic straws.

With Earth Day coming up this Sunday, advocates are asking everyone to follow suit and skip the straw.

Straws and stirrers are among the top 10 items found in coastal cleanups worldwide, according to the nonprofit Ocean Conservancy, which has been conducting annual trash pickups for more than 30 years.

The group says the ocean is littered with 150 million metric tons of plastic trash, clogging coastlines, ensnaring wildlife and even littering land far from any human settlement.

And each year, another 8 million tons wash in, according to a recent study.

At the Commonwealth Heads of Government Meeting in London on Thursday, U.K. Prime Minister Theresa May announced plans to ban plastic straws, stirrers and cotton ear buds.

May called on other Commonwealth nations to do the same.

Skipping the straw will not solve the problem on its own, acknowledges Nick Mallos, director of the Ocean Conservancy’s Trash Free Seas Program.

“But they are a tangible action that all of us as individuals can take that do add up,” he said.

“It’s also about this mind shift that takes place when you start thinking about, ‘Oh, I don’t need a straw.’” Mallos added. “It cascades into other aspects of your consumer decision-making. Maybe after (skipping) the straw becomes habit, you think about the next step you might be able to take to reduce your waste footprint.”

Nix This Innovative OS for Its Uninviting Complexity

5:16 AM 0 Comments

By Jack M. Germain
Apr 19, 2018 11:19 AM PT

Nix This Innovative OS for Its Uninviting Complexity

NixOS is a modern and flexible GNU/Linux-based distribution that is both archaic to install and maddening to set up.

That combination makes NixOS a reach too far for new users. That result may be an unintended consequence for a Linux operating system that is built around a very novel design approach.

It is far more complex than other innovating options such as Qubes Linux, which is designed for heightened security, and rigid Arch Linux distros that lack a graphical user interface for managing installations.

NixOS has been on my shortlist of Linux distros to try for a while, thanks to numerous requests from readers and colleagues. I was not expecting such a challenge after I survived several reviews of Arch Linux, which is notorious for its high difficulty level for manual installation routines based on a command line interface.

If you are not comfortable typing commands into a terminal window, NixOS is not distro you want to try any time soon. NixOS does nothing to dispell the notion that the Linux OS is for advanced computer geeks only. That assessment clearly fits NixOS.

A well-documented set of installation instructions does little to help resolve error messages when typed commands fail to execute. NixOS is not your typical modern Linux distro that installs from a fully functional live session.

Several hours into this trial-and-error manual installation process, I had a basic desktop up and running. I quit there. I had no use for a Linux distro that a was a dog to install, that was minimalistic with its software, and that required lots of hands-on management.

However, your needs might be different. NixOS does offer some high-level advantages not found in more standardized Linux distros.

NixOS Unwrapped

NixOS started as a research project a few years ago and has grown into a functional operating system with a stiff learning curve for managing system services.

NixOS is an independent Linux distribution developed by the NixOS Foundation based in The Netherlands. It runs on the KDE desktop environment but is powered by its own Nix Package Manager. The latest edition is version 18.03, released April 6.

NixOS has an unusual focus: It is aimed at modernizing system configuration management. The entire operating system, including the kernel, applications, system packages and configuration files, is built by the Nix Package Manager.

Nix isolates all its packages from each other. It uses its own file structure process as well. For instance, this distro does not have /bin, /sbin, /lib or /usr directories in its file structure. All packages are kept in /nix/store instead.

Other featured innovations include reliable upgrades, rollbacks, reproducible system configurations, a source-based model with binaries, and multi-user package management.

Declarative Differences

The package manager fully assembles the OS components from the kernel to software applications and system packages. It also creates highly editable configuration files to meet your specifications.

This means you create your own detailed list of what you want installed and enabled.

NixOS does this via a declarative system configuration model. You describe system configuration items in a configuration file. Nix does everything else to build that specified configuration for you.

The declarative model makes upgrading systems more reliable and mishap-proof. The declarative approach makes duplicating configurations for deployment on multiple machines in different locations a snap.

This process makes upgrades and rollbacks non-destructive. The package management operation cannot overwrite packages in the Nix store. Instead, it adds new versions in different paths.

No time window exists in which some files from the old version are active along with some files from the new version causing a system crash. Even better, since Nix does not overwrite packages, the old versions remain after an upgrade. So you can roll back to the old version any time.

Security and Efficiency

NixOS’ unique structure pays off where security is concerned because it does not install packages in universal locations found in other Linux OSes. Instead, Nix puts applications in package-specific directories.

This approach greatly reduces the risk of incomplete dependencies. Compilers do not search in per-package directories. Each package has a unique identifier that captures all its dependencies stored in a cryptographic hash. So with NixOS, packages build correctly on your system because you specified the dependency exactly.

Another advantage is NixOS’ ability to run multiple versions of an application. You can install multiple versions or variants of a package and run them simultaneously. This eliminates DLL conflicts that occur when different applications have dependencies on different versions of the same package. Because of the hashing scheme, different versions of a package end up in different paths in the Nix store.

Since applications do not interfere with each other, you can upgrade or uninstall an application without fear of breaking other applications. In NixOS these operations never destructively update or delete files that are used by other packages.

Multi-User Safety

NixOS might be your ideal solution in an SMB workplace where you have different users working on the same computer. Non-privileged users can install software securely because you assign each user a different profile with a set of packages in the Nix store.

This profile is integrated into the user’s PATH statement. You get two advantages over other Linux distros: One, when a user unknowingly tries to re-install an existing package, the Nix Package Manager does not build or download the attempted installation again. Two, the package manager makes it impossible for a user to inject a Trojan horse into a package other users might access.

Installing NixOS

You cannot just burn the ISO files onto a DVD and boot into a fully functional live session. Nor can you create a VirtualBox session to try out NixOS. Either way, you must partition and run various commands manually for a full installation.

When the NixOS DVD loads, you have a command line prompt on a blank screen. To start the OS’ display system, enter this command:

# system ctl start display-manager

That loads NixOS’ desktop shell to give you the limited functionality either to install to a hard drive or a virtual machine. Check the instructions carefully, however. Getting the VirtualBox to load NixOS requires a few additional steps.

After a slight delay, the screen will show a multicolored background with three icons. Each one is a step in the installation process.


NixOS installation essentials

The essentials for installing NixOS are the Web-based user manual, the disk partitioning software, and the Konsole’s Command Line Interface.


Shell of an Install

You will see a basic K Plasma desktop layout with access to menus. The menus let you add widgets to the desktop and the panel, even before you do a full installation.

The Plasma desktop is fully engaged. Otherwise, except for the Firefox Web browser, system tools and the settings controls, NixOS is very minimalistic. You are starting from scratch.


NixOS K Plasma Desktop

The K Plasma Desktop is uncluttered, but its beauty masks the lack of any applications beyond system tools when the installation completes.


Nothing is installed, so no real functionality exists beyond the plasma environment.

Making It Work

First, click on the NixOS Manual icon on the desktop. This is your guide to follow strictly. Nix will open the Firefox Web browser to connect you to the Nix website to load the manual.

The next step is to click on the GParted desktop icon to launch the partition manager. Yes, you must create the partition yourself, even if you are installing to a VM. There is no live session environment for NixOS.

The process involves several typed commands that you can copy from the instruction file and paste into GParted. After you create the partition, you must mount it. Then close the GParted window.

Getting It Ready

Click the Konsole icon on the desktop to open a terminal window so you can create a configuration file. You must do this before you can run the installer.

Copy and paste the basic config commands from the manual instructions into the Konsole’s command line window. Then use the resident text editor, Joe’s Own Editor, from the bottom panel’s Applications / Development menu to open the config file that the Nix Package Manager created. The text editor also appears in the Applications / Utilities menu.

Read through all the lines. Each service or component starts with a pound sign (#) to ignore that command. Delete the # marker for each element you want activated for your installation.

Follow the manual directions closely. You may need to edit the actual contents of the line or add additional directions to hone your configuration requests.

One shortcut is to uncomment (delete the # marker) everything to give you a fully loaded Linux system. You also will have to modify the lines specifying usernames and passwords.

Finishing Up

Now you are ready to run the installer. Use this command:

# nixos-install

If all works well, Nix will take its time running through all of the installation building steps. If there are any glitches along the way, Nix will stop and issue an error message.

If this happens, go back to an earlier step to resolve the problem. Then run the Nix installer again.

Adding Software

Reboot the computer. Hopefully, grub works and you will see the log-in screen followed by the K Plasma desktop. Other than the desktop, the Konsole, the settings panel, a Web browser and the Dolphin file manager, no applications are installed.


NixOS installation

Until you take painstaking steps to install each application individually, all the NixOS installation gives you are a settings panel, a menu of sysadmin tools, and attractive background images.


You’ll need to check the instructions manual document to learn how to enter Konsole commands to tell the Nix Package manager what software to install.

Hint: It is not a GUI environment. Be prepared for more CLI exposure.

Bottom Line

I had to keep reminding myself that I was not dealing with an extreme case of Arch Linux instead of GNU/Linux. NixOS is more demanding and definitely not a distro for users with anything less than advanced skills.

To say NixOS comes with a steep learning curve and lots of hands-on overhead is putting it mildly. If you are a typical Linux user who lacks sysadmin training, avoid NixOS like a malware attack hiding in plain sight.

Want to Suggest a Review?

Is there a Linux software application or distro you’d like to suggest for review? Something you love or would like to get to know?

Please
email your ideas to me, and I’ll consider them for a future Linux Picks and Pans column.

And use the Reader Comments feature below to provide your input!


Jack M. Germain has been an ECT News Network reporter since 2003. His main areas of focus are enterprise IT, Linux and open source technologies. He has written numerous reviews of Linux distros and other open source software.
Email Jack.

Migration is slowing Australia’s rate of ageing, but not necessarily in the regions

1:32 AM 0 Comments

Migration is actually slowing the rate of ageing of Australia’s population. I modelled how much fertility, mortality, overseas migration and interstate migration, all contribute to the overall change in the average age of a population.

Population ageing is measured by changes in the median age (the age at which half the population is older and half is younger) over time. For Australia, the median age is 37.2 years. The Northern Territory is the youngest state or territory with a a median age of 32.4 years and Tasmania is the oldest at 42 years.

In the model, births and deaths reduce the rate of ageing in the population. But the effects of migration can go either way.


Read more: FactCheck: is South Australia’s youth population rising or falling?


The impact of overseas migration on the average age of the population is dependent on the age and number of immigrants and emigrants compared with the average age of the population.

Between 2005 and 2015, Australia’s average age increased by 1.1 years from 37.5 years to 38.6 years. In the model, this was an increase of five weeks per year. In the absence of migration, Australia’s average age would have increased by 11 weeks per year.

This is because over the period, the number of overseas arrivals was almost double that of overseas departures and, on average, they were younger. This provides evidence that policy intervention, such as the shift to a skilled migration program and the increase in the number of international students, can influence the rate of population ageing.

Why Tasmania is the oldest

Overseas migration also contributed to a slowing of the rate of ageing for Tasmania. However, between 2005 and 2015, Tasmania’s average age increased from 38.6 years to 41 years (an increase of 2.4 years). This suggests other factors are at play in increasing the average age of the population, particularly when compared with the considerably lower change in Australia’s average age.

The difference in ageing between Australia and Tasmania of five weeks per year is largely explained by interstate migration. The number of interstate movements to and from Tasmania was around five times that of overseas movements.

While interstate arrivals were younger than the average Tasmanian, those leaving the state were even younger, contributing to increasing the average age of Tasmanians over time.

Essentially, in the absence of interstate migration, the rate of ageing in Tasmania would have slowed to an average of seven weeks per year, more comparable with Australia’s rate of ageing.

What this means for our future

The model’s findings confirm that as differences between fertility and mortality levels within a nation are usually small, it is migration, overseas and interstate, which is predominantly responsible for different changes in the average age of the nation.

National policy initiatives, such as the shift to a skilled migration program, and the increased level of international students have been effective in slowing the rate of population ageing for Australia, but not necessarily for regions like Tasmania.

Until now, governments have used “one-size-fits-all” solutions or those adopted from other places to deal with population ageing. These approaches fail to capture the diversity of population change within a nation.


Read more: Why mandatory retirement ages should be a thing of the past


What is needed is local policies, developed and applied in situ, to meet the needs, strengths, challenges and opportunities of a region.Newfoundland and Labrador in Canada and Tasmania have both employed policies that are based on local areas. In Tasmania, the strategy focuses on creating jobs, migration strategies for those living interstate and overseas and the liveability of the place.

Understanding how and why populations change can effectively contribute to planning and investment in age-appropriate infrastructure, services and amenities.

Scientists Coax Plastic-Munching Enzyme to Eat Faster

12:56 AM 0 Comments

Recently, the world was stunned to learn that an island of mostly plastic trash, floating in the Pacific Ocean, grew to the size of France, Germany and Spain combined. Because plastics take centuries to decompose, could civilization someday choke in it? Scientists at Britain’s University of Portsmouth say they may have found a way to speed up the decomposition of plastics. VOA’s George Putic reports.