How to run multiple commands in Linux

Different types of commands are needed to run from the terminal in Linux. Sometimes we need to run multiple commands at a time where the commands can depend on each other or not. Running multiple commands at once is called command chaining. Many types of operators can be used for command chaining for different purposes. How you can run two or more commands by using most commonly used operators is shown in this tutorial.

pipe(|) operator is used to run two or more related commands at a time. The input of the next command will be the output of the previous command. So, the success of each command depends on the success of earlier command without first command. In the following command, the first command, ls will find out the list of files and folders of the current location and send the output as input for the second command, wc. It will print the total number of lines, words, and characters based on the input data.

Semicolon (;) Operator

Semicolon(;) operator is used to running two or more unrelated commands at a time. This means that the output of each command is not dependent on other commands. In the following example, three types of commands are combined together and the failure of each command will not create an effect on the output of other commands. The first command will print the content of a file, the second command will make a directory and the third command will change the current directory.

$ cat myfile.txt ; mkdir newdir ; cd Desktop

Logical AND (&&) operator

The commands which run by Logical AND (&&) are related with each other like pipe (|) command. So, if the previous command will not execute successfully then the next commands will not work. In the following example, two commands, mkdir, and rmdir combined by && operators. So, it mkdir command is failed to execute successfully then rmdir command will not execute. According to the output of ls command, myDir directory already exists in the current location. So the first command will not execute and for this second command will not execute also.

$ ls
$ mkdir myDir && rmdir temp
$ ls

Logical OR (||) operator

Logical OR (||) operator is the opposite of the Logical AND (&&) operator. The next command will execute if the previous command fails to execute. Three cat commands are combined with OR (||) operator in the following example. When you will run the command, first of all, it will try to display the content of cat.txt file. If no such file exists in the current location then it will try to execute the next command. According to the output, bird.txt file exists in the current location and the content of this file is displayed.

$ cat cat.txt || cat dog.txt || cat bird.txt

Multiple commands with multiple operators

You can use multiple operators to run multiple commands at a time. In the following example, three commands are combined with OR (||) and AND (&&) operators. After running the command, first of all, it will change the current directory to newdir if the directory exists. If this command fails then it will create the directory by executing the second command and print the message, “directory is created.” According to the output, newdir directory not exist in the current location. So, the error message is displayed and the directory is created later.

$ cd newdir || mkdir newdir && echo “directory is created”

Combination operator {}

Two or more commands can be combined using this operator and if the execution of the first command fails then the second command will not execute. In the following example, OR, AND and combination operators are used together. First commands will check the temp directory is exist in the current location or not. If the first command fails then it will create a temp directory and print a message. The last command will show the current directory list.

$ [ -d temp ] || { mkdir temp; echo temp directory is created now.; } && ls

Precedence operator ()

You can use this operator for grouping the commands at the time of execution. Here, each group will work as a single task. In the following example, two command groups are defined and if the first group fails to execute then the second group will execute.

$ (cd temp && ls -a) || (mkdir temp && ls)

Conclusion

This tutorial explained the mostly used operators for running multiple commands in Linux. But there are many others operators exist in bash which are used to run two or more commands together. These are ampersand (&), redirection (<,>,>>), Logical NOT (!), Combination ({}) etc.

Source

SAP +3 Workshop: Transition to SAP HANA

Share with friends and colleagues on social media

If you’re planning your transition to SAP HANA, you probably have many questions like:

  • What is SAP’s strategy and roadmap for SAP HANA 2.0?
  • What are my options for getting my data center ready?
  • Why should I consider putting my SAP workloads in the cloud, and how can I get there?
  • With SAP’s focus on open source, which solutions work well on-premise and in the cloud?
  • How can I mitigate the risks of transitioning to SAP HANA?

Wouldn’t it be great if you could get the answers to all of these questions and more from experts in an interactive setting without taking up too much of your valuable time? Well, you can!

Make plans to be in New York City on November 20, 2018 and add the “SAP +3 Workshop: Transition to SAP HANA” event to your calendar. This workshop is for IT leaders and architects who are planning to move to SAP HANA, or perhaps are already executing their plan and want to fine-tune it. Experts from SAP, SUSE, Microsoft Azure and Protera will be there for presentations and informal discussions to provide information that can be invaluable to executing a success move from your current SAP NetWeaver and relational database infrastructure to SAP HANA. And you get all of this plus a hot lunch in about a half-day.

