LINUX
Crash Curse

LINUX
Crash Curse

@AllanDaemon

rea@ufu.br

2018-09-26

11ª SEFIS - Semana da Física

INFIS - Instituto de Física

UFU - Universidade Federal de Uberlândia

Imagens: cada imagem tem sua fonte como link na própria imagem

Alguns slides copiados de Gerson J. Ferreira (fundo negro)

Minicurso de

LINUX

 

2018-09-26

11ª SEFIS - Semana da Física

INFIS - Instituto de Física

UFU - Universidade Federal de Uberlândia

@AllanDaemon

rea@ufu.br

Operating
System

Bare Metal

HARDWARE

SOFTWARE

Bare Metal

HARDWARE

     HAL  

HAL

PROGRAM

Hardware
Abstraction Layer

SOFTWARE

AT&T   1969
@ Bell Labs

UNIX

Unix History (Simplified)

FreeBSD

Irix

FreeBSD

POSIX

MINIX

GNU Project

What would you like to see most in minix?

What would you like to see most in minix?

TUX

Pq Linux?


Technical

Kernel

HARDWARE

KERNEL

USER

SYSCALL

System

Call

man 2 syscalls

Compiling

Compiling Example

make menuconfig

make xconfig

Distros

Desktop
Enviroments

Shell

Desktop Environments

X11

GNOME

GTK

XFCE

GTK

LXDE

GTK

Elementary OS

GTK

Budgie

GTK

Deepin

QT

KDE

QT

Package

Managers

apt-get
pacman
dnf

Repositories

update  metadata

vs

upgrade packages

  • Procurar
  • Instalar
  • Remover

Worse is Better

Everything is a File

Mounts

mount

Tudo é aquivo

Filosofia Unix

/dev

Virtual File Systems

/proc

/sys

ytfs

Magic Time

sh

zsh

csh

ash

dash

bash

fish

...

$ echo Hello World
Hello World

echo

vars

man

apropos

References

Terminal 101

Terminal 101

  • Atalhos

Terminal 101

  • Movimentação
    • ls
    • cd
    • mv
    • rm
    • mkdir
    • rmdir
    • touch

Terminal 101

  • Informações
    • uname
    • htop
    • date
    • free
    • df
    • du

Terminal 101

  • Variaveis
    • echo
    • VAR
    • Interpolação de string

File

Descriptor

redirect
pipe
sub-command
process fg/bg
grep, head, tail, more, less

for
other conditionals

Exemplo PDF

Converter paginas de PDF para imagens vetoriais

Imagens

Vetoriais vs Raster (Bitmap)

Imagens

Vetoriais vs Raster (Bitmap)

Imagens

Vetoriais vs Raster (Bitmap)

Instalar Inkscape

# dnf install inkscape

$ sudo dnf install inkscape

Baixar o PDF

$ wget http://www.infis.ufu.br/images/users/
mariana/Latex/Intro-linux-GJFerreira.pdf
$ mkdir slides
$ cd slides
$ ls -l

Visualizar

$ xdg-open Intro-linux-GJFerreira.pdf &
$ evince Intro-linux-GJFerreira.pdf &
$ okular Intro-linux-GJFerreira.pdf &

Separar as páginas

$ mkdir extracted
INPUT_PDF="Intro-linux-GJFerreira.pdf"

pdfseparate $INPUT_PDF "extracted/${INPUT_PDF%%.pdf}.%02d.pdf"
$ cd extracted
$ ls -lh
$ pdfseparate Intro-linux-GJFerreira.pdf "extracted/Intro-linux-GJFerreira.pdf.%02d.pdf"

Converter as páginas

for PAGE_FILE in *.??.pdf
do      
        echo "Converting page $PAGE_FILE"

        inkscape --without-gui "--file=$PAGE_FILE" \
            "--export-plain-svg=${PAGE_FILE%%.pdf}.svg"
done
$ ls -lh
$ xdg-open ...
# dnf install inkscape

$ sudo dnf install inkscape

Exemplo CSV

That's all folks!

Obrigado

Text

Made with Slides.com