Lecture 5 Evaluation Boards & GPL Start on Linux (Time Allowing)
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
At—At, Batch—Execute Commands at a Later Time
at—at, batch—execute commands at a later time at [–csm] [–f script] [–qqueue] time [date] [+ increment] at –l [ job...] at –r job... batch at and batch read commands from standard input to be executed at a later time. at allows you to specify when the commands should be executed, while jobs queued with batch will execute when system load level permits. Executes commands read from stdin or a file at some later time. Unless redirected, the output is mailed to the user. Example A.1 1 at 6:30am Dec 12 < program 2 at noon tomorrow < program 3 at 1945 pm August 9 < program 4 at now + 3 hours < program 5 at 8:30am Jan 4 < program 6 at -r 83883555320.a EXPLANATION 1. At 6:30 in the morning on December 12th, start the job. 2. At noon tomorrow start the job. 3. At 7:45 in the evening on August 9th, start the job. 4. In three hours start the job. 5. At 8:30 in the morning of January 4th, start the job. 6. Removes previously scheduled job 83883555320.a. awk—pattern scanning and processing language awk [ –fprogram–file ] [ –Fc ] [ prog ] [ parameters ] [ filename...] awk scans each input filename for lines that match any of a set of patterns specified in prog. Example A.2 1 awk '{print $1, $2}' file 2 awk '/John/{print $3, $4}' file 3 awk -F: '{print $3}' /etc/passwd 4 date | awk '{print $6}' EXPLANATION 1. Prints the first two fields of file where fields are separated by whitespace. 2. Prints fields 3 and 4 if the pattern John is found. -
Open-Source-Licenses.Pdf
Open Source Licenses Olivier Dony @odony Agenda o Brief history: GPL and Copyleft o AGPL vs LGPL o Licenses of Odoo 9 o Combining licenses Brief history: GPL Before 1980, most programs were distributed with source code by default (for portability, bugfixing, auditing, etc.) Most software came from an academic background Then the situation changed. GPL = Copyleft Copyleft relies on universal Copyright laws to enforce freedom for a piece of work The Free Software Foundation defines four freedoms: use, modify, distribute, and distribute modifications To guarantee these freedoms to every user, GPL forbids any restriction coming from other licenses Brief history: GPL 1983: Richard Stallman creates GNU 1989: GPLv1 is born (bin + source, no restrictions) 1991: GPLv2, LGPLv2 (“liberty or death”, C-lib) 1999: LGPLv2.1 (library -> lesser) 2007: GPLv3, LGPLv3, AGPLv3 (DRM, tivoization, wording, patents) Brief history: Odoo 2005: TinyERP 1.0-4.0 – GPLv2 or later 2009: OpenERP 5.0 – GPLv3 or later + OEPL (web) 2011: OpenERP 6.0 – AGPLv3 + OEPL (web) 2012: OpenERP 6.1 – AGPLv3 2012: OpenERP0 0 0 7.02 – AGPLv3 5 0 2014: Odoo 8.0 – AGPLv3 0 2 2015:0 Odoo1 0 2 9.0 – CE: LGPLv3 + OE AGPL GPL is a strong copyleft license, but it suffers from the ASP loophole (Cloud) => 4 freedoms are only enforced if distributed AGPL was created to fix this, by adding the Section 13 provision: Copyleft applies as soon as users are interacting remotely with the program LGPL GPL is a strong copyleft license, but lacks a linking exception => Unsuitable for libraries, such as the C lib LGPL was created to fix this, by adding a linking exception on top of GPL “Using/Linking” in any program is OK if the LGPL part can be modified/replaced. -
Unix/Linux Command Reference
Unix/Linux Command Reference .com File Commands System Info ls – directory listing date – show the current date and time ls -al – formatted listing with hidden files cal – show this month's calendar cd dir - change directory to dir uptime – show current uptime cd – change to home w – display who is online pwd – show current directory whoami – who you are logged in as mkdir dir – create a directory dir finger user – display information about user rm file – delete file uname -a – show kernel information rm -r dir – delete directory dir cat /proc/cpuinfo – cpu information rm -f file – force remove file cat /proc/meminfo – memory information rm -rf dir – force remove directory dir * man command – show the manual for command cp file1 file2 – copy file1 to file2 df – show disk usage cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it du – show directory space usage doesn't exist free – show memory and swap usage mv file1 file2 – rename or move file1 to file2 whereis app – show possible locations of app if file2 is an existing directory, moves file1 into which app – show which app will be run by default directory file2 ln -s file link – create symbolic link link to file Compression touch file – create or update file tar cf file.tar files – create a tar named cat > file – places standard input into file file.tar containing files more file – output the contents of file tar xf file.tar – extract the files from file.tar head file – output the first 10 lines of file tar czf file.tar.gz files – create a tar with tail file – output the last 10 lines -
Unix/Linux Command Reference
Unix/Linux Command Reference .com File Commands System Info ls – directory listing date – show the current date and time ls -al – formatted listing with hidden files cal – show this month's calendar cd dir - change directory to dir uptime – show current uptime cd – change to home w – display who is online pwd – show current directory whoami – who you are logged in as mkdir dir – create a directory dir finger user – display information about user rm file – delete file uname -a – show kernel information rm -r dir – delete directory dir cat /proc/cpuinfo – cpu information rm -f file – force remove file cat /proc/meminfo – memory information rm -rf dir – force remove directory dir * man command – show the manual for command cp file1 file2 – copy file1 to file2 df – show disk usage cp -r dir1 dir2 – copy dir1 to dir2; create dir2 if it du – show directory space usage doesn't exist free – show memory and swap usage mv file1 file2 – rename or move file1 to file2 whereis app – show possible locations of app if file2 is an existing directory, moves file1 into which app – show which app will be run by default directory file2 ln -s file link – create symbolic link link to file Compression touch file – create or update file tar cf file.tar files – create a tar named cat > file – places standard input into file file.tar containing files more file – output the contents of file tar xf file.tar – extract the files from file.tar head file – output the first 10 lines of file tar czf file.tar.gz files – create a tar with tail file – output the last 10 lines -
License Expectations 1 Contents
License Expectations 1 Contents 2 Licensing constraints 2 3 GPL-3 and derivatives ........................... 2 4 Original 4 clause BSD license ....................... 3 5 Apertis Licensing expectations 3 6 General rules of the Apertis project and their specific constraints ... 3 7 Apertis Repository component specific rules ............... 3 8 target ................................. 4 9 hmi .................................. 4 10 sdk ................................... 5 11 development .............................. 5 12 Auditing the license of a project 5 13 Documenting exceptions 6 14 Appendix 6 15 The Debian Free Software Guidelines (DFSG) .............. 6 16 Apertis aims to accomplish the following goals with it’s licensing: 17 • Ensure that all the software shipped in Apertis is open source or at least 18 freely distributable, so that downstreams are entitled to use, modify and 19 redistribute work derived from our deliverables. 20 • Ensure that Apertis images targeting devices (such as HMI and fixedfunc- 21 tion), are not subject to licensing constraints that may conflict with the 22 regulatory requirements of some intended use cases. 23 In order to reach these goals, the below assumptions are made: 24 • Licenses declared by open source projects are correct: The soft- 25 ware authors correctly document the licensing of their released software 26 sources and that they have all the rights to distribute it under the docu- 27 mented terms. 28 • Licenses verified by the Debian project are correct: The package 29 distributors (that is, Debian maintainers and the FTP Masters team) 30 check that the licensing terms provided by the software authors are 31 open source using the definitions in the Debian Free Software Guide- 1 32 lines and ensure those terms are documented in a canonical location 33 (debian/copyright in the package sources). -
Open Source Claire Le Goues
Foundations of Software Engineering Lecture 24: Open Source Claire Le Goues 1 Learning goals • Understand the terminology “free software” and explain open source culture and principles. • Express an educated opinion on the philosophical/political debate between open source and proprietary principles. • Reason about the tradeoffs of the open source model on issues like quality and risk, both in general and in a proprietary context. 2 Motivation to understand open source. • Companies work on open source projects. • Companies use open source projects. • Companies are based around open source projects. • Principles percolate throughout industry. • Political/philosophical debate, and being informed is healthy. 3 Quick and easy definitions • Proprietary software – software which doesn’t meet the requirements of free software or open source software • Free software – software with a strong emphasis on user rights • Open source software – software where the source code is shared with the community • Does Free Software = Open Source? 4 “Free as in free speech.” 5 6 Stallman vs. Gates 7 Free Software vs Open Source • Free software origins (70-80s ~Stallman) – Political goal – Software part of free speech • free exchange, free modification • proprietary software is unethical • security, trust – GNU project, Linux, GPL license • Open source (1998 ~ O'Reilly) – Rebranding without political legacy – Emphasis on internet and large dev./user involvement – Openness toward proprietary software/coexist – (Think: Netscape becoming Mozilla) 8 The Cathedral and the Bazaar 9 The Cathedral and the Bazaar • Cathedral (closed source) – Top-down design with focus on planning • Bazaar (open source) – Organic bottom-up movement – Code always public over internet – Linux/Fetchmail stories 10 Eric Raymond. -
Linux Shell Script to Find Kernel Version from Multiple Servers Linux Shell Script That Will Login to Server Via Ssh and Get Kernel Version Via Uname -R Command
Linux Shell Script To Find Kernel Version From Multiple Servers Linux shell script that will login to server via ssh and get kernel version via uname -r command. List of all the servers are in server_list.txt file, script will take name by name and try to ssh with the root user and run uname -r command. Output will be written to variable and after into file with servername. This script helps system administrator who manage large linux servers , to take reports of what linux versions running. Here I have used uname -r but you can edit and use your own command as per your requirements. Source : http://linoxide.com/linux-shell-script/kernel-version-multiple/ Linux Shell Script #!/bin/bash #we user variable serverlist to keep there path to file with server names serverlist=’server_list.txt’ #we write in variable all server list servers=`cat $serverlist` #we use variable result to keep there path to file with result result=’result.txt’ #this print header to file with resilt using \t\t to add 2 tab symbols echo -e “Servername \t\t kernel version”> $result #this get each line of serverlist one by one and write to server variable for server in $servers do #this login to server by ssh and get uname -r kernel=`ssh root@${server} “uname -r”` #this write server name and kernel version separated by 2 tab to result file echo -e “$server \t\t $kernel” >> $result #end of for loop. done server_list.txt file # cat server_list.txt dev Linux Shell Script To Find Kernel Version From Multiple Servers 1 www.linoxide.com web1 svn Shell Script Output ./kernel_version.sh centos_node1@bobbin:~/Documents/Work/Bobbin$ cat result.txt Servername kernel version dev 3.3.8-gentoo web1 3.2.12-gentoo svn 3.2.12-gentoo Linux Shell Script To Find Kernel Version From Multiple Servers 2 www.linoxide.com. -
Linux Networking Cookbook.Pdf
Linux Networking Cookbook ™ Carla Schroder Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo Linux Networking Cookbook™ by Carla Schroder Copyright © 2008 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Editor: Mike Loukides Indexer: John Bickelhaupt Production Editor: Sumita Mukherji Cover Designer: Karen Montgomery Copyeditor: Derek Di Matteo Interior Designer: David Futato Proofreader: Sumita Mukherji Illustrator: Jessamyn Read Printing History: November 2007: First Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. The Cookbook series designations, Linux Networking Cookbook, the image of a female blacksmith, and related trade dress are trademarks of O’Reilly Media, Inc. Java™ is a trademark of Sun Microsystems, Inc. .NET is a registered trademark of Microsoft Corporation. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. -
Benchmark Recipe for GATK* Best Practices Pipeline Deployment
BENCHMARK RECIPE Deploying GATK Best Practices Pipeline Below are the scripts files accompanying and as documented in the Infrastructure for Deploying GATK Best Practices Pipeline paper. ____________________________________________________________________________ GATK Best Practices Pipeline_README The following scripts are designed to take the same arguments to keep it consistent for running tests. For single threaded baseline analysis with no optimizations, run the data_colletion_gatk_best_practices_pl script with NumThreads as “1”. For both thread level and process level parallelism analysis, use the data_collection_gatk_best_practices_optimized.pl script with NumThreads as proposed in the paper. ____________________________________________________________________________________________ Data Collection Script for GATK Best Practices Pipeline (wgs_end2end_data_collection_gatk_best_practices.pl) #!/usr/bin/perl if (scalar(@ARGV) < 5) { die("Usage: SampleName NumThreads InputDataDirectory TempOutputDirectory profiling \n[if profiling is enabled, then the following is required]: collectstatspath interval stats \n"); } my $sample = $ARGV[0]; my $numThreads = $ARGV[1]; my $inDataDir = $ARGV[2]; my $tmpDir = "".$ARGV[3]; my $profiling = $ARGV[4]; #by default profiling is turned ON if invoked from the workflow profiler # arguments for collect_stats my $collectstatspath = $ARGV[5]; my $interval = $ARGV[6]; # by default sampling interval is 30s from the workflow profiler. my $stats = $ARGV[7]; #my $numLanes =$ARGV[1]; my $called = "$0 @ARGV"; -
The General Public License Version 3.0: Making Or Breaking the FOSS Movement Clark D
Michigan Telecommunications and Technology Law Review Volume 14 | Issue 2 2008 The General Public License Version 3.0: Making or Breaking the FOSS Movement Clark D. Asay Follow this and additional works at: http://repository.law.umich.edu/mttlr Part of the Computer Law Commons, and the Science and Technology Law Commons Recommended Citation Clark D. Asay, The General Public License Version 3.0: Making or Breaking the FOSS Movement, 14 Mich. Telecomm. & Tech. L. Rev. 265 (2008). Available at: http://repository.law.umich.edu/mttlr/vol14/iss2/1 This Article is brought to you for free and open access by the Journals at University of Michigan Law School Scholarship Repository. It has been accepted for inclusion in Michigan Telecommunications and Technology Law Review by an authorized editor of University of Michigan Law School Scholarship Repository. For more information, please contact [email protected]. THE GENERAL PUBLIC LICENSE VERSION 3.0: MAKING OR BREAKING THE FOSS MOVEMENT? Clark D. Asay* Cite as: Clark D. Asay, The GeneralPublic License Version 3.0: Making or Breaking the Foss Movement? 14 MICH. TELECOMM. TECH. L. REV. 265 (2008), available at http://www.mttlr.org/volfourteen/asay.pdf I. INTRODUCTION ......................................................................... 266 II. FREE SOFTWARE V. OPEN SOURCE ........................................... 268 A. The FSF's Vision of Free Software..................................... 268 B. The OSI's Vision: A Different Movement? ......................... 270 C. PracticalDifferences? ....................................................... 271 III. G PLv3: ITS T ERM S................................................................... 274 A. GPLv3 's Anti-DRM Section ............................................... 274 1. Its C ontents ................................................................. 274 2. FSF's Position on DRM .............................................. 276 3. The Other Side of the Coin? OSI Sympathizers ........ -
Linux Networking 101
The Gorilla ® Guide to… Linux Networking 101 Inside this Guide: • Discover how Linux continues its march toward world domination • Learn basic Linux administration tips • See how easy it can be to build your entire network on a Linux foundation • Find out how Cumulus Linux is your ticket to networking freedom David M. Davis ActualTech Media Helping You Navigate The Technology Jungle! In Partnership With www.actualtechmedia.com The Gorilla Guide To… Linux Networking 101 Author David M. Davis, ActualTech Media Editors Hilary Kirchner, Dream Write Creative, LLC Christina Guthrie, Guthrie Writing & Editorial, LLC Madison Emery, Cumulus Networks Layout and Design Scott D. Lowe, ActualTech Media Copyright © 2017 by ActualTech Media. All rights reserved. No portion of this book may be reproduced or used in any manner without the express written permission of the publisher except for the use of brief quotations. The information provided within this eBook is for general informational purposes only. While we try to keep the information up- to-date and correct, there are no representations or warranties, express or implied, about the completeness, accuracy, reliability, suitability or availability with respect to the information, products, services, or related graphics contained in this book for any purpose. Any use of this information is at your own risk. ActualTech Media Okatie Village Ste 103-157 Bluffton, SC 29909 www.actualtechmedia.com Entering the Jungle Introduction: Six Reasons You Need to Learn Linux ....................................................... 7 1. Linux is the future ........................................................................ 9 2. Linux is on everything .................................................................. 9 3. Linux is adaptable ....................................................................... 10 4. Linux has a strong community and ecosystem ........................... 10 5. -
Embedded Operating Systems
7 Embedded Operating Systems Claudio Scordino1, Errico Guidieri1, Bruno Morelli1, Andrea Marongiu2,3, Giuseppe Tagliavini3 and Paolo Gai1 1Evidence SRL, Italy 2Swiss Federal Institute of Technology in Zurich (ETHZ), Switzerland 3University of Bologna, Italy In this chapter, we will provide a description of existing open-source operating systems (OSs) which have been analyzed with the objective of providing a porting for the reference architecture described in Chapter 2. Among the various possibilities, the ERIKA Enterprise RTOS (Real-Time Operating System) and Linux with preemption patches have been selected. A description of the porting effort on the reference architecture has also been provided. 7.1 Introduction In the past, OSs for high-performance computing (HPC) were based on custom-tailored solutions to fully exploit all performance opportunities of supercomputers. Nowadays, instead, HPC systems are being moved away from in-house OSs to more generic OS solutions like Linux. Such a trend can be observed in the TOP500 list [1] that includes the 500 most powerful supercomputers in the world, in which Linux dominates the competition. In fact, in around 20 years, Linux has been capable of conquering all the TOP500 list from scratch (for the first time in November 2017). Each manufacturer, however, still implements specific changes to the Linux OS to better exploit specific computer hardware features. This is especially true in the case of computing nodes in which lightweight kernels are used to speed up the computation. 173 174 Embedded Operating Systems Figure 7.1 Number of Linux-based supercomputers in the TOP500 list. Linux is a full-featured OS, originally designed to be used in server or desktop environments.