LiBRE 35 Cir

  • Upload
    -

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

  • 1 35

    Free

    CAD

    2015. 35

    Creative Commons --

    !!

    A

    -

  • 2 ! 2015.

    .

    ( ).

    .

    78%

    .

    - ,

    .

    () .

    .

    . ,

    .

    : , ,

    .

    - (. FreeCAD) .

    .

    CAD .

    FLOSS ?

  • 3 35

    .

    ,

    .

    . ,

    .

    , .

    . , ,

    , .

    Free

    , .

    ? ,

    . .

    - .

    , . !

    .

    , ,

    .

    , .

    -

    l ibre [et] lugons [dot] org .

    ,

    !

  • 4 ! 2015.

    . 6

    FreeCAD . 9

    .. .?

    C (11. ) . 17

    Vagrant (2 . ) . 20

    . 24

    , open-source -

    - . 29

    Ansible (1. ) . 34

    (2. ) - Niltalk . 38

    Bootstrap - . 41

    BagleBone Black Rev C: (6. )

    e . 45

    : 35

    :

    :

    :

    :

    :

    : White Circle Creative Team

  • 5 35

    !

    : 35

    :

    :

    :

    :

    :

    : White Circle Creative Team

    A :

    O :

    M

    :

    :

    IRC: #floss-magazin irc.freenode.net

    -: [email protected]

  • 6 ! 2015.

    19. 2015.

    ,

    .

    .

    : http: //j .mp/1Ej jTHg

    28. 2015.

    a

    ,

    .

    : http: //j .mp/1EwagHt

    1. 2015.

    37

    -

    .

    : http: //j .mp/1Pq3J j5

    37

  • 7 35

    3. 2015.

    DDoS

    ,

    .

    : http: //j .mp/1DolKH4

    3. 2015.

    Rajesh De

    ()

    ,

    -,

    .

    .

    : http: //j .mp/1OLzMI0

    6. 2015.

    18. 20.

    ()

    ()

    18. 20. .

    : http: //j .mp/1QpaWl0

  • 8 ! 2015.

    9. 2015.

    Open Encryption

    -

    ,

    .

    :http: //j .mp/1Ewaw9l

    11. 2015.

    EXT4

    EXT4 .

    .

    : http: //j .mp/1FhPJ8j

    22. 2015.

    GCC 5.1

    GCC.

    : http: //j .mp/1Domr38

  • 9 35

    :

    .

    .

    ,

    .

    CAD/CAM

    CAD/CAM (. computer-aided design / computer-aided manufacturing)

    : , ,

    ,

    , .

    , .

    ,

    .

    FreeCAD

  • 10

    ! 2015.

    CAD/CAM , , 2 3 ,

    .

    ,

    ,

    . ,

    (BricsCAD) -

    (DraftSight). ,

    BRL-CAD. CAD

    (LibreCAD, ! 1).

  • 11

    35

    (Autodesk AutoCAD)

    , DWG .

    , CAD ,

    .

    CAD

    (FreeCAD) .

    2 CAD

    .

    2 , ,

    , . CAD

    2 ,

    (Libreoffice Draw) (Inkscape) .

    ,

    CAD . , ,

    ,

    , .

    3

    3 . 3 , 3 ,

    3 3 CAD/CAM . 3

    . ,

    . ,

    ,

    .

    , .

    , , ,

    , (Catia) (PRO/Engineer) -

    3 ,

    ,

    . , CAD

    3

    .

    FreeCAD

  • 12

    ! 2015.

    .

    . 3 .

    ,

    . ,

    .

    (. workbench) .

    : , (. part) ,

    (. part design), (. drawing) .

    .

    .

    (. model)

    (. tasks) .

    , ,

    . .

    .

    : , , ,

    . ,

    (. constraints) .

    . ,

    . .

    .

    (. solver messages) .

    .

    . (. exit the

    editing of the sketch) .

    .

  • 13

    35

    FreeCAD

  • 14

    ! 2015.

    .

    (. extrude)

    .

    .

    , .

    . .

    , , ,

    . ,

    .

    .

    .

    (. drawing dimensioning).

    : https: //github.com/

    hamish2014/FreeCAD_drawing_dimensioning. ,

    .

    .

    C++ Qt ,

    (Python) .

    .

    ,

    . -

    . , .

    ,

    .

  • 15

    35

    ,

    . , .

    .

    .

    .

    ,

    . .

    .

    .

    ,

    , .

    .

    ,

    . ,

    .

    10 ,

    . , 14.04 0.13

    0.15.

    ,

    (. daily)

    .

    FreeCAD

  • 16

    ! 2015.

    . ,

    .

    (YouTube) . ,

    .

    . ,

    ,

    , ,

    ,

    .

    . ,

    .

    /

    Distrowatch

    =

    ( )

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    Mint

    Ubuntu

    Debian

    openSUSE

    CentOS

    elementary

    Fedora

    Mageia

    LXLE

    Arch

    Manjaro

    Android x86

    Lite

    MakuluLinux

    PCLinuxOS

    Puppy

    Lubuntu

    Kal i

    Antergos

    KaOS

    Simpl icity

    Zorin

    Bel la

    SparkyLinux

    Xubuntu

    3196>

    1944>

    1533>

    1241

    591>

    539

    514>

    512>

    495>

    495>

    492>

    469>

  • 17

    35

    :

    ?

    .

    ,

    .

    .

    GUI

    (. buttons) ,

    (.

    drop down, combo box) ,

    (. menu)

    .

    -

    -

    ,

    C

    GTK+ .

    .. .?

    C (11. )

  • 18

    ! 2015.

    .

    , -

    .

    SQLite (--) .

    - SQLite

    ().

    .

    . ,

    ( )

    . ,

    (. network sockets) TPC UDP.

    C

    ,

    ( ),

    . BSD

    sockets Berkleu sockets.

    -

    -

    .

    Ncurses,

    .

    .

    .. .?

  • 19

    35

    .

    ,

    2 3 . 2

    SDL (--), 3

    OpenGL (--).

    .

    3

    (, 3 om) (. game engine)

    OGRE 3D (Object-Oriented Graphics Rendering Engine) .

    -

    ,

    . --

    .

    ,

    ,

    .

    OpenCV (--) .

    C

  • 20

    ! 2015.

    :

    .

    .

    .

    http: //www.vagrantup.com/downloads

    .

    vagrant PATH,

    .

    :

    vagrant -v

    .

    ,

    . , , -

    :

    sudo apt-get install vagrant

    (2. )

    .. .?

  • 21

    35

    ,

    libre [at] lugons [dot] org.

    ,

    (VirtualBox) .

    (Vagrant boxes) . ,

    . https: //atlas.hashicorp.com

    /boxes/search .

    :

    vagrant box add USER/BOX

    .

    vagrant init USER/BOX

    (vagrantfile)

    .

    . , vagrantfile

    ,

    , vagrantfile.

    .

    Up and running

    .

    :

    vagrant up

    .

    .

    /vagrant.

    SSH . :

  • 22

    ! 2015.

    vagrant ssh

    ,

    .

    :

    vagrant halt

    .

    :

    vagrant destroy

    ,

    .

    ,

    vagrantfile .

    (Ruby)

    , (. provisioning)

    .

    (. version control

    system) , ,

    vagrant up .

    vagrantfile.

    ,

    , , .

    , vagrantfile .

    ,

    .

    .

    .. .?

  • 23

    35

    vagrantfile

    vagrant init. ,

    .

    provisioning,

    .

    , , ,

    , .

    .

    shell,

    .

    ,

    . ,

    .

    shell ,

    .

    ,

    , vagrantfile- .

    ,

    .

    .

  • 24

    ! 2015.

    :

    , .

    .

    : ?

    .

    . ,

    , .

    . :

    , . , ,

    . .

    .

    . , ,

    . , .

    ,

    .

    .

  • 25

    35

    , .

    .

    .

    . j

    .

    . , ,

    .

    . ,

    .

    .

    .

  • 26

    ! 2015.

    :

    . -

    .

    ! ,

    , .

    .

    , IRC

    , .

    . T IRC , ,

    (. mailing list) .

    , , .

    .

    .

    , .

    ,

    .

    OSS (. open source software)

    (. w). ,

    (epub, PDF, web).

    https: //readthedocs.org

    . ,

    , .

    .

    . . .po GNU gettext .

    .po

    , .po .

    . , gettext

  • 27

    35

    - .po .

    ,

    .

    ,

    . https: //transifex.org https: //launchpad.net .

    .

    (. nightly build) .

    .

    .

    (. issue/bug

    tracker) .

    . -

    , ,

    .

    . (. bugzilla)

    , (. launchpad) , (.

    github) (. source forge) .

    .

    ,

    ,

    , .

    , .

    .

    . ,

    . ,

    , ,

    . ,

    () .

    .

    .

  • 28

    ! 2015.

    .

    .

    , .

    .

    ,

    VCS- (. versioning control system - ,

    ). , .

    (. patch) ,

    (. pull request -

    ).

    .

    (. contributing guide) .

    .

    . ,

    , .

    ;

    .

    .

    ,

    .

    . ,

    .

  • 29

    35

    :

    . ,

    .

    .

    !

    ( ,

    ). (Canonical)

    , , ,

    .

    ,

    (Google)

    .

    ,

    , ,

    , .

    , - (3. )

  • 30

    ! 2015.

    .

    .

    .

    , , ,

    . ,

    .

    .

    ,

    /, , ,

    , . ,

    , , 2

    .

    . -

    -

    .

    -

    , --

    ,

    (Google Chrome) -

    , ,

    ( )

    -

    .

    . ,

    .

    , .

  • 31

    35

    .

    .

    .

    ,

    .

    , .

    ,

    , .

    . .

    ,

    .

    -

    ,

    , . ,

    w :

    , , , , , ,

    -

  • 32

    ! 2015.

    , ,

    ,

    .

    , .

    , - .

    . ,

    . ,

    .

    * * *

  • 33

    35

    , .

    , , ,

    , , .

    ,

    Google Summer of Code .

    , , ,

    .

    .

    -

  • 34

    ! 2015.

    :

    .

    , .

    . .

    .

    .

    .

    .

    (Ansible)

    . , -

    . ,

    , SSH (.

    Secure Shell) .

    .

    (1. )

  • 35

    35

    .

    , ,

    , .

    , .

    , ,

    . ,

    -

    . SSH .

    . ,

    , , .

    ,

    pip. , ,

    ,

    .

  • 36

    ! 2015.

    , ?

    , , ,

    ,

    , , - l ibre [et]

    lugons [dot] org.

    ,

    . SSH

    . SSH,

    ,

    (RSA / DSA) . , ,

    SSH , chroot, lxc, jail .

    .

    ,

    ,

    .

    : 192.168.1.3,

    .hom.net, b.hom.n .

    /etc/ansible/hosts

    :

    192.168.1.3a.home.netb.home.net

    SSH ,

    (

  • 37

    35

    ).

    .

    ansible all -m ping

    . ,

    . ,

    .

    ,

    :

    ansible all -a "/bin/echo hello"

    , ?

    . , ,

    , .

    .

    .

    .

    , , , ,

    , l ibre [et]

    lugons [dot] org .

  • 38

    ! 2015.

    :

    ,

    .

    ,

    ,

    - -.

    ,

    (http: //goo.gl/Nf8neL),

    (. selfhost) ,

    , ,

    , .

    (Niltalk) , ,

    ,

    .

    (2. )

  • 39

    35

    : -

    (http: //goo.gl/N4wVUO), ,

    .

    .

    .

    -

    (Protonmail) (SCYPTmail) ,

    ,

    .

    ,

    ,

    .

    ,

    .

  • 40

    ! 2015.

    , ,

    () ,

    .

    . , ,

    - , , ?

    ,

    .

    ,

    , Dispoze

    . ,

    () .

    ,

    SSL .

    .

    , ,

    .

    , . , ()

    AGPL3 (http: //goo.gl/ZeeEM0),

    .

    ; (

    ).

  • 41

    35

    :

    ! (Bootstrap)

    (. framework) -

    , -

    -.

    .

    . CSS

    ( JavaScript) , - , ,

    .

    https: //github

    .com/twbs/bootstrap/releases/, (

    3.3.2) dist ,

    . dist ( )

    https: //github.com/twbs/bootstrap/releases/download/v3.3.1/bootstrap-3.3.1-dist.zip.

  • 42

    ! 2015.

    ZIP (. root)

    - .

    CDN- (. content delivery

    network) . CSS JS , ,

    http: //www.bootstrapcdn.com/.

    (http: //getbootstrap.com/getting-started/)

    -.

    , ,

  • 43

    35

    .

    Getting started ( ), CSS ( CSS

    ), Components ( CSS ) JavaScript (

    ).

    Getting started , ,

    , 2 3,

    .

    .

    , .

    , (http: //getbootstrap.com/getting-

    started/#examples), , .

    :

    Bootstrap

  • 44

    ! 2015.

    http: //startbootstrap.com/

    https: //wrapbootstrap.com/

    http: //bootswatch.com/

    http: //bootstrapzero.com/

    - -.

  • 45

    35

    :

    .

    .

    ,

    ,

    .

    SSH .

    , .

    , /var/log/auth.log ,

    .

    :

    cat /var/log/auth.log | grep failedcat /var/log/auth.log | grep failed | wc -l

    :

    -cat

    -grep

    -wc -l

    :

    BeagleBone Black Rev C

    (6. )

    X

  • 46

    ! 2015.

    SSH ,

    .

    .

    (. bash) .

    geoip .

    apt-get install geoip-bin geoip-database

    :

    geoiplookup pentester.iz.rs

    /usr/local/bin

    .

    nano /usr/local/bin/sshfilter.sh

    :

    #!/bin/bash# UPPERCASE space-separated country codes to ACCEPTALLOW_COUNTRIES="RS FR" f [ $# -ne 1 ]; then

    echo "Usage: `basename $0` " 1>&2exit 0 # return true in case of config issue

    fiCOUNTRY=`/usr/bin/geoiplookup $1 | awk -F ": " '{ print $2 }' | awk-F "," '{ print $1 }' | head -n 1`[[ $COUNTRY = "IP Address not found" || $ALLOW_COUNTRIES =~ $COUNTRY

    X

  • 47

    35

    ]] && RESPONSE="ALLOW" || RESPONSE="DENY" f [ $RESPONSE = "ALLOW" ]then

    exit 0else

    logger "$RESPONSE sshd connection from $1 ($COUNTRY)" exit 1fi

    ALLOW_COUNTRIES

    . RS , FR .

    , .

    :

    chmod +x /usr/local/bin/sshfilter.sh

    SSH-

    ,

    .

    nano /etc/hosts.deny

    :

    sshd: ALL

    :

    nano /etc/hosts.allow

    :

    sshd: ALL: aclexec /usr/local/bin/sshfilter.sh %a

    SSH ,

    :

  • 48

    ! 2015.

    /usr/local/bin/sshfilter.sh 8.8.8.8April 13 16:02:37 pi root: DENY sshd connection from 8.8.8.8 (US)

    , :

    cat /var/log/messages | grep DENY

    :

    April 13 17:59:54 pi logger: DENY sshd connection from 82.221.102.185 (IS)April 13 17:47:54 pi logger: DENY sshd connection from 220.227.123.122 (IN)April 13 17:43:51 pi logger: DENY sshd connection from 221.229.166.252 (CN)April 13 16:49:04 pi logger: DENY sshd connection from 221.208.245.226 (CN)

    GeoIP

    crontab :

    nano /usr/local/bin/updategeoip.sh

    :

    #!/bin/bashcd /tmpwget -qhttp://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gzif [ -f GeoIP.dat.gz ]then

    gzip -d GeoIP.dat.gzrm -f /usr/share/GeoIP/GeoIP.datmv -f GeoIP.dat /usr/share/GeoIP/GeoIP.dat

    elseecho "The GeoIP library could not be downloaded and updated" i

    :

    chmod +x /ust/local/bin/updategeoip.sh

    X

  • 49

    35

    :

    crontab -e

    :

    0 6 15 * * /usr/local/bin/updategeoip.sh

    . DNS

    .

    :

    AutomapHostsOnResolve 1AutomapHostsSuffixes .exit,.onion

    SSH :

    service ssh restart && service tor reload

    /etc/tor/torrc

    /var/lib/tor/keys .

    .

    - (. Hiawatha) .

    .