Information Technologies

Slides:



Advertisements
Podobne prezentacje
Jarosław Kurek WZIM SGGW
Advertisements

Projekt Do kariery na skrzydłach – studiuj Aviation Management Projekt współfinansowany ze ś rodków Europejskiego Funduszu Społecznego. Biuro projektu:
Podstawowe komendy UNIXA
Projekt współfinansowany przez Unię Europejską w ramach Europejskiego Funduszu Społecznego Projektowanie warstwy klienckiej aplikacji internetowych Podstawy.
Przegląd zagadnień Struktura sieci systemu Windows 2003
Zestawienie wyników badań Researches summary. 1. Czy Twoi rodzice uprawiają jakieś sporty lub w inny aktywny sposób spędzają wolny czas poświęcając im.
Wyobraź Sobie… NAJNOWSZY PRODUKT! Broadcasting do nielimitowanej ilości odbiorców Najnowsza i JEDYNA tego typu Technologia Streamingu.
System plików systemu linux
North Ireland. ● Kliknij, aby edytować format tekstu konspektu – Drugi poziom konspektu ● Trzeci poziom konspektu – Czwarty poziom konspektu ● Piąty poziom.
How to make an application on Step by Step Instructions
SHOPPING- ROBIENIE ZAKUPÓW.
Wprowadzenie do systemu Cracow Cloud One
Wydział Elektroniki Kierunek: AiR Zaawansowane metody programowania Wykład 5.
HAIRDRESSING.
Rights of the child. Kliknij, aby edytować format tekstu konspektu Drugi poziom konspektu  Trzeci poziom konspektu Czwarty poziom konspektu  Piąty poziom.
C OMPUTER. P ODZESPOŁY KOMPUTEROWE - C OMPUTER COMPONENTS.
Wstęp do Fizyki Środowiska - Podstawy mechaniki płynów Problems 1 Lecture 1 1)In a vertical capillary filled with water air bubbles are rising Sketch the.
CROSSWORD: SLANG. Konkurs polega na rozwiązaniu krzyżówki. CROSSWORD: SLANG Wypełnione karty odpowiedzi prosimy składać w bibliotece CJK, lub przesyłać.
Komponentowe i rozproszone Interludium czyli krótki wykład o rozpraszaniu.
Assessment of the impact of regular pilates exercises on static balance in healthy adult women. Preliminary report. 1 Rehabilitation Department, Division.
You are about to see a few sentences in Polish. Try to translate them into English, but keep in mind they are: The First Conditonal The Second Conditional.
Adaptive, Component Based System Architecture for Monitoring Data Storing Distributed Systems Research Group Department of Computer Science AGH-UST Cracow,
Legnica ul. Anielewicza 3/1b tel fax mobile Automatyka.
JOB SEARCH IS A JOB Career planning is building bridges from one’s current job/career.
Foundation for Promotion of Entrepreneurship – Continuing Education and Lifelong Learning NGO that responds to the training needs Fundacja Rozwoju Przedsiębiorczości.
Dr Wojciech Woźniak Department for General Sociology University of Lodz Projekt Zrównoważony rozwój, zrównoważone społeczeństwo – opracowanie i wdrożenie.
Wyższa Szkoła Pedagogiczna im. Janusza Korczaka w Warszawie Internet security risk management Prof. Artis Teilans, Aleksandrs Larionovs.
FORESTS IN POLAND. THE AREA OF FORESTS IN POLAND Forests in Poland grow on 9 million hectares, which cover more than 28% of the country. The majority.
Marcin Gliński Instytut Języków Romańskich i Translatoryki UŚ Regionalny Ośrodek Doskonalenia Nauczycieli WOM w Katowicach NOCNE POWTÓRKI MATURALNE 2016.
7 Międzynarodowa Konferencja INŻYNIERIA PRODUKCJI – r. Wrocław Piotr Garbacz INTEGRATED VISION SYSTEMS VERSUS CUSTOM SOLUTIONS FOR.
C PRZEWODNIK PO NAJCIEKAWSZYCH MIEJSCACH WROCŁAWIA - GUIDE TO THE MOST INTERESTING PLACES OF WROCLAW Cześć jestem Krzysztof. Dziś będę pokazywał Ci Najciekawsze.
Important holidays and festivals in Poland. The first of January New Year’s Day New Year’s Day the day of Mary the Holy Mother of God – for Catholics.
INFORMACJA NAUKOWA JAKO MODEL I WYOBRAŻENIE WIEDZY SCIENTIFIC INFORMATION AS A MODEL AND REPRESENTATION OF SCIENCE Henryk Hollender Lazarski University.
Www,mojesilnedrzewo.pl. W dniach 15 marca – 30 kwietnia 2010.r.wytwórnia wody mineralnej Żywiec Zdrój SA wspólnie z Fundacją Nasza Ziemia i Regionalną.
SEO and SEM (notes from 7 th International Internet Marketing Conference, 5 – 7 April 2004) by Siang Tay Marketing and Development Unit, UniSA.
Opracowanie: Katarzyna Gagan, Anna Krawczuk
„Forests in Poland and Europe. Characteristics and management.”
Wprowadzenie do OpenSolaris
Przetestuj Usability Mateusz Kaczmarek
Rules of editing the documents
Łukasz Gąsior wrocnet – 16/02/2016
SafeSurfing Moduł 1 Jak bezpiecznie korzystać z internetu i jak chronić swoje dane osobowe?
„What’s up” in CITES implementation in Poland
Dell EMC Channel Technology Event
Tworzenie zdań i zastosowanie
System śledzenia punktu fiksacji wzroku na monitorze komputerowym
A prototype of distributed modelling environment
Managed Service Identity dla zasobów w Microsoft Azure
9/20/2018 5:29 AM Pobranie pisma potwierdzającego kompetencje w programie Microsoft Partner Network Instrukcja Ostatnia aktualizacja © 2014.
Running Dictation Activity to Engage Students in Reading, Writing, Listening, and Speaking.
EMPOWEREMENT IN ICT SKILLS. I CREATED MY WEBSITE TO USE IT FOR TEACHING.
Linux Live CD Alternatywne Systemy & Webmarss 2009.
Twoje nowoczesne biuro
Lesson 11 – Problem Solving & Applications of Functions
Dynamics 365 CE i język TypeScript
Automate your SSIS deployment process
Zaawansowana administracja systemem operacyjnym GNU/Linux
Konfiguracja aplikacji sieciowej
INERNATIONAL LOGISTICS
Mariusz Dybał - Portfel akcyjny PTEbnmbnmbn mbn,bm,b
Polish L3 Learning Pack Saying your name
MuTOH KIERUNKI ROZWOJU
zl
1) What is Linux 2) Founder and mascot of linux 3) Why Torvalds created linux ? 4) System advantages and disadvantages 5) Linux distributions 6) Basic.
Beata Charkiewicz. Table of Contents  Introduction To Android  History Of Android  What is OHA?  Devices with android  Android Features  Android.
Seniors in Poland.
Cover page Change background image by right-clicking → Edit background Picture fill → From file First move the gradient mask by activating it (clicking.
SatMapping Your map from space Cover page
Internet Applications Lynn Bashaw Manager, Network Engineering.
MODELOWANIE ZMIENNOŚCI CECH
Zapis prezentacji:

Information Technologies Cognitive Science Year I, Sem. I, Lectures (30 h.) prof. dr. Piotr Giza kognitywistyka.umcs.lublin.pl

General information about the subject sem I: 30 lectures + 30 labs Teaching language: English Assessment: Final written exam + practical lab. test Lectures: dr hab. Piotr Giza Labs: dr hab. Piotr Giza, dr hab. Marcin Wolski Learning outcomes – the syllabus: Knowledge Skills Attitude

Twentieth century: advent of contemporary programmable computers Short history of calculating machines: from abacus to a digital computer Mechanical arithmometers Electric and electronic arithmometers Some pictures... Twentieth century: advent of contemporary programmable computers Automation: the concept of the algorithm Analog and digital machines Technological breakthrough: lamps, transistors, integrated circuits... Software breakthrough: UNIX operating system

Computer system scheme

Free software: operating systems, utility programs, tools... Operating systems: Linux Office: Libre Office, Calligra, Latex, Lyx Graphics: GIMP, Inkscape, Okular, Gscan2pdf, GimageReader. BTW: look at the mobile app ScanWritr Internet: Mozilla (Firefox, Thunderbird, Sunbird), Evolution Cryptography: GnuPG, TrueCrypt Multimedia: Mplayer, VLC, K3b, Acetoneiso, Avidemux, Kdenlive, Audacity Tools: Gparted, Wireshark What is still missing?... advanced games for free, Alcohol (120%), Fine Reader... Now, on the following slides, some basic information about selected software, helpful for our labs, then we will come back to the previous slide and discuss operating systems and hardware in some detail.

Elements of text editing and formatting [4, 5, 6] Basic concepts: editing and formatting text File formats Basic editing operations Basic components of a document: character, paragraph, page Styles and templates Elementary formatting errors and how to avoid them: (example: bad.odt file) Formatting and processing text: (example: exercises.pdf file) Dialog windows: character, paragraph, page and their important options Columns, tables, and sections Inserting manual marks, fields, special characters, and formatting marks Graphics, charts, and fontwork Spelling and automatic spell checking; auto-replacement

Elements of text editing and formatting Creating “scientific” publications: semester works, master's theses… (example: BA thesis) Styles and formatting: title, headings, text body, citations... Inserting multilevel numbers in headings: outline numbering dialog Modifying Text Body style: automatic first line indent and widows-orphans protection The “anglo-saxon” (APA) style of references, footnotes, and bibliography Bibliographical references Footnotes Kinds of bibliographical entries: books, papers, collectted papers, proceedings… Formatting bibliography: indent before text and negative first line indent in all entries Automatic generation of table of contents and editing its entries to insert spaces after numbers at all levels used (typically 3). Editing Bibliography Heading style to include it in outline numbering. Page numbering and “live” header: First page and Left/Right page styles

Creating a spreadsheet Basic concepts: spreadsheet, cell, line, column (Example: paylist.jpg) Inserting data and data types Basic editing operations Formatting a spreadsheet: borders, background, alignment, column and line width Creating a spreadsheet: Automatic numbering Formulas and their “intelligent” copying and expanding Graphical representation of results Formatting a spreadsheet for printing: Menu Print Preview and its options Page size and orientation Margins and column width

Using spreadsheet as a database Basic concepts and definitions: database, records, and fields How records and fields correspond to rows and cells of a table Retrieving information from a database Sorting records by specific fields Constructing a standard filter: eg. filter out women who got more than 2 000 zloty per month Putting them together

Using spreadsheet as a database Mail merge: generating documents for each record in a database (example: letter of recognition.pdf Creating a database Creating a template document containing fields from the database (registering it in LibreOffice) Running the Mail Merge Wizard, setting some options and generating merged documents

E-mail encryption: GnuPG – Public-key cryptography General overview and basic steps [7, 8, 9, 10] Step 1: Installing a dedicated e-mail client: Mozilla Thunderbird Webmail clients and dedicated IMAP/SMTP clients: what is the difference? Configuring Thunderbird for your existing (Bacon, Gmail?) e-mail account Testing communication Incoming and outgoing mail settings

E-mail encryption: GnuPG – Public-key cryptography Step 2 (Windows): Installing Gpg4Win [9] Downloading the program from its webpage Performing full installation (all the program components) Step 3: Installing Enigmail plugin for Thunderbird [10] Did the new Enigmail menu appear?

E-mail encryption: GnuPG – Public-key cryptography Using Enigmail [10] (pictures from [8]) Manually generating a pair of keys: public and private (passphrase protected), no revocation certificate What is the function of each key: public: encryption and verification of signatures private: decryption and signing Sending the public key to your friends Sending encrypted mails to people, whose public keys you have Sending signed messages to people, who have your public key Trying both What if you cannot decrypt the message or verify the signature?

Creating a webpage and/or blog LAMP – the great opensource team in action Linux Apache Mysql Php: what is it? „Static” html webpages: a the mechanism the client browser sends request to the server the Apache serves content to the client over the web the browser interprets received code and displays it to the user and so on... Example: „Dynamic” pages: the php – mysql tandem the Apache executes php code on the page php scripts connect to mysql server exchanging information with a database and dynamically generate the webpage Examples: Wordpress, Joomla, Drupal, Roundcube...

Creating a webpage and/or blog (Wordpress) What is Wordpress? [11] Famous 5-minutes install of Wordpress in 5 steps [12] Step 1: Download and unzip the WordPress package Step 2: Create a database for WordPress on your web server, as well as a MySQL (or MariaDB) user who has all privileges for accessing and modifying it. For this you may setup your own Linux server or register with a hosting provider (like cba.pl) who will provide you with services and tool he offers, as well as the domain for your website. Most commonly used tool for managing MySQL is phpMyAdmin Step 3: Find and rename wp-config-sample.php to wp-config.php, then edit the file and add your user and database information you provided in step 2 Step 4: Upload the WordPress files to the desired location on your web server. You will need an ftp client (like FireFTP plugin for Firefox) and ftp login data from your provider Step 5: Run the WordPress installation script by accessing the URL in a web browser. This should be the URL where you uploaded the WordPress files. Complete the install and create the blog admin account and password (do not forget them!)

Creating a webpage and/or blog (Wordpress) Now what? First steps with WordPress [13 → First steps] Login to the backend After logging in you are on the main Administration Screen called the Dashboard. This is the brain behind your website, the place where you can let your creativity explode, writing brilliant prose and designing the best and most lovely website possible What the various menu items of the Administration Screen are for: Dashboard Posts Media Links Pages Comments Appearance Plugins Users Tools Settings

Computer system scheme (back to slide 4) How does it work?...

Mathematical foundations – the binary system Basic ideas of positional systems: decimal, binary, ...: 201210 = 2 * 103 + 0 * 102 + 1 * 101 + 2 * 100 710 = 1 * 22 + 1 * 21 + 1 * 20 = 1112 Calculations.... 30 ÷ 2 = 15 rest 0 15 ÷ 2 = 7 rest 1 7 ÷ 2 = 3 rest 1 3 ÷ 2 = 1 rest 1 1 ÷ 2 = 0 rest 1 To calculate binary representation of a number, we copy rest values in reverse order. 3010=111102

Haksadecimal system The system is based on number 16 raised to appropriate power The number of 16-s ranges between 0-15: 0 1 2 3 4 5 6 7 8 9 A B C D E F For example: 710 = 7 * 160 = 716 1610 = 1 * 161 + 0 * 160 = 1016 FF16 = 15 * 161 + 15 * 160 = 240 + 15 = 25510

Binary information definition: What is a logarithm:( ? What is probability:( ? 𝐼 𝑏 = log 2 1 𝑝

Binary information definition: Examples: Playing cards ASCII characters (what is it?) --> ask Google:) Text file size (dir) Bits, bytes, kilo-, mega- i terabytes Bitrate for mp3 files (example: 128 kb/s)

Computer system and operating system – definitions What is a computer system? Hardware and its basic parameters, units of measure... CPU (GHz, number of cores, cache...) RAM (GB) Disc system (GB, TB) Peripherals Network interfaces (Mb/s) Programs: operating system(Windows, Unix, Linux, Mackintosh, Android...), utility programs, programming languages... People: administrators, users…

What is the operating system doing? OS tasks: Managing resources (CPU, RAM, disks, I/O devices, network interfaces…) and sharing them among user programs Resolving conflicts in hardware access Creating the environment in which programs work

Two (mutually contradictory) requirements operating systems should meet: Comfort (workstations): Easy, user-friendly, intuitive interface (GUI – Graphical User Interface) Efficiency (servers): Speed, optimal use of resources, cost minimization (TUI – Text User Interface) Demonstration: various user interfaces in Linux

Multitasking OS (with time-sharing) The ability to run more than one task simultaneously Effective time-sharing of CPU power among many tasks Shoemaker or lawyer analogy... Does a multitasking system require “windows” (GUI)? Demonstration..

Multi-user (multi-access) OS Simultaneous, full access to system resources by more than one user Windows: depending on the version (and price!) we have partial or full multiaccess. Basic concepts: workstation and file server vs. terminal and application server UNIX-es: full multi-access: in text and (later) in graphical mode Demonstration: (UNC) \\bacon.umcs.lublin.pl\test: disk mapping, running a program saved on a remote disk UNIX multi-access: text ssh clients (putty, ssh…) and X2Go graphical client

Filesystem – basic concepts MBR Partition table: primary and extended partitions Filesystem types: fat32, ntfs, ISO9660, ext2..4, reiserfs...: FAT The smallest allocation unit: cluster. Some example sizes: how to check it? Problems: How much space on disk is required for a 0 B file? How to calculate the maximum number of files that can be written on a harddrive? Demonstration: disk management (Windows), Prtition Magic, gparted (Linux)

What is virtual memory (SWAP) and why do we use it? It is a dedicated area on the filesystem (file, partition...), which the processor (system) can use as an additional amount of physical RAM. This can overcome memory limitations. An intelligent system moves tasks that have not used CPU power for a long time from RAM to SWAP area in order to release as much RAM as possible SWAP is much slower than RAM… which in turn is much slower than CPU cache, which in turn is much slower than CPU chips. Of course, price rapidly increases with speed, so money matters here:) Demonstration: System monitor (Windows, Linux)

Some history of operating systems Early history (1950s): systems dedicated for particular machines 1969: AT&T Bell LAB i MIT - Ken Thompson, UNIX: IBM PDP 11 and . The directory structure is very much like in modern Linux o 2016 and very different from that of Windows:) 1970 - Denis Ritchie i Ken Thompson created the C language and re-writed the source code of UNIX in C. Thanks to this the system become scalable: one could compile it for various hardware platforms. An example program and its compilation: gcc temperat.cpp -o temperat IBM OS/2 Macintosh Microsoft DOS Microsoft Windows 3.x, 95, .... Linux, 1992 (Linus Torvalds) → Distributions: Slackware, RedHat (CentOs, Fedora), Debian (stable, testing...). Other: Ubuntu, Kubuntu, Mandriva, PLD, ...

Systemy Linuxowe How to install: Regular installation to hard drive from DVD or netinst CD Install Linux in virtual environment under Windows: https://fedoramagazine.org/install-fedora-virtualbox-guest/ Create a bootable pendrive with Linux: The Linux LiveUsb (LiLi) program (for Windows) http://www.linuxliveusb.com/ FC 25 images (the one we use on Bacon and in our labs) can be downloaded from: http://ftp.icm.edu.pl/pub/Linux/dist/fedora/linux/releases/25/Spins/i386/iso I recommend Mate, the one we use on X2go terminals A 4 GB disk space on a pendrive is enough. The .iso image takes about 1.7 GB, and you need about 1-2 GB for so called persistent storage area that enables you to install additional software, change configuration and keep your data. You can use your pendrive everywhere, also as a normal disk with data. You can also install Linux from your pendrive to a hardrive.

Systemy Linuxowe Kernel (vmlinuz...) Shell (bash, ...) The four parts of a UNIX/Linux system: Kernel (vmlinuz...) Shell (bash, ...) File system (the /- structure, permissions, ownership ,...) User (utility) programs

Systemy Linuxowe System plików Pojęcie katalogu domowego, właściciele plików i katalogów, prawa dostępu, podstawowe komendy: ls, dir, chmod, cd ls ls -l ls -la dir chmod o+x ~ chmod o+r ~ chmod o-rx ~ chmod 701 ~ chmod 705 ~ chmod 007 ~ Chmod 700 ~ Materiały pomocnicze: prawa dostępu a publikowane stron internetowych

Systemy Linuxowe System plików Dalsze podstawowe komendy: pwd, mkdir, cd, rmdir, rm wraz z parametremi, cat, more, less, cp, grep pwd mkdir test echo test > test/test dir test rmdir test rm -rf test dir cat /etc/passwd more /etc/passwd less /etc/passwd cp /etc/passwd ~ cp -ax /stary-dysk /nowy-dysk grep wolsk /etc/passwd

Systemy Linuxowe System plików Przegląd najważniejszych katalogów, ich funkcja i zawartość bin boot dev etc home lib media mnt proc root sbin tmp: znaczenie nowego prawa „t” usr: /usr/bin var Problem: gdzie jest główny system plików? Pokaz: partycja twardego dysku (gparted), dystrybucje LiveUSB.

Systemy Linuxowe System plików Dowiązania: ln -s / ~/glowny ln -s /mnt/winda ~/dysk_c ln -s /mnt/kotek ~/kotek dir glowny dir glowny/ Katalogi z programami i ich zawartość /bin /sbin /usr/bin /usr/local/bin Pipe to wc ... Problem: jak rozpoznać programy w Windowsie a jak w Linuxie?

Systemy Linuxowe System plików Montowanie lokalnych systemów plików i urządzeń jako root i jako zwykły użytkownik. Działanie haldaemon na przykładzie cdrom i nośnika usb. cat /etc/fstab mount blkid su - umount /dev/sda1 mount /dev/sda1 /home/test dir /home/test cd /home/test umount /home/test cd Wkładamy cdrom lub pendrive i pozwalamy haldaemon'owi go zamontować cd /run/media/[katalog_z_nosnikiem] umount /dev/sr0 lub umount /dev/sdb1 (device busy)

Systemy Linuxowe System plików Montowanie sieciowych systemów plików NFS (Network Filesystem): System plików nfs (man mount) umożliwiający montowanie katalogów odległych serwerów unixowych, które na to pozwalają - znaczenie pliku konfiguracyjnego /etc/exports na serwerze. su - showmount -e bacon.umcs.lublin.pl ssh root@bacon.umcs.lublin.pl nano /etc/exports service nfs-server restart ctrl-d mount -t nfs bacon.umcs.lublin.pl:/home /mnt/nfs dir /mnt/nfs umount /mnt/nfs

Systemy Linuxowe System plików Montowanie sieciowych systemów plików CIFS (Samba): Pakiet samba-client umożliwiający montowanie zasobów udostępnionych przez serwer Samby. su - mount -t cifs -o user=test //bacon.umcs.lublin.pl/test /mnt/samba dir /mnt/samba umount /mnt/samba Pokaz: wchodzimy przez Dolphin i gramy przez Dosbox

Systemy Linuxowe Procesy Komenda ps (opcje u x a), użycie filtrów less, wc, grep ps ps u ps ux ps aux ps aux | less ps aux | wc -l ps aux | grep firefox ps aux | grep gosc7 | grep -v grep ps aux | grep firefox | grep gosc7 Zabijanie procesów: komendy kill, pkill, killall kill -9 <pid> kill -15 <pid> kill -9 -1 :) byle nie jako root killall -9 alpine mc pkill -9 -u gosc7 pkill -9 -c pine Program top: wyświetlanie informacji o systemie i posortowanej (top)listy procesów, „gorące klawisze”: M, T, P; zabijanie procesów: klawisz K