For a detailed agenda and registration information, click here. If this workshop doesn’t fit your schedule or New York isn’t convenient for you, don’t worry because we’re planning more in the coming year. Check suse.com/events and future blogs for dates and locations as they become available.

Source

The Linux Foundation Launches Ceph Foundation To Advance Open Source Storage

More than 30 members join new Ceph Foundation to manage the massive growth in data and information generated from cloud, container and AI applications

CEPH DAY BERLIN – Nov. 12, 2018 – The Linux Foundation, the nonprofit organization enabling mass innovation through open source, today announces over 30 global technology leaders are forming a new foundation to support the Ceph open source project community. The Ceph project develops a unified distributed storage system providing applications with object, block, and file system interfaces.

Founding Premier members of Ceph Foundation include Amihan, Canonical, China Mobile, DigitalOcean, Intel, OVH, ProphetStor Data Services, Red Hat, SoftIron, SUSE, Western Digital, XSKY Data Technology, and ZTE. The Ceph Foundation will organize and distribute financial contributions in a coordinated, vendor-neutral fashion for immediate community benefit. This will help galvanize rapid adoption, training and in-person collaboration across the Ceph ecosystem.

“Ceph has a long track record of success when it comes to helping organizations with effectively managing high growth and expanding data storage demands,” said Jim Zemlin, Executive Director of the Linux Foundation. “Under the Linux Foundation, the Ceph Foundation will be able to harness investments from a much broader group to help support the infrastructure needed to continue the success and stability of the Ceph ecosystem.”

Ceph is used by cloud providers and enterprises around the world, including financial institutions (Bloomberg, Fidelity), cloud service providers (Rackspace, Linode), academic and government institutions (Massachusetts Open Cloud), telecommunications infrastructure providers (Deutsche Telekom), auto manufacturers (BMW), software solution providers (SAP, Salesforce), and many more.

Ceph is also used by Rook, a Cloud Native Computing Foundation project that brings seamless provisioning of file, block and object storage services into the Kubernetes environment, running the Ceph storage infrastructure in containers alongside applications that are consuming that storage.

Efficient, agile, and massively scalable, Ceph significantly lowers the cost of storing enterprise information in the private cloud and provides high availability to any object, file, and block data. Unstructured data makes up 80% and more of enterprise data, is growing at the rate of 55% to 65% per year, and is common with rich-media, predictive analytics, sensors, social networks, and satellite imagery.[1] Block and file storage are critical to any IT infrastructure organization and are important components of infrastructure platforms like OpenStack and Kubernetes. According to recent user surveys, roughly two-thirds of OpenStack clouds use Ceph block storage.

The growth of new cloud, container and artificial intelligence/machine learning applications are driving increased use of Ceph. For example, Ceph combined with analytics and machine learning enables enterprises to comb through mass amounts of unstructured data to quickly spot patterns with customer behavior, online customer conversations and potential noncompliance scenarios.

The Ceph Foundation is the successor framework to the Ceph Advisory Board, which was formed in 2015. Get involved in the Ceph community at https://ceph.com/get-involved/ or learn more about membership at https://ceph.com/foundation.

Project Creator and Leadership Quotes

“A guiding vision for Ceph is to be the state of the art for reliable, scale-out storage, and to do so with 100% open source,” said Sage Weil, Ceph co-creator, project leader, and chief architect at Red Hat for Ceph. “While early public cloud providers popularized self-service storage infrastructure, Ceph brings the same set of capabilities to service providers, enterprises, and individuals alike, with the power of a robust development and user community to drive future innovation in the storage space. Today’s launch of the Ceph Foundation is a testament to the strength of a diverse open source community coming together to address the explosive growth in data storage and services.”

“Ceph was designed and built for scalability, initially with supercomputers and later with cloud infrastructure in mind. A key design premise was that the storage system needs to provide a highly reliable and available service in a dynamic and increasingly heterogeneous hardware environment where everything can potentially fail,” said Carlos Maltzahn of University of California, Santa Cruz, a co-founder of the research project that first created Ceph over a decade ago.

