Friday, March 28, 2014

check cpu information on Linux from command line

4 commands to check cpu information on Linux

CPU hardware information

The cpu information includes details about the processor, like the architecture, vendor name, model, number of cores, speed of each core etc. There are quite a few commands on linux to get those details about the cpu hardware, and here is a brief about some of the commands.
 
 1. /proc/cpuinfo
 The /proc/cpuinfo file contains details about individual cpu cores. 
  Output its contents with less or cat.
 
For example: 
 
$ less /proc/cpuinfo 

Every processor or core is listed separately the various details about speed, cache size and model name are included in the description.

To count the number of processing units use grep with wc
 
$ cat /proc/cpuinfo | grep processor | wc -l
4
The number of processors shown by /proc/cpuinfo might not be the actual 
number of cores on the processor. For example a processor with 2 cores 
and hyperthreading would be reported as a processor with 4 cores.

To get the actual number of cores, check the core id for unique values
 
$ cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 2
core id         : 1
core id         : 3

So there are 4 different core ids. This indicates that there are 4 actual cores.

 

2. lscpu

lscpu is a small and quick command that does not need any options. It would simply print the cpu hardware details in a user-friendly format.
 
$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 23
Stepping:              10
CPU MHz:               1998.000
BogoMIPS:              5303.14
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              2048K
NUMA node0 CPU(s):     0-3

3. dmidecode

The dmidecode command displays some information about the cpu, which includes the socket type, vendor name and various flags.
 
$ sudo dmidecode -t 4
# dmidecode 2.12
SMBIOS 2.4 present.

Handle 0x0000, DMI type 4, 35 bytes
Processor Information
        Socket Designation: LGA 775
        Type: Central Processor
        Family: Pentium D
        Manufacturer: Intel(R) Corporation
        ID: 7A 06 01 00 FF FB EB BF
        Signature: Type 0, Family 6, Model 23, Stepping 10
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                PAE (Physical address extension)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                APIC (On-chip APIC hardware supported)
                SEP (Fast system call)
                MTRR (Memory type range registers)
                PGE (Page global enable)
                MCA (Machine check architecture)
                CMOV (Conditional move instruction supported)
                PAT (Page attribute table)
                PSE-36 (36-bit page size extension)
                CLFSH (CLFLUSH instruction supported)
                DS (Debug store)
                ACPI (ACPI supported)
                MMX (MMX technology supported)
                FXSR (FXSAVE and FXSTOR instructions supported)
                SSE (Streaming SIMD extensions)
                SSE2 (Streaming SIMD extensions 2)
                SS (Self-snoop)
                HTT (Multi-threading)
                TM (Thermal monitor supported)
                PBE (Pending break enabled)
        Version: Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
        Voltage: 1.6 V
        External Clock: 333 MHz
        Max Speed: 4000 MHz
        Current Speed: 2666 MHz
        Status: Populated, Enabled
        Upgrade: Socket LGA775
        L1 Cache Handle: 0x0003
        L2 Cache Handle: 0x0001
        L3 Cache Handle: Not Provided
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: Not Specified

4. cpuid

The cpuid command fetches CPUID information about Intel and AMD x86 processors.
The program can be installed with apt on ubuntu

$ sudo apt-get install cpuid
 

Sunday, March 23, 2014

Android Wear, the new platform from Google for "wearable" devices

   


          Google today announced a new project called Android Wear specially designed for wearable devices , the next big " bang " technology . In the first stage Google focuses on the Google Android Wear watches by offering developers the opportunity from today to address and explore its features.            With Android Wear the end user enjoys information such as notifications from Android apps ( social applications , messaging chat, news roundtrips ) directly on the wrist of . You may also want to ask anything with the command 'Ok Google' or to give instructions , such as sending messages.     
         At the same time your favorite health applications  can offer updates on speed , distance and time of travel in real time and to notify appropriate to enhance your goals . Finally , the Android Wear will have the ability to control other devices from your wrist . For example , to open a music list on phone , or view your favorite movie on TV .     
        Google is already working with many manufacturers including Asus, HTC, LG, Motorola, Samsung, Intel, Broadcom, Imagination, Mediatek and Qualcomm to bring the first Android Wear products on the market by the end of 2014 .
        Below is a video for  developers.


Saturday, March 22, 2014

How DNS works

       Every PC that is connected to Internet for being recognizable from others has one global and unique address, called the IP address.
       IP address is a number of 32 bits - 4 Bytes (IPV4)   or a number of 128 bits - 16 Bytes (IPV6).
       Since the IP address is difficult to be memorized,there is another system in which the names of PCs are made of words separated from dots instead of numbers. Consequently every PC has one global and unique domain name.
       So there is a mechanism - a system - that corresponds the names to IP addresses. This system is called  Domain Name System - DNS.

Tuesday, March 11, 2014

Zorin OS 6 (LTS) - alternative to Windows

        
        Zorin OS is an Ubuntu-based Linux distribution designed especially for newcomers to Linux. It has a Windows-like graphical user interface and many programs similar to those found in Windows. Zorin OS also comes with an application that lets users run many Windows programs. The distribution's ultimate goal is to provide a Linux alternative to Windows and let Windows users enjoy all the features of Linux without complications. Zorin’s 2 free versions are “Core” (based on GNOME) and “Lite” (based on LXDE).



 The installation procedure is simple and similar to Ubuntu. You can select either the 32-bit or the 64-bit version. The desktop environment is customizable. Zorin OS 6 is compatible with "Windows applications".
      You don't have to worry about viruses and when a potential security threat arises, software updates usually come in a matter of hours. With Zorin OS you are sure to have peace of mind.



   There are plenty of interesting plugins available , but there are some that are more popular than others.One of the most commonly enabled effects is called “Wobbly Windows”, where the window wobbles around as if it’s made of jelly whenever you move it around. It’s very fun to watch, and has become somewhat of a trademark when it comes to Linux desktop effects. 

      