Systemy Linuxowe Procesy Procesy w tle: ctrl-z, jobs, fg, bg, & links mc jobs fg 1 fg 2 killall -9 links mc yes > /dev/null top q bg 1 ctrl-c alternatywnie: yes > /dev/null & killall -9 yes

Systemy Linuxowe Procesy Specjalne programy do zarządzania procesami screen - uruchamianie procesów wraz z wirtualnym ekranem. "Gorące klawisze" sesji programu sereen. Ponowny powrót do programów pozostawionych w sesji. screen yes ale draka > /dev/null ctrl-a d wylogowanie logowanie screen -r <ewentualnie PID> ctrl-a K at - uruchamianie procesów w określonym czasie, komendy do obsługi kolejek: atq, atrm at now + 5 minutes > kill -9 -1 > ctrl-d Atq crontab - regularne uruchamianie procesów crontab -l crontab -e */5 * * * * echo Hello | mail gosc7 55 23 31 12 * echo Happy New Year | mail alukasik Esc : wq crontab -r

Literature and Internet Sources: Wikipedia: general concepts and definitions concerning operating systems Computer Hardware NTFS Permissions and File Sharing LibreOffice Getting Started User Guide Libreoffice lessons The hypertext LibreOffice help texts E-mail Encryption Overview Public-key cryptography GnuPG encription for Windows Enigmail: the encription plugin for Thunderbird -- instalation and usage guide What is WordPress (home page of the project) WordPress installation guide WordPress Lessons Linux Tutorial for Beginners Linux Filesystem Structure 5 Free E-books on Linux