8 Cute Linux Mini PCs for Fanboys

 Linux, Products  Comments Off on 8 Cute Linux Mini PCs for Fanboys
May 182015
 

Every day, Linux attracts hordes of new fans in China, India, Russia, Brazil, Turkey, Ukraine, Brazil, U.S., Iran and every corner of the world.

It’s safe to say that Linux is a bigger hit than the iPhone with the below 21 age group outside the U.S. But the majority of Linux newbies are not fanboys a la Apple fanboys.

Meerkat Linux Mini PC

Most youngsters new to Linux are learning the nuts and bolts of the open source operating system either for a job or to hack for profit or thrill. They do not have the resources to invest on a $1,800 iMac or a closed MacMini. These folks salvage an old PC and install Linux on it or use the Live CD option.

However, there’s a tiny group of open source adopters who I will describe as Linux fanboys. For this group, getting hold of a slick, pre-built Linux system is still not easy. There’s no BestBuy or Staples selling slick Linux PCs.

But things are starting to change. A bunch of vendors have started peddling Linux minis that seem in many respects  as slick as any of the MacMinis or Chromebooks.

Let’s consider a few slick Linux mini PCs that are available today.

1. MintBox Mini

Running the popular Linux Mint distribution, the MintBox Mini is a neat looking device from Compulab costing $295.

MintBox Mini comes preinstalled with Linux Mint 17.1 (supported until 2019).

MintBox Mini from Compulab
MintBox Mini Configuration
Linux Mint Mate 64-bit
AMD A4 Micro-6400T (Quad core 1.0-1.6 GHz + Radeon R3) processor
4 GB DDR3 RAM
64 GB mSATA
WiFi 802.11 b/g/n via dongle
5 USB

Since there’s no bluetooth support, you can’t use a wireless keyboard and mouse. That is a big disappontment.

The Compulab web site says the “MintBox Mini is temporarily out of stock.”

Could that be a sign of good demand for the MintBox Mini?

2. Meerkat

Meerkat is an Ubuntu 15.04 based mini Linux system from System 76.
Meerkat’s pricing starts at $499, which I must say is on the higher side.

Meerkat Linux Mini PC
Meerkat Base Configuration

* Ubuntu 15.04
* Intel i3 dual core processor
* 4GB RAM
* 32GB SSD
* 4 USB ports
* Mini HDMI 1.4a, Mini DisplayPort 1.2
* Gigabit Ethernet
* microSD card
* Wireless-AC
* Bluetooth 4

System76 also offers an Ubuntu-based laptop called Lemur for $599 (i3 processor, 4GB RAM, 500GB HD). Continue reading »

How to Flush IPTables Chains Selectively

 Command Line, How To, Linux  Comments Off on How to Flush IPTables Chains Selectively
May 132015
 

IPtables are a priceless resource for system administrators to secure their servers.

Given the ceaseless attempt by hackers working for money or thrills, every Linux server administrator must grasp the basics of IPtables.

In this post, I will assume that you already have IPtables installed and running on your system.

Once in a while, there might be arise a situation where you’ll have to flush the IPtables rules.

What is flushing?

Flushing basically refers to deleting the IPtables rules in a single chain or all chains.

Now you should know the difference between flushing and deleting on the command line with reference to IPtables.

In flushing, you’re just deleting the rules in a chain. Continue reading »

How to Find Version of Packages on CentOS

 Command Line, How To, Linux  Comments Off on How to Find Version of Packages on CentOS
May 122015
 

Find Version of Packages on CentOS
Every now and then, there arises the necessity for Linux administrators to find out what version of a particular package is running on a CentOS, RedHat or Fedora system.

As is to be expected, the commands to find out which version of a package is installed on RedHat, CentOS and Fedora are different from the commands for Ubuntu and its derivatives like the popular Linux Mint.

There are multiple ways to get the version of packages installed on CentOS, RedHat and Fedora. You can do it via the command line or through GUI utilities.

In this post, we’ll check out five simple methods to determine package version via the command line.

1. The first command line option that comes to mind when checking for the version of an application or package on CentOS  is yum info package_name.

$ yum info PACKAGE_NAME

Let’s see what version of the clamtk anti-virus software is installed on our CentOS 7 desktop.

$ yum info clamtk
Installed Packages
Name        : clamtk
Arch        : noarch
Version     : 5.15
Release     : 1.el7
Size        : 1.3 M
Repo        : installed

2. The yumdb method provides more information compared to the previous option.

$ yumdb info PACKAGE_NAME

With yumdb info, you not only get the package version number but other details such as checksum of the package (and algorithm used to produce it, such as SHA-256), repository, which user installed it, or whether it landed on the system as a dependency.

Let’s check out the yumdb command with an example.

Why not see what version of python is installed on our Linux system.

$ yumdb info python
python-2.7.5-16.el7.x86_64
     checksum_data = b03c388fe3fe1c711249564c96902852d129a0f4faf8a27accd660bf42ebab4e
     checksum_type = sha256
     from_repo = anaconda
     from_repo_revision = 1404557011
     from_repo_timestamp = 1404557037
     installed_by = 4294967295
     reason = dep
     (and more)

3. There’s another easy to remember option, rpm -qa which queries all currently installed packages.

$ rpm -qa PACKAGE_NAME

One of my favorite newsreaders on Linux is quiterss.

In the below command, we’ll see which version of quiterss is installed. Continue reading »

Which Version of an App is Running on Ubuntu?

 Command Line, Linux  Comments Off on Which Version of an App is Running on Ubuntu?
May 122015
 

