Informasi Hardware dengan Command Line
204 Pake Ubuntu Yuk Dijamin ga bakalan kena usus buntu
Kita juga bisa menggunakan perintah lspci
lspci
00:00.0 Host
bridge: VIA
Technologies, Inc.
VT8366A7 [Apollo KT266A333] 00:01.0
PCI bridge:
VIA Technologies,
Inc. VT8366A7 [Apollo KT266A333 AGP]
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-81398139C8139C+ rev 10
00:13.0 Multimedia
audio controller:
C-Media Electronics Inc CM8738 rev 10
... Untuk mengetahui hardware tertentu dengan lspci, kita bisa
gabungkan dengan perintah grep. Contoh berikut akan menampilkan hardware ethernet card
lspci | grep -i ethernet
00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-81398139C8139C+ rev 10
Agar perintah lspci menampilkan informasi hardware secara lebih mendetails, gunakan opsi lspci -v atau lspci -vv. Perintah ini harus
digunakan dengan sudo hak akses root
sudo lspci –v
00:00.0 Host
bridge: VIA
Technologies, Inc.
VT8366A7 [Apollo KT266A333] Subsystem: VIA Technologies, Inc. VT8366A7 [Apollo KT266A333]
Flags: bus master, 66MHz, medium devsel, latency 0 Memory
at e0000000
32-bit, prefetchable
[size=64M] Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2 lspci -vv
00:00.0 Host
bridge: VIA
Technologies, Inc.
VT8366A7 [Apollo KT266A333] Subsystem:
VIA Technologies,
Inc. VT8366A7
[Apollo KT266A333]
Hardware dan Mounting File System 205
Control: IO- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+
66MHz+ UDF-
FastB2B- ParErr-
DEVSEL=medium TAbort- TAbort- MAbort+ SERR- PERR-
Latency: 0 Region 0: Memory at e0000000 32-bit, prefetchable
[size=64M] Capabilities: [a0] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2,x4
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- Rate=x4
Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PMED0-
,D1-,D2-,D3hot-,D3cold- Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Untuk mengetahui hardware yang menggunakan port USB, bisa menggunakan perintah lsub
lsusb Gunakan perintah dmesg untuk melihat hardware yang dikenali oleh
system pada saat booting.
dmesg Jika digabungkan dengan perintah grep kita bisa mencari hardware
tertentu saja, misalnya dmesg | grep –i usb, perintah ini akan mencari
string usb pada dmesg.
dmesg | grep -i usb
[25.161904] usbcore: registered new interface driver usbfs
[25.162000] usbcore: registered new interface driver hub
[25.162094] usbcore: registered new device driver usb
[25.163792] USB Universal Host Controller Interface driver v3.0
206 Pake Ubuntu Yuk Dijamin ga bakalan kena usus buntu
[25.164357] uhci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 1
[25.164786] usb usb1: configuration 1 chosen from 1 choice
[25.164892] hub 1-0:1.0: USB hub found
dmesg | grep -i hd
[4.652000] ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:DMA
[4.652000] ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:DMA, hdd:DMA
[5.076000] hda: ST340014A, ATA DISK drive [5.372000] hdb: ST340810A, ATA DISK drive
[6.336000] hdc: TSSTcorpCD-RRW SH-R522C, ATAPI CDDVD-ROM drive
[7.136000] hdd: CD-ROM F567E, ATAPI CDDVD-ROM drive
dmesg | grep -i ethernet
[25.211564] 8139too Fast Ethernet driver 0.9.28 [4.648000] 8139cp: 10100 PCI Ethernet driver v1.3
Mar 22, 2004 Selain perintah-perintah diatas, kita bisa mengetahui hardware dengan
melihat pada direktori proc. Contohnya jika ingin melihat informasi mengenai CPU
cat proccpuinfo
processor : 0 vendor_id : AuthenticAMD
cpu family : 6 model : 7
model name : AMD Durontm processor stepping : 1
cpu MHz : 1200.126
Untuk melihat informasi dari memori
cat procmeminfo
Hardware dan Mounting File System 207
Perintah lain yang berguna didalam melihat informasi hardware adalah fdisk yang bisa digunakan untuk menampilkan informasi
mengenai harddisk dan partisi yang ada pada harddisk tersebut
sudo fdisk -l
Disk devhda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectorstrack, 4865 cylinders
Units = cylinders of 16065 512 = 8225280 bytes Device Boot Start End Blocks Id System
devhda1 1 3113 25005141 7 HPFSNTFS devhda2 3114 4865 14072940 c W95
FAT32 LBA Disk devhdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectorstrack, 4865 cylinders Units = cylinders of 16065 512 = 8225280 bytes
Device Boot Start End Blocks Id System devhdb1 1 1868 15004678+ 83 Linux
devhdb2 1869 3114 10008495 83 Linux devhdb3 3115 3239 1004062+ 82 Linux
swap Solaris devhdb4 3240 4865 13060845 83 Linux
Untuk hardware seperti video card, dimana agar kita bisa menggunakan kemampuan dari hardware ini mengharuskan kita
untuk menginstall drivernya. Mulai Ubuntu 7.04 menginstall hardware seperti video card dapat menggunakan Restricted Drivers
Manager yang bisa diakses melalui System
→ Administration → Restricted Drivers Manager. Kita juga bisa menggunakan Envy,
program yang ditulis untuk menginstall driver video card NVIDIA dan
ATI, ditulis
oleh Alberto
Milone, lihat
di http:albertomilone.comindex.html
. Untuk bisa menggunakan ENVY membutuhkan koneksi internet, karena program ini akan
mendownload driver yang kita pilih untuk diinstall. Jika sebelumnya driver Nvidia atau ATI sudah terinstall, maka driver tersebut akan di
uninstall terlebih dahulu oleh ENVY sebelum melakukan installasi driver yang baru.
208 Pake Ubuntu Yuk Dijamin ga bakalan kena usus buntu
Gambar 9.3 ENVY