Today's Howtos Today's Howtos

Total Page:16

File Type:pdf, Size:1020Kb

Today's Howtos Today's Howtos Published on Tux Machines (http://www.tuxmachines.org) Home > content > today's howtos today's howtos By Roy Schestowitz Created 23/11/2020 - 3:13pm Submitted by Roy Schestowitz on Monday 23rd of November 2020 03:13:32 PM Filed under HowTos [1] An introduction to Prometheus metrics and performance monitoring | Enable Sysadmin[2] Use Prometheus to gather metrics into usable, actionable entries, giving you the data you need to manage alerts and performance information in your environment. Why does Wireshark say no interfaces found ? Linux Hint [3] Wireshark is a very famous, open-source network capturing and analyzing tool. While using Wireshark, we may face many common issues. One of the common issues is ?No Interfaces are listed in Wireshark?. Let?s understand the issue and find a solution in Linux OS.If you do not know Wireshark basic, then check Wireshark Basic first, then come back here. How to Solve ?Sub-process /usr/bin/dpkg returned an error code (1)? In Ubuntu[4] It?s not uncommon to run into an issue of broken packages in Ubuntu and other Debian-based distributions. Sometimes, when you upgrade the system or install a software package, you may encounter the ?Sub-process /usr/bin/dpkg returned an error code? error. For example, a while back, I tried to upgrade Ubuntu 18.04 and I bumped into the dpkg error as shown below. [...] This type of dpkg error points to an issue with the package installer usually caused by the interruption of an installation process or a corrupt dpkg database. Any of the above-mentioned solutions should fix this error. If you have come this far, then it?s our hope that the issue has been successfully resolved and that you were able to reinstall your software package. inttf NVIDIA Patcher [BASH Script] ? If Not True Then False [5] This is a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. This is very quickly tested alpha version so if you have any problems please let me know or if this works as it should you can also let me know. I use here currently Isaak I. Aleksandrov patches with my own modifications. How to increase the size of your swapfile | Arcolinux.com [6] Always think out of the box. Do not restrict yourself to just Arch Linux articles or ArcoLinux articles. How to Install and Use PHP Composer on Linux Distributions [7] The PHP composer is a dependency manager of the PHP framework that you can use on your Linux system to install PHP modules, applications, and packages. The PHP composer is a command-line based tool for Linux. If you are a programmer, you might know that different languages use different package dependency managers to install and update modules inside the system. Like, Python uses Pip, RUBY uses Bundler; in the same way, you can use the composer tool to install the PHP modules and packages on your system. Synchronize Files Between Multiple Systems With Syncthing - OSTechNix[8] In this step by step tutorial, we are going to learn what is Syncthing, how to install Syncthing on Linux, how to synchronize files between multiple systems in real time, and finally how to troubleshoot common Syncthing problems. Install the XFCE desktop on your Raspberry PI - PragmaticLinux [9] In this article you?ll learn how to install the XFCE desktop on your Raspberry PI. We?ll take a minimal install of the Raspberry PI operating system as a starting point. The XFCE installation on your Raspberry PI includes setting up all necessary building blocks, such as: display server, display manager, session manager, window manager and desktop environment. HowTos Source URL: http://www.tuxmachines.org/node/144669 Links: [1] http://www.tuxmachines.org/taxonomy/term/98 [2] https://www.redhat.com/sysadmin/introduction-prometheus-metrics-and-performance-monitoring [3] https://linuxhint.com/wireshark-detecting-no-interfaces/ [4] https://www.tecmint.com/sub-process-usr-bin-dpkg-returned-an-error-in-ubuntu/ [5] https://www.if-not-true-then-false.com/2020/inttf-nvidia-patcher/ [6] https://arcolinux.com/how-to-increase-the-size-of-your-swapfile/ [7] https://www.ubuntupit.com/how-to-install-and-use-php-composer-on-linux-distributions/ [8] https://ostechnix.com/synchronize-files-between-multiple-systems-with-syncthing/ [9] https://www.pragmaticlinux.com/2020/11/install-the-xfce-desktop-on-your-raspberry-pi/.
Recommended publications
  • ELASTIC SEARCH – MAGENTO 2 COPYRIGHT 2018 MAGEDELIGHT.COM Page 2 of 6
    Elasticsearch - Magento 2 INSTALLATION GUIDE MAGEDELIGHT.COM Installation: Before installing the extension, please make below notes complete: Backup your web directory and store database. Elasticsearch – M2 Installation: Install elasticsearch on your webserver, here is the reference link http://blog.magedelight.com/how-to- install-elasticsearch-on-centos-7-ubuntu-14-10-linux-mint-17-1/ Unzip the extension package file into the root folder of your Magento 2 installation. Install elastic search library o Back up your current composer.json cp composer.json composer.json.bk o Edit composer.json file and add below code to required clause. “elasticsearch/elasticsearch” : “~5.0” o Update dependencies composer update Connect to SSH console of your server: o Navigate to root folder of your Magento 2 setup o Run command php -f bin/magento module:enable Magedelight_Elasticsearch o Run command php -f bin/magento setup:upgrade o Run command php -f bin/magento setup:static-content:deploy Flush store cache; log out from the backend and log in again ELASTIC SEARCH – MAGENTO 2 COPYRIGHT 2018 MAGEDELIGHT.COM Page 2 of 6 License Activation: Note: This section is not applicable for extension purchased from Magento Marketplace How to activate the extension? Step 1: Go to Admin Control Panel >Stores > Configuration > Magedelight > Elasticsearch > License Configuration, you will see Serial Key and Activation key fields in License Configuration. Please enter the keys you received on purchase of the product and save configuration. Step 2: Expand “General Configuration” tab, you will find list of domains for which license is purchased and configured, now select the domain you are going to use, you can select multiple domain by clicking “Ctrl + Select”.
    [Show full text]
  • PHP: Composer Orchestrating PHP Applications
    PHP: Composer Orchestrating PHP Applications Dayle Rees This book is for sale at http://leanpub.com/composer-php This version was published on 2016-05-16 This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do. © 2016 Dayle Rees Tweet This Book! Please help Dayle Rees by spreading the word about this book on Twitter! The suggested tweet for this book is: I’m reading Composer: Orchestrating PHP Applications by @daylerees - https://leanpub.com/composer-php #composer The suggested hashtag for this book is #composer. Find out what other people are saying about the book by clicking on this link to search for this hashtag on Twitter: https://twitter.com/search?q=#composer Contents Acknowledgements ..................................... i Errata ............................................. ii Feedback ............................................ iii Translations ......................................... iv 1. Introduction ....................................... 1 2. Concept .......................................... 2 Dependency Management ............................... 2 Class Autoloading .................................... 3 Team Collaboration ................................... 3 3. Packages ......................................... 5 Application Packages .................................. 5 Dependency
    [Show full text]
  • Sebastian Neubauer [email protected] @Sebineubauer
    There Should be One Obvious Way to Bring Python into Production Sebastian Neubauer [email protected] @sebineubauer 1 Agenda • What are we talking about and why? • Delivery pipeline • Dependencies • Packaging • What is the current state? • A walk through the different possibilities • Summarizing all the pros and cons • Can we fnd a better solution? • How does the future look like? • Discussion: what could the „one obvious way“ be? 2 What are we talking about and why? 3 Delivery pipeline Production Staging/QA Testing Building/Packaging Development @sebineubauer 4 Delivery pipeline Production Staging/QA Testing Building/Packaging Development @sebineubauer 5 Development Required: • Fast iteration cycles, fast changes • Automated tests can be executed Nice to have: • Production like local environment Risks: • „Works on my machine!“ • Dirty working directory @sebineubauer 6 Delivery pipeline Production Staging/QA Testing Building/Packaging Development @sebineubauer 7 Building/Packaging Required: • Build once, use everywhere • Possibility to compile for the target systems • Build uniquely versioned, signed packages Nice to have: • Upload to an artifact repository Risks: • Misconfguration of the build environment @sebineubauer 8 Delivery pipeline Production Staging/QA Testing Building/Packaging Development @sebineubauer 9 Testing Required: • Automated • Near production like conditions • Reproducible conditions • Minimal changes for testing reasons Nice to have: • Fast feedback • Running after each commit on all branches Risks:
    [Show full text]
  • Xcode Package from App Store
    KH Computational Physics- 2016 Introduction Setting up your computing environment Installation • MAC or Linux are the preferred operating system in this course on scientific computing. • Windows can be used, but the most important programs must be installed – python : There is a nice package ”Enthought Python Distribution” http://www.enthought.com/products/edudownload.php – C++ and Fortran compiler – BLAS&LAPACK for linear algebra – plotting program such as gnuplot Kristjan Haule, 2016 –1– KH Computational Physics- 2016 Introduction Software for this course: Essentials: • Python, and its packages in particular numpy, scipy, matplotlib • C++ compiler such as gcc • Text editor for coding (for example Emacs, Aquamacs, Enthought’s IDLE) • make to execute makefiles Highly Recommended: • Fortran compiler, such as gfortran or intel fortran • BLAS& LAPACK library for linear algebra (most likely provided by vendor) • open mp enabled fortran and C++ compiler Useful: • gnuplot for fast plotting. • gsl (Gnu scientific library) for implementation of various scientific algorithms. Kristjan Haule, 2016 –2– KH Computational Physics- 2016 Introduction Installation on MAC • Install Xcode package from App Store. • Install ‘‘Command Line Tools’’ from Apple’s software site. For Mavericks and lafter, open Xcode program, and choose from the menu Xcode -> Open Developer Tool -> More Developer Tools... You will be linked to the Apple page that allows you to access downloads for Xcode. You wil have to register as a developer (free). Search for the Xcode Command Line Tools in the search box in the upper left. Download and install the correct version of the Command Line Tools, for example for OS ”El Capitan” and Xcode 7.2, Kristjan Haule, 2016 –3– KH Computational Physics- 2016 Introduction you need Command Line Tools OS X 10.11 for Xcode 7.2 Apple’s Xcode contains many libraries and compilers for Mac systems.
    [Show full text]
  • Peter Jaap Blaakmeer CTO Elgentos @Peterjaap
    Magento 2 and Composer Peter Jaap Blaakmeer CTO elgentos @PeterJaap Also; co-organizer MUG050, volunteer Meet Magento NL, beer home-brewing & board games (so I like IPA’s and API’s). What is composer? Dependency management in PHP Not a package manager; composer by default installs modules on a per-project basis, not globally. Why would you use Composer? Time save Code reuse Code sharing Easy upgrades Same code usage Easy removal Forces you to write clean code; no hacking Install composer brew update && brew install homebrew/php/composer Composer components (see what I did there?) composer.phar composer.json composer.lock composer.phar Binary used to work with composer composer.phar Most used commands $ composer update $ composer install $ composer require $ composer create-project Projects’ composer.json Extensions’ composer.json { "name": “elgentos/mage2importer", "description": “Fast refactored Magento 2 product importer", "type": “magento2-module", // or magento2-theme / magento2-language / metapackage "version": "1.3.37", "license": [ "OSL-3.0", "AFL-3.0" ], "require": { "php": "~5.5.0|~5.6.0|~7.0.0", "magento/framework": "~100.0" }, "extra": { "map": [ [ "*", "Elgentos/Mage2Importer" ] ] } } composer.lock Lockfile created when running composer update composer.lock What is the lock file for? It ensures every developer uses the same version of the packages. composer update - installs the latest versions referenced in composer.json & save commit hash in lock file. composer install - installs a specific version identified by a commit hash in the lock file. How to handle composer files in Git? You should commit composer.json to keep track of which extensions are installed. You can commit composer.lock but it is not necessary, depends on your deployment structure, but you’ll probably get a lot of merge conflicts.
    [Show full text]
  • Software Soloist Motion Composer Suite
    SOFTWARE SOLOIST MOTION COMPOSER SUITE The Power to Differentiate Your Process Connect and Go The Soloist Motion Composer Suite is the development solution Setting up your smart drive solution is easy. Quickly set up your motion control application needs. Part of the Soloist single- drives, motors, and stages with the Configuration Manager axis motion control platform, the Motion Composer Suite allows application. This is just one of several tools integrated in the you to deploy advanced automation that outpaces competitive Motion Composer Suite that makes drive, controller, and servo solutions. The suite includes the following products: configuration fast and effective. • Soloist Configuration Manager Setting up an automation process is also quick and easy. The Soloist smart drives include an integrated controller that can talk • Soloist Motion Composer IDE over EtherNet/IP, Ethernet TCP/IP, RS-232, RS-485, and Modbus • Soloist Digital Scope TCP. Powerful Technology, Simply Integrated Fieldbus I/O and expandable I/O on Aerotech drive hardware is The Soloist solution is a powerful performance tool that can directly accessible within the AeroBasic real-time programming be simply integrated into your system. The Motion Composer language. Suite gives you more precision at your fingertips through Develop and Test Real-Time Applications a user-friendly interface with tools for each aspect of your The Soloist Motion Composer Suite includes a powerful development process. Using the Motion Composer Suite, you can environment for real-time developers. The Motion Composer IDE deploy real-time application code to a smart, single-axis drive allows real-time application code to be developed, debugged, and which includes an integrated controller.
    [Show full text]
  • PHP Composer 9 Benefts of Using a Binary Repository Manager
    PHP Composer 9 Benefts of Using a Binary Repository Manager White Paper Copyright © 2017 JFrog Ltd. March 2017 | www.jfrog.com Executive Summary PHP development has become one of the most popular platforms for client and server side web development. Each framework used for PHP development has its own set of advantages, but they all use PHP Composer to manage dependencies, alongside Packagist as the central repository. PHP Composer may be able to fnd the right packages for you, but comes up short in case of network issues and cannot ensure that all developers in your organization are using the same version of a package. It’s issues like these that Artifactory solves for you. This white paper describes the benefts of using PHP Composer together with Artifactory, including: Reliable Access Overcome network issues restricting you from being able to download or update packages. Optimized Build Process Manage resource sharing within your organization to eliminate unnecessary network trafc. Full Support for Docker Support all Docker Registry APIs providing security features needed by enterprise Docker users. Secure Solution Enable controlled access through secure private PHP Composer repositories. Smart Search and Artifactory Query Language (AQL) Find the packages you need using advanced search tools and top-level search capabilities. Distribution and Sharing Enable efcient distribution of proprietary packages to give developers access to the same package version, resolve dependencies, and seamlessly share proprietary code regardless of physical location. Artifactory High Availability Give access to PHP Composer packages in a high availability confguration providing up to fve-nines availability for PHP development. Maintenance and Monitoring Keep an organized managed system with automatic, timed cleanup processes, eliminating old and irrelevant artifacts.
    [Show full text]
  • Drupal & Composer
    Drupal & Composer Matthew Grasmick & Jeff Geerling Speakers Matthew Grasmick Jeff Geerling @grasmash @geerlingguy Acquian Acquian BLT maintainer Drupal VM maintainer 10+ years of Drupal Agenda ● Composer Overview ~40 min ● Hands-on exercises ~30 min ● Advanced Topics ~20 min ● Hands-on free-for-all ~30 min Total ~2 hrs. What is Composer? Composer is a dependency management tool for PHP. It allows you to install, update, and load the PHP libraries that your PHP application depends on. What does that mean? Let’s look at the type of problem Composer solves Say you have a Drupal 7 application. It requires jCarousel. A third party, external dependency. You download the tarball, decompress, move it into place. Voila! Easy, right? Except when it isn’t. Versions matter. Your hypothetical Drupal 7 site requires: ● Drupal Core, which requires jQuery 1.2.0. ● jCarousel, which requires jQuery 1.3.0. 1.2.0 != 1.3.0 Uh oh! What do you do? In Drupal 7, we used ● Various contributed modules ● Hacky workarounds to load multiple versions of jQuery. That worked for dealing with a single library incompatibility. Enter Drupal 8 Drupal 8 In Drupal 8, we use lots of third-party, external dependencies, like ● Symfony ● Doctrine ● Twig ● Etc. This is good. ● We’re getting of the island and using libraries used by the rest of the PHP community! ● We’re using software that is Proudly Found Elsewhere (and tested / supported elsewhere) ● We’re not re-inventing the wheel! But it gets complicated fast. Say you have a Drupal 8 site that requires... ● Drupal Core, which requires ..
    [Show full text]
  • Composer 101
    ______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer 101 Mike Miles | Drupalcon Nashville 2018 events.drupal.org/node/20624 About Me Work: Genuine (wearegenuine.com) Podcast: Developing Up (developingup.com) Online Handle: mikemiles86 (@mikemiles86) Security Update!! PHP projects that have a few dependencies may be able simple to maintain. But complex projects with many layers of dependencies, frustrate developers and waste project time on managing those dependencies. Every project has limited time & budget The more project time is spent on maintaining 3rd party code, the less time there is available to focus on building what will deliver project value. Composer getcomposer.org Composer is a PHP project dependency manager, that handles 3rd party project code, so that the developers do not have to. Adding a few files and utilizing a few commands, composer can be added to any PHP project. Composer takes care of 3rd party code dependencies, installation and maintenance. Composer project structure root/ [composer.phar] composer.json composer.lock vendor/ // everything else... Every Composer based project has a composer.json file, composer.lock file, and vendor director. Optionally it can contain the composer executable. Secure Project Structure root/ [composer.phar] composer.json composer.lock vendor/ webroot/ // everything else... For security purposes, keep all composer related files and directories above the webroot of the project. Access vendor code using the composer autoload.php. root/ [composer.phar] composer.json composer.lock Install vendor/ // everything else..
    [Show full text]
  • Arxiv:1710.04936V1 [Cs.SE] 13 Oct 2017 A
    Manuscript preprint submitted for publication to Empirical Software Engineering Journal An Empirical Comparison of Dependency Network Evolution in Seven Software Packaging Ecosystems Alexandre Decan · Tom Mens · Philippe Grosjean Abstract Nearly every popular programming language comes with one or more package managers. The software packages distributed by such package managers form large software ecosystems. These packaging ecosystems con- tain a large number of package releases that are updated regularly and that have many dependencies to other package releases. While packaging ecosys- tems are extremely useful for their respective communities of developers, they face challenges related to their scale, complexity, and rate of evolution. Typ- ical problems are backward incompatible package updates, and the risk of (transitively) depending on packages that have become obsolete or inactive. This manuscript uses the libraries.io dataset to carry out a quantitative empirical analysis of the similarities and differences between the evolution of package dependency networks for seven packaging ecosystems of varying sizes and ages: Cargo for Rust, CPAN for Perl, CRAN for R, npm for JavaScript, NuGet for the .NET platform, Packagist for PHP, and RubyGems for Ruby. We propose novel metrics to capture the growth, changeability, resuability and fragility of these dependency networks, and use these metrics to analyse and compare their evolution. We observe that the dependency networks tend to grow over time, both in size and in number of package updates, while a minority of packages are responsible for most of the package updates. The majority of packages depend on other packages, but only a small proportion of packages accounts for most of the reverse dependencies.
    [Show full text]
  • Composer-Php
    composer-php #composer- php Table of Contents About 1 Chapter 1: Getting started with composer-php 2 Remarks 2 Examples 2 Overview 2 Installing Composer on Ubuntu 2 Installing on Windows 3 Chapter 2: Auto loading with composer 5 Examples 5 Autoloading 5 Chapter 3: How to use private repositories with Composer 6 Parameters 6 Remarks 6 Examples 6 composer.json syntax 6 Credits 8 About You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: composer-php It is an unofficial and free composer-php ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official composer-php. The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners. Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to [email protected] https://riptutorial.com/ 1 Chapter 1: Getting started with composer- php Remarks This section provides an overview of what composer-php is, and why a developer might want to use it. It should also mention any large subjects within composer-php, and link out to the related topics.
    [Show full text]
  • Release Notes
    Intel® Embedded Software Development Tool Suite 2.3 for Intel® Atom™ Processor Installation Guide and Release Notes Installation Guide and Release Notes Document number: 322069-008US 8 November 2011 Contents: Introduction Technical Support and Documentation What's New System Requirements Installation Notes Installing the Tool Suite Compiler Integration with Yocto Project* 1.1 Application Development Toolkit Installing Debugger Target Support Installing the Sampling Collector for Intel® VTune™ Amplifier XE 2011 Installing the Sampling Collector on Yocto Project* based platforms Tool Suite Usage Issues and Limitations Attributions Disclaimer and Legal Information 1 Introduction This document provides a brief overview as well as usage information for the Intel® Embedded Software Development Tool Suite 2.3 for Intel® Atom™ processor and provides pointers to where you can find additional product information, technical support, articles and whitepapers. It also explains how to install the Intel® Embedded Software Development Tool Suite 2.3 for Intel® Atom™ processor product. Installation is a multi-step process. Please read this document in its entirety before beginning and follow the steps in sequence. The Intel® Embedded Software Development Tool Suite for Intel® Atom™ Processor consists of multiple components for developing, debugging, tuning and deploying system and application code targeted towards embedded designs using the Intel® Atom™ Processor. Intel® Embedded Software Development Tool Suite 2.3 for Intel® Atom™ Processor 1 Product Contents The product contains the following components 1. Intel® C++ Compiler 12.1 for Linux* 2. Intel® Integrated Performance Primitives 7.0.5 for Linux* 3. Intel® VTune™ Amplifier XE 2011 3.1. Intel® VTune™ Amplifier XE 2011 Update 5 3.2.
    [Show full text]