What are Guest Additions?

 Linux, Virtualization  Comments Off on What are Guest Additions?
Dec 102015
 

How to Add Guest Additions to Virtual BoxAnyone who has installed Oracle’s VirtualBox virtualization software inevitably encounters a few vexing problems.

The main problem is that your monitor settings (screen resolution) will be off and the desktop will not occupy the full screen.

Plus, there are usually issues with your mouse with the guest OS.

Here’s where the concept of Guest Additions comes into the picture.

Unless you install Guest Additions, you’ll continue to have problems with your installation of the guest OS under VirtualBox.

Guest Additions

So what exactly are Guest Additions?

Guest Additions are basically drivers for the guest OS and enabled shared folders.

Before installing Guest Additions, you must install a few prerequisites.

If you’re running CentOS, run the below command as root or sudo to install prerequisites like Dynamic Kernel Module Support, GNU Compiler Collection, etc on the guest OS.

# yum install gcc g++ dkms kernel-devel

Once the installation of dkms, gcc, etc is complete, open the VirtualBox VM for the guest OS, then select Devices tab in the top row, scroll down and pick the Insert Guest Additions option.

What happens now is that the Guest Additions ISO is mounted in the virtual CD drive of the virtual machine (guest OS). Continue reading »

Rosa Can’t Wait to get on Your Laptop or Desktop

 General, Linux  Comments Off on Rosa Can’t Wait to get on Your Laptop or Desktop
Dec 052015
 

Folks, there’s a new, pretty hooker Rosa in town and the lady can’t wait to establish herself on your lap-top or desk-top. 🙂

Sound the bugle, uncork the champagne and lay out the red carpet for the newly arrived Rosa a.k.a. Linux Mint 17.3.

Linux Mint 17.3 Available

Not content with offering an excellent, rock-solid distribution in Linux Mint 17.2 a.k.a Rafaela for free, Linux Mint developers have now put out an upgrade with a Christmas bag full of goodies.

Something is seriously wrong with Linux Mint’s Project Manager Clement Lefebvre and his team! I can’t handle so much goodness!

The new release, Linux Mint 17.3 a.k.a Rosa, is available in both Cinnamon and Mate editions.

Linux Mint 17.3 Rosa Released

Linux Mint 17.3 is a long term support release, which means we freeloaders will be supported and receive security updates until 2019.

Built on the Ubuntu 14.04 package base, Linux Mint ‘Rosa’ Cinnamon edition features Linux kernel 3.19, Cinnamon 2.8 and MDM 2.0 display manager.

Both 32-bit and 64-bit versions of Linux Mint 17.3 are available.

Several Enhancements

Here are the key enhancements in Linux Mint 17.3 Cinnamon edition:

* Improved Update Manager that performs more checks about the mirrors than before
* More robust Driver Manager that refreshes the cache before looking for drivers, loads faster and detects drivers in the background
* Improvements to the Software Sources tool to make it faster and more reliable
* Cinnamon 2.8 featuring several usability improvements
* Better applets
* Upgrades to Xorg, Mesa and Linux kernel
* LibreOffice upgraded to version 5
* OpenVPN support, Orca screen reader and Nemo preview installed by default

You can download Linux Mint 17.3 (Cinnamon or Mate editions) at the Linux Mint web site.

Go ahead, get Rosa on your laptop or desktop and take her for a spin.

I bet you’ll be more than pleased.

Upgrade to Rosa

Linux Mint 17, 17.1 or 17.2 users wanting to upgrade to Linux Mint 17.3 should wait for a few days until a new version of Update Manager is released.

A big Thank You to Clem and the Linux Mint team!

How to Shut Down or Reboot Linux from Command Line

 Command Line, Linux  Comments Off on How to Shut Down or Reboot Linux from Command Line
Dec 042015
 

If you love tinkering with Linux, here’s something to pique your interest.

In this post, we’ll look at various methods to shut down or reboot a Linux system via the terminal.

Shutdown, poweroff, and reboot are three commands to shut down or reboot a Linux system.

I recommend you install Oracle’s free Virtualbox virtualization software and then install a guest OS (CentS or Ubuntu) before running the below commands on it to avoid accidentally disrupting important running processes.

Shut Down Linux

There are multiple options to shut down a Linux system on the command line.

Let’s first consider the shutdown and poweroff commands.

You can use the shutdown command to both shut down and reboot a Linux system.

First, we’ll look at the commands to shut down the system and then run through the commands for rebooting.

$ shutdown
Must be root.

As we see above, we need to be root or use sudo to run the shutdown command.

So we’ll run the command again, this time with sudo.