Cephalocon and KubeCon + CloudNativeCon 2019

The Ceph Foundation plans to host the second Cephalocon conference in Barcelona, Spain from May 19 – 20, 2019, co-located with KubeCon + CloudNativeCon 2019, May 20-23. The first Cephalocon took place in March 2018 in Beijing, China, bringing together 1000 attendees consisting of Ceph vendors, users, and developers from all over the world.

For updates, subscribe to the Ceph project’s announcement mailing list and follow Ceph on Twitter @Ceph.

Founding Members

Founding members of the Ceph Foundation at the Premier level include Amihan, Canonical, China Mobile, DigitalOcean, Intel, OVH, ProphetStor Data Services, Red Hat, SoftIron, SUSE, Western Digital, XSKY Data Technology, and ZTE.

Ceph Foundation General members include Ambedded Technology, Arm, Catalyst Cloud, Croit GmbH, EasyStack, Intelligent Systems Services, Pingan Technology, QCT, Sinorail, and Xiaoju Science Technology.

Associate members include Boston University Information Services and Technology, CERN (European Organization for Nuclear Research), FAS Research Computing – Harvard, Greek Research and Technology Network (GRNET), Monash University, South African Radio Astronomy Observatory (SARAO), Science and Technology Facilities Council (STFC) at UK Research and Innovation (UKRI), and University of California Santa Cruz’s Center for Research in Open Source Software (CROSS).

Supporting Quotes

“As a founding member of the Ceph Foundation, Amihan is committed to contributing its knowledge and expertise in cloud-native infrastructure to the advancement of the Ceph project. Building on Ceph has allowed us to provide our enterprise clients with the most reliable foundation for digital transformation.”

  • Winston Damarillo, executive chairman, Amihan

“Ceph delivers enterprise-grade storage with best-in-class economics. Given the exponential growth we are witnessing in our customers’ data requirements, we recognize it to be a fundamental part of the open source private cloud stack. Our participation in the launch of the Ceph Foundation underlines our commitment to accelerating its adoption, technology base and developer community.”

  • Christian Reis, VP, Data Centre Field Engineering at Canonical

“China Mobile always embraces Open Source and gives back to Open Source. Ceph is the best implementation of Open Source Software Define Storage, and it has been widely used in China Mobile’s data center. We are very happy to join Ceph Foundation and make Ceph more closer to enterprise storage level.”

  • Junwei Liu, vice general manager of cloud computing department, China Mobile (Suzhou) software technology Co., Ltd.

“Open source has been a key part of our business from the start. Ceph is a core component of our fast-growing storage infrastructure and one of the many open source projects we use at DigitalOcean to accelerate innovation and deliver great products for our customers. We are proud to be a founding member of the Ceph Foundation. As a leading cloud provider we believe it is our responsibility to give back to the open source community and support the projects that help developers build amazing apps.”

  • Shiven Ramji, VP of Product, DigitalOcean

“OVH is thrilled to join the newly created Ceph Foundation as a Premier member. Its Open Source values fit in very well with our own DNA, which is marked by openness, innovation and freedom of choice. With Ceph being the de-facto standard Software Defined Storage solution for OpenStack, it was only logical for us to adopt Ceph as part of our Public Cloud block storage. We have been using Ceph for many years and have since contributed numerous patches that went upstream in Ceph, co-hosted the Ceph Day in Warsaw and shared our experience with Ceph at various events. As one of the founding sponsors of the Ceph Foundation, we are now excited to make an even stronger contribution to the Ceph community and help take it to the next level.”

  • Alain Fiocco, EVP Chief Technology Officer, OVH

“The incredible growth of data generated by connected devices, services, and modern software requires an advanced, adaptable storage platform to help gain the greatest value from all this information. Ceph’s open innovation is key for the industry to address these demands. Intel is proud to join the Ceph Foundation and support the redefinition of data storage.”

  • Imad Sousou, Corporate vice president and general manager Open Source Technology Center, Intel Corporation

“Ceph is the future of storage. We at ProphetStor are proud to have contributed our machine learning technology to its community to help bring it to the forefront of the storage industry.”

  • Jeremy Wei, VP of Corporate Business Development, ProphetStor

