Home Blog Page 859

12 Linux dd, ddrescue and dcfldd command examples

The dd command stands for “data duplicator” and used for copying and converting data. It is very powerful low level utility of Linux which can do much more like;

• Backup and restore the entire hard disk or partition.
• Backup of MBR (Master Boot Record)
• It can copy and convert magnetic tape format, convert between ASCII and EBCDIC formats,swap bytes          and can also convert lower case to upper case.
• It can also be used by Linux kernel make files to make boot images.

Only superuser can run this command because you can face a big data loss due to its improper usage, so you should be very careful while working with this utility. At that moment data loss can convert the dd utility as a “data destroyer” for you. That’s why it is recommended that beginners should not use this command on a production machine until they get familiarity on this. You must make sure that target location must have sufficient space while running this command.

Syntax of dd command

Before we start with some practical work we need to talk about its syntax.

dd if=<source file name> of=<target file name> [Options]

We normally do not explain about syntax but this command syntax require some explanation. The syntax is totally different when compared to many Linux commands we know. In this syntax dd is followed by two things

if=<source> –This is a source from where you want to copy data and ‘if’ stands for input-file.

of=<destination> –This is a source from where you want to write/paste data and ‘of’ stands for output-file.

[options] –These options include, how fast data should be written, what format etc.

Input(source file name) and Output(target file name) in syntax are disks, partitions, files and devices to which you want to write and read data from. There are many options which we will discuss in examples.

Learn Linux dd command with examples

Example 1: Clone one hard disk to another hard disk. This is useful when we are building many machines with same configuration. We no need to install OS on all the machines. Justinstall OS and required software on machine then clone with below example.

 dd if=/dev/sda of=/dev/sdb

Example 2: We can take backup of a partition/complete HDD for future restoration.

Backing up a partition to a file(to my home directory as hdadisk.img)

dd if =/dev/sda2 of=~/hdadisk.img

Restoring this image file in to other machine

dd if=hdadisk.img of=/dev/sdb3

Example 3: Do you feel hdadisk.img is bit big? Use gzip or bzip2 to compress when creating image.

Read Full Post:   http://www.linuxnix.com/what-you-should-know-about-linux-dd-command/

Set up DVR on RDO Mitaka Milestone 3 (CentOS 7.2)

Initial RDO Three Node system deployment ML2/OVS/VXLAN

Controller/Network node – 192.169.142.127 (nova && neutron services)
Storage node – 192.169.142.157 (glance,cinder,swift services )
Compute node – 192.169.142.137 (nova-compute,neutron-openvwsitch-agent)

Per https://www.rdoproject.org/testday/mitaka/milestone3/

Install the yum-plugin-priorities package

Complete text maybe seen here

Making the Internet Safer, One Secure Site at a Time: Let’s Encrypt Hits 1 Million Certificates

Let’s Encrypt today issued its one millionth free certificate (at 9:04am GMT to be exact), just about 100 days after it released its beta version of the service. This is a major accomplishment for the group, but also big news for the web and the security of everyone online.

In the past three months, our online activities and web traffic have become much safer and better protected through the efforts of Let’s Encrypt, an open source project that is hosted by The Linux Foundation and supported by organizations like Mozilla, Cisco, Electronic Frontier Foundation, Facebook, and Google Chrome.

Encryption, which is visually demonstrated by the small lock in browser location bars, has historically been out of reach for most website owners because of cost and complexity. Many major companies and even government sites only used encryption technology for their most sensitive transactions, leaving the vast majority of traffic unencrypted and insecure.

But the Let’s Encrypt certificate takes only a few minutes to install and is free. The simplicity of the install is one of the reasons why the group was able to issue one million certificates so quickly. New certificate issuances can be publicly tracked in real-time here.

The project has also received major support from hosting companies like OVH, WordPress.com, Gandi, Dreamhost and Digital Ocean, which all supported making sites secure so that the traffic cannot be intercepted or changed. Due to the enormous hard work behind Let’s Encrypt, we can now envision a future not too far off where all communication on the Internet is secured.

Projects like Let’s Encrypt and the Core Infrastructure Initiative are taking smart, nimble steps to ensure the web and the world’s other most critical infrastructure are safe for all. A proactive, preventative approach will serve us by preventing attacks. That work is happening today and is being underwritten by the companies who recognize the importance of this work. Congratulations to the Let’s Encrypt team on this important milestone.

 