[jason@localhost ~]$ sudo shutdown
[sudo] password for jason: 
Shutdown scheduled for Thu 2015-12-03 21:02:24 EST, use 'shutdown -c' to cancel.
[jason@localhost ~]$ 
Broadcast message from root@localhost.localdomain (Thu 2015-12-03 21:01:25 EST):
The system is going down for power-off at Thu 2015-12-03 21:02:24 EST!

As we note above, the system provides users with advance notice of the impending power-off.

Shut Down Immediately

$ sudo shutdown now

When you run the above command, the system will shut down immediately so make sure you have everything saved and no important processes running.

Delayed Shut Down
Say you want to shut down your Linux system after three minutes.

Here’s the command for that.

[jason@localhost ~]$ sudo shutdown 3
[sudo] password for jason: 
Shutdown scheduled for Thu 2015-12-03 22:55:16 EST, use 'shutdown -c' to cancel.
Broadcast message from root@localhost.localdomain (Thu 2015-12-03 22:53:16 EST):
The system is going down for power-off at Thu 2015-12-03 22:55:16 EST!

You can even specify the exact time for the system to be shut down.

[jason@localhost ~]$ sudo shutdown 11:45
Shutdown scheduled for Fri 2015-12-04 11:45:00 EST, use 'shutdown -c' to cancel.
[jasoni@localhost ~]$ 
Broadcast message from root@localhost.localdomain (Fri 2015-12-04 11:35:27 EST):
The system is going down for power-off at Fri 2015-12-04 11:45:00 EST!

Remember to use 24-hour time for PM (so for a scheduled shut down at 1:35PM you must write sudo shutdown 13:35).

Cancel Shut Down

What if you change your mind. Continue reading »

Free Anti-Virus Software for Linux Systems

 Linux, Security  Comments Off on Free Anti-Virus Software for Linux Systems
Nov 272015
 

If you’re a Linux aficionado, bravo.

You’re obviously more knowledgeable about computers than the average user.

Linux – Risks Lurk

The good thing about Linux systems is that they’re less vulnerable compared to, say, Windows or any other operating system.

But don’t be fooled by all those fanboys who claim Linux is like Fort Knox, virtually impenetrable to the hackers.

Linux, like every other operating system, is prone to malware, viruses and all the other bad stuff.

Further, even if malware does not attack a Linux system directly they can still cause widespread harm if you run a Linux web server to which Windows, Mac, Android and other systems connect to.

So Linux server and desktop users would be well advised to be on the alert for malware.

Although Linux still has a small installed base at the consumer level, its growing usage is also prompting hackers to target this operating system.

Thankfully, for all ye scrooges there are a few free anti-virus Linux software.

Here are a couple of them.

1. Sophos offers anti-virus protection for Linux providing on-access and on-demand scanning.

Sophos supports popular Linux distributions including Red Hat Enterprise Linux (versions 4, 5, 6 and 7), CentOS (5.8+, 6.2+ and 7) and Ubuntu LTS Server Edition 12.04 / 14.04 (version 9.6.1+).

You can download the free Sophos anti-virus software for Linux from the company’s web site.

2. Clamav is another free anti-virus software for popular Linux distros like Red Hat, CentOS and Ubuntu.

Red Hat & CentOS

For Red Hat and CentOS distributions, make sure you have the EPEL repository enabled before trying to install Clamav.

$ sudo yum install clamav clamd

Continue reading »

How to Check Yum History in Red Hat or CentOS

 Command Line, Linux  Comments Off on How to Check Yum History in Red Hat or CentOS
Nov 252015
 

One of the most frequently used commands by Linux administrators of a Red Hat or CentOS system is the yum package management tool.

Yum History – What For?

Some would argue that Yum is the most powerful tool in a Linux systems administrator’s command line arsenal.

So what does yum do?

Yum Search vs Yum List

Yum is used for installing and upgrading packages, checking for updates, searching for packages, listing installed and available packages, downloading packages, adding and enabling/disabling repositories and installing local packages.

The beauty of yum is that when you install an update or package it automatically resolves dependencies (i.e. it installs all the other software required for your package to work).

But why is the yum history of any importance to a Linux administrator?

Knowing what commands we ran with yum and when we ran them is extremely useful in investigating problems, should they arise, and to roll back updates or remove packages if necessary.

Here are a few key commands to check yum history.

Remember to run yum history commands as root or sudo.

1. List the Last 20 Yum Transactions

$ sudo yum history list
Loaded plugins: aliases, changelog, fastestmirror, langpacks
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   102 | update mate*             | 2015-11-24 09:32 | Update         |    1   
   101 | update atril             | 2015-11-24 09:31 | Update         |    3  
   100 | update -y                | 2015-11-18 10:15 | Update         |    1 
    99 | update -y                | 2015-11-14 09:09 | Update         |    1   
    98 |                          | 2015-11-11 14:14 | Erase          |    4 EE
    97 | update -y                | 2015-11-11 09:29 | Update         |    1 EE
    96 | update -y                | 2015-11-06 15:11 | Update         |    6
    [output truncated]