“Red Hat is honored to be deeply involved as a leader in open source communities as modern enterprises pivot toward an open hybrid cloud model. The creation of the Ceph Foundation brings to bear collaboration across the industry to enable rapid adoption of advanced data services and cloud-native technologies.”

  • Sarangan Rangachari, Vice President and General Manager, Red Hat Storage

“Ceph is quickly becoming the de facto standard for storage at scale. We are proud to be a part of that success and support the new Ceph Foundation. Ceph is a shining example of how open source software can squeeze out inefficiencies in very large markets.”

  • Tim Massey, CEO, SoftIron

“The formation of the Ceph Foundation under the Linux Foundation umbrella reflects the professional growth of the Open Source community and increasing industry participation. The new framework will lead to more community collaboration, outreach, inclusion and market awareness. SUSE is pleased and committed to be a top tier contributor to both the technical community and the foundation to help facilitate innovation in software-defined storage and represent the interests of our customers and partners.”

  • Lars Marowsky-Brée, Distinguished Engineer, SUSE

“As a technology leader enabling cutting-edge technologies with data infrastructure, we understand and believe in open standards, open software, and open ecosystems. The establishment of the Ceph Foundation is an important milestone that we are proud to support.”

  • Allen Samuels, Engineering Fellow at Western Digital, Inc

“With the establishment of Ceph Foundation, Ceph is opening a new era in global development. Together with other members, XSKY will spare no effort to push forward the construction of a broader Ceph ecosystem and explore commercial models for open-source software. We aim to achieve a landing storage approach of high-availability and high-reliability for users in mass data era.”

  • Haomai Wang, CTO, XSKY

“It has been my pleasure to see the growth in popularity of Ceph in China over the last several years, and the power of Ceph of transforming numerous organizations’ IT infrastructure. Open source is a huge opportunity for organizations to work cooperatively to improve software and to benefit from each others’ hard work, and the establishment of Ceph Foundation will definitely accelerate its development and bring us a real future of storage.”

  • Xinyu Chen, General Manager of Telecom Cloud & CoreNet Product, ZTE Corporation

About the Ceph Foundation
Ceph is a unified distributed storage system providing applications object, block, and file system interfaces in a single unified storage cluster—making Ceph flexible, reliable and easy for you to manage. Ceph is built on the Reliable Autonomic Distributed Object Store (RADOS), which provides a highly available and scalable fabric that can either be consumed directly or via higher-level object, block and file services that are built on top. The Ceph Foundation is a directed fund under The Linux Foundation. It provides a neutral home for the Ceph community to collaborate and grow, and is supported by members across multiple industries.

About the Linux Foundation
The Linux Foundation is the organization of choice for the world’s top developers and companies to build ecosystems that accelerate open technology development and industry adoption. Together with the worldwide open source community, it is solving the hardest technology problems by creating the largest shared technology investment in history. Founded in 2000, The Linux Foundation today provides tools, training and events to scale any open source project, which together deliver an economic impact not achievable by any one company. More information can be found at www.linuxfoundation.org.

The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our trademark usage page: https://www.linuxfoundation.org/trademark-usage. Linux is a registered trademark of Linus Torvalds.

Source

Best Ad Blocker Apps For Android – ls /blog


LAST UPDATED: August 10, 2018

Want to get rid of annoying ads? Check out the following ad blocker for android to stop seeing ads on Android.

Ads. You can’t escape them whether it’s on the small screen or your computer. Most of the ones you encounter in your browser exist to push a product or service while occasionally earning the site a bit of cash. It’s something your favorite website may use to survive, but some sites go a little crazy with their ads. Especially when not optimized for our mobiles.

Hyperledger Fabric Fundamentals (LFD271) $299

There was a time when the dreaded “Pop-up” ad was reserved for folks using their desktop PC or laptop. The annoying ads made their way to mobiles as soon as the platform become relevant, which left plenty of consumers looking for the best ad blocker apps. Unfortunately, there is a problem with that. The vast majority of Ad blockers in the Play Store are less than stellar, and you cannot rely on Play Store reviews these days.