Many a time I’m flummoxed as to which version of an application/package is running on my Ubuntu (or Linux Mint) system.

For sure, finding the package version is not an issue when dealing with GUI apps like Libreoffice or the Cherrytree notes app. You just need to open the application and look under ‘about’ on the top menu bar. As simple as that!

Which App Version is Running on Ubuntu?

But for other non-GUI apps like, say the Guake terminal emulator or the Python version on your Ubuntu system, you must head to the command line.

So how do you find out the package version?

Thankfully, the command line provides several options to find out the package version installed on Ubuntu Linux.

On Ubuntu and its derivatives like Linux Mint, there are four ways to find out a package version.

1. The simplest way is the dpkg -l method.

$ dpkg -l PACKAGE_NAME

For instance, I know Cherrytree notes app is installed on my Linux desktop.

Let’s pull down our terminal and see what version of the notes appis running.

$ dpkg -l cherrytree
cherrytree  0.35.7-1~ppa1~trusty1 all  hierarchical note taking application

By the way, dpkg -s PACKAGE_NAME would work fine too.

2. There’s a second distinct method to check the installed version of a package on an Ubuntu, Kubuntu, Lubuntu or Linux Mint system.

$ apt-cache show PACKAGE_NAME

Let’s check out this command and see what version of the Guake terminal I have on my PC.

$ apt-cache show guake
Package: guake
Priority: optional
Section: universe/x11
Installed-Size: 762
Maintainer: Ubuntu Developers 
Original-Maintainer: Sylvestre Ledru 
Architecture: amd64
Version: 0.4.4-1ubuntu1
Provides: x-terminal-emulator

3. Now for the third method of finding out which version of an application is running on Ubunutu (and its derivatives). Continue reading »

How to Check Memory Use by Applications

 Command Line, Linux  Comments Off on How to Check Memory Use by Applications
Apr 232015
 

Once in a while I run into a situation where I feel one of the work computers running Linux (of course) might be running slow.

4GB Memory for Desktop PCs

The first thing I check is the memory installed and utilized through the use of free -m command.

The Free command is not perfect but good enough.

thomas@workpc ~ $ free -m
             total       used       free     shared    buffers     cached
Mem:          4798       1701       3097        147         70       1147
-/+ buffers/cache:        483       4315
Swap:         3930          0       3930

The data column under free in the second line is what you should look for.

With 4.31GB “free” under that column, no issues there!

Applications & Memory Use

Next, I look at applications that are drawing the most memory.

To check memory used by various applications, a plethora of options are available on the command line.

You can check memory use by all applications and processes or examine just the memory used by the top-5, top-10 or top-20 applications.

Here are a few commands to help you quickly check memory used by different applications. I have tested them on LinuxMint 17 but they should work on other Linux distros too.

1. Memory, CPU & others

The below command is one of my favorites because besides memory, it also provides CPU use and the PID (process ID).

$ ps -eo pmem,pid,pcpu,rss,vsz,time,args | sort -k 1 -r

2. Top 20 Processes
If you’re looking for memory use by the top 20 processes, go with the below command.

Unlike some of the other commands, this one will give you only memory use and percentage.

$ ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20

3. Top 10 Processes
Now if you’re looking for memory use by the top 10 processes, run either of the below commands.

ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 10

or

$ ps aux --sort=-%mem | awk 'NR<=10{print $0}'

4. Top 5 Processes
If you’re looking for memory use by just the top five processes, issue the below command in the terminal.

$ ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5

5. Top is Tops
For a lot of folks, the top command is tops when it comes to checking memory and other parameters of their computer.

Run top
Once inside top, press m

A big plus is that top comes installed with every Linux computer.

6. Htop Tops Top

Lately, htop, a gussied up, ‘colored’ version of top, has drawn a lot of defectors from top.

$ htop

On Debian (or its spawns like Ubuntu and Linux Mint you can install htop easily:

$ sudo apt-get install htop

Go ahead and try out these commands on your Linux system and see which of your applications is grabbing the most memory.

10 Crucial Yum Commands for CentOS 7

 Command Line, Linux  Comments Off on 10 Crucial Yum Commands for CentOS 7
Apr 222015
 

Yum (Yellowdog Updater, Modified) is at the core of the CentOSRed Hat and Fedora package management systems.

On Linux distros like CentOS 7, RedHat 7 or Fedora 21, if you want to update, install or remove packages, list installed packages or update the entire system while at the same time ensuring automatic dependency resolution then the command line tool you must deploy is yum.

Yum also comes in handy while enabling or disabling repositories (package sources).

To update, install or remove packages via yum, you must have superuser privileges (via su or sudo).

Now let’s take a look at some of the key Yum commands you ought to be familiar for CentOS 7.

1. Check for Updates

$ yum check-update

The above command only checks for and lists available updates but it will not install them.

There’s no need to be logged in as a superuser to check for available updates.

2. Update a Single Package

More often not, you’ll be required to update only a single package, not all the packages.

Use the below command if you wish to update just a single package and you know its name.

$ yum update package_name

3. Update All Packages

If you intend to update all packages along with their dependencies, go with either of the below commands.

$ yum update

or

$ yum upgrade

I usually go with yum update if I’m updating multiple packages.

4. Search Packages

You can check enabled repositories for packages you wish to install on your CentOS 7 or RedHat 7 system.

There’s no need to know the name of the package during the search.

Let’s say you heard about a good RSS package but forgot its name. So just use rss in the search string.

$ yum search search_string

Search Multiple Packages
Yum lets you search for multiple packages simultaneously.

In the below example, I’m searching for the Cherrytree notes app and the Quiterss RSS reader. Continue reading »