ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL...

85
ImoLUG ImoLUG [ Corso Linux ]

Transcript of ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL...

Page 1: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux ]

Page 2: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

LINUX EHARDWARE

Page 3: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]

- hardinfo

- hwinfo

- lshw

- dmidecode

- lspci

- lsusb

- dmesg

Page 4: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] hardinfo

Page 5: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] hwinfo

Scansione tutto l'hw e genera una lista dettagliata delle periferiche

75: None 00.0: 1070a WLAN [Created at net.124] Unique ID: AYEt.QXn1l67RSa1 Parent ID: y9sn.YUrorUiMOx4 SysFS ID: /class/net/wlan0 SysFS Device Link: /devices/pci0000:00/0000:00:1c.5/0000:08:00.0 Hardware Class: network interface Model: "WLAN network interface" Driver: "ath9k" Driver Modules: "ath9k" Device File: wlan0 HW Address: 00:21:63:99:d6:32 Link detected: no Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #32 (WLAN controller)

Page 6: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] lshw

Scansione tutto l'hw e genera una lista dettagliata delle periferiche

*-network description: Wireless interface product: AR928X Wireless Network Adapter (PCI-Express) vendor: Atheros Communications Inc. physical id: 0 bus info: pci@0000:08:00.0 logical name: wlan0 version: 01 serial: 00:21:63:99:d6:32 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=ath9k latency=0 multicast=yes wireless=IEEE 802.11bgn resources: irq:17 memory:b8800000-b880ffff

Page 7: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] lspci

Scansione tutto l'hw PCI e genera una lista più o meno dettagliata

08:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)

lspci -vlspci -vv lspci -vvv

Aumentano il dettaglio della informazione

Page 8: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] lsusb

Scansione tutto l'hw USB e genera una lista più o meno dettagliata

Bus 002 Device 005: ID 04f2:b064 Chicony Electronics Co., Ltd

lsusb -v

Aumenta il dettaglio della informazione

ID Vendor:ID Periferica

Page 9: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg

Visualizza i messaggi del kernel

[ 8812.744076] usb 1-2: new high speed USB device using ehci_hcd and address 4[ 8812.881723] usb 1-2: New USB device found, idVendor=0846, idProduct=6a00[ 8812.881732] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 8812.881739] usb 1-2: Product: NETGEAR WG111v2[ 8812.881744] usb 1-2: Manufacturer: NETGEAR WG111v2[ 8812.881749] usb 1-2: SerialNumber: 00146CB2B5CA[ 8812.881968] usb 1-2: configuration #1 chosen from 1 choice[ 8813.492227] phy1: Selected rate control algorithm 'minstrel'[ 8813.494413] phy1: hwaddr 00:14:6c:b2:b5:ca, RTL8187vB (default) V1 + rtl8225z2, rfkill mask 2[ 8813.509389] rtl8187: Customer ID is 0xFF[ 8813.509457] Registered led device: rtl8187-phy1::tx[ 8813.509502] Registered led device: rtl8187-phy1::rx[ 8813.510626] rtl8187: wireless switch is on[ 8813.510993] usbcore: registered new interface driver rtl8187

Page 10: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg

Visualizza i messaggi del kernel

[ 9093.388123] usb 1-2: new high speed USB device using ehci_hcd and address 5[ 9093.523802] usb 1-2: New USB device found, idVendor=090c, idProduct=1000[ 9093.523811] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 9093.523818] usb 1-2: Product: DISK[ 9093.523823] usb 1-2: Manufacturer: FLASH[ 9093.523828] usb 1-2: SerialNumber: AA00000000000046[ 9093.524075] usb 1-2: configuration #1 chosen from 1 choice[ 9093.525108] scsi8 : SCSI emulation for USB Mass Storage devices[ 9093.525323] usb-storage: device found at 5[ 9093.525327] usb-storage: waiting for device to settle before scanning[ 9098.524446] usb-storage: device scan complete[ 9098.525915] scsi 8:0:0:0: Direct-Access FLASH DISK 1100 PQ: 0 ANSI: 0 CCS[ 9098.527033] sd 8:0:0:0: Attached scsi generic sg2 type 0[ 9098.529682] sd 8:0:0:0: [sdb] 3963904 512-byte logical blocks: (2.02 GB/1.88 GiB)[ 9098.530804] sd 8:0:0:0: [sdb] Write Protect is off[ 9098.530813] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00[ 9098.535429] sd 8:0:0:0: [sdb] Assuming drive cache: write through[ 9098.535440] sdb: sdb1[ 9098.618416] sd 8:0:0:0: [sdb] Attached SCSI removable disk[ 9099.577227] FAT: utf8 is not a recommended IO charset for FAT filesystems