Friday, March 7, 2014

Mageia 4 review

           DistroWatch has a full review of Mageia 4, and it's not a very upbeat one. It seems that Mageia 4 is a bit of a mess and could use some tweaking.
            I have to say, having played with Mageia 4 for the past week, that I was disappointed by this release. It may be telling that this past week marked one of the few occasions I have run checksums on a distribution's installation media multiple times, suspecting corruption. I have long been a fan of Mandriva and its family of distributions, such as Mageia, and this latest version just did not feel like it was ready for release. Most of the time it barely felt like it was ready for beta testing.
            There were some highlights to this release. The distribution's Control Center is still one of the more user friendly configuration panels available and Mageia comes with a great collection of documentation and a pretty friendly system installer. Even with these positive aspects I felt like I was battling a slow and buggy system throughout the week and it is my hope the developers can get Mageia back on the rails for version 5.
             It's a bit of a drag to see Mageia in such straits. The last version I reviewed was Mageia 3, and I was quite pleased with it. I hope the developers are able to improve Mageia 5, and bring it back to its previously good experience. 

Best Linux distros to replace Windows XP


           March 04, 2014,  — Microsoft will soon no longer support Windows XP so current XP users will need to migrate to a newer version of Windows or possibly Linux. If they don't migrate, they run the risk of serious security problems once Microsoft stops issuing updates for Windows XP.

             Softpedia examines the possibility of upgrading to Ubuntu 14.04 LTS for Windows XP users.

             A lot of Windows XP users are looking to make a change after their operating system will cease to receive security updates from Microsoft, in April. Like most people who are migrating to Linux, they have a lot of questions about various aspects, regarding its use and its capabilities. The truth is that probably Windows XP users are more scared than they should be, as we will show right now.

             One of the issues with Windows XP computers is that many of them aren't exactly top of the line. Trying to run Windows 7 or Windows 8 on such older machines might not be a very good idea. Such computers can be too slow and lack the resources necessary to provide good performance on newer versions of Windows.

             Ubuntu, and other Linux distros, can run pretty well on older hardware. So I think it's a great idea for Windows XP users (companies and individuals alike) to seriously consider Linux. But it also makes sense to take your time to find the right Linux distribution to use as a replacement.

             While Ubuntu itself is a fine distribution, there are plenty of other options for those who prefer to steer clear of it. Ubuntu also isn't generally considered to be a lightweight distribution, so if you are running Windows XP on an older machine with limited resources then Ubuntu might not be your best bet.

             Here's a brief list of lightweight distributions, courtesy of Wikipedia.


Alpine Linux
antiX
BasicLinux
Bodhi Linux
CrunchBang Linux
Damn Small Linux
Lubuntu
Nanolinux
Peppermint Linux OS
Porteus
Puppy Linux
Semplice Linux
SliTaz
Tiny Core Linux
Trisquel Mini


             If I had to pick a distro or two off the list I'd probably go with CrunchBang, Bodhi, Peppermint or Lubuntu. But the other options might work well for Windows XP users as well. It's really just a matter of trying out some distros and choosing the one that works best for you in place of Windows XP.




XFCE Desktop Environment compared with GNOME and KDE

             
                    XFCE better than GNOME and KDE?
       Datamation thinks that XFCE is better than GNOME or KDE.
       Over the years, I've spent the bulk of my time with the Linux desktop using either GNOME or KDE. Both environments have grown over the years and each desktop has continued to expand its current user base.
       The sleeper desktop environment – which I didn’t even considered years ago – has been XFCE. I've found that XFCE offers more robustness than say, LXDE, which lacks much of XFCE's polish in its default configuration. XFCE provides all the benefits one may have enjoyed in GNOME 2, but with a lightweight experience that makes it a hit on older computers.
        I found myself agreeing with the conclusion of the article - that XFCE is indeed a better experience than GNOME or KDE - but also disagreeing with the idea of bothering to compare these three desktops in the first place.
       I tend toward being a minimalist so of course XFCE appeals more to me on a personal level. However, individual tastes in desktop environments are mostly subjective so it doesn't make much sense to compare them unless they fit into a particular category or share a similar design goal.
       For example, I don't consider GNOME or KDE to be lightweight desktops but I do consider XFCE to be one. So it would have made more sense to compare XFCE with other lightweight desktops rather than two desktops that aren't designed in a similar way.
       I think the article ended up comparing apples to oranges.

Tuesday, March 4, 2014

BeagleBone Black

What is BeagleBone Black?

BeagleBone Black is a $45 MSRP community-supported development platform for developers and hobbyists. Boot Linux in under 10 seconds and get started on development in less than 5 minutes with just a single USB cable.




Processor: AM335x 1GHz ARM® Cortex-A8

  • 512MB DDR3 RAM
  • 2GB 8-bit eMMC on-board flash storage
  • 3D graphics accelerator
  • NEON floating-point accelerator
  • 2x PRU 32-bit microcontrollers

 

 

Connectivity

  • USB client for power & communications
  • USB host
  • Ethernet
  • HDMI
  • 2x 46 pin headers

 

 

Software Compatibility

  • Ångström Linux
  • Android
  • Ubuntu
  • Cloud9 IDE on Node.js w/ BoneScript library
  • plus much more