This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Kamis, 27 Januari 2011

Wi-Fi on the Command Line

More people than ever are using wireless networks as their primary networking medium. Great programs are available under X11 that give users a graphical interface to their wireless cards. Both GNOME and KDE include network management utilities, and a desktop-environment-agnostic utility called wicd also offers great functionality. But, what if you aren't running X11 and want to manage your wireless card? I don't cover how to install and activate your card here (for that, take a look at projects like madwifi or ndiswrapper). I assume your card is installed and configured properly, and that it is called wlan0. Most of the utilities mentioned below need to talk directly to your wireless card (or at least the card driver), so they need to be run with root privileges (just remember to use sudo).

The first step is to see what wireless networks are available in your area. A utility called iwlist provides all sorts of information about your wireless environment. To scan your environment for available networks, do the following:

sudo iwlist wlan0 scan

You'll see output resembling:

Cell 01 - Address: 00:11:22:33:44:55
          ESSID:"network-essid"
          Mode:Master
          Channel:11
          Frequency:2.462 GHz (Channel 11)
          Quality=100/100  Signal level:-47dBm  Noise level=-100dBm
          Encryption key:off
          .
          .
          .

The details (address and essid) have been changed to protect the guilty. Also, the ... represents extra output that may or may not be available, depending on your hardware. You will get a separate cell entry for each access point within your wireless card's range. For each access point, you can find the hardware address, the essid and the channel on which it's operating. Also, you can learn in what mode the access point is operating (whether master or ad hoc). Usually, you will be most interested in the essid and what encryption is being used.

Once you know what's available in your immediate environment, configure your wireless card to use one of these access points using the iwconfig utility to set the parameters for your wireless card. First, set the essid, which identifies the network access point you want:

sudo iwconfig wlan0 essid network-essid

Depending on your card and its driver, you may have the option to set the essid to the special value “any”. In this case, your card will pick the first available access point. This is called promiscuous mode.

You also may need to set the mode to be used by your wireless card. This depends on your network topology. You may have a central access point to which all of the other devices connect, or you may have an ad hoc wireless network, where all of the devices communicate as peers. You may want to have your computer act as an access point. If so, you can set the mode to master using iwconfig. Or, you simply may want to sniff what's happening around you. You can do so by setting the mode to monitor and passively monitor all packets on the frequency to which your card is set. You can set the frequency, or channel, by running:

sudo iwconfig wlan0 freq 2.422G

Or by running:

sudo iwconfig wlan0 channel 3


You can set other parameters, but you should consider doing so only if you have a really good reason. One option is the sensitivity threshold, which defines how sensitive the card is to noise and signal strength, and you can set the behavior of the retry mechanism for the wireless card. You may need to play with this in very noisy environments. Set the maximum number of retries with:

sudo iwconfig wlan0 retry 16

Or, set the maximum lifetime to keep retrying to 300 milliseconds with:

sudo iwconfig wlan0 retry lifetime 300m

In a very noisy environment, you also may need to play with packet fragmentation. If entire packets can't make it from point to point without corruption, your wireless card may have to break down packets into smaller chunks to avoid this. You can tell the card what to use as a maximum fragment size with:

sudo iwconfig wlan0 frag 512

This value can be anything less than the size of a packet. Some cards may not apply these settings changes immediately. In that case, run this command to flush all pending changes to the card and apply them:

sudo iwconfig wlan0 commit

Two other useful commands are iwspy and iwpriv. If your card supports it, you can collect wireless statistics by using:

sudo iwspy wlan0

The second command gives you access to optional parameters for your particular card. iwconfig is used for the generic options available. If you run it without any parameters (sudo iwpriv wlan0), it lists all available options for the card. If no extra options exist, you will see output like this:

wlan0      no private ioctls

To set one of these private options, run:

sudo iwpriv wlan0 private-command [private parameters]

Now that your card is configured and connected to the wireless network, you need to configure your networking options to use it. If you are using DHCP on the network, you simply can run dhclient to query the DHCP server and get your IP address and other network settings. If you want to set these options manually, use the ifconfig command (see the man page for more information).

Rabu, 26 Januari 2011

iPad 2 High Resolution Screen Going Equipped 'Retina Display

Second-generation tablet PC arable Apple iPad 2 has been the subject of hot debate in cyberspace. In fact, its presence was reported shortly. However, not many know the detailed specification of this 2 iPad.

Over time, some predict will be the facilities / features that would take too much sticking iPad 2. One sector of the screen (display). As quoted PULSAonline via rafeed, allegedly Apple iPad 2 will embed a high resolution screen, with a density of 2048 × 1536 pixels. With 9.7-inch diagonal screen, the screen density level about 264 dpi.