Offering up a free Ad blocking service is also a surefire way to lure folks in if you are a developer with a shady application. As we all know, downloading a bad app can cause a whole new set of problems as your next stop may be searching for a Malware detector. We’ve compiled a short list featuring a few great options, but also have some tips to keep in mind as well.

Always keep in mind that some of your favorite websites need those ads to keep the lights on. That means you may want to choose an ad-blocking browser or program that lets you have exceptions. Some Ad blocker apps may also hamper functionality on certain sites.

So, what is the best ad blocker for android to stop ads from filling up your screen while using an app or browser? Installing an adblock android app will block any ads from showing up on your Android device, thus allowing you to use your favorite apps without being berated to ‘purchase this item,’ or ‘visit this site.’

The best Android ad block apps that will make your Android device ad-free

Adblock Plus for Android Ad blocker for Android

The first app on this list of “Ad blocker for Android” is adblock plus android, cannot be found on Google Playstore anymore as it has been removed. But fortunately, the team over at Adblock Plus is still offering the Android version on their website. (You can also grab the latest adblock plus apk here). The link above will provide you with instructions for using Adblock Plus on your Android device. While it may seem as if it is a lot of trouble to get an ad blocking app on your device, it certainly isn’t as Adblock Plus for android is one of the best and most trusted ad blocker apps available not only on Android, but Chrome, Firefox, and more. Download and install it: you will be glad you did.

There is also an official Adblock Plus add-on for Firefox Android browser. Open Firefox browser, Downlaod and Install the add-on, activate it then restart the Firefox app and enjoy ad-free browsing.

Free Adblocker Browser

Free Adblocker Browser for android
The Free Adblocker Browser is a solid option if you don’t mind switching from your normal browser are want something a little different graphically. As the name suggests, it will kill any Ad coming your way on the web. It also destroys pop-ups along with a slew of annoying “specialty” ads. Some of these include video ads and banner ads, but it can supposedly stop any sites trying to track your footsteps as well.

Whether it’s a shady cookie or an ad set up on auto-play, the Free Adblocker Browser app can cover most folks needs. The app (and its ad-blocking feature) are free to download and use although there are in-app purchases which allow for a few additional features and themes.

Adblock Browser

Like some of the other entries on our list, the Adblock Browser for Android is available in web form and on your smartphone or tablet. It isn’t much different from its ad-blocking competitors in the sense that its zaps most ads from websites including pop-ups. It’s also free to download which is always a plus.

REGISTER TODAY FOR YOUR KUBERNETES FOR DEVELOPERS (LFD259) COURSE AND CKAD CERTIFICATION TODAY! $499!

The Adblock Browser blocks all incoming ads by default but does allow users a measure of control. You can opt to let in advertising deemed nonintrusive or configure a list of filters based on different dialects. Depending on your browsing habits, that alone may be worth the price of admission. Nobody wanst to be assaulted with garbled foreign text. There are several other options that can help with your privacy as well by letting you disable tracking, anti-ad blocking messages, malware domains, and social media buttons.

AdGurd

Adgurd android ad blocker
Sometimes a browser with a pop-up blocker isn’t going to cut it. If that’s the case for you, you may want to look into Adguard for Android. The popular app promises to filter all the nastiness out of the web to give you a clean and trouble-free browsing experience. That said, you’re not going to be able to get the real deal through the usual means as Google does not like “true” ad blocking software for obvious reasons.

Adguard can block any ad coming your way through a browser, but can also kill advertisements in mobile games. Other features include a firewall, phishing and malware protection and increased web page speed. We’d be remiss if we didn’t also mention the built-in VPN, something you don’t see baked into many apps of this nature.

As it’s not available in the Play Store anymore, you will have to download the Adguard app through their website and follow a few simple installation instructions. On the flipside, there is a “content blocker” from the company anyone can pick up from the Play Store, but it is very limited unless you are rooted.

AppBrain Ad Detector

AppBrain Ad Detector app for android
While the AppBrain Ad Detector can block pop-ups and ads, the way it goes about it is different. It can actually “sniff” them out and goes far beyond just snooping for the usual piece of advertising. AppBrain can lock down spam ads and push notifications while detecting for harmful app networks. Staying true to its private eye nature, the app can actually let you see which tool developers used as well.