Page 11: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]

- per i portatili

http://www.linux-laptop.net/

http://tuxmobil.org/

Page 12: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]

- ci sono gli strumenti per identificare l'hardware

- ci sono gli strumenti per verificare l'hardware

- ci sono gli strumenti per controllare il funzionamento dell'hardware

Page 13: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]

- ci sono gli strumenti per identificare l'hardware

- ci sono gli strumenti per verificare l'hardware

- ci sono gli strumenti per controllare il funzionamento dell'hardware

In caso di bisogno, sapete come descrivere il problema, e potete fornire all'interlocutore tutti i dati necessari

Page 14: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]

E ricordate

per “oscuri motivi”, molti produttori di hardware NON rilascianodriver per Linux

ma è il lavoro di instancabili hacker che cmq lo rende utilizzabileattraverso i loro moduli, driver, patch

Page 15: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ PERMESSI: ]

Siete sicuri di avere tutti i permessi per utilizzare quell'hardware ?

users-admin

Page 16: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ PERMESSI: ]

Page 17: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ]

Controllare la stampante su

http://www.openprinting.org/printers

Installazione: localhost:631

gnome-system-printer

Page 18: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 19: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 20: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 21: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 22: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 23: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 24: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610

Page 25: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 26: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 27: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 28: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 29: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 30: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 31: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610

Page 32: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, system-config-printer e ML-1610ProvaCorso

E come condividere la stampante in una rete ?

- in una rete di sistemi linux, è il demone cups che rileva le stampanti condivise automaticamente

- in una rete mista: c'è da lavorare, windows NON è linux, :-D

Page 33: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ STAMPANTI: ] Server CUPS, localhost:631, stampa da linux su win

Page 34: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 35: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 36: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 37: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 38: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 39: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]

Page 40: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Stampa da windows su linux[ STAMPANTI: ]

Page 41: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Stampa da windows su linux[ STAMPANTI: ]

Page 42: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Stampa da windows su linux[ STAMPANTI: ]

http://192.168.0.6:631/printers/EpsonStylus

Page 43: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Stampa da windows su linux[ STAMPANTI: ]

Page 44: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

Stampa da windows su linux[ STAMPANTI: ]

Page 45: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ RETE: ] Ethernet

Device: eth (es eth0)

Comandi:ifconfig

route add

dhclient

Grafica:network manager

wicd

Page 46: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ RETE: ] Wireless

Device: wlan (es wlan0)http://linux-wless.passys.nl/?lang=italiano

- occhio al firmware -

Comandi:ifconfig

iwconfig

iwlist

route add

dhclient

Grafica:network manager

wicd

Page 47: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ RETE: ] Ethernet, ifconfig

lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:88 errors:0 dropped:0 overruns:0 frame:0 TX packets:88 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:22377 (21.8 KiB) TX bytes:22377 (21.8 KiB)

eth0 Link encap:Ethernet HWaddr 00:21:63:99:d6:32 inet addr:192.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::221:63ff:fe99:d632/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:658 errors:0 dropped:0 overruns:0 frame:0 TX packets:737 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:336897 (329.0 KiB) TX bytes:117497 (114.7 KiB)

Page 48: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ RETE: ] Wireless, iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"NETGEAR" Mode:Managed Frequency:2.462 GHz Access Point: 00:18:4D:08:F9:B2 Bit Rate=54 Mb/s Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=53/70 Signal level=-57 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

pan0 no wireless extensions.

Page 49: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp

ROUTER WI-FIINTERNET

PC con WI-FI