2. List All Yum Transactions

The below command will spit out the entire history of yum commands which can go back a year or even earlier depending on the age of your CentOS or RedHat system.

$ sudo yum history list all
Loaded plugins: aliases, changelog, fastestmirror, langpacks
ID     | Login user  | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   103 | michaelpc   | 2015-11-25 16:14 | Update         |    1   
   102 | michaelpc   | 2015-11-24 09:32 | Update         |    1   
   101 | michaelpc   | 2015-11-24 09:31 | Update         |    3  <
   100 | michaelpc   | 2015-11-18 10:15 | Update         |    1 > 
    99 | michaelpc   | 2015-11-14 09:09 | Update         |    1   
    98 | michaelpc   | 2015-11-11 14:14 | Erase          |    4 EE
    97 | michaelpc   | 2015-11-11 09:29 | Update         |    1 EE
    [output truncated]

3. Selective Yum History

The yum history command is flexible enough that you can tweak it to get the output you want.

For instance, in the below example we’re looking at yum history from IDs 20 through 25.

$ sudo yum history list 20..25
Loaded plugins: aliases, changelog, fastestmirror, langpacks
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    25 | install clamtk-5.15-1.el | 2015-03-30 08:06 | Install        |   44   
    24 | install clamav clamtk    | 2015-03-30 08:00 | Install        |    4   
    23 | groupinstall MATE Deskto | 2015-03-23 09:38 | Install        |  133   
    22 | install docker           | 2015-03-22 08:51 | Install        |    1   
    21 | install yum-plugin-chang | 2015-03-13 21:57 | Install        |    2   
    20 | install yum-plugin-alias | 2015-03-13 21:55 | Install        |    1

4. Specific Yum Event
In this below example from my CentOS 7 system, when I ran yum history for ID 25, I found that on March 30, 2015 at 8:06AM I’d installed the Clam anti-virus software.

Now you see how powerful yum history is.

$ sudo yum history list 25
Loaded plugins: aliases, changelog, fastestmirror, langpacks
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
    25 | install clamtk-5.15-1.el | 2015-03-30 08:06 | Install        |   44

5. Yum History Summary

When all you’re looking for is the summary of yum history, the below command is what you’d run.

$ sudo yum history summary
Loaded plugins: aliases, changelog, fastestmirror, langpacks
Login user    | Time                | Action(s)        | Altered 
-------------------------------------------------------------------------------
michaelpc     | Last day            | Update           |        1
michaelpc     | Last week           | Update           |        4
michaelpc     | Last 2 weeks        | Update           |        2
michaelpc     | Last 3 months       | D, E, I, U       |      208
michaelpc     | Last 6 months       | E, I, O, U       |      313
System        | Last 6 months       | Install          |        1
michaelpc     | Last year           | E, I, O, U       |     2026
System        | Last year           | I, U             |    363

Folks, I hope the above post has given you a good overview of yum history commands.

Ubuntu Hackathon in India

 Linux  Comments Off on Ubuntu Hackathon in India
Oct 062015
 

First Ubuntu Hackathon in India Oct. 15-16, 2015
India’s first Ubuntu Hackathon is scheduled to take place in Bangalore from October 15-16, 2015 at the Mobile Developer Summit.

Ubuntu’s commercial backer Canonical will host the hackathon and is also the platinum sponsor of the mobile developer conference.

The goal of the Ubuntu Hackathon is to get developers to create new apps and content for the Ubuntu phone.

The hackathon will take place at the famed Indian Institute of Science.

Attractive prizes including Ubuntu laptops and smartphones are being offered for winners of the hackathon.

So register for the Ubuntu Hackathon quickly to pit yourself against your peers and make a grab for the prizes.

Ubuntu Smartphones in India

Two Ubuntu smartphones (Aquaris E4.5 and E5 HD Ubuntu Edition) recently launched in India via e-commerce site Snapdeal.

The E5 HD costs Rs 13,499 ($207) and the E4.5 is Rs 11,999 ($184).

Young Indians have embraced Linux with gusto.

So Ubuntu smartphones are likely to find a more favorable reception in India than in North America or Europe where consumers gravitate toward iPhones or Android devices from Samsung, HTC, OnePlus and other vendors.

In a smartphone world dominated by Apple’s iOS and Google’s Android platforms, it’s uncertain if there’s room for a third player.

If Ubuntu can work with Chinese hardware manufacturers to get prices closer to $100, Ubuntu smartphones would have a better chance of gaining marketshare in emerging markets like India, China and Brazil where iPhones and high-end Android smartphones are beyond the reach of most people.