But, there are other possibilities if iPad 2 will apply the 'retinal display', which will serve the extra density that is 1536 x 800 pixels. But, the value increased to 326 dpi resolution. When properly iPad Retina Display 2 will use the meaningful resolution of the screen will be doubled from the first generation iPad, which limited to 768 × 400 pixels (132 dpi)

Just hope the news on the iPad 2 retinal display is correct, then the second generation of Apple's tablet PC is going to be a very interesting gadget. We'll wait.

The Motherboard Parts and Functions

Motherboard determine whether or not the performance of a PC. The function of the motherboard is the place put computer components, connecting components to be run as its function and as a regulator of current flowing into each component. In one motherboard, there are some parts with their respective functions. Parts of the motherboard include:

 

1. BIOS (Basic Input / output system)
The BIOS is the motherboard serves to connect between the existing software in computers with hardware that is installed on the motherboard. The BIOS itself is an acronym for Basic Input / Output System. In the BIOS there are programs that can be used to regulate how a component mounted on the motherboard can work.


2. Socket / Slot Processor
Order processor can be placed with ease, then disediakanlah socket on the motherboard. Socket consists of holes adapted to the foot of processors that can be placed on the motherboard. There are many types of sockets on the market. For example, the socket 478, socket 775 and LGA socket for Intel processors, and also socket AM2 or AM3 socket for AMD processor output. Each socket has holes are different from one another. But there is also the motherboard that provides the processor socket holes that can be used for some type of processor. For example, the socket 478 coupled with the socket 775.
Since each processor requires a different socket shapes, important to know to buy a motherboard, socket type suitable for processors owned. Motherboards long output is not using the processor socket but still use the processor slot.




3. RAM Slots
RAM or the memory is placed on the motherboard RAM slots. RAM slots depending on the type of RAM used. For long output motherboards typically use SDRAM slot while the slot type using the latest DDR3.




4. Expansion Slot
Another part is the motherboard expansion slot. The function of the expansion slot is to put the components used to increase computer performance. Typically the device that is added is a multimedia device, such as VGA card that allows you to add sharpness of the display, sound card, and others. Expansion slots consist of various types including PCIExpress slots, PCI, or AGP. Each type of slot has advantages and disadvantages of each one depending on the needs of computer usage.




5. CMOS Battery
Existing CMOS battery on the motherboard to function as an alternative power source when the computer is not connected to the mains. The battery is very useful for the motherboard as a source of energy in identifying the components installed on the motherboard.




6. Connectors
Section motherboard that is no less important is the connector. There are various types of connector that serves to connect the motherboard to the other device. Several types of connectors include:
* Power connector serves as a liaison motherboard to the power source
* Sound connector serves to connect the motherboard to the sound device,
* USB connector allows connecting the motherboard to the USB
* SATA connector allows connecting the motherboard to the hard drive

It should be noted that the more components installed on the motherboard, the power needed to operate the computer will be even greater. Therefore, for computer and motherboard can run stable long-lasting, also provide the power supply in accordance with power demand. If the power is gained power supply less than demand, then it is likely the motherboard will be broken and the computer will run unstable.


Selasa, 25 Januari 2011

QEMU vs. VirtualBox

Why is it that the U.S. Government always releases a slew of RFPs just before Thanksgiving?  I’ve been swamped working on proposals since the third week of November, but we got the last one submitted just before Christmas so it’s back to normal (or what passes for normal around here) for a while.

I thought I’d take this relatively quiet period to do a quickie comparison between a couple of virtualization tools: QEMU and Oracle's VirtualBox.  For the comparison I chose to install virtual guest instances of Ubuntu 10.10 desktop from a downloaded copy of the iso.  The host system is an AMD 64-bit machine that is also running Ubuntu 10.10 desktop. Here’s the kernel version of the host at the time of this writing:  2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux. I used VirtualBox 4.0 for this comparison.

Both products provide a graphical interface for building a new virtual guest instance.  Here are what a few of the QEMU build sequence steps look like:






This review almost did not get written, because it took friggen forever for the QEMU install to complete.  It was only out of a somewhat morbid fascination that I let it go to completion.  I started the install at about 8:15am in the morning, and by 1:00pm it was finally finished.  By comparison, the VirtualBox install took just 28 minutes start to finish, and that included download time for updates,  since I had selected the option to do that at install time.  I did not select the update option for the QEMU install because I (fortunately) forgot to select NAT networking for it prior to starting the installation.