( dhcp )

Scansione reti dhclient

Page 50: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp

ROUTER WI-FI INTERNET

PC con WI-FI

( dhcp )

IProuteDNS

Page 51: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp

ROUTER WI-FIINTERNET

PC con WI-FI

( dhcp )

Connessione effettuata, si naviga

Page 52: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp, wicd

Page 53: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp, wicd

Page 54: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ]wireless, dhcp, wicd

Page 55: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ]wireless, dhcp, wicd

Page 56: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, dhcp, terminale

iwconfig wlan0 essid NOME RETE

(iwconfig wlan0 key on)

(iwconfig wlan0 key s:STRINGA)

dhclient wlan0

iwlist wlan0 scan

Page 57: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, ip fisso

ROUTER WI-FIINTERNET

PC con WI-FI

( ip fisso )

ip scheda wirelessgatewaydnsrete wirelessaccess point

Page 58: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, ip fisso

ROUTER WI-FI INTERNET

PC con WI-FI

( ip fisso )

Connessione effettuata, si naviga

Page 59: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, ip fisso, wicd

Page 60: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] wireless, ip fisso, terminale

ifconfig wlan0 192.168.0.3 netmask 255.255.255.0 up

route add default gw IP_ROUTER wlan0

iwconfig wlan0 essid NOME_RETE

(iwconfig wlan0 key on)

(iwconfig wlan0 key s:STRINGA)

(iwconfig wlan0 ap MAC_ACCESSPOINT)

Page 61: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, dhcp

ROUTER WI-FIINTERNET

PC con WI-FI

( dhcp )

dhclient

Page 62: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, dhcp

ROUTER WI-FIINTERNET

PC con WI-FI

( dhcp )

iprouteDNS

Page 63: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, dhcp

ROUTER WI-FIINTERNET

PC con WI-FI

( dhcp )

Connessioneeffettuata, si naviga

Page 64: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, dhcp, wicd

Page 65: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, dhcp, wicd

Page 66: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, ip fisso

ROUTER WI-FIINTERNET

PC con WI-FI

( ip fisso )

iproutedns

Page 67: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ] ethernet, ip fisso

ROUTER WI-FIINTERNET

PC con WI-FI

( ip fisso )

Connessioneeffettuata, si naviga

Page 68: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CONNETERSI: ]ethernet, ip fisso

Page 69: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ SCANNER: ]

http://www.sane-project.org/sane-mfgs.html

LISTA DEI DEVICEscanimage -L

Page 70: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ MODEM DIAL-UP: ]

RISORSE:http://linmodems.technion.ac.il/http://linmodems.technion.ac.il/packages/scanModem.gz

MODEM: Seriali, riconosciuti in botta

Usb, Winmodem verificare il chipset

scanModem

Page 71: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ MODEM DIAL-UP: ] gnome-ppp

Page 72: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ MODEM DIAL-UP: ] gnome-ppp

Page 73: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ MODEM DIAL-UP: ] wvdial

Si esegua da terminale

La configurazione risiede in /etc/wvdial.conf

Page 74: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ MODEM DIAL-UP: ] wvdial

[Modem0]Modem = /dev/ttyS0Baud = 57600SetVolume = 1Dial Command = ATDTInit1 = ATZInit3 = ATM1FlowControl = CRTSCTS[Dialer tiscali]Username = ********Password = ********Phone = 7023456789Stupid Mode = 1Inherits = Modem0

Page 75: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

- Onda, Huawei, Olicard, sono praticamente compatibili (non ho info su Alcatel)

- molte hanno i driver sulla chivetta stessa, usb-modeswitch

- connessione col programma proprietario, wvdial, network-manager

Page 76: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 77: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 78: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 79: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 80: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 81: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 82: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 83: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 84: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

[ CHIAVETTE INTERNET: ]

Page 85: ImoLUG [ Corso Linux ] · ImoLUG [ Corso Linux: Lezione 4 ] [ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] dmesg Visualizza i messaggi del kernel [ 8812.744076] usb 1-2: new high speed

ImoLUGImoLUG [ Corso Linux: Lezione 4 ]

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License