Enterprise Ready: OwnCloud 9 Handles Petabytes of Data

 

The next version of ownCloud, the personal cloud server, adds enterprise-level scalability and collaboration improvements.

When you think of ownCloud, you think of a cloud Infrastructure-as-a-Service (IaaS) cloud you can run off a home server. OwnCloud 9, which will be released tomorrow, March 8, is far more than that. … With ownCloud 9, administrators can use storage backends to deeply integrate advanced storage existing metadata capabilities. So, for example, ownCloud can manage this metadata without porting it to the ownCloud native database.

Read more at ZDNet

Install Mattermost with PostgreSQL and Nginx on CentOS 7

Mattermost is an open source, self-hosted Slack-alternative. Mattermost is modern communication behind your firewall. This Howto explains the installation of Mattermost on CentOS7 using PostgreSQL as a database backend.

Read more at HowtoForge

Linux Kernel 4.1.19 LTS Has IPv6, IPv4, and Btrfs Fixes, Many Updated Drivers

Immediately after announcing the release of Linux kernel 3.18.28 LTS, Sasha Levin published details about the general availability of the nineteenth maintenance build of the long-term supported Linux 4.1 kernel series.

Linux kernel 4.1.19 LTS appears to be a pretty big release that changes a total of 142 files, with 2568 insertions and 1122 deletions, and according to the diff from the eighteenth maintenance build, most of the changes are networking stack (mostly for IPv6 and IPv4, but also IUCV, L2TP, SCTP, and TIPC) and drivers updates. 

All users of the Linux 4.1 LTS kernel series must upgrade.

MapR Delivers Support for Containers, Security

With the general availability of its Converged Data Platform, MapR Technologies brings Hadoop together with Spark, Web-scale storage, NoSQL and streaming capabilities in a unified cluster designed to support next-generation big data applications.

MapR Technologies today announced the general availability of the MapR Converged Data Platform, which brings Hadoop together with Spark, Web-scale storage, NoSQL and streaming capabilities in a unified cluster, designed to support customers deploying real-time global data applications.

The Converged Data Platform features security, data governance and performance features enhancements built to meet enterprise requirements, and adds support for containers, including persistent storage and integrated resource management.

Read more at CIO

My Favorite Features/Changes of the Linux 4.5 Kernel

With Linux 4.5 looking like it will release next weekend, here’s a look at my favorite features/changes of Linux 4.5..

– AMDGPU PowerPlay, AMDGPU PP, AMDGPU re-clocking, or “finally how I can get good performance out of my new Tonga~Fiji graphics cards on open-source.” Whatever you want to call it, the AMDGPU driver finally having experimental PowerPlay support is critical for allowing newer GCN 1.2+ graphics cards like the R9 285 “Tonga” and R9 Fury “Fiji” graphics cards to finally perform well. Up until now when using AMDGPU with a discrete GPU, the cards have been limited to their (low) boot frequencies and thus meant very poor performance. Now the future is looking much brighter with AMDGPU PowerPlay support especially as the new Catalyst Linux stack and Vulkan driver require AMDGPU. 
 
Read more at Phoronix

Canonical Wants Your Feedback on Snappy and Snapcraft in Ubuntu 16.04 LTS

canonical-wants-your-feedbackUbuntu developer Daniel Holbach writes today, March 7, on the Snappy mailing list that he and his team wants your feedback on the Snappy and Snapcraft implementations in Ubuntu 16.04 LTS.

As you may know, Canonical is preparing to unleash the major Ubuntu 16.04 LTS (Xenial Xerus) operating system this spring, on April 21, 2016. Snappy/Snapcraft are an important part of the upcoming long-term supported (LTS) release, so they would like to get the pulse of the community.

Read more at Softpedia Linux News

8 Guidelines to Advance Women in Tech on International Women’s Day

Just in time for International Women’s Day, the University of California, Los Angeles (UCLA)’s Luskin Center for Innovation has released â€œRethinking Public, Private and Nonprofit Strategies to Advance Women in Technology,†a 60-page report that articulates just how far the tech industry still needs to go to address its gap in gender diversity – and how it can get there.

“Ironically, while the tech industry epitomizes innovation and progress, it has some of the most asymmetrical representations of women and minorities of any industry in the United States,†the report says. “Despite recent efforts to address the diversity gap by corporations, high-profile non-governmental organizations, and the public sector, women’s representation in technical and executive leadership roles has not improved since 1991.â€

Read more at itbusiness.ca