$199 ENROLLS YOU INTO OUR SELF PACED COURSE – LFS264 – OPNFV FUNDAMENTALS!

Using the AppBrain Ad Detector is simple for rookies and pros alike. There is a tab for “Concerns” which quickly allows you to see if any harm is headed your way. From there you can look at any ad networks that are connected along with social SDKs and Dev tools. It’s really a wealth of information if you’ve ever wondered about things like who Chick-fil-A’s advertising goes through.

It’s Admob just in case you’re curious, and their app does not use social SDK’s. AppBrain filled us in on those details, and it’s free to download from Google Play if you want to give it a whirl.

AdAway – root only

AdAway is another awesome option if you need something stronger than an ad-blocking browser or plug-in. It’s also an app that is only going to work for users who are rooted, which rules plenty of folks out. Is it worth the hassle? The answer is a resounding yes if you are concerned about your privacy and hate to be troubled with ads.

This particular application is setup with host files which hits any ads coming your way with a quick change of direction. The redirect effectively kills pop-ups, banner ads, and any advertisements shown in games as well. Want a bit more control over your content? The Whitelist option can take care of that. Techies will also appreciate the open-sourced nature of AdAway as it’s not going to be an app that goes long without an update.

AdAway is free to download through F-Droid, but again, you will need Root access. You can read more about the app on the official site if you are still on the fence.

TrustGo Ad Detector

TrustGo Ad Detector android ad blocker app

Are you wary of mobile ad networks collecting personal information through the apps that you use? TrustGo Ad Detector scans and dually protects your Android device from possible privacy violations and identity leaks that could occur via ads displayed within an Android app. Use your Android device with the clarity of mind to know that your personal information is safe and secure. An all-to-common occurrence, TrustGo Ad Detector is a different type of ad blocker, but one that will keep your personal information safe and secure.

An avid fan of Android, Loving the OS since very first Google Phone. Back in 2008 he founded getandroidstuff.com to help Android users to find best free applications and Games.
Source

How to install Apache Maven on CentOS 7

Apache Maven is a free and open source project management and comprehension tool used primarily for Java projects. Maven uses a Project Object Model (POM) which is essentially a XML file containing information about the project, configuration details, the project’s dependencies, and so on.

In this tutorial we will show you two different ways to install Apache Maven on CentOS 7.

The official CentOS repositories contains Maven packages that can be installed with the yum package manager. This is the easiest way to install Maven on CentOS, however the version included in the repositories may lag behind the latest version of Maven.

To install the latest version of Maven follow the instructions provided in second part of this article where we will be downloading Maven from their official website.

Choose the installation method that is most appropriate for your setup and environment.

Prerequisites

The user you are logging in as must have sudo privileges to be able to install packages.

Installing Apache Maven on CentOS with Yum

Installing Maven on CentOS 7 using yum is a simple, straightforward process.

  1. Install Maven by typing the following command in your terminal:
  2. Verify the installation by typing the mvn -version command:

    The output should look something like this:

    Apache Maven 3.0.5 (Red Hat 3.0.5-17)
    Maven home: /usr/share/maven
    Java version: 1.8.0_191, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: “linux”, version: “3.10.0-862.3.2.el7.x86_64”, arch: “amd64”, family: “unix”

That’s it. Maven is now installed on your CentOS system and you can start using it.

Install the Latest Release of Apache Maven

The following sections provide a step by step instructions about how to install the latest Apache Maven version on CentOS 7. We’ll be downloading the latest release of Apache Maven from their official website.

1. Install OpenJDK

Maven 3.3+ require JDK 1.7 or above to be installed. We’ll install OpenJDK, which is the default Java development and runtime in CentOS 7.

Install the OpenJDK package by typing:

Verify that Java was successfully installed by running the following command:

The output should look something like this:

openjdk version “1.8.0_191”
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

2. Download Apache Maven

At the time of writing this article, the latest version of Apache Maven is 3.6.0. Before continuing with the next step you should check the Maven download page to see if a newer version is available.

Start by downloading the Apache Maven in the /tmp directory using the following wget command:

wget https://www-us.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz -P /tmp

When the download is completed, extract the archive in the /opt directory:

