This post desrcibes how to install “build-essentials” on CentOS/RedHat og Ubuntu/Debian. build-essentials provides the packages you need to build or compile source code (make and gcc) and create binary files. The build-essentials package is a quick way to install the packages needed to compile VMware Tools on a VMware guest.
In Ubuntu
$ sudo aptitude install build-essentials
In CentOS
# yum groupinstall "Development Tools"
You might also need kernel sources to compile some software
# yum install kernel-devel kernel-headers
Tags: CentOS, Debian, RedHat, Ubuntu
Posted by Hans-Henry Jakobsen
You can use lspci -n to analyce what hardware is on your system. My new laptop a HP EliteBook 8540p gives the following output:
00:00.0 0600: 8086:0044 (rev 12) 00:01.0 0604: 8086:0045 (rev 12) 00:16.0 0780: 8086:3b64 (rev 06) 00:19.0 0200: 8086:10ea (rev 06) 00:1a.0 0c03: 8086:3b3c (rev 06) 00:1b.0 0403: 8086:3b56 (rev 06) 00:1c.0 0604: 8086:3b42 (rev 06) 00:1c.1 0604: 8086:3b44 (rev 06) 00:1c.3 0604: 8086:3b48 (rev 06) 00:1c.7 0604: 8086:3b50 (rev 06) 00:1d.0 0c03: 8086:3b34 (rev 06) 00:1e.0 0604: 8086:2448 (rev a6) 00:1f.0 0601: 8086:3b07 (rev 06) 00:1f.2 0106: 8086:3b2f (rev 06) 00:1f.6 1180: 8086:3b32 (rev 06) 01:00.0 0300: 10de:0a2c (rev a2) 01:00.1 0403: 10de:0be2 (rev a1) 44:00.0 0280: 8086:4239 (rev 35) 45:00.0 0c03: 1033:0194 (rev 03) 46:06.0 0c00: 1180:0832 (rev 06) 46:06.1 0805: 1180:0822 (rev 25) 46:06.2 0880: 1180:0843 (rev 14) 46:06.3 0880: 1180:0592 (rev 14) 46:06.4 0880: 1180:0852 (rev bb) 46:06.5 0607: 1180:0476 (rev ff) ff:00.0 0600: 8086:2c62 (rev 02) ff:00.1 0600: 8086:2d01 (rev 02) ff:02.0 0600: 8086:2d10 (rev 02) ff:02.1 0600: 8086:2d11 (rev 02) ff:02.2 0600: 8086:2d12 (rev 02) ff:02.3 0600: 8086:2d13 (rev 02)
Copy the result from the above command and visit the address Debian GNU/Linux device driver check page and paste it into the window.
In my case the result was presented like this
PCI ID | Works? | Vendor | Device | Driver | Kernel |
---|---|---|---|---|---|
80860044 | Yes | Intel Corporation | Core Processor DRAM Controller | intel-agp | |
80860045 | Intel Corporation | Core Processor PCI Express x16 Root Port | |||
80863b64 | Intel Corporation | 5 Series/3400 Series Chipset HECI Controller | |||
808610ea | Yes | Intel Corporation | 82577LM Gigabit Network Connection | e1000e | v2.6.31- |
80863b3c | Intel Corporation | 5 Series/3400 Series Chipset USB2 Enhanced Host Controller | |||
80863b56 | Yes | Intel Corporation | 5 Series/3400 Series Chipset High Definition Audio | snd-hda-intel | v2.6.27- |
80863b42 | Intel Corporation | 5 Series/3400 Series Chipset PCI Express Root Port 1 | |||
80863b44 | Intel Corporation | 5 Series/3400 Series Chipset PCI Express Root Port 2 | |||
80863b48 | Intel Corporation | 5 Series/3400 Series Chipset PCI Express Root Port 4 | |||
80863b50 | Intel Corporation | 5 Series/3400 Series Chipset PCI Express Root Port 8 | |||
80863b34 | Intel Corporation | 5 Series/3400 Series Chipset USB2 Enhanced Host Controller | |||
80862448 | Yes | Intel Corporation | 82801 Mobile PCI Bridge | i810_rng | |
80863b07 | Yes | Intel Corporation | Mobile 5 Series Chipset LPC Interface Controller | iTCO_wdt | v2.6.33- |
80863b2f | Yes | Intel Corporation | 5 Series/3400 Series Chipset 6 port SATA AHCI Controller | ahci | v2.6.31- |
80863b32 | Intel Corporation | 5 Series/3400 Series Chipset Thermal Subsystem | |||
10de0a2c | nVidia Corporation | GT216 [NVS 5100M] | |||
10de0be2 | Yes | nVidia Corporation | High Definition Audio Controller | snd-hda-intel | |
80864239 | Yes | Intel Corporation | Centrino Advanced-N 6200 | iwlagn | v2.6.30- |
10330194 | NEC Corporation | uPD720200 USB 3.0 Host Controller | |||
11800832 | Ricoh Co Ltd | R5C832 IEEE 1394 Controller | |||
11800822 | Yes | Ricoh Co Ltd | R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter | sdhci-pci | v2.6.25- |
11800843 | Yes | Ricoh Co Ltd | R5C843 MMC Host Controller | ricoh_mmc | |
11800592 | Ricoh Co Ltd | R5C592 Memory Stick Bus Host Adapter | |||
11800852 | Ricoh Co Ltd | xD-Picture Card Controller | |||
11800476 | Yes | Ricoh Co Ltd | RL5c476 II | yenta_socket | v2.6.25- |
80862c62 | Intel Corporation | Core Processor QuickPath Architecture Generic Non-core Registers | |||
80862d01 | Intel Corporation | Core Processor QuickPath Architecture System Address Decoder | |||
80862d10 | Intel Corporation | Core Processor QPI Link 0 | |||
80862d11 | Intel Corporation | Core Processor QPI Physical 0 | |||
80862d12 | Intel Corporation | Core Processor Reserved | |||
80862d13 | Intel Corporation | Core Processor Reserved |
This is the text presentation of the hardware in the HP 8540p laptop
# lspci 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12) 00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06) 00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06) 00:1c.7 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 8 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06) 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06) 01:00.0 VGA compatible controller: nVidia Corporation Device 0a2c (rev a2) 01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1) 44:00.0 Network controller: Intel Corporation WiFi Link 6000 Series (rev 35) 45:00.0 USB Controller: NEC Corporation Device 0194 (rev 03) 46:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 06) 46:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 25) 46:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 14) 46:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 14) 46:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev bb) 46:06.5 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ff) ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02) ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
This makes it easier to determine which device drivers I’m missing and might have to compile for the kernel.
More info about this laptop can be found on the Linux Laptop Wiki
Tags: 8540p, Debian, hardware, hcl, HP, lspci
Posted by Hans-Henry Jakobsen
This is a short post that describes how to prepare your USB memory stick for a base installation of Debian Lenny. This will most likely also work on Debian based distributions like Ubuntu.
Download the latest Debian boot.img.gz file
# wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz
Download the latest Debian netinst ISO image
# wget http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso
Connect the USB stick in the computer and verify that the drive is recognized in /var/log/messages.
It is now time to write the downloaded files onto your USB stick.
First write the boot information to the stick
# zcat boot.img.gz > /dev/sdb
I am assuming that /dev/sdb is the memory stick. Always check that you are writing to the right device!
Mount the USB stick and copy the installation files from the ISO image
# mount /dev/sdb /media/memstick # cp debian-testing-i386-netinst.iso /media/memstick
The USB stick is now ready to be used as a boot media just like a CDROM.
Edit:
You can also use UnetBootin, a graphical (GUI) thats lets you choose distributions etc and create a bootable USB stick.
Tags: Debian, howto, memory stick, Ubuntu
Posted by Hans-Henry Jakobsen
You can enable boolog in /etc/default/bootlogd
BOOTLOGD_ENABLE=Yes
The log is saved in /var/log/boot
This tip also applies to Ubuntu systems.
Posted by Hans-Henry Jakobsen
This is a little script I’ve written to correct all my image files since the EXIF timestamp information is one hour out of sync. The filenames have been renamed to comply to the EXIF information and has to be renamed again because of the one hour scew. The filename can look something like this 20080102-1201_DSC_0910.JPG where the name is built up like YYYYMMDD-HHMM_Original_Filename.JPG
Remember to backup your imagefiles before you continue. You have been warned!
This is the files we are going to rename
20080102-1201_DSC_0910.JPG 20080105-1923_DSC_1006.JPG 20080111-1220_DSC00189.JPG 20080122-0929_DSC00190.JPG
The mmv command is a command that lets you move/copy/append/link multiple files by wildcard patterns. It can be installed in Debian (or Debian based distributions like Ubuntu) by issuing the command
# aptitude install mmv
Now rename the files back to their original name
# mmv "*_DSC*" "DSC#2"
The result after this operation looks like this
DSC_0910.JPG DSC_1006.JPG DSC_1179.JPG DSC_1302.JPG DSC_1587.JPG
Next adjust the EXIF information stored in the image files to fix the one hour difference. This can be done using different EXIF tools like exiftool, but I will show you how it can be done using jhead and exiv2. The advantage with exiv2 is that it can also handle Nikon NEF files while jhead only can prosess JPG.
The current timestamp can be determined as follows
# exiftool DSC_0910.JPG | grep "File Mo"
The result in this case is
File Modification Date/Time : 2008:01:02 08:34:09
# exiftool -AllDates+=1 DSC_0910.JPG
# jhead -ta +1 DSC_0910.JPG
Install the jhead package using aptitude as mentioned earlier for the mmv package
# exiv2 ad -a 1 DSC_0910.JPG
It is now time to rename the files back to the YYYYMMDD-HHMM_Original_Filename.JPG format I used before this operation. This operation has been describe in a previous post named Rename image files according to EXIF date
exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls D*)
#!/bin/bash -x # Needed software: # exiftool # exiv2 # mmv # Script tested on Nikon D80 and Sony Cybershot DSC-W12 files # Make a printout of how the files look like now ls -l > repair_name_and_exif_before.txt # Rename files to remove date formatting back to original name mmv "*_DSC*" "DSC#2" # Change EXIF info on JPG files (order is important) exiftool -overwrite_original -AllDates+=1 D*.JPG # Preserve date/time of original file when writing exiftool -overwrite_original '-DateTimeOriginal>FileModifyDate' D*.JPG # Change EXIF info on NEF files (order is important) exiftool -overwrite_original -AllDates+=1 '-DateTimeOriginal>FileModifyDate' D*.NEF # Preserve date/time of original file when writing exiftool -overwrite_original '-DateTimeOriginal>FileModifyDate' D*.NEF # Rename files back to date formatting (YYYYMMDD-HHMM_Filename) based on the new EXIF info exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls D*) # Make a printout of how the files look like after conversion ls -l > repair_name_and_exif_after.txt
Tags: Debian, EXIF, exiv2, jhead, JPG, mmv, NEF, Nikon, rename, Sony
Posted by Hans-Henry Jakobsen