imolug [ corso linux ] · imolug [ corso linux: lezione 4 ] [ ottenere notizie sull'hardware...
TRANSCRIPT
ImoLUGImoLUG [ Corso Linux ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
LINUX EHARDWARE
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]
- hardinfo
- hwinfo
- lshw
- dmidecode
- lspci
- lsusb
- dmesg
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ] hardinfo
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)
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
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
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
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
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ OTTENERE NOTIZIE SULL'HARDWARE DEL PC: ]
- per i portatili
http://www.linux-laptop.net/
http://tuxmobil.org/
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
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
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ PERMESSI: ]
Siete sicuri di avere tutti i permessi per utilizzare quell'hardware ?
users-admin
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ PERMESSI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ]
Controllare la stampante su
http://www.openprinting.org/printers
Installazione: localhost:631
gnome-system-printer
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, system-config-printer, ML-1610
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ STAMPANTI: ] Server CUPS, localhost:631, stampa da linux su win
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Server CUPS, localhost:631, stampa da linux su win[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Stampa da windows su linux[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Stampa da windows su linux[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Stampa da windows su linux[ STAMPANTI: ]
http://192.168.0.6:631/printers/EpsonStylus
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Stampa da windows su linux[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
Stampa da windows su linux[ STAMPANTI: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ RETE: ] Ethernet
Device: eth (es eth0)
Comandi:ifconfig
route add
dhclient
Grafica:network manager
wicd
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
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)
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.
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, dhcp
ROUTER WI-FIINTERNET
PC con WI-FI
( dhcp )
Scansione reti dhclient
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, dhcp
ROUTER WI-FI INTERNET
PC con WI-FI
( dhcp )
IProuteDNS
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, dhcp
ROUTER WI-FIINTERNET
PC con WI-FI
( dhcp )
Connessione effettuata, si naviga
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, dhcp, wicd
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, dhcp, wicd
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ]wireless, dhcp, wicd
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ]wireless, dhcp, wicd
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, ip fisso
ROUTER WI-FIINTERNET
PC con WI-FI
( ip fisso )
ip scheda wirelessgatewaydnsrete wirelessaccess point
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, ip fisso
ROUTER WI-FI INTERNET
PC con WI-FI
( ip fisso )
Connessione effettuata, si naviga
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] wireless, ip fisso, wicd
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)
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, dhcp
ROUTER WI-FIINTERNET
PC con WI-FI
( dhcp )
dhclient
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, dhcp
ROUTER WI-FIINTERNET
PC con WI-FI
( dhcp )
iprouteDNS
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, dhcp
ROUTER WI-FIINTERNET
PC con WI-FI
( dhcp )
Connessioneeffettuata, si naviga
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, dhcp, wicd
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, dhcp, wicd
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, ip fisso
ROUTER WI-FIINTERNET
PC con WI-FI
( ip fisso )
iproutedns
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ] ethernet, ip fisso
ROUTER WI-FIINTERNET
PC con WI-FI
( ip fisso )
Connessioneeffettuata, si naviga
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CONNETERSI: ]ethernet, ip fisso
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ SCANNER: ]
http://www.sane-project.org/sane-mfgs.html
LISTA DEI DEVICEscanimage -L
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ MODEM DIAL-UP: ] gnome-ppp
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ MODEM DIAL-UP: ] gnome-ppp
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ MODEM DIAL-UP: ] wvdial
Si esegua da terminale
La configurazione risiede in /etc/wvdial.conf
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
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
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
[ CHIAVETTE INTERNET: ]
ImoLUGImoLUG [ Corso Linux: Lezione 4 ]
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License