Affichage des articles dont le libellé est Computer. Afficher tous les articles
Affichage des articles dont le libellé est Computer. Afficher tous les articles

Checking Computer Specs in Linux

Checking Computer Specs in Linux

 

Something you always want to do on a computer, even if only once, is to check its hardware specifications, that is:
  • how much RAM do I have?
  • how much hard disk space do I have?
  • how “fast” is my CPU?
  • how much RAM does my graphics card have?
Of course most modern GNU/Linux desktop environments like Ubuntu usually come with some kind of graphical tool to find this information. GNOME’s System Monitor program should provide at least some of what you’re looking for. The information here is more for when you’re staring at a blinking cursor on a black screen trying to remember what the command was to show information about the CPU, RAM or Graphics Card.
This is the third time I’ve had to go on an internet search quest to remind myself how to do this in a Linux terminal. To save myself the trouble in the future, I’m writing down the commands here and if anyone else finds it useful then that’s great, and a second bird is figuratively killed!

How much RAM do I have?

I’m not sure if there’s another way of doing this, but dmidecode is a tool for dumping DMI information in human readable form and can be used to show information about your RAM devices like this:

# dmidecode --type 17

How much hard disk space do I have?

To list your partitions and their information, including size, you can use the -l option on the fdisk command:

# fdisk -l
 
:!: It needs to be run with root privileges. With no arguments it describes all the devices found in /proc/partitions but you can also specify a device name, as in:

# fdisk -l /dev/sda1

How fast is my CPU?

You can find a lot of information about your CPU, including the number of cores and the clock speed in the /proc/cpuinfo file:

$ cat /proc/cpuinfo

How much RAM does my graphics card have?

It will take 2 steps to find out how much graphics memory your computer has. The lspci command is used to get information about PCI busses and devices connected to them. We need to search the output of the command for something VGA compatible:

$ lspci | grep VGA
 
That should return a line starting with a number. You use that number to refer to the graphics device to get info for it:

$ lspci -vs 01:00.0
 
The -v flag is for verbose output and the -s flag is for specifying the domain (the number from the first step). Among the information here will be the amount of memory, with the size written in square brackets at the end of the line.

A brief mention of that other OS…

I suppose the methods for the ubiquitous Windows operating system are just as obscure but having used it for years they probably seemed normal just because I was used to them. WinKey+Pause|Break was the shortcut for showing the properties of “My Computer” where you could check your RAM and CPU specs. WinKey+E was the shortcut for Windows Explorer, which would open at “My Computer”, showing you the sizes of the different partitions you have. Even less people would think of typing “dxdiag” at the run prompt (WinKey+R) to start the DirectX Diagnostics Tool, which gives you information about your graphics card. If you were wondering how you check your specs in Windows, I guess I just covered that too! :-D
Speaking of other operating systems, with its shared UNIX roots, I’d be interested to know if these commands work on the Mac OSX operating system too!

A script to automate the process

Shortly after writing this post I realised it might be nice if there was a shell script that did all the above things for you and output it all in a nicely formatted way, so I wrote one!
You can :arrow: download the script file here or read the source code here.

WhatsApp for PC – Send and Receive Messages Straight from your Computer

WhatsApp for PC – Send and Receive Messages Straight from your Computer

WhatsApp is undoubtedly the most popular cross-platform mobile messaging application, which is currently available for most of the major mobile platforms including Android, iOS, Blackberry, Windows Phone and even Symbian.
However, an official Whatsapp PC  desktop client is currently not available and will most likely never be available since mobile platforms have been the core focus of the company. But is there any indirect way of using WhatsApp for PC? Yes.



Steps for running WhatsApp for PC

BlueStacks is a free application for Windows that can run applications such as WhatsApp for Android on Windows and that too, more smoothly than the official Android emulator. In this Tutorial we’ll be using BlueStacks for running Whatsapp on PC. So, before we start, download a copy of BlueStacks on your computer:

Step 1. Installing BlueStacks

So now when you’ve downloaded BlueStacks somewhere in your computer, install it. After the installation part is finished, open it on your PC. This is how it should look on your desktop:

Download: BlueStacks (99 MB)

Download Blue Stacks (99 MB)

 BlueStacks Home
Step 2. Downloading and Installing WhatsApp for PC
At the center of the application, there’s a search bar. Type “WhatsApp” and hit the Find button. A couple of search results will show up including some irrelevant ones too. Since we’re only interested in Whatsapp PC application, click on WhatsApp and hang on for a while until the download is completed. It will be automatically installed after the completion of download.

searching whatsapp for pc on bluestacks
whatsapp pc download

Now, open WhatsApp. You will be greeted with a beautiful floral splash screen. Next, click on Agree and Continue button.
Step 3. Activating WhatsApp
In WhatsApp, your mobile number is your unique identity with which people can find you on WhatsApp. So, WhatsApp requires that it verifies your ownership of your number. Choose your country and enter your mobile number. Right now, it thinks that you’re using a mobile phone and will send an SMS to your number from its web server. Upon receiving the SMS in your inbox, your mobile number would be verified.

Choose your Country and Enter your Mobile Number

Whoa, but wait! How the heck are you going to receive an SMS on a computer? Now, here comes the tricky part. We’ll take the alternative route – voice verification. WhatsApp will wait for five minutes expecting the SMS to arrive on your computer (duh!) and then prompt for an alternate way for verification. Grab a popcorn and watch the timer until it reaches zero.

Wait-until-the-timer-reaches-zero
Step 5. Fooling WhatsApp
After reaching zero, WhatsApp will prompt for voice verification. Click on Call Mebutton. WhatsApp will dial your phone and you will hear an automated message with a 3-digit verification code, note it down and enter it on WhatsApp. Your number will now be verified, Congratulations!

Voice-verification-Page
On the second screen enter your Name and hit enter. Now, we’ve got one final problem to deal with – Adding contacts.
Step 6. Adding Contacts
For adding new contacts, hit the menu button present in lower right corner and choose Contacts.
How to add a new contact
Enter the name and mobile (WhatsApp) number of your friend who is also present on WhatsApp. For them, having a WhatsApp PC client is unnecessary.

Enjoy Your Un-Official WhatsApp PC Client


image

And we’re done! Enjoy WhatsApp on your desktop. I wish there was an official WhatsApp PC client, but still, this is the best workaround you can find. Drop a comment below if you encounter any problem while setting up WhatsApp for PC.