sudo tar xf /tmp/apache-maven-3.6.0.tar.gz -C /opt

To have more control over Maven versions and updates, we will create a symbolic link maven which will point to the Maven installation directory:

sudo ln -s /opt/apache-maven-3.6.0 /opt/maven

To upgrade your Maven installation, simply unpack the newer version and change the symlink to point to it.

3. Setup environment variables

Next, we’ll need to setup the environment variables. Open your text editor and create a new file named mavenenv.sh inside of the /etc/profile.d/ directory.

sudo nano /etc/profile.d/maven.sh

Paste the following lines:

/etc/profile.d/maven.sh

export JAVA_HOME=/usr/lib/jvm/jre-openjdk
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=$/bin:$

Save and close the file. This script will be sourced at shell startup.

Make the script executable by typing:

sudo chmod +x /etc/profile.d/maven.sh

Load the environment variables by typing:

source /etc/profile.d/maven.sh

4. Verify the installation

To verify that Maven is installed, use the mvn -version command which will print the Maven version:

You should see something like the following:

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
Maven home: /opt/maven
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “linux”, version: “3.10.0-862.3.2.el7.x86_64”, arch: “amd64”, family: “unix”

That’s it. The latest version of Maven is now installed on your CentOS system.

Conclusion

You have successfully installed Apache Maven on your CentOS 7. You can now visit the official Apache Maven Documentation page and learn how to get started with Maven.

If you hit a problem or have a feedback, leave a comment below.

Source

Stealth and hacking game ‘OFF GRID’ fully funded and heading to Linux

OFF GRID, a stealth and hacking game about privacy and mass surveillance managed to get funded on Kickstarter and so it’s coming to Linux.

Moments before your daughter was bundled away, she gave you a pair of smart glasses for your birthday.

An unidentified source gets in touch to help you install a new security-focused operating system, and gives you a few tools which will help you gain access to networks that might contain clues as to what is going on.

In the end, they managed to hit £25,252 which means they smashed through not just their initial goal but the first stretch goal too so the game will get an in-game social media app.

I personally funded this one, since they put out a Linux demo and the developer came and commented on our previous article. Some people get rightfully worried about developers promising Linux support and not delivering, to which the developer commented with:

Hah, we certainly won’t abandon Linux, I’ve used Ubuntu as my main OS since 2005 and do most of my gaming on it. So making sure our own project runs on it is high priority to us.

Was really good to see such a statement.

Looking forward to following this one along during development, has the makings of a very interesting game both in terms of the story and the gameplay.

Source

Download Qubes OS 4.0 / 4.0.1 RC1

Qubes OS is an open source distribution of Linux built around the Xen hypervisor, the X Window System and Linux kernel open source technologies. It is based on Fedora Linux and designed from the ground up to provide users with strong security for desktop computing.

The distribution has been engineered to run almost all Linux applications and uses all of the drivers implemented in the Linux kernel to automatically detect and configure most hardware components (new and old).

Features at a glance

Key features include a secure bare-metal hypervisor powered by the Xen project, secure system boot, support for Windows-based and Linux-based AppVMs (Application Virtual Machines), as well as centralized updates for all AppVMs that are based on the same template.

In order to sandbox several core components and isolate certain applications from each other, Qubes OS uses virtualization technology. Therefore, the integrity of the rest of the system will not be compromised.

Distributed as Live DVD

It is distributed as a single Live DVD ISO image, supporting only the 64-bit (x86_64) hardware platform, which can be deployed to a USB flash drive or 4GB or bigger, as well as burned onto a DVD disc. From the boot menu, users can try or install the operating system.

The installation process is text-based and allows users to set a timezone, choose the installation source, select software packages to be installed, select the installation destination, set the root password, and create users.

Uses the KDE Plasma desktop environment

The default desktop environment is powered by the KDE Plasma Workspaces and Applications project, which comprises of a single taskbar located on the upper part of the screen, from where users can access the main menu, launch apps, and interact with running programs.

Bottom line

In conclusion, Qubes OS is a unique Fedora-based operating system that implements a “security by isolation” approach and uses lightweight virtual machines called AppVMs that are definable by users.

Source

WP2Social Auto Publish Powered By : XYZScripts.com