After the QEMU install was done, the Ubuntu guest remained equivalently slow.  Boot time was about 6 minutes as compared to 23 seconds for the VirtualBox Ubuntu guest.  Once I got the logon prompt from the QEMU guest it took a very long time to achieve the final QEMU result:


 That’s right, a black screen. Which lasted so long I thought that was the final product.  About 15 minutes later, though, I got a login prompt, which promised to take forever to execute, so I finally put it out of its misery.

Oracle does not need to be too worried about competition from the QEMU camp just yet...

What Hardware Do I Have?


Often you may not necessarily know what kind of hardware you have—you may have a no-name box from a smaller company or a used machine. This month, I present the tools you can use to find out what you have installed.
First up is lshw. This utility LiSts HardWare (lshw). If you run it as a regular user, it actually warns you to run it as root. So go ahead and run sudo lshw. You should see screens of information for your system. The first section will be general information and should look something like this:




jbernard-eeepc           
    description: Notebook
    product: 700
    vendor: ASUSTeK Computer INC.
    version: 0129
    serial: EeePC-1234567890
    width: 32 bits
    capabilities: smbios-2.5 dmi-2.5 smp-1.4 smp
    configuration: boot=normal chassis=notebook
    ↪cpus=1 uuid=XXXXXX-XXXXX-XXXXX-XXXXX

This is what I get when I run it on my little ASUS EeePC. Right away you can find the manufacturer of this little beast (ASUSTeK), the BIOS version (0129), and the fact that it's a 32-bit machine with one CPU. More information is broken down into the following categories:

core
   firmware - motherboard and BIOS information
   cpu - CPU information
      cache - cache information
   memory - memory information
      bank - specific bank memory information
   pci - PCI bus information
      display - PCI display adapter
      multimedia - PCI audio adapter
      pci - other PCI devices
      network - PCI network adapter
   usb - USB devices
   ide - IDE information
      disk - individual disks
         volume - volumes on this disk

For an idea on how much information is available, the main memory section shows this about my EeePC:

*-memory
     description: System Memory
     physical id: 1f
     slot: System board or motherboard
     size: 512MiB
   *-bank
        description: DIMM DDR2 Synchronous 400 MHz (2.5 ns)
        product: PartNum0
        vendor: Manufacturer0
        physical id: 0
        serial: SerNum0
        slot: DIMM0
        size: 512MiB
        width: 64 bits
        clock: 400MHz (2.5ns)

This utility is basically an all-in-one tool that spits out everything on your system in one go. But, what if you want information only about specific subsystems in your machine? An entire suite of utilities exists for this, and they might be more useful when you need some specific piece of information or want to do some system querying in a script.

You may want to look at the CPU. The lscpu utility provides output similar to the following:

Architecture: i686
CPU op-mode(s): 32-bit
CPU(s): 1
Thread(s) per core: 1
Core(s) per socket: 1
CPU socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 13
Stepping: 8
CPU MHz: 571.427

From this, you can see the manufacturer, whether it's 32-bit or 64-bit, the exact version and model, as well as the current CPU frequency.

If you want to know whether your video card is supported by X11, or whether you need to find a third-party driver, you can use lspci. This utility gives a list of all the devices plugged in to your PCI bus. The output looks something like this:

00:02.0 VGA compatible controller: Intel Corporation
 ↪Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation
 ↪Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)

This information shows that the video controller in my EeePC is an Intel controller. So, if you wanted, you now could search Google with this information to learn about your video card and how best to configure it. If you want to see what USB devices are on your system, use lsusb. On my EeePC, I have an SD card installed, and it shows up as this:

Bus 001 Device 002: ID 0951:1606 Kingston Technology

If you're interested in the disk subsystem, you can find out what your system has with the blkid utility. This utility prints out all the available filesystems, with the following output format:

/dev/sda1: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="ext2"
/dev/sda2: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="swap"
/dev/sda3: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="ext2"
/dev/sdb1: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="ext2"

With this utility, you can learn what devices are available and what filesystems are being used on them. The associated UUIDs also are available if you want to use them in the entries in /etc/fstab.

Now that you know what kind of hardware you have on your system, the last thing to check is to see whether your kernel actually is using the available hardware. On most modern distributions, the kernel is compiled to use modules. You can check to see which modules are loaded by using the lsmod command. You will get a list that looks like this:

agpgart                31788  2 drm,intel_agp
lp                          7028  0
video                   17375  1 i915
output                 1871  1 video

You can see that the agpgart module has a size of 31788 bytes and is used by the drm and intel_agp modules.

Now, hopefully, you can configure and optimize your hardware so that you get the most out of it. If you find other utilities not covered here, I would love to hear about them.